What Is a Permutation?

A permutation is an arrangement of items in which the order matters. It answers questions such as how many different ways can people take positions, how many possible rankings can be created, or how many ordered selections can be made from a group.

For example, choosing Alice, Ben, and Chris for first, second, and third place is different from choosing Ben, Alice, and Chris for those positions. The same people are involved, but their order has changed. Each arrangement is therefore a different permutation.

The ToolRexa Permutation Calculator finds the number of ordered arrangements when you choose r items from a total of n distinct items. It uses the standard nPr formula, where an item cannot be selected more than once.

How to Use the Permutation Calculator

  1. Enter the total number of available items in the Total Items (n) field.
  2. Enter how many items you want to select and arrange in the Items Chosen (r) field.
  3. Calculate to see the number of possible ordered arrangements.

For example, if a competition has 8 runners and you want to determine how many ways they could occupy the first three positions, enter n = 8 and r = 3.

The Permutation Formula (nPr)

The standard formula for arranging r distinct items selected from n available items is:

P(n,r) = n! ÷ (n − r)!

Each symbol has a specific meaning:

  • n: The total number of available items.
  • r: The number of items selected and arranged.
  • !: The factorial symbol, meaning the product of all positive whole numbers from that number down to 1.
  • P(n,r): The total number of possible ordered arrangements.

For example, 5! means 5 × 4 × 3 × 2 × 1 = 120, while 3! means 3 × 2 × 1 = 6. By dividing the factorial of n by the factorial of n − r, the formula counts only the arrangements of the selected items.

How Does the Permutation Formula Work?

The formula can also be understood using the multiplication principle. Imagine filling r positions from a group of n distinct items without selecting the same item twice.

The first position has n possible choices. After choosing one item, only n − 1 choices remain for the second position. The number of available choices continues decreasing with every position filled.

Therefore, the number of arrangements is:

n × (n − 1) × (n − 2) × ...

The multiplication continues for r positions. This is equivalent to the factorial formula:

P(n,r) = n! ÷ (n − r)!

Worked Permutation Examples

Example 1: Arranging 3 Positions from 8 Runners

Eight runners compete in a race. How many different ways can they finish in first, second, and third place?

We have:

  • Total runners: n = 8.
  • Positions to fill: r = 3.

Apply the formula:

P(8,3) = 8! ÷ (8 − 3)!

= 8! ÷ 5!

= 8 × 7 × 6

Result: 336 possible podium arrangements.

There are 8 choices for first place, 7 remaining choices for second place, and 6 choices for third place.

Example 2: Arranging 3 People from a Group of 10

Suppose a group contains 10 people, and you want to arrange 3 of them in three distinct positions.

Enter n = 10 and r = 3:

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

= 10 × 9 × 8

Result: 720 possible arrangements.

Example 3: Arranging All Available Items

Imagine you have 5 different books and want to arrange all of them on a shelf.

In this case, n = 5 and r = 5.

P(5,5) = 5! ÷ 0!

Since 0! = 1:

Result: 120 possible arrangements.

This is the same as calculating 5 × 4 × 3 × 2 × 1.

Permutation vs. Combination

Permutations and combinations both count ways to select items from a group, but they answer different questions. The deciding factor is whether the order of selection matters.

Feature Permutation Combination
Does order matter? Yes No
What is counted? Ordered arrangements Distinct selections
Formula n! ÷ (n − r)! n! ÷ [r!(n − r)!]
Example Assigning first, second, and third place Selecting three committee members

Example: Choosing 3 People from 10

Suppose you select 3 people from a group of 10.

  • If you are assigning first, second, and third positions, order matters. There are 720 permutations.
  • If you are simply choosing 3 committee members, order does not matter. There are 120 combinations.

The permutation result is six times larger because the same three people can be arranged in 3! = 6 different orders.

When the order does not matter, use the Combination Calculator instead.

Does a Permutation Allow Repeated Items?

The standard nPr formula used by this calculator counts arrangements without repetition. Once an item is selected, it cannot be selected again in another position.

