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

With the example values loaded in the calculator above, the steps are:

  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.

How to Read nCr

C(n, r) counts the ways to choose r items from n when order does not matter. C(52, 5) = 2,598,960, the number of distinct 5-card poker hands. Dividing P(52, 5) by 5! gives the same number, because each hand can be ordered in 120 ways.

Symmetry gives C(n, r) = C(n, n − r), so C(52, 5) = C(52, 47). Each entry of Pascal’s triangle is the sum of the two above it, which the calculator checks with C(51, 4) + C(51, 5).

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

Card hands and lotteries

Count possible selections.

Teams and committees

Count ways to choose a group from a larger one.

Binomial coefficients

Get the coefficients of (a + b)ⁿ.

Probability

Use as the denominator for equally likely selections.

Common nCr Mistakes to Avoid

  • Use combinations when order does not matter.
  • C(n, 0) = C(n, n) = 1.
  • Cancel factorials before multiplying when you calculate by hand.
  • Check that r is not larger 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.