Permutation Formula

STATISTICS

Permutation formula

A permutation counts the ways to arrange r items chosen from n when order matters. Because arrangements like AB and BA are counted separately, permutations give larger numbers than combinations.

P(n, r) = n! / (n − r)!
where:

  • n = the total number of items
  • r = the number of items chosen and arranged
  • n! = n factorial, the product of all whole numbers from 1 to n

When order matters

Use permutations when the sequence is important, such as the finishing order in a race, the digits of a code, or the seating around a table. Choosing the same items in a different order counts as a different permutation. The factorial in the formula accounts for every possible arrangement.

Worked example

  1. Choose and arrange 2 items from 5, so n = 5 and r = 2.
  2. Apply the formula: P(5, 2) = 5! / (5 − 2)! = 5! / 3!.
  3. That is 120 / 6 = 20.
  4. There are 20 ordered arrangements.

Related formula

See the Combination Formula for selections where order does not matter.

FAQ

What is the difference between a permutation and a combination?

A permutation counts ordered arrangements; a combination counts selections where order does not matter. Permutations give larger counts.

What does n! mean?

n factorial is the product of all whole numbers from 1 up to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.