Combination Formula- How to Calculate Combinations in Statistics

What Is the Combination Formula?

The combination formula gives you the number of ways to select items from a larger set when order doesn't matter. It's written as:

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

Where:

That's it. That's the whole formula.

Combination vs. Permutation — The Difference

People mix these up constantly. Here's the blunt version:

If you're counting arrangements where swapping things around creates a new result, you need permutations. If the grouping itself is what matters, you need combinations.

The Factorial Part Tripped You Up? Here's the Fix

5! doesn't mean "5 excitement." It means:

5! = 5 × 4 × 3 × 2 × 1 = 120

0! = 1 by definition. Memorize that. It'll save you headaches later.

Calculating Combinations Step by Step

Example: Choosing 3 Books from 5

You have 5 books. You want to pick 3 to take on vacation. How many different sets can you choose?

Step 1: Plug into the formula

C(5, 3) = 5! / 3!(5-3)!

Step 2: Work out the factorials

5! = 120
3! = 6
2! = 2

Step 3: Calculate

C(5, 3) = 120 / (6 × 2) = 120 / 12 = 10

You can form 10 different groups of 3 books from your collection of 5.

Quick Comparison: Combinations vs Permutations

Scenario Formula Example Result
Combinations (order doesn't matter) C(n,r) = n! / r!(n-r)! Choosing 2 toppings from 5 10 ways
Permutations (order matters) P(n,r) = n! / (n-r)! Arranging 2 toppings on a pizza 20 ways

The same 5 toppings, but permutations count each arrangement twice because cheese first, pepperoni second is different from pepperoni first, cheese second.

When to Use the Combination Formula

You'll need combinations when you're:

Any situation where you're picking items and the sequence is irrelevant is a combination problem.

How to Calculate Combinations in Practice

Method 1: Manual Calculation

Use the formula C(n,r) = n! / r!(n-r)! as shown above. It works every time.

Method 2: Using a Calculator

Scientific calculators have an nCr button. Enter n, press nCr, enter r, press equals. Done.

Online calculators exist too. But for small numbers, manual calculation is faster and you actually learn what you're doing.

Method 3: Using Python

If you're coding:

from math import comb

comb(5, 3) # Returns 10

The comb() function handles the math automatically.

Common Combination Formula Variations

Sometimes you'll see combinations written in these formats:

All mean the exact same thing.

Shortcut: When r = n or r = 0

Watch Out For These Mistakes

Real Example: Poker Probability

A 5-card poker hand is a combination. There are 52 cards total, and you want 5.

C(52, 5) = 52! / 5!(47!) = 2,598,960 possible hands

That's why certain hands are rare. There are millions of possible combinations, and only one is a royal flush.

The Bottom Line

The combination formula is C(n,r) = n! / r!(n-r)!. Use it whenever order doesn't matter. Memorize the formula, understand factorials, and you'll solve any combination problem that comes your way.