Enter your values
Type n (total items) and r (items chosen). Choose the mode: âNo repetitionâ for standard combinations, or âWith repetitionâ if items can be chosen multiple times.
Use this free Combination Calculator to compute nCr â the number of ways to choose r items from n items when order doesnât matter. Itâs the classic tool for probability, statistics, binomial coefficients, counting problems, and âhow many different groups can I make?â questions. Results are calculated with exact integer math (BigInt) and can be saved + shared.
Type n (total items) and r (items chosen). Choose the mode: âNo repetitionâ for standard combinations, or âWith repetitionâ if items can be chosen multiple times.
A combination is a way to choose a group of items from a larger set where the order of selection does not matter. That last part is the key. If you pick Alex, Sam, and Jordan to form a 3-person team, itâs still the same team if you list them as Jordan, Alex, Sam. Combinations are the backbone of many real-world questions that sound like âHow many different groups can I make?â
The classic notation is nCr, read as ân choose râ and written mathematically as \(\binom{n}{r}\). Here, n is the total number of distinct items available, and r is the size of the group youâre choosing. If you have 10 candidates and you want a committee of 3, the number of committees is \(\binom{10}{3}\).
The standard combinations formula is:
\(\binom{n}{r} = \frac{n!}{r!(n-r)!}\)
The exclamation mark means factorial. For any positive integer n, n! is the product of all integers from 1 to n. For example, \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\). Factorials show up because counting âall possible orderingsâ is naturally a multiplication process.
Why does the combination formula look like a factorial fraction? Think of it in three steps:
Sometimes you can pick the same âtypeâ more than once. For example, if a donut shop has 6 flavors and you are buying 3 donuts,
you might choose 2 chocolate and 1 glazed. Thatâs a combinations-with-repetition problem. The formula becomes:
\(\binom{n+r-1}{r}\)
Intuition: youâre still forming a group of size r, but duplicates are allowed, so the counting space is larger. This calculator supports both modes so you can handle standard âchoose a teamâ scenarios and âchoose with repeatsâ scenarios.
You have 10 people and you want a team of 3. Order doesnât matter, so use combinations:
\(\binom{10}{3} = \frac{10!}{3!7!} = \frac{10 \cdot 9 \cdot 8}{3 \cdot 2 \cdot 1} = 120\)
A standard 5-card poker hand is any group of 5 cards from a 52-card deck. Order doesnât matter:
\(\binom{52}{5} = 2,598,960\)
That number is why poker has so much variety. Two million+ possible hands means you can play a lot of games without repeating the same exact set of cards.
Choose 2 toppings from 9 options:
\(\binom{9}{2} = \frac{9 \cdot 8}{2 \cdot 1} = 36\)
Choose 3 donuts from 6 flavors (you can repeat flavors). Thatâs combinations with repetition:
\(\binom{6+3-1}{3} = \binom{8}{3} = 56\)
Many combination calculators compute factorials directly (n!, r!, (n-r)!) and then divide. That approach is fine for small inputs, but factorials explode extremely fast. Even \(100!\) is far bigger than what normal floating-point numbers can represent exactly. If youâve ever seen âInfinityâ or weird rounding, thatâs why.
This calculator uses exact integer arithmetic (JavaScript BigInt) and a multiplicative reduction method. Instead of computing n! and dividing huge numbers, it computes:
If you enable Show steps, youâll also see a human-readable breakdown of the formula used and the main numbers involved. Thatâs helpful for learning or writing solutions by hand.
Use âwith repetitionâ when your problem allows choosing the same kind of item multiple times, like selecting scoops of ice cream, distributing identical tokens into bins, or counting multisets. The math becomes \(\binom{n+r-1}{r}\) and is still computed exactly.
Huge values like \(\binom{1000}{500}\) are valid, but they produce extremely long integers (hundreds of digits). Thatâs not a âbugâ â itâs what the math actually is. For sharing, the calculator also shows a compact scientific-notation preview.
nCr means ân choose r.â It counts how many different groups of size r you can choose from n distinct items when the order of the group does not matter.
In a combination, order doesnât matter: {A, B, C} is the same as {C, B, A}. In a permutation, order matters: ABC and CBA are different. If your problem involves arranging or ordering, you want permutations (nPr).
Because when you count ordered selections (permutations), each unique group of r items is counted multiple times â once for every possible ordering. There are r! ways to rearrange r items, so dividing by r! removes those duplicates.
No. nCr is always a whole number because it counts a number of discrete groups. Even though the formula uses division, the final result is guaranteed to be an integer.
âWith repetitionâ means you can choose the same kind of item more than once. For example, choosing 3 candies from 5 flavors where you can pick multiple candies of the same flavor. The formula becomes \(\binom{n+r-1}{r}\).
In standard combinations (no repetition), choosing more items than exist doesnât make sense, so the result is undefined. This calculator will prompt you to correct the inputs. In âwith repetitionâ mode, r can be larger than n because repeats are allowed.
Yes. The calculator uses BigInt and simplification to keep results exact. Note that the output can be very long â thatâs expected. For convenience, youâll also get a compact scientific-notation preview.
MaximCalculator provides simple, user-friendly tools. Always double-check any important calculations for high-stakes decisions.