How This Combinations Calculator Works
A combination counts selections where order is irrelevant: a committee of 3 chosen from 10 people is the same committee however the names are listed. The formula C(n, r) = n! ÷ (r! × (n − r)!) is easy to state and miserable to compute raw — 52! has 68 digits. This combinations calculator uses the cancellation first: the factorials collapse to a product of r terms divided by r!, and the symmetry C(n, r) = C(n, n − r) shortens the product further whenever r is past halfway. Every multiply-divide step is printed, so the method — not just the answer — is checkable. Ordered arrangements belong to the permutations calculator, raw factorials to the factorial calculator, and combinations feed directly into the probabilities computed by the probability calculator.
Worked Example: Poker Hands
A poker hand is 5 cards from 52, order irrelevant: C(52, 5) = (52 × 51 × 50 × 49 × 48) ÷ (1 × 2 × 3 × 4 × 5) = 311,875,200 ÷ 120 = 2,598,960 possible hands. That single number underlies all poker probability: a specific hand pattern's chance is its count of favourable combinations over this total. A royal flush occupies just 4 of the 2.6 million — hence its fame. Our guide on what probability is builds from counts like these to the probability rules themselves.
Combinations and Pascal's Triangle
Row n of Pascal's triangle lists C(n, 0), C(n, 1), …, C(n, n) — which is why the rows are symmetric (the C(n, r) = C(n, n − r) symmetry again) and why each entry is the sum of the two above it (choosing from n splits into “take this item” and “leave it”). The same numbers expand (a + b)ⁿ, appear in the binomial distribution, and count paths through grids. The Khan Academy precalculus course develops combinatorics from these first principles.
Common Mistakes
- Using combinations when order matters: a 4-digit PIN is a permutation problem (10,000 outcomes), not C(10, 4) = 210 — digits repeat and order defines the code.
- Expanding the factorials: cancel before multiplying; the shortened product is shorter, faster and far less error-prone.
- Forgetting repetition rules: this formula assumes each item is chosen at most once; choosing with repetition uses a different (stars-and-bars) count.