Math & Basic

Permutation & Combination Calculator

nPr, nCr, repetition cases and factorials, exact.

Combinations ₁₀C₃

120

Permutations ₁₀P₃720
With repetition (ordered) ₁₀Π₃1,000
With repetition (unordered) ₁₀H₃220
10!3,628,800
3!6

₁₀C₃ = 10! ÷ (3! × 7!) = 720 ÷ 6 = 120

Popular next tools

What is the permutation and combination calculator?

It counts the ways to choose r items from n: permutations (nPr) when order matters, combinations (nCr) when it does not, plus the versions with repetition (nʳ and nHr) and factorials. Large results stay exact to the last digit.

Formulas

nPr = n! ÷ (n − r)!, nCr = n! ÷ (r! × (n − r)!), with repetition ordered = nʳ, with repetition unordered nHr = (n + r − 1)Cr.

Examples

Electing a president, vice-president and treasurer from 10 people: 10P3 = 720. Picking a 3-person cleaning crew: 10C3 = 120. A 4-digit PIN: 10⁴ = 10,000. Lotto 6/45: 45C6 = 8,145,060.

How do I tell permutations from combinations?
If order or roles matter it is a permutation; if the chosen group is all that matters it is a combination. nPr = nCr × r!.
Why is 0! equal to 1?
Applying n! = n × (n−1)! at n = 1 gives 1! = 1 × 0!, so 0! must be 1. Choosing nothing counts as one way, so nC0 = 1.
What if r is larger than n?
Without repetition there is no way to choose, so nPr and nCr are 0. With repetition both still work.
How are lotto odds calculated?
Lotto 6/45 picks 6 of 45 numbers without order: 45C6 = 8,145,060, so one ticket wins with probability 1 in 8,145,060.
How large can the numbers be?
n and r accept whole numbers from 0 to 10,000, and results are exact integers. Long results are shown in scientific notation, with every digit available under ‘Show all digits’.