Combinations Calculator

Last updated: 2026-10-02

Combinations Calculator — Calculate nCr combinations.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
n totalr chosen
Pizza topping choices 123
Committee from department 254
Lottery ticket numbers 496
Starting lineup from roster 155

TL;DR: To calculate combinations (nCr), use the formula C(n,r) = n! ÷ (r! × (n-r)!), where n is the total number of items and r is the number of items you are choosing; for example, C(10,4) = 10! ÷ (4! × 6!) = 210, meaning there are 210 ways to select 4 items from a set of 10 when order does not matter.

What Is the Combinations Calculator?

The Combinations Calculator is a mathematical tool designed to compute the number of possible subsets you can create from a larger set, where the order of selection is irrelevant. It solves the core problem of "how many different groups can I form?" by applying the binomial coefficient formula, often denoted as nCr or C(n,r). If you have a pool of 10 candidates and need to form a committee of 4, this calculator tells you instantly that there are 210 distinct committees possible, without you having to manually list every option.

This calculator is indispensable for students studying probability, statistics, combinatorics, or discrete mathematics. It is equally vital for professionals in fields like data science (for feature selection), finance (for portfolio analysis), and game development (for probability balancing). Everyday users also benefit: whether you are figuring out how many possible lottery ticket combinations exist, how many ways to choose 3 toppings from a menu of 8, or how many different 5-card poker hands can be dealt from a 52-card deck, this tool removes the tedious manual computation and the risk of arithmetic errors.

Unlike permutations (nPr), which count arrangements where order matters, combinations focus purely on membership. The calculator handles the factorial mathematics behind the scenes, breaking it down into a step-by-step simplification that is both educational and lightning fast. This makes it an excellent learning aid for understanding the difference between "arranging" and "selecting" items.

How to Use the Calculator

Using the Combinations Calculator is straightforward. Follow these numbered steps to get your result instantly:

  1. Locate the "Total number of items (n)" input field. This is the size of your entire pool or set. For example, if you have a class of 30 students, enter 30 here. This value represents the total distinct items you are choosing from.
  2. Enter the "Number of items to choose (r)" in the corresponding field. This is the size of the subset you want to form. Continuing the example, if you need to randomly select 5 students for a project, enter 5 here. Ensure this number is not negative and does not exceed the value of n.
  3. Press the "Calculate" or "Compute" button. The calculator will instantly process the inputs using the nCr formula. It will internally compute factorials, simplify the fraction, and produce the final integer result.
  4. Review the output. The result displayed is the total number of unique combinations. For n=30 and r=5, the output will be 142,506. This number tells you how many distinct groups of 5 students can be formed from the pool of 30.
  5. Reset and repeat (if needed). If you need to test multiple scenarios, clear the fields and enter new values. The calculator supports any positive integers where n ≥ r ≥ 0.

Formula and Calculation Method

The mathematical foundation of the calculator is the binomial coefficient formula. In plain language, the formula asks: "How many ways can I choose r items from a collection of n items, ignoring the sequence in which they are picked?" The answer is derived by taking the total number of permutations (n! divided by (n-r)!) and then dividing by r! to eliminate the duplicate orderings, because for every set of r items, there are r! ways to arrange them.

The formal formula is expressed as:

C(n, r) = n! / (r! × (n - r)!)

Here, the exclamation mark (!) denotes a factorial, which is the product of all positive integers up to that number. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. The formula works by first calculating all possible orderings of n items (n!), then dividing out the orderings of the chosen group (r!) and the orderings of the unchosen remainder ((n-r)!).

Concrete Worked Example: Let’s calculate C(10,4) step-by-step using the exact method this calculator employs.

  1. Write out the formula: C(10,4) = 10! / (4! × (10-4)!) = 10! / (4! × 6!).
  2. Expand the factorials (do not multiply them all out yet): C(10,4) = (10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1) / [(4 × 3 × 2 × 1) × (6 × 5 × 4 × 3 × 2 × 1)].
  3. Simplify by cancelling: The 6 × 5 × 4 × 3 × 2 × 1 in the denominator cancels out the identical sequence in the numerator's factorial. This leaves you with C(10,4) = (10 × 9 × 8 × 7) / (4 × 3 × 2 × 1).
  4. Calculate the numerator: 10 × 9 = 90; 90 × 8 = 720; 720 × 7 = 5040.
  5. Calculate the denominator: 4 × 3 = 12; 12 × 2 = 24; 24 × 1 = 24.
  6. Divide: 5040 ÷ 24 = 210.

This simplification method avoids enormous numbers. If you were to multiply all factorials fully, you would deal with 3,628,800 for 10!, but the cancellation method reduces the problem to simple multiplication and division, exactly as the calculator's algorithm does internally.

