Combinations Calculator

Last updated: 2026-09-01

Combinations Calculator — Calculate combinations.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
Number of sidesR
Caso basico 41.2
Caso tipico 72.1
Caso medio 103
Caso avanzado 154.5
Caso extremo 257.5

TL;DR: To calculate combinations, use the formula C(n, r) = n! / [r! × (n − r)!], where 'n' is the total number of items, 'r' is the number of items chosen, and '!' denotes factorial—for example, C(10, 3) = 10! / [3! × 7!] = 120, meaning there are 120 distinct ways to select 3 items from a pool of 10 without regard to order or repetition.

What Is the Combinations Calculator?

A combinations calculator is a specialized mathematical tool designed to compute the number of possible selections from a larger set where the order of selection does not matter. Unlike permutations—which arrange items in a specific sequence—combinations focus solely on the composition of the group. For instance, choosing a committee of 3 members from a class of 20 students is a combinations problem because the appointment of "Alice, Bob, and Charlie" is identical to "Charlie, Alice, and Bob."

This calculator is essential for statisticians, data analysts, game designers, quality control engineers, and students studying probability and discrete mathematics. Real-world applications include calculating lottery odds, determining possible card hands in poker, planning tournament groupings, designing user test groups, and even predicting the number of possible genetic pairings. The tool eliminates the tedious manual effort of computing factorials for large numbers, which can quickly become computationally expensive (e.g., 25! is over 1.5 × 10²⁵).

By automating the core mathematical process, the combinations calculator ensures both speed and accuracy, allowing professionals to focus on interpreting results rather than performing arithmetic. It handles positive integers efficiently, leveraging exact factorial arithmetic to avoid the floating-point errors that plague naive implementations in spreadsheets.

How to Use the Calculator

Using the combinations calculator is a streamlined three-step process. Follow the input prompts carefully to obtain accurate results:

  1. Identify 'n' (Total Items): Locate the input field labeled 'n' or 'Total number of items'. Enter the total size of your set. For example, if you are selecting from a box of 15 chocolates, enter '15'. Ensure this is a non-negative integer; the calculator does not accept fractional or negative values for n.
  2. Identify 'r' (Items Chosen): Find the input field labeled 'r' or 'Number of items to choose'. Enter the size of the subset you wish to select. Using the same chocolate box, if you want to pick 4 chocolates, enter '4'. The value of r must also be a non-negative integer and cannot exceed n (r ≤ n).
  3. Calculate: Press the 'Calculate' or 'Compute' button. The calculator will automatically apply the combinations formula and display the result in the output field. The output is typically labelled 'C(n, r)' or 'Result' and will show the total number of possible combinations as an integer.

Example: For C(10, 3), you would enter '10' in the first field, '3' in the second field, and click calculate to receive the output '120'. No additional configuration is required—the tool is exclusively for combinations without repetition.

Formula and Calculation Method

The mathematical foundation of this calculator is the binomial coefficient, expressed as C(n, r) or sometimes read as 'n choose r'. The formula counts the number of ways to select r items from a set of n items where the order does not matter and each item can be chosen only once. The calculation proceeds through three core steps: factorial computation, multiplication, and division.

The formula is written as:

C(n, r) = n! / [r! × (n − r)!]

The exclamation mark denotes a factorial, meaning you multiply the number by every positive integer below it. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By definition, 0! equals 1, a critical convention that allows the formula to work when r = 0 or r = n.

Worked Example: Calculate C(10, 3)

Step 1: Identify the inputs. Here, n = 10 (total items) and r = 3 (items to choose).

Step 2: Compute the factorial of n. 10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3,628,800.

Step 3: Compute the factorial of r. 3! = 3 × 2 × 1 = 6.

Step 4: Compute the factorial of (n − r). (10 − 3) = 7, so 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5,040.

Step 5: Substitute into the formula: C(10, 3) = 3,628,800 / (6 × 5,040) = 3,628,800 / 30,240 = 120.

The final answer is 120 distinct combinations. The method leverages the fact that the denominator (r! × (n − r)!) cancels out the redundant arrangements, ensuring that only unique groupings are counted. The calculator performs these steps instantly regardless of the magnitude of n.

Practical Examples

To contextualize the calculator, consider these realistic scenarios from different fields. Each example illustrates a unique application of the combinations formula, and the results have tangible implications for decision-making and probability assessment.

Scenario Inputs (n, r) Calculation Result & Interpretation
Lottery selection: A player must choose 5 numbers from a pool of 59. n = 59, r = 5 C(59, 5) = 59! / (5! × 54!) 5,006,386 possible outcomes. This means the odds of winning the jackpot with one ticket are 1 in 5,006,386, assuming only one winning combination exists.
Quality control: An inspector selects 4 defective items from a batch of 15 products to test. n = 15, r = 4 C(15, 4) = 15! / (4! × 11!) 1,365 distinct test groups. This informs the sampling plan, helping determine how many possible groups of 4 can be examined for defects.
Poker hands: A standard deck has 52 cards, and a player receives a hand of 5 cards. n = 52, r = 5 C(52, 5) = 52! / (5! × 47!) 2,598,960 possible 5-card hands. This foundational number is used to calculate the probabilities of specific poker hands like flushes or full houses.

Tips for Accurate Results

