ES EN FR PT DE IT

Combinations Calculator

Combinations Calculator. Free online calculator with formula, examples and step-by-step guide.

The Combinations Calculator is a free statistics calculator. Combinations Calculator. Free online calculator with formula, examples and step-by-step guide. Analyze your data instantly with precise statistical formulas.
Inputs
Values
Result
Enter values and press Calculate

What Is the Combinations Calculator?

The Combinations Calculator determines how many ways you can select r items from a set of n items when the order of selection doesn't matter. This fundamental counting principle applies to lottery odds, team formation, menu planning, portfolio selection, and countless scenarios where you're choosing subsets without regard to arrangement.

Imagine selecting 3 toppings from 10 available options for a pizza. Whether you pick pepperoni, mushrooms, then peppers—or peppers, pepperoni, then mushrooms—the result is the same pizza. Combinations count this as one selection, not multiple arrangements.

The notation C(n, r) or ₙCᵣ represents "n choose r." Mathematicians also write this as binomial coefficients: (n over r). Understanding combinations unlocks probability calculations, statistical sampling methods, and algorithmic complexity analysis.

Combinations Formulas With Complete Calculations

Standard Combinations Formula:

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

Where: n = total items, r = items chosen, ! = factorial (e.g., 5! = 5×4×3×2×1 = 120)

Alternative Calculation Method (Avoiding Large Factorials):

C(n, r) = [n × (n-1) × (n-2) × ... × (n-r+1)] / r!

This approach reduces computational overflow for large numbers.

Key Properties:

C(n, r) = C(n, n-r)

Choosing r items to include equals choosing (n-r) items to exclude.

Complete Worked Calculation: Selecting Committee Members

Problem: From 12 employees, how many ways can you select a 4-person committee?

Step 1: Identify n and r

n = 12 (total employees), r = 4 (committee size)

Step 2: Apply the combinations formula

C(12, 4) = 12! / [4! × (12-4)!] = 12! / (4! × 8!)

Step 3: Expand factorials strategically

12! / 8! = 12 × 11 × 10 × 9 (the 8! cancels)

So: C(12, 4) = (12 × 11 × 10 × 9) / 4!

Step 4: Calculate numerator and denominator

Numerator: 12 × 11 × 10 × 9 = 11,880

Denominator: 4! = 4 × 3 × 2 × 1 = 24

Step 5: Divide

11,880 / 24 = 495

Result: 495 different committees possible

Complete Worked Calculation: Lottery Combinations

Problem: A lottery draws 6 numbers from 1 to 49. How many possible combinations exist?

Step 1: Identify values

n = 49, r = 6

Step 2: Apply formula using the alternative method

C(49, 6) = (49 × 48 × 47 × 46 × 45 × 44) / 6!

Step 3: Calculate step-by-step to avoid overflow

Numerator: 49 × 48 × 47 × 46 × 45 × 44 = 10,068,347,520

Denominator: 6! = 720

Step 4: Divide

10,068,347,520 / 720 = 13,983,816

Result: 13,983,816 possible combinations (odds of 1 in nearly 14 million)

6 Steps to Calculate Combinations

Step 1 — Confirm Order Doesn't Matter: Ask: Does arrangement change the outcome? Selecting pizza toppings: no (use combinations). Setting a lock combination: yes (use permutations). This distinction determines which formula applies.

Step 2 — Identify n (Total Items): Count the complete set you're choosing from. This must be a positive integer. For "choose 3 from 10," n = 10.

Step 3 — Identify r (Items to Choose): Determine how many items you're selecting. This must satisfy 0 ≤ r ≤ n. You can't choose 7 items from a set of 5.

Step 4 — Check for Special Cases: If r = 0 or r = n, the answer is 1 (one way to choose nothing or everything). If r = 1, the answer equals n. Use C(n, r) = C(n, n-r) to simplify when r > n/2.

Step 5 — Apply the Formula: Calculate n! / [r! × (n-r)!]. For large numbers, use the alternative method: multiply n × (n-1) × ... × (n-r+1), then divide by r!. Use a calculator for factorials beyond 10!.

Step 6 — Interpret the Result: The answer represents distinct groups possible. For probability calculations, this becomes your denominator (total possible outcomes) when all combinations are equally likely.

5 Detailed Examples

Example 1: Investment Portfolio Construction

An investor wants to select 8 stocks from a watchlist of 25 candidates. How many different portfolios are possible?

C(25, 8) = 25! / [8! × 17!]

Using simplification: C(25, 8) = C(25, 17) (choosing 8 to include = choosing 17 to exclude)

C(25, 8) = (25 × 24 × 23 × 22 × 21 × 20 × 19 × 18) / 8!

= 108,157,500 / 40,320 = 1,081,575

Over one million possible portfolios—demonstrating why diversification strategies matter.

Example 2: Menu Combination Meals

A restaurant offers 15 side dishes. A combo meal includes 3 sides. How many unique combos can customers order?

C(15, 3) = 15! / [3! × 12!]

= (15 × 14 × 13) / (3 × 2 × 1)

= 2,730 / 6 = 455

The restaurant can advertise "455 unique combinations" to highlight variety.

Example 3: Research Study Group Selection

A clinical trial needs 20 participants from 150 volunteers. How many possible study groups exist?

C(150, 20) = 150! / [20! × 130!]

