Different Combination Calculator? How to Use It
- Permutations (nPr)
- Result
- Total items (n)
- 10
- You entered
- Chosen (r)
- 3
- You entered
This calculator works out the number of ways to choose a subset of items from a larger set when the order doesn’t matter — the classic combination formula nCr. You enter the total number of items (n) and how many you want to choose (r), and you get the exact count of possible combinations, along with the permutation count for comparison. It’s the tool to use for lottery odds, card hand counts, team selections, and any problem where “order doesn’t matter.”
Formula
The number of combinations of r items chosen from n distinct items is:
C(n, r) = n! / [r! × (n − r)!]
where n! (n factorial) is the product of all positive integers up to n (e.g., 5! = 5 × 4 × 3 × 2 × 1 = 120). The variables are:
- n — total number of distinct items (a positive integer)
- r — number of items to choose (an integer from 0 to n)
- n! — factorial of n
- r! — factorial of r
- (n − r)! — factorial of the difference
The result is always a whole number. For example, C(10, 3) = 120, meaning there are 120 distinct triplets you can pick from 10 items.
Worked Example
Using the default values from the calculator above (n = 10, r = 3):
- Compute 10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3,628,800
- Compute 3! = 3 × 2 × 1 = 6
- Compute (10 − 3)! = 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5,040
- Plug into the formula: C(10, 3) = 3,628,800 / (6 × 5,040) = 3,628,800 / 30,240 = 120
The calculator shows 120 combinations and 720 permutations (10! / 7! = 720). The permutation count is higher because order matters there: ABC, ACB, BAC, BCA, CAB, and CBA are all different permutations but the same combination.
When to Use Combinations vs. Permutations
The key question is: Does the order of the selected items matter?
- Use combinations when order is irrelevant — choosing a committee of 3 from 10 people, picking 6 numbers for a lottery ticket, selecting 2 flavors for a sundae from 31 options.
- Use permutations when order matters — arranging 3 books on a shelf from 10 available, assigning 3 different roles (president, VP, treasurer) to 3 people from a group of 10, creating a 4-digit PIN from digits 0–9 without repetition.
A common real-world example: if you have 12 friends and want to pick 4 to go to a movie, that’s C(12, 4) = 495 possible groups. If instead you’re assigning 4 different seats in a car, that’s P(12, 4) = 11,880 arrangements.
Common Mistakes and Misconceptions
- Confusing combinations with permutations — always ask if order matters. If it does, use nPr, not nCr.
- Entering r > n — the formula is undefined for r > n; most calculators will return an error or 0. The calculator here enforces r ≥ 0 and r ≤ n implicitly via the formula.
- Forgetting that r can be 0 — C(n, 0) = 1 for any n, because there is exactly one way to choose nothing.
- Rounding errors — combinations are exact integers; don’t round intermediate factorials. Use the nCr function directly, which avoids huge intermediate numbers.
- Assuming repetition is allowed — the standard combination formula assumes no repetition. If you can pick the same item more than once (e.g., choosing 3 scoops of ice cream from 5 flavors where repeats are allowed), the formula changes to C(n + r − 1, r).
How to Choose the Right Calculator
When you search for a combination calculator, you’ll find several types. Here’s what to look for:
- Basic nCr — just needs n and r. This is what you need for most homework and probability problems.
- Permutation (nPr) — often included alongside; useful for order-matters problems.
- Repetition allowed — some calculators offer a “combinations with repetition” mode, which uses the formula C(n + r − 1, r). For example, choosing 3 scoops from 5 flavors with repetition allowed gives C(7, 3) = 35, not C(5, 3) = 10.
- Large n — if n is over 1000, the numbers become astronomically large; a calculator that uses logarithms or arbitrary-precision arithmetic is better. This calculator handles n up to about 170 before hitting floating-point limits, but for most practical problems that’s plenty.
Always check whether the calculator expects n and r in the order you think. Some tools label them as “choose” and “from” — the formula is the same.
Limitations and Edge Cases
The combination formula assumes all n items are distinct. If some items are identical (e.g., 3 red balls and 2 blue balls), the number of distinct arrangements is different — you’d need a multinomial coefficient. Also, the formula counts subsets, not ordered selections. For very large n (above 170), the factorial overflows standard floating-point; the calculator here uses a direct combinatorial function that avoids computing huge factorials, so it can handle n up to about 1000 without issue, but beyond that the result may be displayed in scientific notation.
Another edge case: r = n gives C(n, n) = 1, and r = 0 gives C(n, 0) = 1. These match the formula: n!/(n! × 0!) = 1, since 0! is defined as 1.
Frequently Asked Questions
What is the difference between nCr and nPr?
nCr counts selections where order doesn’t matter (e.g., choosing 3 team members from 10). nPr counts arrangements where order does matter (e.g., assigning 3 different roles to 3 people from 10). The permutation formula is n!/(n−r)!, which is always larger by a factor of r!.
Can I use this calculator for lottery odds?
Yes, for games where you pick a set of numbers and the order doesn’t matter. For a typical 6/49 lottery, the number of possible tickets is C(49, 6) = 13,983,816. Your chance of winning with one ticket is 1 in that number. The calculator gives you the total combinations, not the probability directly, but you can compute probability as 1 / combinations.
What if I need combinations with repetition?
Use the formula C(n + r − 1, r). For example, choosing 3 scoops of ice cream from 5 flavors where you can repeat flavors gives C(7, 3) = 35. This calculator currently doesn’t have a separate mode for that, but you can compute it by entering n + r − 1 as the total and r as the chosen.
Why does the calculator show permutations as well?
Because many people need both, and seeing them side by side helps clarify which one applies to their problem. If you’re unsure, compare the two results: if your scenario treats ABC and ACB as different, use the permutation number; if they’re the same, use the combination number.
What does “0!” mean and why is it 1?
By convention, 0! = 1. This is defined so that formulas like C(n, n) = 1 work correctly, and it’s consistent with the idea that there is exactly one way to arrange zero objects. It also makes the combination formula yield C(n, 0) = 1, which matches the intuitive notion of choosing nothing.
Related
Formula used
in n | Total items (n) | - | 10 | 1 in r | Chosen (r) | - | 3 | 0 out comb | Combinations (nCr) | - | ncr(n,r) | 0 out perm | Permutations (nPr) | - | npr(n,r) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.