Skip to content
    Statistics

    Combinations (nCr) Formula Explained Simply

    Why is winning a 6-from-49 lottery so hard? Because there are 13,983,816 different ways to pick the numbers. Counting groups like this is what combinations do. In this guide you'll learn the nCr formula, a fast shortcut, and how to tell combinations from permutations.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • nCr = n! ÷ (r! × (n − r)!) counts groups where order does not matter.
    • Shortcut: multiply r numbers counting down from n, then divide by r!.
    • nCr = nC(n − r). Choosing 3 to keep is the same as choosing 7 to leave out.
    • If order matters, use permutations (nPr) instead.
    In this guide
    1. 01What is a combination?
    2. 02Why do combinations matter?
    3. 03The formula
    4. 04How to calculate combinations step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is a combination?

    You have 5 friends and can invite 2 to the cinema. Inviting Asha and Ben is the same as inviting Ben and Asha. Because the order does not matter, this is a combination.

    The notation nCr, read 'n choose r', means the number of ways to choose r items from n.

    Why do combinations matter?

    Counting by hand works for small groups, but the numbers explode quickly. Combinations let you count millions of possible groups in a few seconds, which is the first step in working out odds and probabilities.

    There are 2,598,960 different five-card poker hands from a 52-card deck. You could never list them, but nCr counts them in one line.

    The formula

    nCr = n! ÷ ( r! × (n − r)! )
    SymbolWhat it meansExample
    nTotal items to choose from10 toppings
    rHow many you choose (0 to n)3 toppings
    r!Removes the orderings of each group3! = 6
    (n − r)!Cancels the items you did not pick7!
    nCrNumber of different groups120

    The r! on the bottom is the key idea. Every group of 3 can be ordered in 3! = 6 ways, but we only want to count it once.

    How to calculate combinations step by step

    1. 1Write down n and r. Check that r is between 0 and n.
    2. 2Count down r numbers from n and multiply them. For 10C3: 10 × 9 × 8 = 720.
    3. 3Work out r! For r = 3: 3 × 2 × 1 = 6.
    4. 4Divide. 720 ÷ 6 = 120. That is nCr.

    Now enter your own n and r in the calculator below and see the full working.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Statistics
    High School

    Combinations (nCr)

    Count how many ways r items can be chosen from n when order does not matter

    nCr = n! / (r! × (n - r)!)

    μ = 068.2% (±1σ)
    μ: 0 | σ: 1
    120
    120

    💡 Example

    Reference
    Inputs:n=5, r=2
    Result:10
    Open the full Combinations (nCr) calculator

    Common mistakes to avoid

    • Choosing r bigger than n. You cannot choose 7 items from 5. The calculator shows an error.
    • Forgetting to divide by r!. Without it you count each group many times.
    • Working out huge factorials in full. 49! is enormous. Cancel first with the shortcut.

    Tips and tricks

    Order matters?ExampleFormula
    CombinationNoTeam of 3 from 10nCr = 120
    PermutationYesGold, silver, bronze from 10nPr = 720
    • Link to permutations: nPr = nCr × r!. So 10P3 = 120 × 6 = 720.
    • nC0 and nCn are always 1. There is one way to pick nothing and one way to pick everything.
    • nC1 is always n. Picking one item from n can be done n ways.

    Where you'll use it in real life

    • Lotteries: 49C6 = 13,983,816 possible tickets.
    • Card games: 52C5 = 2,598,960 possible poker hands.
    • Teams and committees: choosing 4 players from a squad of 12.
    • Probability: the nCk part of the binomial probability formula.

    Quick summary

    Combinations count the groups you can choose when order does not matter: nCr = n! ÷ (r! × (n − r)!). The fastest way is to multiply r numbers down from n and divide by r!. Use the calculator above to find any nCr with every step shown.

    Worked example

    A pizza shop offers 10 toppings and a special deal lets you pick any 3. The order you name them does not change the pizza. How many different 3-topping pizzas are possible?

    1. 01nCr = n! / (r! × (n - r)!)
    2. 0210C3 = 10! / (3! × 7!)
    3. 0310C3 = 120

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What is the difference between nCr and nPr?

    nCr counts groups where order does not matter. nPr counts arrangements where order matters. nPr = nCr × r!, so nPr is always at least as big.

    What is nC0 or nCn?

    Both equal 1. There is one way to choose nothing and one way to choose everything.

    How many ways can you choose 6 numbers from 49?

    49C6 = 13,983,816. That is why the chance of winning such a lottery with one ticket is about 1 in 14 million.

    How many handshakes happen if 6 people all shake hands once?

    Each handshake is a pair, and order does not matter, so it is 6C2 = (6 × 5) ÷ 2 = 15 handshakes.

    #Statistics#High School#Combinations (nCr)
    Updated

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX