Combination Calculator (nCr)

Quick answer

The combination calculator counts how many ways you can choose r items from n when order does not matter (nCr), with or without repetition, shows the chance of one particular selection and lists the combinations themselves for small sets.

Ignored when you type the objects themselves below.

If you type names here, n is taken from how many you entered and the list below uses them.

Number of combinations
13,983,816
Combinations without repetition C(n, r)
13,983,816
Combinations with repetition
25,827,165
Permutations P(n, r) (if order mattered)
10,068,347,520
Chance of guessing one particular selection
1 in 13,983,816 (7.151 × 10^-6%)
Orderings of each selection (r!)
720
The combinations
{1, 2, 3, 4, 5, 6} {1, 2, 3, 4, 5, 7} {1, 2, 3, 4, 5, 8} {1, 2, 3, 4, 5, 9} {1, 2, 3, 4, 5, 10} {1, 2, 3, 4, 5, 11} {1, 2, 3, 4, 5, 12} {1, 2, 3, 4, 5, 13} {1, 2, 3, 4, 5, 14} {1, 2, 3, 4, 5, 15} {1, 2, 3, 4, 5, 16} {1, 2, 3, 4, 5, 17} {1, 2, 3, 4, 5, 18} {1, 2, 3, 4, 5, 19} {1, 2, 3, 4, 5, 20} {1, 2, 3, 4, 5, 21} {1, 2, 3, 4, 5, 22} {1, 2, 3, 4, 5, 23} {1, 2, 3, 4, 5, 24} {1, 2, 3, 4, 5, 25} {1, 2, 3, 4, 5, 26} {1, 2, 3, 4, 5, 27} {1, 2, 3, 4, 5, 28} {1, 2, 3, 4, 5, 29} {1, 2, 3, 4, 5, 30} {1, 2, 3, 4, 5, 31} {1, 2, 3, 4, 5, 32} {1, 2, 3, 4, 5, 33} {1, 2, 3, 4, 5, 34} {1, 2, 3, 4, 5, 35} {1, 2, 3, 4, 5, 36} {1, 2, 3, 4, 5, 37} {1, 2, 3, 4, 5, 38} {1, 2, 3, 4, 5, 39} {1, 2, 3, 4, 5, 40} {1, 2, 3, 4, 5, 41} {1, 2, 3, 4, 5, 42} {1, 2, 3, 4, 5, 43} {1, 2, 3, 4, 5, 44} {1, 2, 3, 4, 5, 45} {1, 2, 3, 4, 5, 46} {1, 2, 3, 4, 5, 47} {1, 2, 3, 4, 5, 48} {1, 2, 3, 4, 5, 49} {1, 2, 3, 4, 6, 7} {1, 2, 3, 4, 6, 8} {1, 2, 3, 4, 6, 9} {1, 2, 3, 4, 6, 10} {1, 2, 3, 4, 6, 11} {1, 2, 3, 4, 6, 12} {1, 2, 3, 4, 6, 13} {1, 2, 3, 4, 6, 14} {1, 2, 3, 4, 6, 15} {1, 2, 3, 4, 6, 16} {1, 2, 3, 4, 6, 17} {1, 2, 3, 4, 6, 18} {1, 2, 3, 4, 6, 19} {1, 2, 3, 4, 6, 20} {1, 2, 3, 4, 6, 21} {1, 2, 3, 4, 6, 22} {1, 2, 3, 4, 6, 23} {1, 2, 3, 4, 6, 24} {1, 2, 3, 4, 6, 25} {1, 2, 3, 4, 6, 26} {1, 2, 3, 4, 6, 27} {1, 2, 3, 4, 6, 28} {1, 2, 3, 4, 6, 29} {1, 2, 3, 4, 6, 30} {1, 2, 3, 4, 6, 31} {1, 2, 3, 4, 6, 32} {1, 2, 3, 4, 6, 33} {1, 2, 3, 4, 6, 34} {1, 2, 3, 4, 6, 35} {1, 2, 3, 4, 6, 36} {1, 2, 3, 4, 6, 37} {1, 2, 3, 4, 6, 38} {1, 2, 3, 4, 6, 39} {1, 2, 3, 4, 6, 40} {1, 2, 3, 4, 6, 41} {1, 2, 3, 4, 6, 42} {1, 2, 3, 4, 6, 43} {1, 2, 3, 4, 6, 44} {1, 2, 3, 4, 6, 45} {1, 2, 3, 4, 6, 46} {1, 2, 3, 4, 6, 47} {1, 2, 3, 4, 6, 48} {1, 2, 3, 4, 6, 49} {1, 2, 3, 4, 7, 8} {1, 2, 3, 4, 7, 9} {1, 2, 3, 4, 7, 10} {1, 2, 3, 4, 7, 11} {1, 2, 3, 4, 7, 12} {1, 2, 3, 4, 7, 13} {1, 2, 3, 4, 7, 14} {1, 2, 3, 4, 7, 15} {1, 2, 3, 4, 7, 16} {1, 2, 3, 4, 7, 17} {1, 2, 3, 4, 7, 18} {1, 2, 3, 4, 7, 19} {1, 2, 3, 4, 7, 20} {1, 2, 3, 4, 7, 21} {1, 2, 3, 4, 7, 22} {1, 2, 3, 4, 7, 23} {1, 2, 3, 4, 7, 24} {1, 2, 3, 4, 7, 25} {1, 2, 3, 4, 7, 26} {1, 2, 3, 4, 7, 27} {1, 2, 3, 4, 7, 28} {1, 2, 3, 4, 7, 29} {1, 2, 3, 4, 7, 30} {1, 2, 3, 4, 7, 31} {1, 2, 3, 4, 7, 32} {1, 2, 3, 4, 7, 33} {1, 2, 3, 4, 7, 34} {1, 2, 3, 4, 7, 35} {1, 2, 3, 4, 7, 36} {1, 2, 3, 4, 7, 37} {1, 2, 3, 4, 7, 38} {1, 2, 3, 4, 7, 39} {1, 2, 3, 4, 7, 40} {1, 2, 3, 4, 7, 41} {1, 2, 3, 4, 7, 42} {1, 2, 3, 4, 7, 43} {1, 2, 3, 4, 7, 44} {1, 2, 3, 4, 7, 45} {1, 2, 3, 4, 7, 46} {1, 2, 3, 4, 7, 47} {1, 2, 3, 4, 7, 48} {1, 2, 3, 4, 7, 49} {1, 2, 3, 4, 8, 9} {1, 2, 3, 4, 8, 10} {1, 2, 3, 4, 8, 11} {1, 2, 3, 4, 8, 12} {1, 2, 3, 4, 8, 13} {1, 2, 3, 4, 8, 14} {1, 2, 3, 4, 8, 15} {1, 2, 3, 4, 8, 16} {1, 2, 3, 4, 8, 17} {1, 2, 3, 4, 8, 18} {1, 2, 3, 4, 8, 19} {1, 2, 3, 4, 8, 20} {1, 2, 3, 4, 8, 21} {1, 2, 3, 4, 8, 22} {1, 2, 3, 4, 8, 23} {1, 2, 3, 4, 8, 24} {1, 2, 3, 4, 8, 25} {1, 2, 3, 4, 8, 26} {1, 2, 3, 4, 8, 27} {1, 2, 3, 4, 8, 28} {1, 2, 3, 4, 8, 29} {1, 2, 3, 4, 8, 30} {1, 2, 3, 4, 8, 31} {1, 2, 3, 4, 8, 32} {1, 2, 3, 4, 8, 33} {1, 2, 3, 4, 8, 34} {1, 2, 3, 4, 8, 35} {1, 2, 3, 4, 8, 36} {1, 2, 3, 4, 8, 37} {1, 2, 3, 4, 8, 38} {1, 2, 3, 4, 8, 39} {1, 2, 3, 4, 8, 40} {1, 2, 3, 4, 8, 41} {1, 2, 3, 4, 8, 42} {1, 2, 3, 4, 8, 43} {1, 2, 3, 4, 8, 44} {1, 2, 3, 4, 8, 45} {1, 2, 3, 4, 8, 46} {1, 2, 3, 4, 8, 47} {1, 2, 3, 4, 8, 48} {1, 2, 3, 4, 8, 49} {1, 2, 3, 4, 9, 10} {1, 2, 3, 4, 9, 11} {1, 2, 3, 4, 9, 12} {1, 2, 3, 4, 9, 13} {1, 2, 3, 4, 9, 14} {1, 2, 3, 4, 9, 15} {1, 2, 3, 4, 9, 16} {1, 2, 3, 4, 9, 17} {1, 2, 3, 4, 9, 18} {1, 2, 3, 4, 9, 19} {1, 2, 3, 4, 9, 20} {1, 2, 3, 4, 9, 21} {1, 2, 3, 4, 9, 22} {1, 2, 3, 4, 9, 23} {1, 2, 3, 4, 9, 24} {1, 2, 3, 4, 9, 25} {1, 2, 3, 4, 9, 26} {1, 2, 3, 4, 9, 27} {1, 2, 3, 4, 9, 28} {1, 2, 3, 4, 9, 29} {1, 2, 3, 4, 9, 30} {1, 2, 3, 4, 9, 31} {1, 2, 3, 4, 9, 32} {1, 2, 3, 4, 9, 33} {1, 2, 3, 4, 9, 34} {1, 2, 3, 4, 9, 35} {1, 2, 3, 4, 9, 36} {1, 2, 3, 4, 9, 37} {1, 2, 3, 4, 9, 38} {1, 2, 3, 4, 9, 39} {1, 2, 3, 4, 9, 40} {1, 2, 3, 4, 9, 41} {1, 2, 3, 4, 9, 42} {1, 2, 3, 4, 9, 43} {1, 2, 3, 4, 9, 44} {1, 2, 3, 4, 9, 45} {1, 2, 3, 4, 9, 46} {1, 2, 3, 4, 9, 47} {1, 2, 3, 4, 9, 48} {1, 2, 3, 4, 9, 49} {1, 2, 3, 4, 10, 11} {1, 2, 3, 4, 10, 12} {1, 2, 3, 4, 10, 13} {1, 2, 3, 4, 10, 14} {1, 2, 3, 4, 10, 15} {1, 2, 3, 4, 10, 16} {1, 2, 3, 4, 10, 17} {1, 2, 3, 4, 10, 18} {1, 2, 3, 4, 10, 19} {1, 2, 3, 4, 10, 20} {1, 2, 3, 4, 10, 21} {1, 2, 3, 4, 10, 22} {1, 2, 3, 4, 10, 23} {1, 2, 3, 4, 10, 24} {1, 2, 3, 4, 10, 25} {1, 2, 3, 4, 10, 26} {1, 2, 3, 4, 10, 27} {1, 2, 3, 4, 10, 28} {1, 2, 3, 4, 10, 29} {1, 2, 3, 4, 10, 30} {1, 2, 3, 4, 10, 31} {1, 2, 3, 4, 10, 32} {1, 2, 3, 4, 10, 33} {1, 2, 3, 4, 10, 34} {1, 2, 3, 4, 10, 35} {1, 2, 3, 4, 10, 36} {1, 2, 3, 4, 10, 37} {1, 2, 3, 4, 10, 38} {1, 2, 3, 4, 10, 39} {1, 2, 3, 4, 10, 40} {1, 2, 3, 4, 10, 41} {1, 2, 3, 4, 10, 42} {1, 2, 3, 4, 10, 43} {1, 2, 3, 4, 10, 44} {1, 2, 3, 4, 10, 45} {1, 2, 3, 4, 10, 46} {1, 2, 3, 4, 10, 47} {1, 2, 3, 4, 10, 48} {1, 2, 3, 4, 10, 49} {1, 2, 3, 4, 11, 12} {1, 2, 3, 4, 11, 13} {1, 2, 3, 4, 11, 14} {1, 2, 3, 4, 11, 15} {1, 2, 3, 4, 11, 16} {1, 2, 3, 4, 11, 17} {1, 2, 3, 4, 11, 18} {1, 2, 3, 4, 11, 19} {1, 2, 3, 4, 11, 20} {1, 2, 3, 4, 11, 21} {1, 2, 3, 4, 11, 22} {1, 2, 3, 4, 11, 23} {1, 2, 3, 4, 11, 24} {1, 2, 3, 4, 11, 25} {1, 2, 3, 4, 11, 26} {1, 2, 3, 4, 11, 27} {1, 2, 3, 4, 11, 28} {1, 2, 3, 4, 11, 29} {1, 2, 3, 4, 11, 30} {1, 2, 3, 4, 11, 31} {1, 2, 3, 4, 11, 32} {1, 2, 3, 4, 11, 33} {1, 2, 3, 4, 11, 34} {1, 2, 3, 4, 11, 35} {1, 2, 3, 4, 11, 36} {1, 2, 3, 4, 11, 37} {1, 2, 3, 4, 11, 38} {1, 2, 3, 4, 11, 39} {1, 2, 3, 4, 11, 40} {1, 2, 3, 4, 11, 41} {1, 2, 3, 4, 11, 42} {1, 2, 3, 4, 11, 43} {1, 2, 3, 4, 11, 44} {1, 2, 3, 4, 11, 45} {1, 2, 3, 4, 11, 46} {1, 2, 3, 4, 11, 47} {1, 2, 3, 4, 11, 48} {1, 2, 3, 4, 11, 49} {1, 2, 3, 4, 12, 13} {1, 2, 3, 4, 12, 14} {1, 2, 3, 4, 12, 15} {1, 2, 3, 4, 12, 16} {1, 2, 3, 4, 12, 17} {1, 2, 3, 4, 12, 18} {1, 2, 3, 4, 12, 19} {1, 2, 3, 4, 12, 20} {1, 2, 3, 4, 12, 21} {1, 2, 3, 4, 12, 22} {1, 2, 3, 4, 12, 23} {1, 2, 3, 4, 12, 24} {1, 2, 3, 4, 12, 25} … showing the first 300 of 13,983,816

