nCr Calculator (Combinations)

This nCr calculator finds the number of ways to choose r items from n when order does not matter. It uses exact big-number arithmetic, so large values stay accurate, and shows the full working.

Checks on your data

  • Combinations ignore order: choosing A then B is the same as B then A. If the order matters (rankings, passwords), you want permutations. Use permutations →

Results

C(52, 5) = 52C5
2,598,960
number of combinations
Symmetry: C(52, 47)
2,598,960
always equal to nCr
Permutations P(52, 5)
311,875,200
if order mattered
Orderings of r items (r!)
120
Total subsets of 52 items (2ⁿ)
4,503,599,627,370,496
Chance a random subset has exactly 5 items
5.7709 × 10^-10
C(52, 5) in scientific notation
2.59896e+6
Pascal check: C(51, 4) + C(51, 5)
2,598,960
equals nCr
Pascal's triangle rows 0 to 12
nC(n, 0), C(n, 1), …
01
11 1
21 2 1
31 3 3 1
41 4 6 4 1
51 5 10 10 5 1
61 6 15 20 15 6 1
71 7 21 35 35 21 7 1
81 8 28 56 70 56 28 8 1
91 9 36 84 126 126 84 36 9 1
101 10 45 120 210 252 210 120 45 10 1
111 11 55 165 330 462 462 330 165 55 11 1
121 12 66 220 495 792 924 792 495 220 66 12 1
Show step-by-step solution
  1. Formula: C(n, r) = n! ÷ (r! × (n − r)!).
  2. Cancel the common factorial: C(52, 5) = (52 × 51 × 50 × 49 × 48) ÷ (5 × 4 × 3 × 2 × 1).
  3. Result: 2,598,960.
  4. Symmetry check: choosing which 5 to take is the same as choosing which 47 to leave, so C(52, 5) = C(52, 47).
Formulan! / (r!(n − r)!)
OrderDoes not matter
SymmetryC(n, r) = C(n, n − r)
ExactBig integers, no rounding

What Is nCr?

nCr, read "n choose r" and also written C(n, r), counts combinations. The formula is nCr = n! ÷ (r! (n − r)!). Because the order of the chosen items does not matter, nCr is always smaller than or equal to the number of ordered arrangements nPr, by a factor of r!.

Alongside the exact result, the calculator shows the number of orderings of the r items, the symmetry C(n, r) = C(n, n − r) and a check against the permutation count. If you want permutations or repetition as well, the combination and permutation calculators linked below cover them.

Further down you will find a variables table, worked examples and answers to common questions such as how to calculate nCr by hand and why C(n, 0) = 1.

How to Use the nCr Calculator

  1. Enter n, the number of items to choose from.
  2. Enter r, the number you are choosing.
  3. Read C(n, r) and compare with the permutations result if order matters.
  4. Open the steps to see how the factorials cancel.

nCr Formula

Combination formula

(nr)=n!r! (n−r)!\binom{n}{r}=\frac{n!}{r!\,(n-r)!}

Symmetry

(nr)=(nn−r)\binom{n}{r}=\binom{n}{n-r}

Pascal’s rule

(nr)=(n−1r−1)+(n−1r)\binom{n}{r}=\binom{n-1}{r-1}+\binom{n-1}{r}

Sum of a row

∑r=0n(nr)=2n\sum_{r=0}^{n}\binom{n}{r}=2^n

nCr Variables Explained

SymbolMeaningNotes
nTotal itemsWhole number
rItems chosen0 ≤ r ≤ n
!Factorialn! = n × (n − 1) × … × 1; 0! = 1
nCrNumber of combinationsOrder ignored

nCr Worked Example

Using the example values (press “Load example” above to try them):

  1. Formula: C(n, r) = n! ÷ (r! × (n − r)!).
  2. Cancel the common factorial: C(52, 5) = (52 × 51 × 50 × 49 × 48) ÷ (5 × 4 × 3 × 2 × 1).
  3. Result: 2,598,960.
  4. Symmetry check: choosing which 5 to take is the same as choosing which 47 to leave, so C(52, 5) = C(52, 47).

Result: C(52, 5) = 52C5 = 2,598,960.

Common nCr examples

Real counts
SituationCalculationNumber of ways
5-card poker handsC(52, 5)2,598,960
Committee of 3 from 10 peopleC(10, 3)120
US Powerball white balls (5 of 69)C(69, 5)11,238,513
Pick 6 of 49 lotteryC(49, 6)13,983,816
Choose 2 teams from 8 to playC(8, 2)28
Subsets of a 10-element set2¹⁰1,024

nCr vs nPr: combination or permutation?

Ask yourself whether swapping two chosen items gives a different outcome. If it does, such as ranking runners or assigning roles, use permutations nPr. If it does not, such as picking a team or hand of cards, use combinations nCr. The two are linked: nPr = nCr × r!, because each group of r items can be ordered in r! ways.

Choosing the right formula
QuestionOrder matters?Formula
Pick a team of 4 from 12NonCr
Award 1st, 2nd, 3rd place among 12YesnPr
Choose 4 digits for a code, no repeatsYesnPr
Choose toppings from a listNonCr

nCr in probability

Combinations turn counting into probability. The chance of a specific poker hand is the number of such hands divided by C(52, 5). The binomial distribution multiplies nCr by pᵏ(1 − p)ⁿ⁻ᵏ to count the ways successes can be arranged among the trials. The hypergeometric distribution uses ratios of nCr values for sampling without replacement.

Where nCr Is Used

Probability counting

Counting favourable and total outcomes when selections are equally likely.

Lottery and card problems

Counting possible draws or hands where order does not matter.

Binomial coefficients

Finding entries of Pascal's triangle and terms in a binomial expansion.

Checking calculator keys

Verifying the nCr button on a scientific calculator.

Common nCr Mistakes to Avoid

  • Remember 0! = 1, so C(n, 0) = C(n, n) = 1.
  • For large n, cancel before multiplying to avoid huge intermediate numbers (this tool does it exactly).
  • C(n, r) is 0 if r is greater than n.

nCr Terms and Definitions

Binomial coefficient
Another name for nCr, the coefficient of xʳ in (1 + x)ⁿ.
Factorial
n! = n × (n − 1) × … × 1.

nCr FAQs

What is nCr?

The number of ways to choose r items from n without regard to order, equal to n! ÷ (r!(n − r)!).

How do I calculate nCr by hand?

Multiply n down r terms and divide by r factorial. For C(10, 3): (10 × 9 × 8) ÷ (3 × 2 × 1) = 120.

What is the difference between nCr and nPr?

nPr counts ordered arrangements; nCr counts unordered selections. nPr = nCr × r!.

Why is C(n, r) equal to C(n, n − r)?

Choosing r items to take is equivalent to choosing n − r items to leave behind.

What is C(n, 0)?

It is 1: there is exactly one way to choose nothing.

How big can n be?

This calculator accepts n up to 5,000 and shows exact integers or scientific notation for very large results.

Related calculators

Last updated 2026-11-09. See our disclaimer.