About the permutation & combination calculator
Permutations count the ways to choose and arrange items when order matters; combinations count the ways to choose when order does not matter. This calculator gives nPr and nCr for any n and r, plus the counts when repetition is allowed and n factorial.
Results are exact, even when they have dozens of digits.
Who should use the permutation & combination calculator
- Students in probability and discrete maths.
- Anyone counting possible teams, codes or arrangements.
- Game and puzzle designers.
How to use the permutation & combination calculator: what each input means
- Total items (n)
- How many items there are to choose from, up to 1,000.
- Items chosen (r)
- How many you pick.
How the permutation & combination calculator works: method and formula
Permutations without repetition: nPr = n! ÷ (n − r)!. Combinations: nCr = n! ÷ (r!(n − r)!). With repetition allowed, permutations become nʳ and combinations become C(n + r − 1, r). All values are calculated with exact big-integer arithmetic.
- Permutations
- P(n, r) = n! ÷ (n − r)!
- Combinations
- C(n, r) = n! ÷ (r! (n − r)!)
How to read your permutation & combination calculator result
If swapping two chosen items would count as a different result (a podium of first, second and third), use permutations. If not (a committee), use combinations. Combinations are always the permutations divided by r!.
Permutation & Combination Calculator worked example
Choose 3 items from 10.
- Permutations: 10 × 9 × 8 = 720.
- Combinations: 720 ÷ 3! = 120.
- With repetition allowed, ordered: 10³ = 1000.
- 10! = 3628800.
P(10, 3) = 720 and C(10, 3) = 120.
Practical uses of the permutation & combination calculator
- Counting committee or team selections.
- Counting passwords or PIN codes.
- Computing lottery odds.
Assumptions and limitations of this calculator
- n and r are limited to 1,000.
- Without repetition, r cannot exceed n.
