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
Related Calculators
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
- 1Enter the total number of items (n) available.
- 2Enter the number of positions (r) to fill.
- 3Choose whether repetition is allowed.
- 4Without repetition: Each item used at most once.
- 5With repetition: Items can be reused.
- 6Review the calculated number of permutations.
- 7Check the step-by-step calculation.
- 8Compare with combinations to see the effect of order.
- 9For without repetition, r must be โค n.
- 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
| Aspect | Permutation | Combination |
|---|---|---|
| Order | Matters | Doesn't matter |
| ABC vs CBA | Different | Same |
| Formula | n!/(n-r)! | n!/(r!(n-r)!) |
| Symbol | P(n,r), nPr | C(n,r), nCr |
| Count | More | Fewer |
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!.

