Skip to content
Zesona
Combination CalculatorLocal

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

Runs in your browser

Try an example

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter the size of the set and how many to select.

  2. 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.

Other tools you might reach for next.