A combination is a selection where only membership counts, not order: the lottery numbers 3, 17, 22 are the same ticket as 22, 3, 17. The number of ways to choose r objects from n distinct ones is the binomial coefficient C(n, r), read “n choose r”. It powers lottery odds, poker hand counts, committee selections and the binomial distribution.

Choose “with repetition” when the same object may be picked more than once, such as scoops of ice cream from a set of flavours or coins of given denominations. That count is C(n + r − 1, r), the “stars and bars” formula.

Results are computed exactly with whole-number arithmetic, so even 100 choose 50 is shown digit for digit; very large counts switch to scientific notation. You can type your own objects (names, colours, players) and the calculator will list every combination, up to 300 of them, which is handy for checking homework or building a schedule. The number of permutations and the odds of guessing one particular selection are shown as well.

How to use the Combination Calculator

  1. Number of objects to choose from (n): Ignored when you type the objects themselves below.
  2. Number chosen (r)
  3. Type of selection
  4. Objects to list (optional, comma-separated): If you type names here, n is taken from how many you entered and the list below uses them.
  5. List the selections

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

The count is built by multiplying (n − r + 1)(n − r + 2)…n and dividing by 1·2·…·r step by step, which keeps every intermediate value a whole number. Listing generates selections in lexicographic order and stops after 300.

