Picking Winners, Organizing Teams, Beating the Odds
Whether you're choosing lottery numbers, selecting a team from a roster, or figuring out how many different committee combinations exist, you need to know: does order matter? That single question changes everything. Our combinations calculator answers it instantly, solving the counting problems that pop up in probability, statistics, and real-world decisions.
What This Calculator Does
A combinations calculator solves two related but different problems. Combinations count how many ways you can choose items when order doesn't matter-picking 5 people for a committee from 20 employees, for example. Permutations count arrangements where order matters-like arranging 5 specific people in a line for a photo. Many tools combine both functions into a single calculator because they use similar formulas and solve closely related problems. This calculator handles both so you don't have to think about which formula to use.
How to Use This Calculator
Start by identifying your numbers: n (the total number of items) and r (how many you're choosing or arranging). Enter both values and select whether you need combinations (order doesn't matter) or permutations (order matters).
If you're unsure which you need, ask yourself: "Would choosing person A first and person B second give a different result than choosing B first and A second?" If yes, use permutations. If no, use combinations.
The calculator displays the result instantly. Some calculators also show the factorial calculation behind the scenes, which helps you understand why the answer is what it is. For example, if you're calculating combinations of 5 items chosen from 10, you'd see how 10! divides by (5! × 5!) to give you 252.
For large numbers, factorials grow incredibly fast—10! is already 3.6 million-so calculators become essential. You can't reasonably calculate 50! by hand (that's 30+ digits). The calculator also prevents you from entering impossible combinations, like choosing 5 items from a set of 3.
The Formula Behind the Math
Combinations use this formula: C(n,r) = n! / (r! × (n-r)!)
Read as "n choose r." You're calculating how many ways to select r items from n total items when order doesn't matter. The factorial (!) means multiply all positive integers up to that number. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
Example: You have 10 people and need to select 3 for a committee. How many different committees are possible?
C(10,3) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 720 / 6 = 120
You can form 120 different committees.
Permutations use this formula: P(n,r) = n! / (n-r)!
Read as "n permute r." This counts arrangements where order matters. Notice the denominator is smaller-you only divide out (n-r)!, not both r! and (n-r)!.
Example: Those same 10 people need to fill three positions: president, vice president, and secretary. How many ways can you assign these roles?
P(10,3) = 10! / 7! = 10 × 9 × 8 = 720
There are 720 different ways to fill the three positions because the roles are distinct.
Notice the difference: selecting 3 people for a generic committee = 120 ways. Assigning those 3 people to specific titled roles = 720 ways. Order mattering creates more possibilities because each arrangement is unique.
Our calculator does all of this instantly-but now you understand exactly what it's computing.
Lottery Odds and Jackpot Dreams
Lottery games are the classic combinations problem. A typical lottery asks: "Pick 6 numbers from 1 to 49." The question is really asking: how many ways can I choose 6 from 49?
Using the combinations formula: C(49,6) = 49! / (6! × 43!) = 10,068,347
Your odds of winning are roughly 1 in 10 million. Most people find this shockingly low compared to intuition. The calculator makes this clear instantly rather than requiring someone to understand factorials or risk confused mental math.
Tournament Brackets and Match Scheduling
A sports league has 8 teams and wants to create a round-robin tournament where every team plays every other team once. How many matches happen?
This is a combinations problem: C(8,2) = 8! / (2! × 6!) = 28 matches
Each match is a pairing of 2 teams (order doesn't matter-Team A vs. Team B is the same as B vs. A). Now the scheduler knows exactly what they're planning. For larger leagues like professional sports, this calculation becomes essential for scheduling.
Password and Security Code Combinations
If you need to create a 4-digit PIN from digits 0-9 and digits can repeat, this is a permutation problem with repetition allowed (a variation most calculators handle separately). However, if you're selecting a 4-digit code without repeating any digit, it's:
P(10,4) = 10! / 6! = 5,040 possible codes
Security experts use these calculations to understand password space-how many theoretically possible combinations exist. The larger this space, the longer it would take to brute-force the password.
Tips and Things to Watch Out For
Order matters: permutations. Order doesn't matter: combinations. This is the biggest decision point. Combinations always give smaller results than permutations for the same numbers because you're essentially grouping and ignoring duplicates.
Factorial growth is dramatic. Going from 10! to 20! doesn't double the result-it explodes it to a number with 19 digits. Small changes in n create massive changes in your answer. This is why calculators prevent hand-calculation of large factorials.
You can't choose more than you have. Trying to select 5 items from 3 total items is impossible. A good calculator catches this error and prevents nonsensical calculations.
Repetition changes the formula. In many real scenarios, repetition is allowed (you can pick the same number multiple times). The standard combinations and permutations formulas assume no repetition. Some problems require specialized formulas-check your calculator's documentation if repetition is part of your scenario.
Multinomial coefficients for three or more groups. If you're splitting items into multiple distinct groups (not just "chosen" and "not chosen"), the formula changes. Basic combinations calculators don't handle this, but it's useful for advanced probability problems.
Frequently Asked Questions
What's the difference between combinations and permutations?
Combinations ignore order (choosing 3 people for a group), while permutations care about order (assigning 3 people to different positions). Combinations always produce smaller numbers than permutations for the same inputs because many permutations collapse into a single combination.
Why does my calculator prevent me from entering values where r > n?
You can't choose 10 items from a set of 5 total items-it's mathematically impossible. The calculator blocks this to prevent nonsensical results. Check that you've entered your total (n) and your selection (r) in the correct fields.
Can I use this for problems with repeated selections?
Standard combinations and permutations assume no repetition. If you can pick the same item multiple times, you need a different formula. Some advanced calculators handle "combinations with repetition," but basic versions don't. Check your calculator's documentation.
What if I need permutations where some items are identical?
This requires the "permutations with repetition" formula, which divides by factorials of the counts of identical items. A standard permutations calculator won't handle this. You may need a statistics software package or advanced calculator.
Why are lottery odds so extremely low?
Lotteries choose numbers without replacement and order doesn't matter, so it's a combinations problem. With millions of possible combinations, your odds are genuinely tiny-by design. This is why lottery tickets are profitable for organizers and not for players over time.
How do I know if my answer is reasonable?
Compare it to permutations of the same numbers-combinations should be smaller or equal. If your combination result exceeds a permutation result, something is wrong. Also, intuitively, more items to choose from (larger n) and fewer items being chosen (smaller r) should give smaller results.
Related Calculators
Working with probability? The probability calculator helps you find the likelihood of events. The random number generator creates random selections that could represent combinations in action. For larger datasets, the standard deviation calculator and mean/median/mode calculator help you analyze the distribution of your combined data.