Combination Calculator – How Many Ways to Choose, Order or No Order
Pick k items out of n and this calculator counts every possible selection. Order does not matter for combinations, order matters for permutations, and both counts are exact, even for large n.
Your numbers
A whole number from 0 to 1000.
A whole number from 0 up to n.
Your numbers never leave this page. Everything is calculated in your browser.
Result
The numbers behind it
Choosing 3 out of 10 is the same count as leaving 7 out of 10 behind, which is why C(10, 3) equals C(10, 7). Every selection has exactly one complement, so the two counts always match.
- Order does not matter for combinations and matters for permutations: on the defaults C(10,3) is 120 and P(10,3) is 720.
- The counts for n = 10 are symmetric and add up to 1024, which is 2 to the 10th power, because every item is either in or out.
- The work stays exact by multiplying step by step in whole numbers, never by computing a giant factorial first.
- Choosing from 10: every count at a glance
- How it works, in three steps
- How the calculation works
- Going deeper
- Reading the three numbers: combinations, permutations, and the symmetry check
- Deciding whether order matters, before you trust the mode
- Checking a count by hand, and using the page as a probability denominator
- Big counts, small counts, and what exactness buys you
- The n equals 10 row, and why it sums to 1024
- Frequently asked questions
Choosing from 10: every count at a glance
All the combination counts for n = 10, from choosing nothing to choosing everything. The counts are symmetric and they add up to 1024, which is 2 raised to the 10th power, because every one of the 10 items is either in or out.
| k | C(10, k) | Share of 1024 |
|---|---|---|
| 0 | 1 | |
| 1 | 10 | |
| 2 | 45 | |
| 3 | 120 | |
| 4 | 210 | |
| 5 | 252 | |
| 6 | 210 | |
| 7 | 120 | |
| 8 | 45 | |
| 9 | 10 | |
| 10 | 1 |
Related tools
How it works, in three steps
Decide if order matters
A lottery hand is a combination, because the same five numbers win in any order. A race finish is a permutation, because first, second and third are different results.
Multiply step by step
For C(52, 5) the top of the fraction is 52 × 51 × 50 × 49 × 48, five factors, not a giant 52 factorial. Each division stays exact because the work uses whole numbers throughout.
Divide by the arrangements of the chosen items
Five chosen items can be ordered in 5! = 120 ways, so dividing by 120 removes the ordering and leaves 2,598,960 combinations.
How the calculation works
C(n, k) = n! / (k! × (n − k)!) · P(n, k) = n! / (n − k)!
Worked example. C(10, 3) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 720 / 6 = 120. The permutation count keeps the ordering, so P(10, 3) = 10 × 9 × 8 = 720. The lottery case: C(52, 5) = (52 × 51 × 50 × 49 × 48) / 120 = 311,875,200 / 120 = 2,598,960. Choosing nothing is always exactly one way, so C(n, 0) = 1, and choosing everything is also one way, so C(n, n) = 1.
Why the counts stay exact. Factorials explode fast: 100! has 158 digits, far past what ordinary floating point numbers can hold exactly. This calculator multiplies and divides with BigInt whole numbers instead, so C(100, 50) comes out exactly as 100,891,344,545,564,193,334,812,497,256, with no rounding at all.
Going deeper
Every combination of k items can be arranged in k! different orders. Permutations count each of those orders separately, while combinations count the whole set once. Dividing the permutation count by k! therefore gives the combination count: P(n, k) / k! = C(n, k). For k = 3 that divisor is 6, which is why P(10, 3) = 720 and C(10, 3) = 120. This is also why the two modes on this page always agree by exactly that factor.
The factorial formula writes C(n, k) with three huge factorials, but most of the factors cancel: n! divided by (n − k)! leaves only k factors on top. Computing only those k factors, and dividing by k! as you go, keeps every intermediate number small and exact. Combined with BigInt arithmetic, which has no fixed size limit, the method returns exact counts for n up to 1000, where a plain factorial approach would overflow or round.
Reading the three numbers: combinations, permutations, and the symmetry check
Every result on this page shows three numbers, and each one answers a different question, so read them together rather than picking the one that matches the mode you selected. The headline is the count for the mode you chose: combinations when order does not matter, permutations when it does. Beneath it, the numbers panel always shows both counts, the combinations count and the permutations count, plus a symmetry check and the formula used. That panel is the same in both modes, which is deliberate: switching modes changes the headline, not the facts, and the panel lets you see the relationship between the two counts without switching back and forth. The default case shows the relationship in its simplest form: C(10, 3) is 120, P(10, 3) is 720, the symmetry check C(10, 7) is 120, and the formula used is 10! divided by (3! times 7!). Every figure in this section was read from the calculator’s own displayed results for the stated inputs.
The factor between the two counts is the whole difference between the modes, and it is always k factorial. For k equal to 3, that factor is 6, which is why 720 divided by 6 is 120. For the lottery case, k equal to 5, the factor is 120, which is why C(52, 5) is 2,598,960 while P(52, 5) is 311,875,200, and 311,875,200 divided by 120 is exactly 2,598,960. For k equal to 10, the factor is 3,628,800, which is why C(20, 10) is 184,756 while P(20, 10) is 670,442,572,800, and dividing the permutation count by 3,628,800 gives the combination count. The rule is exact and general: every combination of k items can be arranged in k! different orders, permutations count each order separately, combinations count the set once, so P(n, k) divided by k! equals C(n, k), as the base guide states. When you switch modes and the headline changes by a factor that is not k!, you have changed n or k by mistake, not the mode.
| Case | Combinations C(n, k) | Permutations P(n, k) | Factor P / C (= k!) | Symmetry check C(n, n-k) |
|---|---|---|---|---|
| C(10, 3) / P(10, 3) (default) | 120 | 720 | 6 | C(10, 7) = 120 |
| C(52, 5) / P(52, 5) (lottery) | 2,598,960 | 311,875,200 | 120 | C(52, 47) = 2,598,960 |
| C(20, 10) / P(20, 10) | 184,756 | 670,442,572,800 | 3,628,800 | C(20, 10) = 184,756 |
| C(100, 50) (BigInt exact) | 100,891,344,545,564,193,334,812,497,256 | see note below | 50! | C(100, 50) (self-symmetric) |
The C(100, 50) row needs a note, because its permutation count is too large to quote comfortably in a table, and the note itself teaches something about scale. The combination count is 100,891,344,545,564,193,334,812,497,256, shown exactly by the calculator with no rounding, because the page uses BigInt whole-number arithmetic. The permutation count for the same case is a number with 94 digits, displayed in full by the calculator, and it is exactly 50! times the combination count. The combination count alone has 30 digits, which already defeats ordinary floating-point arithmetic: the base guide notes that 100! itself has 158 digits, far past what ordinary floating-point numbers can hold exactly. The lesson is not that large counts are hard to read, it is that they are exact here when they would be rounded anywhere else, and that exactness matters when counts are used as denominators, for example in a probability, where a rounded count gives a rounded probability.
The symmetry check is the third number, and it is a check in the literal sense: it recomputes the count from the complement and must agree with the headline. Choosing 3 items out of 10 is the same as choosing 7 items to leave out, so C(10, 3) and C(10, 7) are both 120. Choosing 5 out of 52 is the same as choosing 47 to leave out, so C(52, 5) and C(52, 47) are both 2,598,960. Choosing 10 out of 20 is self-symmetric, so the check repeats the same number, 184,756, which is correct, not a display error: when k equals n minus k, the complement is the same size as the selection, and the check trivially agrees. Use the symmetry check whenever a count looks wrong: if the check disagrees with the headline, the inputs changed between the two readings, because the two counts are mathematically identical for the same n and k, and no rounding or approximation separates them on this page.
The formula line beneath the panel is the last reading aid, and it is written to be checked, not admired. For C(10, 3) it reads 10! divided by (3! times 7!), and the base guide expands it as (10 times 9 times 8) divided by (3 times 2 times 1), which is 720 divided by 6, which is 120. For C(52, 5) it reads 52! divided by (5! times 47!), and the guide expands the top as 52 times 51 times 50 times 49 times 48, which is 311,875,200, divided by 120, which is 2,598,960. The expansion shows why the multiplicative method beats plain factorials: most factors cancel, leaving only k factors on top, so the computation stays small and exact even when n is 1000. If you ever hand-check a result, expand it this way, with k factors on top and k! below, rather than writing out full factorials, because the full factorials are where hand arithmetic drowns.
Deciding whether order matters, before you trust the mode
The mode selector is the most consequential control on this page, because it changes the answer by a factor of k! without changing the inputs, and the wrong mode gives a confidently wrong number. The base guide gives the two canonical examples: a lottery hand is a combination, because the same five numbers win in any order, while a race finish is a permutation, because first, second, and third are different results. Those examples generalise into a single test: if you shuffled the chosen items and the result would still be the same outcome, order does not matter and you want combinations; if shuffling would create a different outcome, order matters and you want permutations. Apply that test to the outcome, not to the process: a committee chosen by drawing names one at a time is still a combination if the committee has no offices, because shuffling the drawn names leaves the same committee, while the same drawing becomes a permutation the moment the first name drawn becomes chair and the second becomes secretary, because shuffling changes who holds which office.
Three common situations are worth classifying explicitly, because each one tempts a wrong mode. A team selected from a squad, with no positions assigned yet, is a combination: the team is a set. A batting order, a podium, or a password entered digit by digit is a permutation in spirit, but with a caution: this calculator counts arrangements of distinct items used at most once, which matches drawing without replacement, as its own disclaimer states. A password that reuses digits, or a lock code that allows repeats, is not counted by this tool at all, because repeats are a different model, counted by powers rather than by factorials, and entering such a problem here gives a number for a different problem. A hand of cards, a lottery draw, a jury pool, and a sample of items for inspection are all combinations when the selection itself is the outcome, and all become permutations the moment ranking, ordering, or assignment is added to the outcome.
The n equals 10 table on the page is a useful laboratory for the mode decision, because it shows all combination counts from choosing nothing to choosing everything, and the counts are symmetric and add up to 1024, which is 2 raised to the 10th power, since every one of the 10 items is either in or out. The counts rise from 1 at k equals 0, through 10, 45, 120, and 210, to a peak of 252 at k equals 5, then fall symmetrically back through 210, 120, 45, and 10 to 1 at k equals 10. The peak at the middle is not a coincidence: there are more ways to choose half a set than to choose almost none or almost all of it, because the middle selections have the most freedom in both directions. The permutation counts for the same n rise far faster and do not fall back, because ordering multiplies every combination by k!, which grows with k, so the permutation count at k equals 10 is 10! times larger than the combination count there, while at k equals 0 the two counts agree at 1, since 0! is 1. Reading the two scales side by side is the quickest cure for mode confusion: if your problem’s counts should peak in the middle and fall back, you want combinations; if they should keep rising with k, you want permutations.
Edge cases deserve explicit mention, because they are where calculators are most often doubted for being right. Choosing nothing is always exactly one way, so C(n, 0) is 1, and choosing everything is also one way, so C(n, n) is 1, for any n, including n equals 0, where choosing nothing from nothing is still the one empty selection. Choosing one item from n gives n ways, and choosing all but one gives n ways as well, by symmetry, which is why C(10, 1) and C(10, 9) are both 10 in the page’s table. Those edges are not degenerate cases to be avoided; they are the anchors that confirm the formula, because any counting method that gives anything other than 1 for C(n, 0) or C(n, n) is wrong, and the page’s formula, n! divided by (k! times (n minus k)!), gives 1 in both cases by the definition that 0! is 1. If a hand calculation disagrees at an edge, the hand calculation has misapplied the factorial, most often by treating 0! as 0, which collapses the whole fraction.
Finally, respect the input limits, which the page states beside the boxes: n is a whole number from 0 to 1000, and k is a whole number from 0 up to n. Those limits are not arbitrary: n up to 1000 keeps BigInt counts exact and displayable, while k beyond n describes a selection larger than the set, which has no meaning in this model and no count to report. Whole numbers only, because a fractional item cannot be chosen, and negative numbers have no selection meaning here. If your problem involves items that are not distinct, items that can be reused, or selections where the same item can appear twice, this tool’s model does not match your problem, and the count it returns, however exact, answers a different question. State the model alongside the count, distinct items, each used at most once, drawn without replacement, and the count will be judged fairly; omit the model, and even a correct count can mislead.
Checking a count by hand, and using the page as a probability denominator
Hand-checking a combination count is a three-step exercise, and the page’s formula line shows the first step for every case. Write the count as k factors on top and k! below: for C(10, 3) that is (10 times 9 times 8) divided by (3 times 2 times 1), which is 720 divided by 6, which is 120. For C(52, 5) it is (52 times 51 times 50 times 49 times 48) divided by 120, which is 311,875,200 divided by 120, which is 2,598,960. For C(20, 10) it is ten factors on top, from 20 down to 11, divided by 10!, which is 3,628,800, giving 184,756. The multiplicative form is the hand method, because the full factorials in the textbook formula cancel down to exactly this form, and writing the cancelled form avoids the giant intermediate numbers that make hand arithmetic fail. If your hand count disagrees with the page, check the factor count first: the top must have exactly k factors, counting down from n, and the bottom must be k!, not (n minus k)! and not n!.
The symmetry check is the second hand check, and it costs nothing: recompute with n minus k in place of k and confirm the same count. C(10, 3) checked against C(10, 7) gives 120 both ways. C(52, 5) checked against C(52, 47) gives 2,598,960 both ways. C(20, 10) checked against itself gives 184,756, which confirms the self-symmetric case rather than testing it, so for a middle count, check against a neighbouring count instead: C(20, 9) should be smaller than C(20, 10) by the ratio of the table’s shape, and a count that breaks the table’s rise-then-fall pattern has an error in it. The n equals 10 table on the page is the reference pattern for that shape check: counts rise to the middle and fall symmetrically, and any count that violates that pattern for its n is wrong, whatever method produced it.
Combination counts are most often used as denominators in probabilities, and the lottery case is the standard example. A single lottery ticket, one selection of 5 numbers from 52, wins with probability 1 divided by 2,598,960, because exactly one of the 2,598,960 equally likely selections is the winning one, assuming every selection is equally likely and the draw is without replacement. That probability statement depends on the model: distinct numbers, each used at most once, every selection equally likely. If the lottery’s real rules differ, for example with a bonus ball drawn from a separate pool, the denominator changes, and this page’s count alone does not give the probability. The page is a counting tool, not a lottery tool, and its counts become probabilities only when divided into a numerator that counts the favourable outcomes under the same model. Keep the numerator and denominator in the same model, or the probability is meaningless even though both numbers are exact.
Big counts, small counts, and what exactness buys you
Exactness is the page’s headline promise, BigInt-exact counts with no factorial overflow, and it is worth understanding what that promise buys and what it does not. It buys counts that are correct to the last digit for n up to 1000, where ordinary floating-point arithmetic would round, overflow, or both. The C(100, 50) count, 100,891,344,545,564,193,334,812,497,256, is exact here, digit for digit, and that exactness matters whenever the count is used further: as a probability denominator, as a comparison between two close counts, or as an input to another calculation. A rounded count gives a rounded probability, and two counts that differ only in their last digits are indistinguishable once rounded, even though the underlying selections differ. What exactness does not buy is correctness of the model: an exact count for the wrong mode, the wrong n, or the wrong k is exactly wrong, and no amount of BigInt precision repairs a mode error, which multiplies the answer by k!.
Scale intuition helps here, because combination counts grow faster than everyday intuition expects. C(10, 3) is 120, a number you can list. C(20, 10) is 184,756, a number you could print but not read one by one. C(52, 5) is 2,598,960, a number that already defeats enumeration by hand. C(100, 50) has 30 digits, a number beyond any physical enumeration. The growth is not linear, not quadratic, and not exponential in the simple sense; it follows the binomial shape, rising to the middle of the table and falling back, with the middle counts dwarfing the edges. When a problem’s count surprises you by its size, check the middle first: if k is near half of n, the count is near the table’s peak, and a large count is expected, not a sign of error. If k is near 0 or near n, the count should be small, and a large count there is a sign of a mode or input error.
Use the page’s anchors as calibration points, because they are the cases whose counts are most often quoted elsewhere and therefore most often checked. C(10, 3) is 120, C(52, 5) is 2,598,960, C(100, 50) is 100,891,344,545,564,193,334,812,497,256, and the n equals 10 row sums to 1024. If the page ever showed anything else for those inputs, the page would be broken, and the anchors are the fastest way to prove it is not. Before trusting a count for an unfamiliar n and k, run one anchor, confirm it, and then run your case: the anchor confirms the tool, the symmetry check confirms the case, and the two together leave little room for a silent error. That discipline takes seconds, and it is the difference between a count you quote and a count you merely read.
The n equals 10 row, and why it sums to 1024
The page’s table of combination counts for n equals 10 is worth a final look, because it contains a fact that generalises to every n. The counts are 1, 10, 45, 120, 210, 252, 210, 120, 45, 10, and 1, and they add up to 1024, which is 2 raised to the 10th power. The reason is that every one of the 10 items is either in or out of a selection, giving two choices per item and 2 times 2 ten times, which is 1024 selections in total, including the empty selection and the whole set. Grouping those 1024 selections by how many items they contain gives exactly the table’s counts: 1 selection contains nothing, 10 contain exactly one item, 45 contain exactly two, and so on up to 1 selection containing all ten. For any n, the combination counts across all k sum to 2 raised to the nth power, so the row for n equals 20 would sum to 1,048,576, and the row for n equals 52 would sum to a number with 16 digits. That sum is a check on any table of combination counts: if a row does not sum to 2 raised to n, the row has an error in it, whatever method produced it.
Restricted counting: the complement method and forbidden selections
Some selections are easier to count by what they are not. Count everything, subtract the forbidden cases, and the remainder is the answer.
The complement method applies wherever the condition to be avoided is easier to describe than the condition to be counted. A committee of 3 chosen from 10 people, where two particular people refuse to serve together, is counted by taking all selections, C(10, 3), which is 120, and subtracting the selections that contain both of the two, which are the selections of 1 more member from the remaining 8, C(8, 1), which is 8. The answer is 112. Counting the allowed selections directly would mean splitting into cases, neither of the two, exactly one of the two, and adding them, which is the same arithmetic with more room for error. The complement is one subtraction, and it is exact whenever the forbidden set is well defined.
At-least-one conditions are the classic complement case. Selections of 3 from 10 that include at least one of 3 particular people are counted by taking all 120 selections and subtracting the selections with none of the 3, which are selections of 3 from the other 7, C(7, 3), which is 35. The answer is 85. The direct count would split into exactly one, exactly two, and all three, and add three combinations; the complement is one subtraction and one combination. The method fails only where the forbidden set is miscounted, which is why the forbidden count should always be stated separately before it is subtracted: name the set, count it, subtract it, and check that the remainder is smaller than the total and larger than zero. The companion guide works combinations with and without repetition, and the lottery denominator, from the same counting, so the complement cases here can be checked against the unrestricted counts there.
Frequently asked questions
What is a combination in simple words?
A combination is a selection of items where the order of the chosen items does not matter. Picking apples, bananas and cherries is the same combination no matter which one you pick first.
How do you calculate C(n, k)?
Use C(n, k) = n! divided by (k! times (n minus k)!). In practice you only need k factors on top: for C(10, 3) that is (10 times 9 times 8) divided by (3 times 2 times 1), which is 720 divided by 6, which is 120.
How many combinations are there in a 5-number lottery draw from 52?
C(52, 5) is 2,598,960. That is (52 times 51 times 50 times 49 times 48) divided by 120, which is 311,875,200 divided by 120.
What is the difference between a combination and a permutation?
A combination counts selections where order does not matter, while a permutation counts arrangements where order matters. For the same n and k, the permutation count is k! times larger than the combination count.
What are C(n, 0) and C(n, n)?
Both are 1. There is exactly one way to choose nothing, the empty selection, and exactly one way to choose everything, the whole set.
Why does C(n, k) equal C(n, n minus k)?
Choosing k items to keep is the same as choosing n minus k items to leave out. Every selection has exactly one complement, so the two counts are always equal. For example, C(10, 3) and C(10, 7) are both 120.
What is P(52, 5), and why is it so much larger than C(52, 5)?
P(52, 5) is 311,875,200, while C(52, 5) is 2,598,960, and the factor between them is exactly 120, which is 5!. Every combination of 5 items can be arranged in 120 different orders, permutations count each order separately, and combinations count the set once, so dividing 311,875,200 by 120 gives 2,598,960. The lottery counts selections, not orders, which is why it uses the smaller number.
How big is C(100, 50) exactly?
It is 100,891,344,545,564,193,334,812,497,256, shown exactly with no rounding, because this calculator uses BigInt whole-number arithmetic. The count has 30 digits, and ordinary floating-point arithmetic would round it, which is why the page’s exactness matters whenever the count is used further, for example as a probability denominator. Its permutation counterpart is a 94-digit number, exactly 50! times larger.
What is C(20, 10)?
It is 184,756, with P(20, 10) at 670,442,572,800, a factor of 3,628,800, which is 10!. It is also self-symmetric: choosing 10 out of 20 is the same as choosing the other 10 to leave out, so the symmetry check repeats 184,756 rather than giving a different number. That repetition is correct, not a display error, and it confirms the count sits at the middle of its table, where counts peak.
Does switching modes change the symmetry check?
No. The numbers panel is the same in both modes, so switching to permutations still shows C(10, 3) as 120, P(10, 3) as 720, and the symmetry check C(10, 7) as 120, with the same formula line. Only the headline changes with the mode. If switching modes changes any panel number, the inputs changed as well, because the panel facts do not depend on the mode.
How do you count selections where two people cannot both be chosen?
Count all selections, then subtract the selections that contain both. For a committee of 3 from 10 where two people refuse to serve together, all selections are C(10, 3), which is 120, and the selections containing both are C(8, 1), which is 8, so the allowed selections are 112. State the forbidden count separately before subtracting it, and check that the remainder is smaller than the total and larger than zero.
What is the complement method in counting?
Counting what is wanted by counting everything and subtracting what is not wanted. It applies wherever the condition to be avoided is easier to describe than the condition to be counted, above all for at-least-one conditions. The method is exact whenever the forbidden set is well defined and correctly counted, and it fails only where the forbidden set is miscounted, which is why the forbidden count is stated separately before it is subtracted.
How do you count selections with at least one of a group?
Subtract the selections with none of the group from the total. Selections of 3 from 10 that include at least one of 3 particular people are all 120 selections minus the selections of 3 from the other 7, C(7, 3), which is 35, giving 85. The direct count would split into exactly one, exactly two, and all three and add three combinations; the complement is one subtraction and one combination.
More calculators
Binomial Distribution Calculator
Probabilities from combinations.
Summation Calculator
Sums of number patterns.
Probability Calculator
Single and combined events.
Statistics Calculator
Mean, median and more.
Percentage Calculator
Percent of any value.
How to Calculate Combinations
With and without repetition, worked examples.
This calculator is an educational tool for counting combinations and permutations. Its counts assume every item is distinct and each item is used at most once, which matches drawing without replacement.