Worked example

How many ways can 5 balls be drawn from 12 numbered balls? C(12, 5) = 12! ÷ (5! × 7!) = (12 × 11 × 10 × 9 × 8) ÷ 120 = 95,040 ÷ 120 = 792. If order mattered there would be 95,040 permutations; each combination corresponds to 5! = 120 of them. With repetition allowed the count would be C(16, 5) = 4,368.

Common combination counts

Situation Formula Count
Pairs from 10 people C(10, 2) 45
Poker hands C(52, 5) 2,598,960
6/49 lottery C(49, 6) 13,983,816
Powerball white balls C(69, 5) 11,238,513
3 scoops from 5 flavours (repeats allowed) C(7, 3) 35

Formula

C(n, r) = n! ÷ (r! × (n − r)!) With repetition: C(n + r − 1, r) = (n + r − 1)! ÷ (r! × (n − 1)!) Relationship to permutations: P(n, r) = C(n, r) × r!

Worked example

Inputs: Number of objects to choose from (n): 49; Number chosen (r): 6; Type of selection: Combinations – order does not matter, no repeats; Objects to list (optional, comma-separated): ; List the selections: Yes – show up to 300.
Results: Number of combinations = 13,983,816; Combinations without repetition C(n, r) = 13,983,816; Combinations with repetition = 25,827,165; Permutations P(n, r) (if order mattered) = 10,068,347,520; Chance of guessing one particular selection = 1 in 13,983,816 (7.151 × 10^-6%); Orderings of each selection (r!) = 720.

