Choosing or arranging?
How many different podium results are possible with 10 runners? How many ways are there to pick 6 numbers out of 49 in a lottery? How many different teams of 3 can you form from 12 people? Questions like these belong to combinatorics, and the answer depends on one thing: does the order matter or not? This calculator gives you both answers at once for any n and k.
How to use it
- Enter the total n, the number of items to choose from.
- Enter choose k, the number of items you pick.
- Read the number of permutations (order matters) and combinations (order does not matter).
The formulas
- Permutations: P(n, k) = n! ÷ (n − k)!
- Combinations: C(n, k) = n! ÷ (k! × (n − k)!)
n! (n factorial) means 1 × 2 × 3 × … × n. Both formulas assume that each item can only be picked once, which is called "without repetition".
Examples
- Podium: 10 runners, 3 medals. Order matters, so P(10, 3) = 10 × 9 × 8 = 720 possible podiums.
- Lottery 6 from 49: order does not matter, so C(49, 6) = 13,983,816 possible tickets. The chance of six correct numbers is about 1 in 14 million.
- Team selection: 3 people from 12. C(12, 3) = 220 possible teams.
- PIN with different digits: 4 digits from 10, order matters, P(10, 4) = 5,040.
Which one do I need?
Ask yourself: if I swap two of the chosen items, is it a different result? If yes (ranking, password, seating order), use permutations. If no (lottery ticket, team, pizza toppings), use combinations. The number of combinations is always smaller, because every group of k items can be arranged in k! different orders.
Frequently asked questions
Which one should I use?
If order matters, use permutations. If order is irrelevant, use combinations.
Are repetitions allowed?
No. Both results assume that each item is picked at most once.
Why do the numbers get so large?
Factorials grow extremely fast. Even 20! is about 2.4 quintillion (2.4 × 10¹⁸), which is why combinatorics produces huge results with modest inputs.
Is my data stored or sent anywhere?
No. The calculation runs entirely in your browser. Nothing you enter is saved, tracked or sent to a server.