Permutation and Combination Calculator
A permutation P(n, r) is the number of ORDERED arrangements of r items taken from a set of n; a combination C(n, r) is the number of SELECTIONS made without regard to order. Choosing a president and a deputy from three people is a permutation (order matters), while choosing two representatives from three people is a combination (order does not matter).
This calculator returns both values at once, shows the factor of r! between them, and for n ≤ 20 plots the distribution of the C(n, r) values (a row of Pascal's triangle). Results are exact whole numbers for n up to 170; very large results are shown in scientific notation.
Formula
P(n, r) = n! / (n − r)! = n × (n−1) × ... × (n−r+1) C(n, r) = n! / (r! × (n − r)!) P(n, r) = C(n, r) × r!
Use a permutation when ORDER MATTERS and a combination when it does not. 'How many different passcodes?' is a permutation, 'how many different teams?' is a combination; confusing the two is the most frequent mistake.
How to Calculate
- Enter the total number of items (n) — for example, the 10 students in a class.
- Enter how many items will be selected or arranged (r).
- Read P(n, r) if order matters, or C(n, r) if it does not.
- Compare the results for the other values of r in the table and the chart.
Worked Examples
Arranging and choosing 3 out of 5 people
Choosing a president, a deputy, and a secretary from 5 people (order matters) can be done in P(5, 3) = 5 × 4 × 3 = 60 ways; forming a team of 3 (order does not matter) can be done in C(5, 3) = 10 ways. The difference is exactly 3! = 6 times.
Permutation P(5, 3) — ordered arrangement: 60 · Combination C(5, 3) — unordered selection: 10 · Factor between them: P / C = r! = 3!: 6
Top two places in a 10-team league
Deciding the champion and the runner-up among 10 teams produces P(10, 2) = 90 different outcomes, while which two teams finish on top can happen in C(10, 2) = 45 ways.
Permutation P(10, 2) — ordered arrangement: 90 · Combination C(10, 2) — unordered selection: 45 · Factor between them: P / C = r! = 2!: 2
Lottery: 6 numbers out of 49
In the classic 6-from-49 lottery order does not matter: there are C(49, 6) = 13,983,816 different tickets, so a single ticket has a 1 in 13,983,816 chance of matching all six numbers. The number of ordered arrangements is P(49, 6) = 10,068,347,520.
Permutation P(49, 6) — ordered arrangement: 10,068,347,520 · Combination C(49, 6) — unordered selection: 13,983,816 · Factor between them: P / C = r! = 6!: 720