Key terms

Combination
A selection of items where order does not matter.
Binomial coefficient
C(n, r) = n!/(r!(n − r)!), the number of r-item combinations of n objects.
Factorial
n! = 1 × 2 × … × n, with 0! = 1.
With repetition
Each object may be chosen more than once.

Frequently asked questions

How many 6/49 lottery combinations are there?

C(49, 6) = 13,983,816, so one ticket has a 1 in 13,983,816 chance of the jackpot.

What is the difference between combinations and permutations?

Combinations ignore order; permutations count every ordering. P(n, r) = C(n, r) × r!, so there are 720 times as many 6-number permutations as combinations.

What is 5 choose 2?

10: the pairs AB, AC, AD, AE, BC, BD, BE, CD, CE, DE.

What is C(n, 0)?

1. There is exactly one way to choose nothing, and likewise C(n, n) = 1.

When do I use combinations with repetition?

When an item can be chosen more than once and order does not matter, e.g. 3 scoops from 5 flavours: C(7, 3) = 35.

How many poker hands are there?

C(52, 5) = 2,598,960 five-card hands.

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

Choosing which r items to take is the same as choosing which n − r to leave behind.

Sources

  1. NIST Digital Library of Mathematical Functions: Combinatorial analysis
  2. Penn State STAT 414: Introduction to Probability Theory
  3. Wolfram MathWorld: Probability and statistics

Cite this calculator

Speedy Calculator. (2026). Combination Calculator (nCr). Speedy Calculator. https://speedycalculator.com/calculators/statistics/combinations/