Home · Everyday · Arithmetic · Binomial Coefficient Calculator
Binomial Coefficient Calculator
Count how many ways r items can be chosen from n when order does not matter, with the ordered count shown for comparison.
What this calculator does
Count how many ways r items can be chosen from n when order does not matter, with the ordered count shown for comparison. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The binomial coefficient C(n, r) counts the subsets of size r drawn from n distinct items, where the order of selection is ignored. It is computed as n! divided by r! × (n − r)!, and it also appears as the coefficient of xʳ in the expansion of (1 + x)ⁿ. The permutations output P(n, r) counts the same selections with order mattering, so it is always larger by a factor of r!.
Choosing r items is the same as leaving n − r items behind, which is why C(n, r) always equals C(n, n − r); the third output confirms that symmetry. Inputs must be whole numbers with 0 ≤ r ≤ n, and results grow extremely fast, so n is capped at 170, the largest value whose factorial stays in exact floating-point range.
Worked example
With the example inputs this page opens with (total items (n) 10, items chosen (r) 3), the result is 120 — combinations c(n, r). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Total items (n) | Combinations C(n, r) | Permutations P(n, r) | C(n, n − r) |
|---|---|---|---|
| 5 | 10 | 60 | 10 |
| 8 | 56 | 336 | 56 |
| 10 | 120 | 720 | 120 |
| 12 | 220 | 1320 | 220 |
| 15 | 455 | 2730 | 455 |
| 20 | 1140 | 6840 | 1140 |
| 25 | 2300 | 13800 | 2300 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is C(10, 3) the same as C(10, 7)?
Picking 3 items to keep automatically picks the other 7 to leave out, so both questions count the same collections: 120.
How does the Binomial Coefficient Calculator work?
Count how many ways r items can be chosen from n when order does not matter, with the ordered count shown for comparison. Total items n · Chosen r → Combinations. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Binomial Coefficient Calculator need?
Total items n · Chosen r → Combinations. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Binomial Coefficient Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.