Probability

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.

Enter the total number of available items.
Enter the number of items being arranged.

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.

  1. Total Number of Items, n: Enter the size of the set you are pulling from.
  2. Number of Items Arranged, r: Enter how many items you want to put into a sequence.
  3. 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).
  4. 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".

P = n! / (n - r)!

With Repetition

If you can select the same item multiple times, the number of possibilities skyrockets. The formula becomes an exponential calculation.

P' = nr

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)

Frequently Asked Questions

Order. In a permutation, the order matters (A-B-C is different from C-B-A). In a combination, order does not matter (A-B-C is the same group as C-B-A). Therefore, there are always far more permutations than combinations for the same numbers.

If you are arranging all available items (n = r) without repetition, the formula n! / (n - n)! simplifies to n! / 0!. Since 0! is 1, the number of permutations is simply n!. For example, the number of ways to arrange 5 books is 5!.

Because the order of the numbers matters! If the code is 1-2-3, entering 3-2-1 will not open the lock. Mathematically, it should be called a permutation lock.