Combination Calculator

Calculate the number of combinations (nCr) for selecting items from a set where order doesn't matter. Perfect for probability, statistics, and combinatorics problems.

Updated June 2026 · How this works

How It Works
The formula, explained simply

The combination calculator uses the fundamental combinatorics formula to determine how many ways you can choose r items from n total items when order doesn't matter. This mathematical concept is essential in probability, statistics, and decision-making scenarios.

The calculation follows the combination formula: nCr = n! / (r! × (n-r)!), where the exclamation mark represents factorial notation. However, our calculator uses an optimized approach that avoids calculating large factorials directly, preventing numerical overflow issues while maintaining accuracy.

When you input your values, the calculator first validates that r (items to choose) doesn't exceed n (total items available). It then applies the mathematical formula step by step, computing the result through iterative multiplication and division rather than factorial calculation.

This combination calculator is particularly useful for probability problems, lottery calculations, team selection scenarios, and any situation where you need to determine the number of ways to select items from a group without considering the order of selection.

When To Use This
Right tool, right situation

Use the combination calculator whenever you need to determine selection possibilities without considering order. Common applications include lottery number selection, where you pick specific numbers but their sequence doesn't affect winning.

Business scenarios frequently require combination calculations: selecting team members from applicants, choosing product features from available options, or determining possible meeting schedules from available time slots. The combination calculator helps quantify these choices.

Probability and statistics problems often involve combinations when calculating odds of specific outcomes. Academic research, quality control sampling, and survey design all benefit from accurate combination calculations to ensure proper sample sizes and statistical validity.

Common Mistakes
Why results sometimes look wrong

A common mistake when using the combination calculator is confusing combinations with permutations. Remember that combinations don't care about order - selecting items A, B, C is identical to selecting C, B, A. If order matters for your problem, you need permutations instead.

Another frequent error occurs when trying to choose more items than available (r > n), which mathematically results in zero combinations. Always verify that your r value doesn't exceed n before calculating.

Users sometimes input negative numbers, which aren't meaningful in combination problems. The combination calculator requires non-negative integers for both n and r values. Additionally, avoid using the calculator for extremely large numbers without understanding potential precision limitations in very high calculations.

The Math
Worked examples and deeper derivation

The mathematical foundation of combinations rests on factorial arithmetic and the principle of counting without regard to order. The standard combination formula nCr = n!/(r!(n-r)!) represents the ratio of total arrangements to arrangements we don't distinguish.

Factorials grow extremely rapidly (10! = 3,628,800), so direct calculation becomes impractical for large numbers. Instead, the combination calculator uses the iterative formula: nCr = (n × (n-1) × ... × (n-r+1)) / (r × (r-1) × ... × 1).

This approach multiplies descending terms from n while simultaneously dividing by ascending terms from 1 to r, preventing intermediate results from becoming unmanageably large. The symmetry property nCr = nC(n-r) also allows optimization by choosing the smaller value between r and (n-r).

Lottery Numbers
n = 49, r = 6
In a lottery where you pick 6 numbers from 49, there are 13,983,816 possible combinations. This shows why lottery odds are so low.
Team Selection
n = 12, r = 5
Choosing 5 players from a 12-person roster gives 792 different team combinations, useful for sports team management.
Menu Choices
n = 8, r = 3
Selecting 3 toppings from 8 available options results in 56 different pizza combinations.

Common questions

How do I calculate combinations without repetition?
Use the combination formula nCr = n! / (r! × (n-r)!) where n is total items and r is items to choose. Our combination calculator handles this automatically, giving you the exact number of ways to select items when order doesn't matter.
What is the difference between combinations and permutations?
Combinations don't consider order (choosing ABC is the same as BAC), while permutations do consider order. Combinations use nCr formula and always give fewer results than permutations for the same inputs, making them perfect for selection problems.
Can I calculate combinations for large numbers?
Yes, but very large numbers may cause overflow errors. The combination calculator works reliably up to about n=170. For larger values, consider using specialized mathematical software or logarithmic approaches to handle the computation.

Need something this doesn't cover?

Suggest a tool — we'll build it →