For example, if you arrange three people from a group of eight, the same person cannot occupy both first and second place.

Some problems allow repeated choices, such as creating a three-digit code where a digit can appear more than once. That is a different counting problem. When every one of the r positions has n independent choices, the number of possible arrangements is:

nr

For example, a three-digit code made from 10 possible digits, with repetition allowed, has 10³ = 1,000 possible codes. This is not the same as P(10,3), which counts arrangements without repeating an item.

What Happens When n and r Become Large?

Permutation results can grow very quickly, even when the number of available items seems relatively small. This happens because each additional position introduces another multiplication factor.

For example:

  • P(8,3) = 336.
  • P(10,3) = 720.
  • P(20,5) = 1,860,480.

As n and r increase, the result can become too large to display conveniently as an ordinary integer. ToolRexa handles large factorial calculations numerically and displays the result in scientific notation when it exceeds the available display limits.

Scientific notation makes large values easier to read. If you want to understand this number format in more detail, see the Scientific Notation Calculator.

Where Are Permutations Used?

  • Sports rankings: Counting possible orders for first, second, and third place in a race.
  • Seating arrangements: Finding the number of ways to place distinct people in specific seats.
  • Task scheduling: Counting different possible orders for completing a set of distinct tasks.
  • Competitions: Determining the number of possible rankings or ordered winners.
  • Question arrangements: Finding the number of ways to select and order questions for an exam.
  • Security codes: Counting possible ordered selections when repeated symbols are not allowed.

Common Mistakes When Calculating Permutations

  • Confusing permutations with combinations: A permutation considers different orders as different outcomes, while a combination does not.
  • Reversing n and r: n is the total number of available items, while r is how many items are selected and arranged.
  • Allowing repetition unintentionally: The standard nPr formula does not reuse an item. Problems that allow repetition require a different formula.
  • Forgetting factorial cancellation: You can simplify n! ÷ (n − r)! into a product of r descending factors instead of calculating two large factorials separately.
  • Using an invalid selection size: You cannot select more distinct items than are available. The standard condition is 0 ≤ r ≤ n.
  • Ignoring the role of position: Before using a permutation formula, decide whether changing the order creates a different outcome.

Frequently Asked Questions

What does nPr mean?

nPr represents the number of ordered arrangements of r distinct items selected from a total of n available items. It is calculated using n! ÷ (n − r)!.

What is the difference between nPr and nCr?

nPr counts arrangements when order matters. nCr counts selections when order does not matter. For the same n and r, the permutation count is generally larger because it includes different orders of the selected items.

Can r be greater than n?

No, not when selecting distinct items without repetition. The number of selected items cannot exceed the total number available.

Can I use the permutation formula when all items are selected?

Yes. When r equals n, the formula becomes n! ÷ 0!, which equals n! because 0! = 1. This counts every possible ordering of all the available items.

Does this calculator allow repetition?

No. It uses the standard permutation formula for distinct items selected without repetition. Problems that allow repeated selections require a different calculation.

Why does order matter in a permutation?

Because changing the position of an item creates a different arrangement. For example, assigning Alice to first place and Ben to second place is different from assigning Ben to first place and Alice to second place.

Why is the permutation result sometimes much larger than the combination result?

Because a permutation counts every possible order of the selected items. A group of r distinct items can be arranged in r! different ways, which explains why P(n,r) = C(n,r) × r!.

What is the permutation of 10 items taken 3 at a time?

P(10,3) = 10 × 9 × 8 = 720. There are 720 different ordered arrangements.

Calculate Permutations with ToolRexa

Whether you are solving a counting problem, studying probability, arranging people in positions, or comparing possible rankings, the ToolRexa Permutation Calculator helps you calculate ordered arrangements quickly.

Enter the total number of available items and the number you want to arrange. The calculator applies the nPr formula and returns the number of possible arrangements, using scientific notation when the result becomes too large for the normal display.

For a detailed mathematical explanation of permutations, factorials, and ordered selections, read OpenStax: Permutations.

Related calculators