Combination Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free combination calculator. Find combinations (nCr) and permutations (nPr), with or without repetition, as exact whole numbers of any size.

Combinations (nCr)
0
Permutations (nPr)
0
Combinations with repetition
0
Permutations with repetition (nʳ)
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the combination calculator

  1. Enter n: the total number of items to choose from.
  2. Enter r: how many you choose.
  3. Read the results. The combination calculator shows four counts at once: combinations (nCr), permutations (nPr), combinations with repetition and permutations with repetition (nʳ).

Every answer is an exact whole number, worked out with big-integer arithmetic, so even counts with hundreds of digits are precise. Very long answers are shortened on screen with the digit count shown.

Combinations vs permutations

The key question is: does the order matter?

  • Combinations (order doesn't matter): choosing 3 people for a committee. Ann, Ben and Cara is the same committee as Cara, Ann and Ben.
  • Permutations (order matters): awarding gold, silver and bronze to 3 of 10 runners. Ann-Ben-Cara is a different result from Cara-Ann-Ben.

Because every combination can be arranged in several orders, there are always at least as many permutations as combinations. For 3 chosen from 10, there are 120 combinations but 720 permutations: each committee of 3 can be ordered in 3! = 6 ways, and 120 × 6 = 720.

The formulas

Combinations: nCr = n! ÷ (r! × (n − r)!)

Permutations: nPr = n! ÷ (n − r)!

where n! (n factorial) is n × (n − 1) × … × 2 × 1. The factorial calculator works out factorials on their own.

For 52 cards choose 5 (a poker hand):

  • nCr = 52! ÷ (5! × 47!) = 2,598,960 possible hands.
  • nPr = 52! ÷ 47! = 311,875,200 ordered deals of 5 cards.

The combination calculator doesn't compute the huge factorials directly; it multiplies and divides step by step, which keeps every intermediate number exact and fast.

With repetition

Sometimes the same item can be chosen more than once.

Permutations with repetition: nʳ. A 4-digit PIN using digits 0 to 9 has 10⁴ = 10,000 possibilities. A password of 8 lowercase letters has 26⁸ = 208,827,064,576.

Combinations with repetition: (n + r − 1)C r. Choosing 3 scoops from 5 ice cream flavours, where you can repeat flavours and order doesn't matter, gives (5 + 3 − 1)C3 = 7C3 = 35 options. This is sometimes called "stars and bars".

Lottery odds

Lotteries are combinations: the order the balls are drawn doesn't matter. In a 6-from-49 lottery, there are 49C6 = 13,983,816 possible tickets, so the chance of matching all six with one ticket is 1 in 13,983,816.

Buying 10 tickets makes it 10 in 13,983,816, about 1 in 1.4 million. The combination calculator is a good reality check before spending on lottery tickets.

Everyday examples

  • Teams and committees: how many ways to pick 4 people from 12 for a project: 12C4 = 495.
  • Menus: choosing 2 sides from 8: 8C2 = 28.
  • Passwords and codes: a 6-digit code has 10⁶ = 1,000,000 possibilities; with letters and digits (36 characters), 36⁶ ≈ 2.18 billion. The password generator uses this kind of maths to make strong passwords.
  • Seating plans: arranging 6 guests in 6 seats: 6P6 = 6! = 720.
  • Race results: top 3 from 12 runners, in order: 12P3 = 1,320.
  • Sports fixtures: in a league of 20 teams where everyone plays everyone once, there are 20C2 = 190 matches.
  • Testing: how many pairs of features to test together: nC2.

Choosing the right formula

Ask two questions:

  1. Does order matter? Yes → permutations. No → combinations.
  2. Can items repeat? Yes → "with repetition". No → the standard formulas.
No repetition With repetition
Order matters nPr nʳ
Order doesn't matter nCr (n + r − 1)Cr

Useful facts

  • nC0 = nCn = 1: there's one way to choose nothing, and one way to choose everything.
  • nCr = nC(n − r): choosing 3 to include is the same as choosing the other n − 3 to leave out. 10C3 = 10C7 = 120.
  • nC1 = n.
  • Pascal's triangle: each number is the sum of the two above it, and row n lists nC0, nC1, …, nCn.
  • If r > n without repetition, there are 0 ways. The combination calculator says so.

Probability

Combinations are the foundation of probability. The chance of an outcome = (number of ways it can happen) ÷ (total number of possible outcomes). The chance of being dealt a flush in poker is 5,108 ÷ 2,598,960 ≈ 0.197%. For statistical probabilities from a normal distribution, see the z-score calculator.

Tips

  • Read the question carefully: "arrangements", "orders", "rankings" usually mean permutations; "groups", "selections", "hands" usually mean combinations.
  • Use the exact answers for probabilities, then divide.
  • Big numbers are normal: counts grow very fast.

Privacy and accuracy

Your numbers stay in your browser. The combination calculator uses exact big-integer arithmetic, with no rounding, approximation or AI, so results are always exact and always the same. Students, teachers, game designers, statisticians and lottery players use it free on any device.

Pascal's triangle

Pascal's triangle is a quick way to see small combinations. Each row starts and ends with 1, and every other number is the sum of the two above it:

  • Row 0: 1
  • Row 1: 1 1
  • Row 2: 1 2 1
  • Row 3: 1 3 3 1
  • Row 4: 1 4 6 4 1
  • Row 5: 1 5 10 10 5 1

The numbers in row n are nC0, nC1, …, nCn. For example, 5C2 = 10. The combination calculator gives any value directly, even for rows far too large to draw.

The binomial theorem

Combinations also appear when you expand (a + b)ⁿ: the coefficients are the numbers in row n of Pascal's triangle. (a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴. In probability, they give the binomial distribution: the chance of exactly k successes in n independent trials is nCk × p^k × (1 − p)^(n − k). Ten coin flips land exactly five heads with probability 10C5 ÷ 2¹⁰ = 252 ÷ 1,024 ≈ 24.6%.

Counting in business

Counting combinations helps with practical planning: how many two-person pairings in a team of 8 for mentoring (8C2 = 28), how many product bundles of 3 from 15 items (455), or how many test cases cover every pair of 6 settings. The combination calculator turns each question into an exact count.

Quick reference

  • n: the number of items to choose from.
  • r: the number chosen.
  • nCr: combinations, order doesn't matter.
  • nPr: permutations, order matters.
  • n!: factorial, n × (n − 1) × … × 1.
  • With repetition: items can be chosen more than once.

Common mistakes

  • Using permutations for a lottery or a poker hand, where order doesn't matter.
  • Using combinations for a race result or a password, where order does matter.
  • Forgetting repetition: a PIN can repeat digits, so it's nʳ, not nPr.

When unsure, list a few small cases by hand and check them against the combination calculator with small numbers before using big ones.

How fast the numbers grow

Combinations grow very quickly as n increases. Choosing 5 from 20 gives 15,504 options; 5 from 50 gives 2,118,760; 5 from 100 gives 75,287,520. Permutations grow faster still, because every group can be arranged in many orders. That rapid growth is why brute-force searches become impractical, why strong passwords use many characters, and why lotteries are so hard to win. The combination calculator works with exact whole numbers, so even when the answer has dozens of digits, every digit is correct and you can use it directly in a probability calculation.

Using results in probability

To turn a count into a probability, divide the number of ways your event can happen by the total number of outcomes. Both numbers usually come straight from the combination calculator. For example, the chance of a five-card hand containing all four aces is 48 ÷ 2,598,960, because there are 48 ways to choose the fifth card.

A worked example

A teacher wants to split a class of 52 into study groups and illustrate counting with cards. She enters n = 52 and r = 5 into the combination calculator.

It shows 2,598,960 combinations: the number of different five-card poker hands. The permutations figure, 311,875,200, counts the same cards dealt in order. She points out that 311,875,200 ÷ 2,598,960 = 120 = 5!, the number of ways to order 5 cards.

For the lottery lesson, she enters 49 and 6: 13,983,816 combinations. A student asks about choosing 3 of 10 class captains for different roles; with n = 10 and r = 3, that's 720 ordered choices but only 120 groups.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Frequently asked questions

What is the difference between a combination and a permutation?

In a combination, order doesn't matter; in a permutation, it does. The combination calculator shows both.

How do I calculate nCr?

nCr = n! ÷ (r! × (n − r)!). For 5 choose 2: 120 ÷ (2 × 6) = 10.

How many 5-card poker hands are there?

2,598,960.

What are the odds of winning a 6/49 lottery?

1 in 13,983,816 with one ticket.

What is combination with repetition?

Choosing items where each can be picked more than once and order doesn't matter: (n + r − 1)Cr.

Is the combination calculator free?

Yes, completely free, with no sign-up.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep