Skip to main content
๐Ÿ”„

Permutation Calculator

Calculate permutations (nPr) for arranging items where order matters. Find the number of ways to arrange r items from n, with and without repetition.

P(10, 3)

720

Step-by-Step Calculation

P(n, r) = n! / (n-r)!

P(10, 3) = 10! / 7!

= 3,628,800 / 5,040

Or directly: 10 ร— 9 ร— ... ร— 8

= 720

C(10, 3) - Combination

120

3! (r factorial)

6

Interpretation

There are 720 different ways to arrange 3 items from a set of 10 items when each item can only be used once.

Note: This is 6 times more than the combination (120), because we count different orderings of the same selection as distinct.

Common Examples

  • โ€ข Race podium: 3 positions from 10 runners = P(10,3) = 720
  • โ€ข Class officers: 4 positions from 25 students = P(25,4) = 303,600
  • โ€ข Phone unlock pattern: 4 dots from 9 = P(9,4) = 3,024

Key Properties

  • โ€ข P(n, n) = n! (all items arranged)
  • โ€ข P(n, 1) = n (just picking one)
  • โ€ข P(n, 0) = 1 (one way to arrange nothing)
  • โ€ข P(n, r) = C(n, r) ร— r! (permutation = combination ร— orderings)
  • โ€ข Order DOES matter in permutations

About This Calculator

A permutation is an arrangement of items where the order matters. Choosing who gets 1st, 2nd, and 3rd place in a race is a permutation problem because A-B-C is different from C-B-A. This calculator finds how many different ordered arrangements are possible.

What are Permutations? Permutations count the number of ways to arrange items in specific positions. Unlike combinations where {A,B,C} = {C,B,A}, in permutations these are distinct arrangements. The notation P(n,r) or nPr represents arranging r items from n total items.

The Formulas:

  • Without repetition: P(n,r) = n! / (n-r)!
  • With repetition: P(n,r) = nสณ

When Order Matters:

  • Ranking contestants (1st, 2nd, 3rd)
  • Creating passwords
  • Arranging books on a shelf
  • Scheduling events
  • Assigning seats

