Free online calculator

Combination Calculator

Count selections where membership matters but order does not. Use repetition only when an item type may appear more than once, such as scoops chosen from flavours.

Combinations120
Formulan! / (r!(n − r)!)
Order matters?No
Use combinations when only the selected group matters and order does not.

Combinations

  • nCr = n! ÷ (r! × (n − r)!): groups where order does not matter.
  • nCr = nPr ÷ r!.
  • Example: choosing 3 people from 10 = 120 groups (but 720 ordered line-ups).
  • Lottery odds are combinations: picking 6 of 49 has 13,983,816 possibilities.

How to use the Combination Calculator

  1. Enter whole n and r from 0 to 1000. Without repetition, r must not exceed n.
  2. Leave repetition off for C(n,r) = n! / (r! × (n−r)!).
  3. Allow repetition for unordered selections of item types, using C(n+r−1,r) when n is positive.
  4. Read the exact integer count. Any zero-item selection has one empty outcome; no nonempty selection is possible from zero types.

Symmetry and Pascal's triangle

Choosing r items to keep is the same as choosing n − r items to leave out, so C(n, r) = C(n, n − r). Choosing 2 toppings from 10 gives the same count as choosing 8: 45.

Combination counts form Pascal's triangle, where each number is the sum of the two above it: C(n, r) = C(n − 1, r − 1) + C(n − 1, r). The counts grow very quickly, which is why picking 6 numbers from 49 already gives almost 14 million possible tickets.

Unordered groups and empty selections

Both counts must be whole numbers from 0 to 1000. Without repetition r cannot exceed n. With repetition and n positive use C(n+r−1,r). There is one empty selection, and zero nonempty selections from zero types. Counts use exact integers.

Examples

Choose 3 from 10

10C3 = 120. There are 120 different groups of 3 items selected from 10 when order does not matter.

Order does not matter

ABC and CBA represent the same combination because they contain the same selected items.

Pizza toppings

A shop offers 12 toppings and you pick 3. C(12, 3) = 12! ÷ (3! × 9!) = 220 possible pizzas, because the order you name the toppings doesn't matter.

Choosing a committee

A club of 15 members picks a committee of 4. C(15, 4) = 1,365. If the 4 roles are different (chair, treasurer…), order matters and the count becomes 15P4 = 32,760.

Check the result in context

Enumerate repetition: from A, B and C choose 2 with repetition: AA, AB, AC, BB, BC, CC, giving 6. Without repetition only AB, AC and BC remain, giving 3.

nCr values

nr = 2r = 3r = 4r = 5
5101051
61520156
721353521
828567056
93684126126
1045120210252
1155165330462
1266220495792

How many possible picks?

DrawCombinations
Pick 6 of 4913,983,816
Pick 5 of 6911,238,513
Pick 5 of 52 (poker hand)2,598,960

How many possible tickets?

The chance of matching one specific set equals 1 divided by the number of combinations.

SelectionCombinationsChance of one exact set
Choose 3 from 101201 in 120
Choose 5 from 2015,5041 in 15,504
Choose 6 from 4913,983,8161 in 13,983,816
Choose 7 from 5099,884,4001 in 99,884,400
Choose 5 from 6911,238,5131 in 11,238,513

Frequently asked questions

What is a combination?

A combination is a selection where order does not matter. Rearranging the same selected items does not create a new combination.

What does nCr mean?

nCr is the number of ways to choose r items from n distinct items when order does not matter and repetition is not allowed.

When should I use combinations instead of permutations?

Use combinations when only membership in the selected group matters. Use permutations when different orders are distinct outcomes.

Can combinations include repetition?

Yes. Combinations with repetition count selections where an item may appear more than once while order still does not matter.

Why does C(n, r) equal C(n, n − r)?

Every choice of r items to include is matched by exactly one choice of n − r items to exclude, so the two counts are always equal.

How do combinations relate to Pascal's triangle?

Row n of Pascal's triangle lists C(n, 0) through C(n, n). Each entry is the sum of the two entries above it.

What does repetition mean for a group selection?

It permits multiple copies of an item type. Choosing 2 scoops from 3 flavours gives C(4,2) = 6 unordered multisets, including two of the same flavour.

Related tools

More math tools