Updated on April 17th, 2026

Combination Calculator

Created By Jehan Wadia

C(n, r) = n!r! × (n − r)!
Total objects in the set (0–999999)
Objects chosen from the set
Order doesn't matter → Combinations
No repetition
Standard mode (all items unique)

C(10, 3) — Combinations without repetition
120

Formula Used

n! / (r!(n-r)!)

n value

10

r value

3

Result Digits

3

Step-by-Step Solution

Step 1: Identify values: n = 10, r = 3
Step 2: Apply formula: C(n, r) = n! / (r! × (n − r)!)
Step 3: Calculate: C(10, 3) = 10! / (3! × 7!)
Step 4: = 3628800 / (6 × 5040)
Step 5: = 3628800 / 30240
Result: 120

Visual Illustration

Showing 3 selected (blue) out of 10 total objects

Sample Selections (showing first 100 of 120)

C(n, r) for r = 0 to 10 with n = 10


Introduction

A combination is a way of choosing items from a group where the order does not matter. For example, if you pick 3 fruits from a basket of 10, it doesn't matter which fruit you grab first — you still end up with the same group of 3. The combination formula, C(n, r) = n! / (r! × (n − r)!), tells you exactly how many different groups you can make.

This Combination Calculator lets you quickly find the number of possible selections from any set. Enter your total number of objects (n) and how many you want to choose (r), and the tool does the rest. It supports standard combinations, combinations with repetition, permutations (where order does matter), and even multiset permutations. Every calculation comes with a step-by-step solution, a visual illustration, sample selections, and a chart so you can clearly see how the results change as you adjust your values.

How to Use Our Combination Calculator

Enter the total number of objects and how many you want to choose, then adjust the settings to match your problem. The calculator will give you the exact count of possible selections, a step-by-step solution, a visual illustration, and a chart.

n (total number of objects): Type the total number of items in your set. This is the full group you are picking from. It must be a whole number from 0 to 999,999.

r (number chosen): Type how many items you want to pick from the set. This must be a whole number. For combinations and permutations without repetition, r cannot be larger than n.

Does order matter?: Turn this toggle on if the order of your chosen items matters. When off, the calculator finds combinations (where {1, 2, 3} is the same as {3, 2, 1}). When on, it finds permutations (where order counts and those would be two different results).

Is repetition allowed?: Turn this toggle on if you are allowed to pick the same item more than once. Leave it off if each item can only be chosen one time.

Items have limited repetitions: Turn this toggle on for multiset permutations, where each item can appear a set number of times. When active, the calculator will show an input field for each item so you can type how many copies of that item exist. This is useful for problems like counting the number of ways to arrange the letters in a word that has repeated letters.

What Are Combinations?

A combination is a way of picking items from a group where the order does not matter. For example, if you choose 3 fruits from a basket of 10, it doesn't matter whether you pick the apple first or last — you still end up with the same group of 3 fruits. This is different from a permutation, where the order does matter.

The Combination Formula

To find the number of combinations, we use this formula:

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

Here, n is the total number of items you can choose from, and r is the number of items you are choosing. The exclamation mark (!) means factorial, which is the result of multiplying a number by every whole number below it down to 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

Combinations vs. Permutations

The key difference between combinations and permutations is whether order matters. Choosing players A, B, and C for a team is the same combination no matter what order you list them in. But if you're assigning them to first place, second place, and third place, the order matters — that's a permutation. Permutations always produce a larger number than combinations because each unique group can be arranged in multiple ways. You can explore ordered arrangements in more detail with our Permutation Calculator.

Repetition: Allowed or Not?

Sometimes you're allowed to pick the same item more than once. This is called combinations with repetition. For example, if you're ordering 3 scoops of ice cream and you can repeat flavors, the formula changes to:

C'(n, r) = (n + r − 1)! / (r! × (n − 1)!)

When repetition is not allowed, each item can only be chosen once, and you use the standard combination formula shown above.

Multiset Permutations

A multiset permutation applies when you have a collection of items where some are identical. For instance, if you want to find how many different ways you can arrange the letters in the word "APPLE," you have repeated letters (P appears twice). The formula is:

n! / (n₁! × n₂! × … × nₖ!)

Here, n is the total number of items and n₁, n₂, and so on are the counts of each repeated item.

