IQR Calculator

Combination Calculator

How many ways to choose r things from n, when the order does not matter.

Combinations calculatorRuns entirely in your browser
Result7 digits
52C52598960ways to choose, order does not matter
Combinations nCr
2598960
Permutations nPr
311875200
n
52
r
5
Ratio
r! = 120

How we calculated it

Start from the formula
nCr = n! ÷ (r! × (n − r)!)
Substitute
52C5 = 52! ÷ (5! × 47!)
Divide out the ordering
52C5 = 52P5 ÷ 5! = 311875200 ÷ 120
Result
52C5 = 2598960

Order matters or not

Choosing 5 from 52 gives 2598960 combinations but 311875200 permutations. The permutation count is larger by a factor of 5! because each unordered selection can be arranged 5! different ways.

The formula

nCr = n! ÷ ( r! × (n − r)! ) n — how many items are available
r — how many are chosen
Order does not matter.

Also written C(n, r), ⁿCᵣ, or "n choose r". It is the binomial coefficient, the same number that appears in Pascal's triangle and in the expansion of (a + b)ⁿ.

Combination or permutation?

Ask whether rearranging the same items produces a different outcome.

  • Combination — a poker hand, a committee, a pizza's toppings. AB and BA are the same thing.
  • Permutation — a podium, a password, a running order. AB and BA are different.

The relationship is exact: nPr = nCr × r!. Every unordered selection can be arranged r! ways, so the permutation count is always the larger.

A useful shortcut

nCr = nC(n−r). Choosing 47 cards from 52 is the same as choosing the 5 to leave behind, so both give 2,598,960. This calculator uses the smaller of r and n − r internally, which is what keeps large inputs fast and exact.

Worked examples

Poker hands

52 cards, choose 5

52C5 = 2,598,960 distinct five-card hands. The matching permutation count is 311,875,200 — exactly 120 times larger, since 5! = 120 and the order cards are dealt in does not change the hand.

A lottery

49 numbers, choose 6

49C6 = 13,983,816. One ticket gives odds of roughly one in fourteen million.