Permutation Calculator
Use this permutation calculator to find the number of ways to arrange r items from n items when order matters. Calculate permutations with or without repetition and get a clear step-by-step solution.
Leave this off for the standard permutation, where each item can be used only once.
How to Use the Permutation Calculator
This calculator answers questions like "How many different ways can I arrange these items?" It takes the heavy lifting out of calculating factorials and large numbers.
- Total Number of Items, n: Enter the size of the set you are pulling from.
- Number of Items Arranged, r: Enter how many items you want to put into a sequence.
- With repetition?: Toggle this on if you can use the same item more than once (like a combination lock where '1-1-1' is valid). Leave it off if items are consumed when used (like assigning 1st, 2nd, and 3rd place trophies).
- Click Calculate.
What is a Permutation?
In mathematics, a permutation is an arrangement of objects in a specific order. The phrase "order matters" is the key to understanding permutations. Unlike combinations where {A, B, C} is the exact same as {C, B, A}, in a permutation, those are considered two completely distinct outcomes.
Permutations answer the question: "How many different sequences can I create?"
Permutation Formula
Depending on whether you allow repetition, there are two distinct formulas.
Without Repetition
This is the standard permutation formula, often written as "nPr".
With Repetition
If you can select the same item multiple times, the number of possibilities skyrockets. The formula becomes an exponential calculation.
How to Calculate Permutations
Example 1: Permutation Without Repetition
Imagine a race with 8 runners (n = 8). We need to know how many possible ways we can award the Gold, Silver, and Bronze medals (r = 3 positions).
Because a runner cannot win both Gold and Silver, repetition is not allowed. Because the awards are different, the order matters.
P = 8! / (8 - 3)!
P = 8! / 5!
P = 40,320 / 120
P = 336
There are 336 different ways the medals could be awarded.
Example 2: Permutation With Repetition
You are setting a 3-digit passcode on your phone (r = 3). The keypad has numbers 0 through 9, meaning there are 10 available digits (n = 10).
Because you can use the same digit multiple times (e.g. 5-5-5), repetition is allowed.
P' = nr
P' = 103
P' = 10 × 10 × 10
P' = 1,000
There are 1,000 possible passcodes you could create.
When Should You Use Permutations?
You should use permutations (instead of combinations) whenever the sequence or arrangement is important. Common scenarios include:
- Assigning specific roles (President, Vice President)
- Creating passwords or passcodes
- Arranging books on a shelf
- Assigning seating arrangements
- Determining race results (1st, 2nd, 3rd)