Ensuring correct results requires attention to the mathematical constraints and input formatting. Below are key tips, including the common mistakes to avoid when using this calculator.

  • Verify the domain of the function: The calculator is defined only for non-negative integers. Ensure that n ≥ 0 and r ≥ 0. Additionally, the constraint r ≤ n is mandatory. If you enter r > n, the formula produces a factorial of a negative number, which is undefined in standard mathematics. Most calculators will return an error or 'undefined'; always double-check that your subset size does not exceed the total set size.
  • Do not confuse combinations with permutations: This tool computes combinations without repetition (order does not matter). If your problem cares about sequence—such as ranking first, second, and third place—you need a permutations calculator, which uses the formula P(n, r) = n! / (n − r)!. Using the wrong formula will yield incorrect results that are underestimates for your scenario.
  • Avoid premature rounding: Factorials grow extremely fast. For example, C(40, 20) = 137,846,528,820. If you round intermediate factorial values during manual calculation, you will introduce significant errors. The calculator handles exact integer arithmetic internally, so trust its output rather than attempting to verify large values by hand.
  • Use the complementary symmetry: Remember that C(n, r) = C(n, n − r). For instance, C(10, 7) equals C(10, 3) = 120. This property is useful for verification. If you calculate C(10, 7) and get 120, you have correctly applied the formula.
  • Check for input field units: This calculator has no unit conversions (e.g., degrees vs. radians are irrelevant here). Only raw integer counts are accepted. Do not enter percentages, decimals, or negative numbers, as these violate the combinatorial definition.
  • Confirm the 'without repetition' condition: The formula assumes you cannot select the same item twice. If your scenario allows repetition (e.g., drawing a marble, noting its color, and putting it back), the correct formula is C(n + r − 1, r), which is the combinations with repetition formula. This calculator does not use that variant.

Frequently Asked Questions

Below are the three most common questions users search for regarding combination calculations, answered in detail.

What is the difference between C(10, 3) and P(10, 3)?

The core difference lies in whether order matters. C(10, 3) calculates combinations, yielding 120. This counts selections like {A, B, C} as identical to {C, B, A}. P(10, 3), which stands for permutations, calculates arrangements where order matters, using the formula P(10, 3) = 10! / 7! = 10 × 9 × 8 = 720. In permutations, {A, B, C} and {C, B, A} are considered two different outcomes. The permutations result is always larger than the combinations result for the same n and r (when r > 1) because each combination generates r! distinct orderings. For example, a 3-person committee is a combinations problem (120 possible committees), but assigning titles like President, Vice-President, and Treasurer is a permutations problem (720 possible assignments).

Why does C(10, 0) equal 1?

Mathematically, C(10, 0) is defined as the number of ways to choose 0 items from 10. There is exactly one way to do this: select nothing. The formula confirms this: C(10, 0) = 10! / (0! × 10!) = 10! / (1 × 10!) = 1. This might seem counterintuitive, but it is a foundational convention in combinatorics. The convention holds because 0! is defined as 1. This result is essential for mathematical consistency, particularly in binomial expansion (the binomial theorem) and probability theory, where summing all combinations for r = 0 to n must equal 2ⁿ. For n=10, the sum of all C(10, r) from r=0 to 10 is 2¹⁰ = 1024, which requires C(10, 0) to contribute 1.

Can the calculator handle very large values, like C(1000, 500)?

Yes, but with practical limitations. The mathematical result of C(1000, 500) is a 300-digit integer, approximately 2.7 × 10²⁹⁹. The calculator is designed to handle large factorials using arbitrary-precision arithmetic internally, which uses memory to store numbers of any length rather than relying on standard 64-bit floating-point limits. However, performing the factorial of 1000 (which is a 2,568-digit number) and then dividing by the factorial of 500 (1,134 digits) can consume significant memory and processing time. Most robust calculators handle this in under a second. For n values above 10,000, factorial computation becomes impractical (10,000! contains over 35,000 digits), so many calculators impose a user-input limit (e.g., n ≤ 1,000) to prevent system crashes. For extremely large n, advanced approximation methods like Stirling's formula or logarithmic transformations are necessary, but these offer decimal approximations rather than exact integer results.

FAQ

What is a Combinations Calculator used for?

A Combinations Calculator is used to determine the number of ways to choose a specific number of items from a larger set, where the order of selection does not matter. It is commonly applied in probability, statistics, lottery analysis, and combinatorial problems where you need to count possible groups without regard to arrangement.

How does the calculator calculate combinations?

The calculator uses the mathematical formula C(n, r) = n! / (r! * (n - r)!), where 'n' is the total number of items, 'r' is the number of items to choose, and '!' denotes factorial. It automatically computes factorials for large numbers, avoiding manual errors and providing results instantly, even for very large sets.

What is the difference between combinations and permutations?

Combinations ignore the order of selection, meaning choosing items A, B, and C is the same as B, A, C, while permutations consider order as distinct. For example, choosing 3 people from a group of 10 for a committee is a combination, but arranging those 3 people in different seating positions is a permutation. Your calculator only outputs combinations, so it will give a smaller number than a permutations calculator for the same inputs.

Can I use this calculator for samples with repetition allowed?

No, this standard Combinations Calculator assumes sampling without replacement, meaning each item can be selected only once and the chosen set cannot contain duplicates. If you need combinations with repetition (e.g., choosing flavors for a scoop of ice cream where you can pick the same flavor multiple times), you would need a different formula or a specialized 'combinations with repetition' calculator.