Real-World Examples

Connections to Other Math Concepts

Combinatorics is closely related to many areas of mathematics and statistics. When analyzing the results of combination problems, you may need to compute summary statistics such as the standard deviation or use the Z score to understand probability distributions. If you're working with data sets generated by combinatorial analysis, the IQR Calculator can help you identify spread and outliers. Additionally, understanding percentages and percent change is often useful when comparing the likelihood of different combinatorial outcomes, and tools like the Percent Error Calculator can help when verifying experimental results against theoretical combinatorial predictions.

How to Use This Calculator

Enter your value for n (the total number of objects) and r (the number you are choosing). Then use the toggle switches to set whether order matters, whether repetition is allowed, or whether you're working with a multiset. Press Calculate to see the result, a step-by-step breakdown of the math, a visual illustration, sample selections, and a chart showing how the result changes as r varies.


Frequently Asked Questions

What is the difference between n and r in the combination formula?

n is the total number of items in your group. r is how many items you want to pick from that group. For example, if you have 10 books and want to choose 3, then n = 10 and r = 3.

What does the exclamation mark (!) mean in math?

The exclamation mark means factorial. It tells you to multiply a number by every whole number below it down to 1. For example, 4! = 4 × 3 × 2 × 1 = 24. Also, 0! is always equal to 1.

Why is my result so large?

Combinations and permutations grow very fast as n and r get bigger. Even small increases in n can make the result jump by thousands or millions. This calculator supports very large numbers using BigInt math, so it can handle results with many digits.

What happens if r is larger than n?

For combinations and permutations without repetition, r cannot be larger than n. You can't pick more items than you have. The calculator will show a warning if you try this. However, if repetition is allowed, r can be larger than n because you can reuse items.

What is C(n, 0) and why does it equal 1?

C(n, 0) always equals 1. This is because there is exactly one way to choose nothing from a group — you simply pick no items at all. The formula confirms this since 0! = 1.

Can I use this calculator for lottery odds?

Yes. Lotteries typically ask you to pick r numbers from a pool of n numbers where order does not matter and repetition is not allowed. Enter your lottery's total numbers as n and how many you pick as r, then press Calculate. The result tells you how many possible tickets exist.

When should I turn on the repetition toggle?

Turn on repetition when you are allowed to pick the same item more than once. For example, if you are choosing 3 scoops of ice cream and you can pick the same flavor twice or even three times, that uses repetition. If each item can only be picked once, leave it off.

When should I use the multiset option?

Use the multiset option when you have items that repeat a specific number of times and you want to count how many different arrangements are possible. A common example is finding how many ways to rearrange letters in a word like "MISSISSIPPI" where some letters appear more than once.

Is C(n, r) the same as C(n, n − r)?

Yes. C(n, r) always equals C(n, n − r). This is because choosing r items to include is the same as choosing n − r items to leave out. For example, C(10, 3) = C(10, 7) = 120.

What is the largest value of n this calculator can handle?

You can enter n up to 999,999. The calculator uses BigInt arithmetic so it can compute exact results even when the numbers have thousands of digits. Very large inputs may take a moment to calculate.

How do I know if I need combinations or permutations?

Ask yourself: does the order of my choices matter? If picking A then B is the same as picking B then A, use combinations. If A then B is different from B then A (like ranking, seating, or passwords), use permutations.

What does the chart at the bottom show?

The chart shows the result for every value of r from 0 up to n (or up to 30, whichever is smaller), while keeping n the same. This helps you see how the number of combinations or permutations changes as you pick more or fewer items.

Why does the sample selections section sometimes disappear?

The calculator only lists sample selections when n and r are both 20 or less. For larger values, the number of possible selections is too big to display individually, so the section is hidden.

Can this calculator find the number of ways to form a committee?

Yes. Forming a committee is a classic combination problem. If you have 20 people and need a committee of 5, enter n = 20 and r = 5 with order off and repetition off. The result, C(20, 5) = 15,504, is the number of possible committees.

What is the formula for permutations with repetition?

The formula is nr, which means n multiplied by itself r times. For example, if you have 10 digits and want a 4-digit PIN where digits can repeat, the answer is 104 = 10,000.


Related Calculators

Permutation Calculator

Visit Permutation Calculator