Combination Calculator
A combination calculator computes the number of unique ways to select a subset of items from a larger set where the order of selection does not matter. Using the combination formula C(n, r) = n! / (r! * (n-r)!), the tool utilizes stable multiplicative algorithms to prevent arithmetic overflow on large inputs. It also supports combinations with repetition allowed. Researchers, game developers, and math students use this tool to calculate lottery odds, schedule tournament matchups, and analyze statistical subsets.
Enter the total number of items n and the number chosen r, and the calculator returns C(n, r), the count of unordered selections. Uses the multiplicative form for accurate results across a wide range of inputs.
Quick Answer
Calculate the number of unique groups of items where order does not matter. Enter the total items and choice size.
How many distinct items you have to choose from. · e.g. 10
Number to select. Cannot exceed n. · e.g. 3
Formula
C(n, r) = n! ÷ (r! × (n − r)!)
Combinations count selections where order does not matter: choosing {A, B, C} is the same as {C, B, A}. Use permutations instead when order matters.
C(10, 3)
120
Order does not matter
Examples
C(10, 3)
120
C(52, 5) (5-card poker hands)
2,598,960
C(20, 10)
184,756
How it works
A combination counts unordered selections. The closed-form formula uses three factorials, but the calculator uses the equivalent multiplicative form to compute the answer directly, multiplying and dividing one term at a time so very large factorials never appear in intermediate values.
Closed form · C(n, r) = n! ÷ (r! × (n − r)!)
Multiplicative · Π from i = 1 to k of (n − k + i) ÷ i, where k = min(r, n − r)
Conventions: C(n, 0) = C(n, n) = 1 · C(n, r) = C(n, n − r).
Related counting and math calculators
- Combination Formula
- Permutation calculator for arrangements where order matters.
- Binomial probability calculator uses C(n, k) directly to compute trial-based probabilities.
- Scientific calculator for factorial, exponents, and general arithmetic.
- Factor calculator for factors and prime factorization (note: not the same as factorial).
- Percentage calculator for converting counts into percent probabilities.
- Fraction calculator for exact probability ratios.
- All education calculators.
Related Calculators
More tools from Education



