How to use the Combination Calculator
- Enter the total number of distinct items n, from 0 to 1,000.
- Enter r, the number of items selected, from 0 through n.
- Read the exact number of possible groups. Combinations do not distinguish different orderings of the same group.
Combination formula
Where:
- = total number of distinct items
- = number of items selected, with 0 ≤ r ≤ n
- = number of unordered groups of size r
Show as plain text
C(n,r) = n! ÷ (r!(n−r)!) The smaller of r and n−r is used to minimize exact integer multiplications.
The formula divides the number of ordered selections by r!, the number of orderings of each selected group. The result is a whole number.
The calculation uses an iterative BigInt product and the symmetry C(n,r) = C(n,n−r), avoiding large floating-point factorials.
Assumptions and limitations
- Items are distinct and selection is without replacement.
- n is limited to 1,000; the exact result is calculated with BigInt and displayed as a decimal integer.
Example: Choose 3 items from 10
- Use C(10,3) = 10! ÷ (3! × 7!).
- Cancel the repeated factors: (10 × 9 × 8) ÷ (3 × 2 × 1).
- There are 120 different groups; rearranging a chosen group does not create another combination.
When to use the Combination Calculator
- Counting groups selected from a larger set when selection order does not matter.
- Solving binomial coefficient and elementary probability exercises.
- Compare arrangements where order matters with the permutations calculator, or compute factorials with the factorial calculator.
Combination Calculator FAQs
What is the difference between combinations and permutations?
Combinations count groups where order does not matter. Permutations count ordered arrangements, so selecting A then B is different from B then A.
What happens when r is 0 or n?
There is exactly one way to choose none or to choose all items, so the result is 1.
Can I choose more items than the total?
No. The calculator requires 0 ≤ r ≤ n because selection is without replacement.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.