Enter n and r

Permutation & Combination Formulas

Permutation (order matters)

nPr = n! ÷ (n − r)!

Combination (order doesn't matter)

nCr = n! ÷ (r! × (n − r)!)

Worked Example (n=10, r=3)

nPr = 10! ÷ 7! = 10 × 9 × 8 = 720
nCr = 10! ÷ (3! × 7!) = 720 ÷ 6 = 120

Relationship Between the Two

nPr = nCr × r!

Since each group of r items can be arranged in r! different orders.

Common Scenarios

Choose 3 from 10 (race podium)
nPr = 720, nCr = 120
5-card poker hand from a 52-card deck
nCr = 2,598,960
Arrange all 6 books on a shelf
nPr = 720
Choose a president & VP from 20 people
nPr = 380

Frequently Asked Questions

A permutation counts arrangements where order matters - "AB" and "BA" are counted as two different permutations. A combination counts selections where order does not matter - "AB" and "BA" are the same combination. Choosing a 1st, 2nd, and 3rd place winner uses permutations; choosing 3 people for a committee uses combinations.
n! (read as "n factorial") means multiplying every whole number from n down to 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By definition, 0! = 1. Factorials grow extremely fast - 10! is already 3,628,800.
The number of combinations is given by nCr = n! ÷ (r! × (n−r)!). For example, choosing 3 people from a group of 10 gives 10! ÷ (3! × 7!) = 120 possible combinations, regardless of the order they are chosen in.
The number of permutations is given by nPr = n! ÷ (n−r)!. For example, arranging 3 out of 10 people in 1st, 2nd, and 3rd place gives 10! ÷ 7! = 720 possible ordered arrangements - six times more than the combination count, since each group of 3 can be ordered in 3! = 6 different ways.
Every combination of r items can be arranged in r! different orders, and each of those orders counts as a separate permutation. So nPr = nCr × r!, which means permutations are always r! times larger than combinations (or equal, only when r is 0 or 1, since 0! = 1! = 1).

Permutation & Combination Calculator - Counting Arrangements and Selections

Permutations and combinations answer one of the most common questions in probability and statistics: in how many ways can you choose or arrange items from a larger group? The key distinction between them comes down to a single question - does the order of selection matter? Permutations count arrangements where order matters, while combinations count selections where it doesn't.

Quick reference: nPr = n! ÷ (n−r)! for permutations (order matters). nCr = n! ÷ (r! × (n−r)!) for combinations (order doesn't matter).

A Simple Way to Tell Them Apart

Ask yourself: if I swap the order of two chosen items, is the result considered different? Ranking runners in 1st, 2nd, and 3rd place is a permutation problem - swapping who gets 1st and 2nd creates a genuinely different outcome. But selecting 3 people to serve on a committee is a combination problem - it doesn't matter which order they were chosen in, the resulting committee is the same group either way.

Understanding Factorials

Both formulas rely on the factorial function, written as n!, which means multiplying every whole number from n down to 1. For example, 4! = 4 × 3 × 2 × 1 = 24. Factorials grow extremely quickly - 5! is 120, but 10! is already over 3.6 million, and 20! is a 19-digit number. This rapid growth is exactly why the number of possible arrangements or selections can become enormous even with a relatively small starting group.

Why Permutations Are Always Larger Than Combinations

For the same values of n and r, there will always be more permutations than combinations (unless r is 0 or 1). This is because every single combination of r items can itself be rearranged in r! different orders, and each of those rearrangements counts as a separate permutation. The formula nPr = nCr × r! captures this relationship directly - permutations are always r! times more numerous than combinations of the same items.

Real-World Applications

  • Combinations: Lottery number selections, choosing a committee or team, selecting a subset of features for a survey, or counting possible card hands in poker (where the order you're dealt cards doesn't matter).
  • Permutations: Ranking contestants in a competition, arranging books on a shelf, assigning distinct roles (like president, secretary, treasurer) to a group of candidates, or generating possible passwords with fixed positions.
  • Probability calculations: Both permutations and combinations are foundational to calculating probabilities in card games, genetics, quality control sampling, and many areas of statistics.

A Note on Large Numbers

Because factorials grow so quickly, calculating nPr or nCr by hand for large values of n becomes impractical very fast - by the time n reaches 20 or 30, the intermediate factorial values are astronomically large, even though the final nCr or nPr answer may be much smaller after the division. This calculator handles the full computation instantly, regardless of how large n and r are, as long as the result stays within standard numeric precision.

How this calculator works, and where the numbers come from

The Permutation & Combination applies the standard formula for this calculation to the values you enter and updates the result as you type. The calculation itself happens in your browser, and the page explains the method so you can check any result by hand.

Please note: Results are provided for general information and are calculated from the values you enter.

Sources and further reading

Last reviewed: by the CalcQube Editorial Team. See our editorial policy for how we build and check calculators, or report an error.