Practical Examples

The calculator adapts to any context where "choosing a group" is the core question. Below are three realistic scenarios demonstrating different inputs and what the results mean in real-world terms.

Scenario Input (n) Input (r) Result (C(n,r)) Interpretation
Selecting a 3-person leadership team from 15 employees 15 3 455 There are 455 unique possible leadership teams. The order of roles (President, VP, Treasurer) is ignored here; if roles were assigned, you would need permutations.
Choosing 5 toppings for a pizza from a list of 12 available options 12 5 792 You could create 792 different pizza topping combinations. The sequence of adding toppings doesn't matter, only the final set of toppings.
Picking 6 numbers for a lottery ticket from a field of 49 numbers 49 6 13,983,816 There are nearly 14 million distinct lottery tickets. This demonstrates why winning the jackpot is a 1 in 13,983,816 chance if you buy one ticket.

Another quick example: C(10,3). Using the simplification method: (10 × 9 × 8) / (3 × 2 × 1) = 720 / 6 = 120. This tells you there are 120 ways to pick 3 students from a group of 10 for a group project. Notice that C(10,4) gave 210, which is larger because choosing 4 items leaves more room for variety than choosing just 3.

Tips for Accurate Results

To get the most accurate results from the calculator, pay close attention to the inputs and the mathematical constraints. The most common error is swapping the n and r values, which yields a different result in many cases, though interestingly C(10,4) = C(10,6) due to the symmetry of the formula.

  • Verify n is the total pool, not the available slots. If you have 12 employees and need to pick 4, enter n=12 and r=4. Entering n=4 and r=12 will produce a result of 0, because you cannot choose more items than are available.
  • Use the order-less logic. If the problem says "arrange," "order," or "rank," you need a permutations calculator (nPr). If it says "choose," "select," "committee," or "group," you need combinations. Entering values into the wrong calculator type is a common mistake.
  • Simplify before you multiply. When verifying manually, cancel out the (n-r)! from the n! before doing large multiplications. This prevents overflow errors and makes mental checks feasible. For C(50,2), write it as (50 × 49) / (2 × 1) = 1225, not as 50! divided by 48!.
  • Remember that 0! = 1. If you are calculating C(n,0), such as "how many ways to choose nothing," the result is always 1. The calculator handles this correctly if you enter r=0; just be aware that factorial of zero is defined as 1, not 0.
  • Check for integer outputs. The combination of two positive integers is always a positive integer. If your manual calculation produces a decimal, you have likely made a division error or misapplied the factorial terms.

Frequently Asked Questions

What is the difference between combinations (nCr) and permutations (nPr)?

Combinations (nCr) count the number of ways to choose r items from a set of n items where the order of selection does not matter. For example, choosing players {Alice, Bob} is the same as choosing {Bob, Alice} for a team. The formula is C(n,r) = n! / (r! × (n-r)!). Permutations (nPr) count arrangements where order does matter, so {Alice, Bob} and {Bob, Alice} are two different results. The permutation formula is P(n,r) = n! / (n-r)!. The key difference is the division by r!: combinations eliminate the r! duplicate orders that permutations count as distinct. In practice, if you are assigning specific roles like President and Treasurer, use permutations; if you are just picking a group, use combinations.

Why is C(10,4) equal to C(10,6)?

This is a fundamental symmetry property of combinations. When you choose 4 items out of 10, you are implicitly also choosing the 6 items you are not selecting. Since every set of 4 chosen items corresponds to exactly one set of 6 unchosen items, the number of ways to choose 4 must equal the number of ways to choose 6. Mathematically, the formula C(n,r) = n! / (r! × (n-r)!) shows that swapping r and (n-r) just swaps the two factorial terms in the denominator, leaving the result unchanged. Therefore C(10,4) = C(10,6) = 210. This symmetry is useful for simplification, as you can always compute the smaller of r and (n-r) to reduce manual calculation effort.

Can the calculator handle large numbers like C(100,50)?

Yes, the calculator is designed to handle large combinatorial values, but you should understand the output scale. C(100,50) is approximately 1.0089 × 10^29, a number with 30 digits. The calculator typically returns either the exact integer (using arbitrary-precision arithmetic) or a scientific notation approximation if it exceeds a certain display threshold. To avoid overflow in manual verification, use the simplification method: cancel the factorials stepwise or use the identity C(n,r) = C(n,n-r). For C(100,50), you would compute (100! / 50! / 50!), which requires careful handling. The calculator does this internally in milliseconds, making it the reliable choice for such astronomically large counts.

Related Calculators