Skip to content

Combination Calculator (nCr)

Last updated

Choose r from n

Results update as you type

— combinations
  • Working shown
  • Instant results
  • Runs in your browser

Enter the number of items (n) and how many you choose (r), and this combination calculator returns nCr – the number of ways to choose when order does not matter – with the factorial working, the version with repetition, and the matching permutation count.

Use the calculator above for your own numbers. Below, we explain how the Combination Calculator (nCr) works, with worked examples and sources.

How to calculate combinations

  1. Check that order does not matter – a committee, a hand of cards, pizza toppings.
  2. Write n (total) and r (chosen).
  3. Use nCr = n! ÷ (r! (n − r)!).
  4. Cancel the larger factorial to keep the numbers small.

10C3 = (10 × 9 × 8) ÷ (3 × 2 × 1) = 720 ÷ 6 = 120.

Combination vs permutation – Order matters? No Yes; Example Pick 3 people for a team Pick president, secretary, treasurer; 10 items, choose 3 120 720
Combination – reference table.

Combination vs permutation

Combination (nCr)Permutation (nPr)
Order matters?NoYes
ExamplePick 3 people for a teamPick president, secretary, treasurer
10 items, choose 3120720

Every combination of r items can be arranged in r! orders, so nPr = nCr × r!. If swapping two chosen items gives a different outcome, you need the Permutation Calculator.

Combinations with repetition

When the same item can be chosen more than once – scoops of ice cream from 5 flavours, 3 scoops – use C(n + r − 1, r) = C(7, 3) = 35.

Worked examples

  • Poker: the number of 5-card hands from 52 cards is 52C5 = 2,598,960.
  • Pizza: 3 toppings from 8 gives 56 different pizzas.
  • Round robin: 12 teams each playing each other once play 12C2 = 66 games.
  • Lottery: choosing 5 numbers from 69 and 1 from 26 gives 11,238,513 × 26 = 292,201,338 possible tickets – see Lottery Odds Explained.

Common mistakes

  • Using permutations when order does not matter (overcounting by r!).
  • Forgetting that 0! = 1, so nC0 = nCn = 1.
  • Mixing up n and r.

Sources

  1. OpenStax – Introductory Statistics 2e (Rice University) — openstax.org/details/books/introductory-statistics-2e
  2. OpenStax – Algebra and Trigonometry 2e (Rice University) — openstax.org/details/books/algebra-and-trigonometry-2e

Questions or feedback about this calculator? Contact us – we read every message. Results are estimates for information only. Last reviewed: .

Zeeshan Nawaz

Written & built by

Zeeshan Nawaz

Calculator Developer · Tuff Search

Builds and tests Tuff Search calculators, turning published formulas and official sources into tools anyone can check.

FAQ

Frequently asked questions

Quick answers about the Combination Calculator (nCr).

The number of ways to choose r items from n when order does not matter.

Order does not matter in a combination; it does in a permutation.

10.

Only when repetition is allowed.

2,598,960.

Still have a question? Email support@tuffsearch.com