Permutation vs. Combination:

  • Permutation: ABC โ‰  CBA (order matters)
  • Combination: {A,B,C} = {C,B,A} (order doesn't matter)

For problems where order doesn't matter, see our Combination Calculator. For probability applications, see our Binomial Distribution Calculator.

How to Use the Permutation Calculator

  1. 1Enter the total number of items (n) available.
  2. 2Enter the number of positions (r) to fill.
  3. 3Choose whether repetition is allowed.
  4. 4Without repetition: Each item used at most once.
  5. 5With repetition: Items can be reused.
  6. 6Review the calculated number of permutations.
  7. 7Check the step-by-step calculation.
  8. 8Compare with combinations to see the effect of order.
  9. 9For without repetition, r must be โ‰ค n.
  10. 10Apply to real problems like rankings or passwords.

Permutation Formulas

Understanding the two types of permutations.

Without Repetition (Standard)

P(n, r) = n! / (n-r)!

Or equivalently: P(n, r) = n ร— (n-1) ร— (n-2) ร— ... ร— (n-r+1)

Each item can only be used once.

Example: P(5, 3)

P(5, 3) = 5! / 2! = 120 / 2 = 60

Or: 5 ร— 4 ร— 3 = 60

With Repetition

P(n, r) = nสณ

Items can be reused in different positions.

Example: 4-digit PIN (digits 0-9)

P(10, 4) with repetition = 10โด = 10,000

Key Difference

Without: First position has n choices, second has n-1, etc. With: Every position has n choices.

Permutations vs. Combinations

The fundamental difference: does order matter?

Side-by-Side Comparison

AspectPermutationCombination
OrderMattersDoesn't matter
ABC vs CBADifferentSame
Formulan!/(n-r)!n!/(r!(n-r)!)
SymbolP(n,r), nPrC(n,r), nCr
CountMoreFewer

The Relationship

P(n, r) = C(n, r) ร— r!

Permutations = Combinations ร— (ways to arrange each selection)

Example: 3 from 5

Combinations: C(5,3) = 10 groups {ABC}, {ABD}, {ABE}, {ACD}, {ACE}, {ADE}, {BCD}, {BCE}, {BDE}, {CDE}

Permutations: P(5,3) = 60 arrangements Each group of 3 can be arranged 3! = 6 ways 10 ร— 6 = 60

Choosing the Right One

Ask: "Does the order of selection matter?"

YES โ†’ Permutation:

  • Ranking competitors
  • Creating passwords
  • Scheduling in sequence

NO โ†’ Combination:

  • Selecting committee members
  • Choosing lottery numbers
  • Dealing card hands

Common Applications

Real-world problems using permutations.

Rankings and Contests

Olympic Medals (3 winners from 8): P(8, 3) = 8 ร— 7 ร— 6 = 336 possible podium outcomes

Class Elections (President, VP, Secretary from 25): P(25, 3) = 25 ร— 24 ร— 23 = 13,800

Security and Passwords

4-digit PIN (with repetition): P(10, 4) = 10โด = 10,000

6-character password (letters only, no repetition): P(26, 6) = 26 ร— 25 ร— 24 ร— 23 ร— 22 ร— 21 = 165,765,600

8-character password (letters + digits, with repetition): 36โธ = 2,821,109,907,456

Scheduling

5 talks in 5 time slots: P(5, 5) = 5! = 120 possible schedules

3 meetings from 7 available slots: P(7, 3) = 7 ร— 6 ร— 5 = 210

Seating Arrangements

8 people in 8 chairs: 8! = 40,320 arrangements

5 people in a row of 12 seats: P(12, 5) = 95,040

Special Cases

Important permutation scenarios.

Arranging All Items

P(n, n) = n!

Arranging all n items uses all positions. P(5, 5) = 5! = 120

Circular Permutations

When arranged in a circle, one position is fixed: (n-1)! arrangements

Example: 5 people at a round table (5-1)! = 4! = 24 arrangements

Permutations with Identical Items

If some items are identical: n! / (nโ‚! ร— nโ‚‚! ร— ... ร— nโ‚–!)

Example: Arrangements of "MISSISSIPPI" 11! / (4! ร— 4! ร— 2!) = 34,650 (4 S's, 4 I's, 2 P's, 1 M)

Restricted Permutations

When certain positions have restrictions:

Example: 5 people, 2 must be adjacent Treat adjacent pair as one unit: 4! = 24 The pair can swap: ร— 2 Total: 48 arrangements

Derangements

Permutations where nothing is in its original position: D(n) โ‰ˆ n!/e

Example: No one gets their own hat D(4) = 9 arrangements

Counting Principles

Fundamental rules that underlie permutations.

The Multiplication Principle

If task 1 can be done in m ways and task 2 in n ways: Total ways = m ร— n

This is why P(n,r) = n ร— (n-1) ร— ... ร— (n-r+1)

The Addition Principle

If events are mutually exclusive: Total = countโ‚ + countโ‚‚ + ...

Example: Arrangements starting with A OR B = (arrangements starting with A) + (arrangements starting with B)

Complement Counting

Sometimes easier to count what we DON'T want:

Desired = Total - Undesired

Example: Arrangements where A and B are NOT adjacent = Total arrangements - Arrangements where A and B ARE adjacent

Inclusion-Exclusion

For overlapping conditions: |A โˆช B| = |A| + |B| - |A โˆฉ B|

Useful when counting "at least one" scenarios.

Bijection Principle

If we can create a one-to-one correspondence between two sets, they have equal size.

Useful for proving permutation identities.

Advanced Permutation Problems

More complex counting scenarios.

Permutations with Forbidden Positions

Problem: Arrange 1,2,3,4 so no number is in its position

This is a derangement: D(4) = 4!(1 - 1/1! + 1/2! - 1/3! + 1/4!) = 9

Permutations with Required Adjacencies

Problem: 6 people, couple must sit together

Treat couple as one unit: 5! = 120 ways Couple can swap: ร— 2 Total: 240

Permutations with Forbidden Adjacencies

Problem: 5 books, math and physics can't be adjacent

Total arrangements: 5! = 120 Adjacent arrangements: 4! ร— 2 = 48 Non-adjacent: 120 - 48 = 72

Distribution to Distinct Boxes

n distinct items into k distinct boxes:

  • All boxes get items: Stirling numbers ร— k!
  • Any distribution: kโฟ

Permutations with Repetition Limits

Problem: 3-letter "words" from {A,B,C}, each used at most twice

Requires careful case analysis or generating functions.

Pro Tips

  • ๐Ÿ’กRemember: Permutation = order DOES matter.
  • ๐Ÿ’กP(n,r) = n!/(n-r)! without repetition; nสณ with repetition.
  • ๐Ÿ’กFor all items: P(n,n) = n! (factorial).
  • ๐Ÿ’กCircular arrangements: (n-1)! instead of n!.
  • ๐Ÿ’กIdentical items: divide by factorial of each repeat count.
  • ๐Ÿ’กP(n,r) = C(n,r) ร— r! (permutation = combination ร— orderings).
  • ๐Ÿ’กUse multiplication principle: multiply choices at each position.
  • ๐Ÿ’กAdjacent items: treat as one unit, multiply by their internal arrangements.
  • ๐Ÿ’กFor "not adjacent," use total minus adjacent.
  • ๐Ÿ’กAlways check if repetition is allowed.
  • ๐Ÿ’กLarge permutations quickly exceed calculator capacity.
  • ๐Ÿ’กCheck your answer: P(n,r) must be a whole number.

Frequently Asked Questions

In permutations, order matters: arranging A,B,C is different from C,B,A. In combinations, order doesn't matter: selecting {A,B,C} is the same as {C,B,A}. Permutations count arrangements; combinations count selections. P(n,r) = C(n,r) ร— r!.

Nina Bao
Written byNina Baoโ€ข Content Writer
Updated January 17, 2026

More Calculators You Might Like