This enormous number (approximately 4.2 × 10²⁷) illustrates why random sampling produces unique study populations. Researchers use randomization to ensure each combination has equal selection probability.

Example 4: Poker Hand Probabilities

How many different 5-card poker hands exist from a 52-card deck?

C(52, 5) = 52! / [5! × 47!]

= (52 × 51 × 50 × 49 × 48) / (5 × 4 × 3 × 2 × 1)

= 311,875,200 / 120 = 2,598,960

This denominator (2,598,960) is essential for calculating probabilities of specific hands like flushes or full houses.

Example 5: Software Feature Bundling

A SaaS company offers 12 features. They want to create premium bundles containing exactly 5 features. How many bundle options exist?

C(12, 5) = 12! / [5! × 7!]

= (12 × 11 × 10 × 9 × 8) / (5 × 4 × 3 × 2 × 1)

= 95,040 / 120 = 792

With 792 possible bundles, the company might use customer surveys to identify the most valued combinations rather than offering all options.

4 Common Mistakes to Avoid

Mistake 1 — Using Combinations When Order Matters: If you're arranging books on a shelf, creating passwords, or scheduling presentations, order matters—use permutations, not combinations. A combination lock is misnamed; it's actually a permutation lock because 12-34-56 differs from 56-34-12.

Mistake 2 — Forgetting to Divide by r!: Some people calculate n! / (n-r)! and stop, which gives permutations, not combinations. For C(10, 3), calculating 10! / 7! = 720 gives permutations. Divide by 3! = 6 to get the correct combination count: 720 / 6 = 120.

Mistake 3 — Miscounting n or r in Word Problems: "Choose a committee of 4 from 12 people" means n=12, r=4. But "choose 4 people plus a chairperson from 12" requires two steps: C(12, 4) × C(4, 1) = 495 × 4 = 1,980. Read carefully to identify what's being selected.

Mistake 4 — Overflow Errors With Large Factorials: Calculating 100! directly exceeds most calculators' capacity. Use the alternative formula or properties like C(n, r) = C(n, n-r) to simplify. C(100, 98) = C(100, 2) = (100 × 99) / 2 = 4,950—much easier.

4 Practical Tips

Tip 1 — Use Symmetry to Simplify: When r > n/2, calculate C(n, n-r) instead. C(50, 47) = C(50, 3) = (50 × 49 × 48) / 6 = 19,600. This reduces computation dramatically for large r values.

Tip 2 — Cancel Before Multiplying: When computing by hand, cancel common factors before multiplying. For C(10, 4) = (10 × 9 × 8 × 7) / (4 × 3 × 2 × 1), cancel: 10/2=5, 9/3=3, 8/4=2, leaving (5 × 3 × 2 × 7) / 1 = 210.

Tip 3 — Leverage Pascal's Triangle: For small values, Pascal's Triangle gives combinations visually. Row n, position r (both 0-indexed) equals C(n, r). Row 5 reads: 1, 5, 10, 10, 5, 1—representing C(5,0) through C(5,5).

Tip 4 — Use Software for Large Numbers: Excel: COMBIN(n,r). Python: math.comb(n,r). R: choose(n,r). Google Calculator: type "52 choose 5". These handle large factorials without overflow errors.

4 FAQs

Combinations count selections where order doesn't matter (choosing team members). Permutations count arrangements where order does matter (ranking finishers). Formula difference: P(n,r) = n!/(n-r)! while C(n,r) = n!/[r!(n-r)!]. Permutations always equal or exceed combinations for the same n and r.

No. You cannot choose more items than exist. C(5, 7) = 0 because there's no way to select 7 items from 5. Mathematically, the formula produces division by zero or negative factorials, which are undefined. Always verify r ≤ n before calculating.

There's exactly one way to choose nothing: choose nothing. This seems trivial but matters for probability calculations and binomial expansions. Similarly, C(n, n) = 1 because there's one way to choose everything—select all items.

Binomial coefficients in (x + y)ⁿ are exactly C(n, r). The expansion is: Σ C(n,r) × x^(n-r) × y^r. For (x + y)⁴, coefficients are C(4,0)=1, C(4,1)=4, C(4,2)=6, C(4,3)=4, C(4,4)=1, giving x⁴ + 4x³y + 6x²y² + 4xy³ + y⁴.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-04-29.

Frequently Asked Questions

Combinations count selections where order doesn't matter (choosing team members). Permutations count arrangements where order does matter (ranking finishers). Formula difference: P(n,r) = n!/(n-r)! while C(n,r) = n!/[r!(n-r)!]. Permutations always equal or exceed combinations for the same n and r.
No. You cannot choose more items than exist. C(5, 7) = 0 because there's no way to select 7 items from 5. Mathematically, the formula produces division by zero or negative factorials, which are undefined. Always verify r ≤ n before calculating.
There's exactly one way to choose nothing: choose nothing. This seems trivial but matters for probability calculations and binomial expansions. Similarly, C(n, n) = 1 because there's one way to choose everything—select all items.
Binomial coefficients in (x + y)ⁿ are exactly C(n, r). The expansion is: Σ C(n,r) × x^(n-r) × y^r. For (x + y)⁴, coefficients are C(4,0)=1, C(4,1)=4, C(4,2)=6, C(4,3)=4, C(4,4)=1, giving x⁴ + 4x³y + 6x²y² + 4xy³ + y⁴.