Use this free permutation and combination calculator to count the number of ways to arrange or choose items. Enter the total number of items (n) and the number you’re choosing (r), and get both permutations (nPr), where order matters, and combinations (nCr), where order doesn’t. You can also include repetition and see the step-by-step working. No signup needed.
Calculate permutations, combinations, factorials and arrangements with or without repetition.
Example: 2,2 means two pairs of identical items.
| Permutation | Order matters |
| Combination | Order does not matter |
| Factorial | n! = n × (n−1) × ... × 1 |
| Zero Factorial | 0! = 1 |
| 10P3 | 720 |
| 10C3 | 120 |
| 5P2 | 20 |
| 5C2 | 10 |
| 52C5 | 2,598,960 |
| 6 people circular | 120 |
For arrangements of items with repeated elements (like the letters in a word), use the “arrangements with identical items” option.
The key question is: does the order matter?
| Permutation | Combination | |
|---|---|---|
| Order matters? | Yes | No |
| Also called | An arrangement | A selection or group |
| Symbol | nPr, P(n, r) | nCr, C(n, r), “n choose r” |
| Example | First, second, and third place in a race | A team of 3 chosen from a group |
| Counts | More (every order is different) | Fewer (every order is the same) |
Each combination can be arranged in r! ways, so nPr = nCr × r!.
Factorial: n! = n × (n − 1) × (n − 2) × … × 1, with 0! = 1
Permutations: nPr = n! ÷ (n − r)!
Combinations: nCr = n! ÷ [ r! × (n − r)! ]
With repetition allowed:
| Case | Formula |
|---|---|
| Permutations with repetition | nʳ |
| Combinations with repetition | (n + r − 1)! ÷ [ r! × (n − 1)! ], which equals C(n + r − 1, r) |
Arrangements of items with identical elements: n! ÷ (n₁! × n₂! × … )
Circular arrangements of n distinct items: (n − 1)!
| n | n! |
|---|---|
| 0 | 1 |
| 1 | 1 |
| 5 | 120 |
| 6 | 720 |
| 7 | 5,040 |
| 8 | 40,320 |
| 9 | 362,880 |
| 10 | 3,628,800 |
| 12 | 479,001,600 |
| 15 | 1,307,674,368,000 |
| 20 | 2,432,902,008,176,640,000 |
Factorials grow very quickly, which is why counts become huge even for modest numbers.
How many ways can 3 of 10 runners finish first, second, and third?
10P3 = 10! ÷ 7! = 10 × 9 × 8 = 720
How many ways can you choose 3 people from 10 for a committee?
10C3 = 10! ÷ (3! × 7!) = 720 ÷ 6 = 120
The permutations (720) are 6 times the combinations (120), because each group of 3 can be ordered in 3! = 6 ways.
| n, r | nPr | nCr |
|---|---|---|
| 5, 2 | 20 | 10 |
| 8, 3 | 336 | 56 |
| 10, 4 | 5,040 | 210 |
| 12, 3 | 1,320 | 220 |
Choose a team of 5 from 12 players: 12C5 = 792.
If the players also take 5 distinct positions, the order matters: 12P5 = 95,040.
How many different 5-card poker hands are there from a 52-card deck?
52C5 = 2,598,960
For a 2-card hand: 52C2 = 1,326.
In a lottery where you pick 6 numbers from 49, the number of possible tickets is:
49C6 = 13,983,816
So the chance of matching all six with one ticket is about 1 in 14 million, or roughly 0.0000072%. See our Probability Calculator.
A committee of 5 is formed from 6 men and 4 women, with 3 men and 2 women:
6C3 × 4C2 = 20 × 6 = 120
At least one woman in a committee of 4 chosen from 6 men and 4 women:
Total 10C4 = 210, and no women is 6C4 = 15, so 210 − 15 = 195.
12 people each shake hands once with every other person: 12C2 = 66 handshakes.
A 4-digit PIN with digits 0 to 9, repeats allowed: 10⁴ = 10,000.
A 3-letter code from 26 letters, repeats allowed: 26³ = 17,576.
A 4-digit PIN with no repeated digit: 10P4 = 5,040.
A 3-letter code with no repeated letter: 26P3 = 15,600.
4-digit numbers that can’t start with 0 and have no repeats: 9 × 9 × 8 × 7 = 4,536.
Choose 3 scoops of ice cream from 5 flavors, flavors can repeat, order doesn’t matter:
C(5 + 3 − 1, 3) = C(7, 3) = 35
For a license plate with 3 letters followed by 4 digits, repeats allowed: 26³ × 10⁴ = 175,760,000.
When some items are identical, divide by the factorial of each repeated count.
| Word | Calculation | Arrangements |
|---|---|---|
| ABC | 3! | 6 |
| ABCD | 4! | 24 |
| LEVEL (L ×2, E ×2) | 5! ÷ (2! × 2!) | 30 |
| BANANA (A ×3, N ×2) | 6! ÷ (3! × 2!) | 60 |
| MISSISSIPPI (I ×4, S ×4, P ×2) | 11! ÷ (4! × 4! × 2!) | 34,650 |
When items are arranged around a circle, rotations count as the same, so the number is (n − 1)!
Ask these questions:
Clue words:
| Permutation | Combination |
|---|---|
| arrange, order, rank, schedule | choose, select, pick, group |
| first, second, third | committee, team, hand |
| code, password, PIN | subset, sample |
In a permutation, order matters. In a combination, it doesn’t. Choosing first, second, and third place is a permutation, and choosing a team of three is a combination.
nPr = n! ÷ (n − r)!. For 10P3, that’s 10 × 9 × 8 = 720.
nCr = n! ÷ [r! × (n − r)!]. For 10C3, that’s 720 ÷ 6 = 120.
Ask whether changing the order gives a different outcome. If it does, use a permutation. If not, use a combination.
“n choose r,” the number of ways to choose r items from n, when order doesn’t matter.
By definition, 0! = 1.
If items can be reused, use nʳ for permutations. If some items are identical, divide n! by the factorial of each repeated count, as in 11! ÷ (4! × 4! × 2!) for MISSISSIPPI.
(n − 1)!, because rotations are considered the same. Six people give 5! = 120 arrangements.
Not in the standard formulas without repetition, since you can’t choose more items than you have. With repetition allowed, r can be larger.
52C5 = 2,598,960.
The number of possible tickets is nCr. For choosing 6 from 49, it’s 49C6 = 13,983,816, so one ticket has about a 1 in 14 million chance.
Yes. It’s free, with no registration and no limits.
It uses exact integer arithmetic, so results are exact for the values you enter. Very large factorials may be shown in scientific notation.
A few of the most-used tools in each hub.
This calculator is for general informational and educational purposes. Results depend on the values and options you choose, and you should confirm that the problem fits the formula used. Check important calculations independently.