Factorial Combination Calculator
Count combinations C(n,r) and permutations P(n,r) built from factorials, with n! shown, a full breakdown of n! / (r! × (n−r)!), and options for repetition and order.
🎯Real Combination Presets
📝Set and Selection Inputs
Whole number from 0 to 170. This is the size of the pool you choose from.
Whole number. Without repetition r must satisfy 0 ≤ r ≤ n.
Changing this keeps the mode selector in sync for you.
🔢Formula Symbols
📊Pascal Triangle nCr Small Values
| n \ r | r=0 | r=1 | r=2 | r=3 | r=4 | r=5 |
|---|---|---|---|---|---|---|
| n=1 | 1 | 1 | – | – | – | – |
| n=2 | 1 | 2 | 1 | – | – | – |
| n=3 | 1 | 3 | 3 | 1 | – | – |
| n=4 | 1 | 4 | 6 | 4 | 1 | – |
| n=5 | 1 | 5 | 10 | 10 | 5 | 1 |
| n=6 | 1 | 6 | 15 | 20 | 15 | 6 |
| n=7 | 1 | 7 | 21 | 35 | 35 | 21 |
🗂Comparison Grid: nCr vs nPr
| n | r | nCr (order out) | nPr (order in) | Ratio nPr/nCr = r! |
|---|---|---|---|---|
| 5 | 2 | 10 | 20 | 2 |
| 6 | 3 | 20 | 120 | 6 |
| 8 | 3 | 56 | 336 | 6 |
| 10 | 4 | 210 | 5,040 | 24 |
| 13 | 5 | 1,287 | 154,440 | 120 |
| 20 | 3 | 1,140 | 6,840 | 6 |
| 49 | 6 | 13,983,816 | 10,068,347,520 | 720 |
| 52 | 5 | 2,598,960 | 311,875,200 | 120 |
🎲Common Real-World Uses
| Use Case | Formula | n , r | Result |
|---|---|---|---|
| 5-card poker hands | C(52,5) | 52 , 5 | 2,598,960 |
| 6/49 lottery draw | C(49,6) | 49 , 6 | 13,983,816 |
| Powerball 5 of 69 | C(69,5) | 69 , 5 | 11,238,513 |
| Pick 3 race podium | P(8,3) | 8 , 3 | 336 |
| Arrange 5 books | P(5,5) = 5! | 5 , 5 | 120 |
| Committee from 12 | C(12,4) | 12 , 4 | 495 |
| Ice cream 3 of 8 | C(8+3−1,3) | 10 , 3 | 120 |
🔁Repetition Formulas Reference
| Scenario | Order | Repetition | Formula |
|---|---|---|---|
| Combination | Ignored | No | n! / (r!(n−r)!) |
| Permutation | Matters | No | n! / (n−r)! |
| Combination w/ repeat | Ignored | Yes | C(n+r−1, r) |
| Permutation w/ repeat | Matters | Yes | n^r |
⚙Full Formula Breakdown
📋Reference Values
| Expression | Meaning | Worked Example | Value |
|---|---|---|---|
| C(5,2) | Choose 2 of 5 | 120 / (2 × 6) | 10 |
| P(5,2) | Arrange 2 of 5 | 5 × 4 | 20 |
| C(10,3) | Choose 3 of 10 | 720 / 6 | 120 |
| P(8,3) | Podium of 8 | 8 × 7 × 6 | 336 |
| 5! | Order all 5 | 1×2×3×4×5 | 120 |
💡Practical Counting Tips
How many distinct poker hand are there? What are my chances of hitting a jackpot in the lottery? These all seem like difficult problems initially. In fact, they boil down to just one decision. Does the order matter?
For example, when picking a committee from your office, it doesn’t matter which person was selected first. It’s still the same set of people no matter what. That’s a combination. On the other hand, race results vary with order. When Alice win gold, silver and bronze aren’t the same thing as when she wins bronze, silver, gold. This distinction make all the difference for the math.
The Main Difference Between Combinations and Permutations
Understanding this can help you avoid mixing up two similar-looking number that represent something different. After that, all of the math happens behind the scenes using calculator. That’s where so many folks mess up, we don’t do text book examples in real life. To start, you’ll enter n, the size of your total pool. Then you input r, the number of items you’re going to select.
In most cases, each time you pull something out, there are fewer left. So if you draw cards and put them face down, you’ve got fewer choices available next time. Set it to not repeat item, and the calculator figures that into the math. But what if you is rolling dice or pulling numbers from a hat with replacement? No change, your pool hasn’t changed at all. Flip that switch on the tool and it flips the formula from Factorials to straight-up Exponents. It’s subtle but it keeps you from making a huge mistake in your calculations.
Order doesn’t matter in combinations. With the same inputs, combinations are always fewer then permutations. Say you want to select two flavors of ice cream out of ten total choices. Does it matter if you put strawberry or chocolate into bowl first? No… Both look like the exact same sundae. The combination formula strip out duplicates. It returns only one copy per unique arrangement.
Permutations retain each ordering as separate. Putting three book on a bookshelf is a permutation problem. The arrangement matters; each book’s location affect the way it appears. And this factor, r factorial, is always the gap separating these counts. That’s what makes permutations expand at such an accelerated rate compared to combinations: because permutations are simply the number of shuffles within your selection.
The factorials increases rapidly. For example, computers has to handle larger inputs in a special way. Only five factorial is 120. You could have wrote that down on a napkin. Fifty-two factorial is sixty-nine digits long. That is the number of different ways you could arrange a deck of cards. If you wrote it all out, it’d take up pages of just numbers.
Because factorials increase so quickly, the tool displays the big answers in scientific notation. It is hard to visualize numbers that large. But then you think about how each shuffled deck is probably unique across all of human history. It carries some weight.
The calculator doesn’t compute impossible intermediary steps because that wouldn’t work. Instead, it build the answer step by step.
It’s one thing to know about counting; it’s another to know about probability. They can both happen at once. We frequently mistake the two. Counting gives you the total number of outcomes. That figure is denominator of your probability fraction. For example, there are more than two million possible five card poker hands. Knowing this allow you to compute the chances of getting a royal flush. Otherwise, you lack any standard against which to gauge rarity. The breakdown section explain the relationship between the numerator and denominator. It takes the magic out of the solution. It spells out the math of the division.
You’ll notice that redundant orderings don’t matter. The r factorial term wipes those away. It’s not math for mathematicians. You don’t have to be a rocket scientist to use it. However, you do have to consider your situation ahead of time and type in what makes sense. Does moving one item around change anything? If so, you’re working on permutations. If not, then you’re working on combinations. Next, do you return items to the pile? When those answers pop up, it’s just arithmetic from there. It’s a precise number instead of a fuzzy feeling of odds.

