Combination Calculator (nCr)
Calculate the number of ways to choose r items from a set of n, where order doesn't matter.
Calculator Inputs
Your Result
Enter your details and press Calculate to see your result.
Formula
How it works
- Enter the total number of items.
- Enter how many items you're choosing.
- View the number of possible combinations.
Share on Social Media:
A combination is a selection where order doesn't matter. nCr (also written C(n, r) or "n choose r") is the number of different groups of r items you can pick from n. Enter n and r to get the exact count.
The nCr formula
C(n, r) = n! ÷ (r! × (n − r)!)
It equals the number of ordered arrangements, P(n, r), divided by r!, because each group of r items can be ordered in r! ways and we only want to count it once.
Worked examples
- Committee: choose 3 people from 10: C(10, 3) = 720 ÷ 6 = 120.
- Lottery: pick 6 numbers from 49: C(49, 6) = 13,983,816, so one ticket has a 1 in about 14 million chance of the jackpot.
- Pizza toppings: choose 2 from 8: C(8, 2) = 28.
Useful properties
- Symmetry: C(n, r) = C(n, n − r). Choosing 3 to include from 10 is the same as choosing 7 to leave out, so C(10, 3) = C(10, 7) = 120.
- C(n, 0) = C(n, n) = 1.
- The values form Pascal's triangle: each number is the sum of the two above it, C(n, r) = C(n − 1, r − 1) + C(n − 1, r).
- They're the coefficients in the binomial expansion: (a + b)ⁿ = Σ C(n, r) aⁿ⁻ʳ bʳ.
Combination or permutation?
If swapping the order of the chosen items gives the same result (a team, a hand of cards), use combinations. If order changes the result (a ranking, a password), use the Permutation Calculator.
Input rules
n and r must be whole numbers from 0 to 500 with r ≤ n; if r is larger than n, the result is 0. The answer is calculated exactly, with no rounding.
Related: Factorial Calculator.