Skip to content
ToolsLeb ToolsLeb

Combination Calculator (nCr)

Calculate the number of ways to choose r items from a set of n, where order doesn't matter.

Simple Math

Calculator Inputs

Your Result

Enter your details and press Calculate to see your result.

Formula

Combination Calculator (nCr) = Combination(Total Items (n), Items Chosen (r))
Total Items (n)
Items Chosen (r)

How it works

  1. Enter the total number of items.
  2. Enter how many items you're choosing.
  3. 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.

Frequently Asked Questions

The number of ways to choose a subset of items from a larger set, where order doesn't matter, written as nCr.

Combinations don't care about order — choosing A then B is the same as B then A — while permutations count different orderings as distinct.

Choosing 3 people from a group of 10 for a committee — the order you pick them in doesn't matter, only who ends up selected.

It's shorthand for "n choose r" — the number of ways to choose r items from a set of n items.

nCr = n! / (r! × (n − r)!), where n is the total number of items and r is how many you're choosing.

Choosing 3 team members from a group of 10 is a combination problem — it doesn't matter what order you pick them in, only who ends up on the team.

Because combinations don't count different orderings of the same group as separate outcomes, while permutations do — nCr = nPr / r!, so combinations are always a fraction of the equivalent permutations.