Compute an exact factorial of any size, with its digit count and trailing zeros, well past where floating point fails.
Combination Calculator
Count unordered selections, C(n, r), exactly using the multiplicative formula rather than factorials.
- Free
- No sign-up
- Runs in your browser
Input
Try an example
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the size of the set and how many to select.
- 2
The count of unordered selections appears, along with the ordered count for comparison.
Questions about Combination Calculator
How is this computed without huge factorials?
By the multiplicative form, dividing at each step. The division is always exact, because a running product of i consecutive integers is divisible by i!, so no rounding enters and the intermediate stays near the size of the answer. It also uses the symmetry C(n, r) = C(n, n-r) to work with the smaller of the two.
What are the odds of a lottery win?
C(49, 6) is 13,983,816, so a single ticket choosing 6 from 49 has about a 1 in 14 million chance of matching all six. The combination count is the whole calculation - the draw order does not matter.
What if items can be chosen more than once?
Then you want the multiset coefficient C(n+r-1, r), not this formula. Choosing 3 scoops from 5 flavours with repeats allowed gives C(7, 3) = 35, not C(5, 3) = 10.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Combination Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Combination Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Count ordered selections, P(n, r) = n!/(n-r)!, exactly and without building a huge factorial.
Compute a simple probability exactly from favourable and total outcomes, with its complement and odds.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.