Skip to content
Other

Combination without Repetition Calculator

Enter the total number of distinct items (n) and the number you want to choose (r). The calculator finds C(n, r), the count of ways to choose r items from n where order does not matter and no item is repeated. You also get the number of permutations for comparison, the combinations-with-repetition count, and a full show-your-work breakdown.

Your details

The size of the full set you are choosing from. Must be a whole number 0 or greater.
How many items to select. Must be a whole number between 0 and n.
Combinations C(n, r)Moderate combination space
210

Number of ways to choose r items from n, order ignored, no repeats

Permutations P(n, r)5,040
Combinations with repetition715
Probability of one specific combo1 in 210 (0.476%)
Permutations per combination (r!)24
Without repetition (C)210
With repetition (C*)715
Permutations (P)5,040

C(10, 4) = 210 combinations.

  • There are 210 ways to choose 4 items from a set of 10, where order is ignored and nothing is repeated.
  • If order mattered, that would expand to 5,040 permutations - exactly 24 times more (one for each of the 24 orderings of the chosen 4 items).
  • Allowing repetition (each item may appear more than once) would give 715 combinations instead.

Next stepUse C(n, r) when selecting lottery numbers, card hands, committee members, or any scenario where picking the same group in a different order gives the same result.

Formula

C(n,r)=n!r! (n−r)!C(n, r) = \dfrac{n!}{r!\,(n - r)!}

Worked example

How many 4-number combinations exist in a lottery where you pick from 1 to 49? Here n = 49 and r = 4, so C(49, 4) = 49! / (4! x 45!) = (49 x 48 x 47 x 46) / (4 x 3 x 2 x 1) = 4,669,104 / 24 = 211,876. Each ticket covers 1 in 211,876 of those combinations.

What is a combination without repetition?

A combination without repetition is a selection of r items chosen from a set of n distinct items where the order of selection does not matter and each item may be chosen at most once. For example, choosing the committee {Alice, Bob, Carol} from a team of ten people is the same combination regardless of the order in which they were named. The formula C(n, r) = n! / (r! x (n - r)!) counts all such distinct subsets. The key distinction from a permutation is that permutations count every different ordering of the same group as a separate outcome, giving P(n, r) = C(n, r) x r! outcomes.

How to use this calculator

Enter n, the total number of distinct items in your set, and r, the number you want to choose. The calculator shows C(n, r) immediately. You also see P(n, r) for the ordered version, the combinations-with-repetition count C*(n, r) = C(n + r - 1, r) for the case where each item may be reused, the probability of landing on one specific combination by chance, and r! (the ratio between permutations and combinations). The "Show your work" panel walks through every arithmetic step so you can reproduce or verify the answer by hand.

Combinations vs. permutations

The practical test is simple: does picking the same items in a different order produce a meaningfully different outcome? If not, you need combinations. Lottery draws, card hands, committee selections, and experimental sample groups are classic combination problems: the card hand {Ace, King, Queen} is the same hand regardless of the order the cards were dealt. Race finishers, PIN codes, and combinations-lock dials are permutation problems because {1, 2, 3} and {3, 2, 1} give different answers. A helpful heuristic: if the problem uses the word "choose", "select", or "pick" without implying an ordering, start with C(n, r).

Real-world examples

Lottery odds: picking 6 numbers from 49 gives C(49, 6) = 13,983,816 possible tickets. Card hands: a standard 5-card poker hand from a 52-card deck gives C(52, 5) = 2,598,960 possible hands, and the probability of any specific hand is roughly 1 in 2.6 million. Committee selection: choosing a 3-person subcommittee from 12 candidates gives C(12, 3) = 220 possible groups. Clinical trials: choosing 30 patients from a pool of 100 to receive a treatment gives C(100, 30), a number with 29 digits. Sports brackets: choosing 8 teams to advance from a group of 16 gives C(16, 8) = 12,870 distinct group-stage outcomes.

Combinations with vs. without repetition

When repetition is allowed, an item may appear more than once in the selection. Choosing 2 ice cream flavours from 4 options without repetition gives C(4, 2) = 6 pairs (each flavour used at most once). Allowing repetition - so you can pick two scoops of the same flavour - gives C*(4, 2) = C(5, 2) = 10 options, using the formula C(n + r - 1, r). The difference grows as r increases relative to n. This calculator shows both counts side by side so you can instantly compare the two scenarios.

Quick nCr reference table (combinations without repetition)

n (total items)r = 1r = 2r = 3r = 4r = 5
221000
333100
446410
55101051
661520156
7721353521
8828567056
993684126126
101045120210252
121266220495792
151510545513653003
20201901140484515504
52521326221002707252598960

C(n, r) for common values of n and r.

Frequently asked questions

What is the difference between C(n, r) and P(n, r)?

C(n, r) counts subsets where order does not matter; P(n, r) counts ordered sequences. For any given choice of r items, there are r! different orderings, so P(n, r) = C(n, r) x r!. For example, C(5, 3) = 10 but P(5, 3) = 60, because each of the 10 three-item subsets can be arranged in 3! = 6 ways.

Why is C(n, 0) always 1?

There is exactly one way to choose nothing from any set: make the empty selection. The formula confirms this: C(n, 0) = n! / (0! x n!) = 1 / 1 = 1. Similarly, C(n, n) = 1 because there is only one way to choose all n items.

What happens when r is greater than n?

You cannot choose more distinct items than exist in the set, so C(n, r) = 0 whenever r > n. The formula also gives 0 in this case because (n - r)! is undefined for a negative argument. If you need more items than the set contains, use combinations with repetition instead.

How do I calculate C(n, r) by hand for large numbers?

Use the multiplicative shortcut: C(n, r) = (n x (n-1) x ... x (n-r+1)) / r!. Compute it from left to right, dividing as you go to keep numbers manageable. For example, C(10, 4) = (10 x 9 x 8 x 7) / (4 x 3 x 2 x 1) = 5040 / 24 = 210. Apply symmetry first: C(n, r) = C(n, n-r), so always use the smaller of r and n-r to minimise the work.

How are combinations used in probability?

Combinations count the size of a sample space when order is irrelevant. If you draw r cards from an n-card deck, the probability of any one specific hand is 1 / C(n, r). To find the probability of a favourable event, count the number of favourable combinations and divide by C(n, r). For example, the probability of a 5-card flush in poker requires counting the favourable 5-card combinations and dividing by C(52, 5) = 2,598,960.

What is the symmetry rule for combinations?

C(n, r) always equals C(n, n - r). Choosing 3 items from 10 gives the same count as choosing 7 items from 10, because every time you pick a group of 3, you simultaneously leave behind a group of 7. This symmetry is useful for mental arithmetic and for speeding up computation: always use whichever of r or n - r is smaller.

Can I list all combinations, not just count them?

Yes, for small values. With n up to about 10 or 12 and r up to about 5, listing all C(n, r) combinations is practical - C(10, 4) = 210 lines, for instance. For larger inputs the list grows very quickly: C(52, 5) = 2,598,960 lines. The count this calculator provides is exact for any n up to 170; generating the full list for large inputs would require specialist software.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…