Combination & Permutation Calculator

A combination counts selections where the order does not matter, and a permutation counts arrangements where it does. Six numbers drawn in a lottery are a combination — 3-17-42 wins whichever order the balls appear — while gold, silver and bronze on a podium are a permutation, because swapping two runners gives a different result. Tell this calculator whether order matters and whether an item can be picked twice, and it applies the right one of the four standard formulas, shows the multiplication behind it, and reports all four counts side by side so the choice is visible rather than assumed.

  • Accurate
  • Real-time
  • Easy to use
  • 100% free

Combinations — C(10, 3)

120

Permutations — order matters, no repeats

720

Details

Updates as you type

A lottery draw ignores order. A gold, silver and bronze podium does not.

Drawing balls without replacement is "no". The digits of a PIN is "yes".

113.325.537.850+

The size of the pool. Whole numbers only — half an item cannot be chosen.

05101520+

How many you pick. Asking for more than n without repetition is allowed — the answer is simply zero ways.

Summary

Number of ways

120

Combinations — order ignored, no repeats
120
Permutations — order matters, no repeats
720
Combinations with repetition
220
Permutations with repetition
1,000
Orderings of one selection (3!)
6
Formula used
C(n, r) = n! / (r! × (n − r)!) → 10! / (3! × 7!)
  • Order is ignored here, so picking A then B is the same result as picking B then A. That is the lottery case: 3-17-42 wins whichever order the balls leave the machine.
How this is calculated
Items to choose from (n)
10
Items being chosen (r)
3
Order
Ignored — a set, so ABC and CBA are the same pick
Repetition
Not allowed — each item can appear at most once

Formula
C(n, r) = n! / (r! × (n − r)!)
Substituted
10! / (3! × 7!)
Multiplied out
(10 × 9 × 8) / (3 × 2 × 1)

Answer
120

Compare scenarios

See how one change moves the result

  • CurrentYour inputs as they stand120Current
  • Items to choose from (n)13286
  • Items being chosen (r)4210

Frequently asked questions

What is the difference between a combination and a permutation?

A combination is a selection and a permutation is an arrangement. If the order of the picks changes the outcome, you want a permutation; if it does not, you want a combination. The two are directly related: every combination of r items can be shuffled into r! different orders, so P(n, r) = C(n, r) × r!. Choosing 3 people from 10 for a committee gives 120 combinations, but assigning them to chair, secretary and treasurer gives 120 × 3! = 720 permutations.

When should I allow repetition?

Allow it when an item goes back into the pool after being picked, so the same item can appear more than once. A four-digit PIN allows repetition — 1111 is a valid PIN — so there are 10^4 = 10,000 of them. A lottery draw does not: once a ball is out of the machine it cannot come out again. Repetition with order ignored is the least familiar case; it counts multisets, such as the number of ways to pick three scoops of ice cream from ten flavours when two scoops may match, which is C(10 + 3 − 1, 3) = 220.

How many 5-card poker hands are there?

C(52, 5) = 2,598,960. A hand is a set of cards, so the order they are dealt in does not matter, and no card can be dealt twice, which makes it a plain combination. If the order did matter, the count would be P(52, 5) = 311,875,200 — exactly 5! = 120 times larger, since every hand can be dealt in 120 different sequences.

Why does this calculator sometimes show an approximate answer?

Because the counts outgrow the arithmetic. A JavaScript number holds whole numbers exactly only up to 9,007,199,254,740,991, and 21! already passes that. This calculator builds each result multiplicatively with a division at every step, which keeps it exact far longer than computing factorials would, and it checks every intermediate value along the way. When exactness is genuinely lost it says so and prints four significant figures, rather than showing a fifty-digit integer whose later digits are fabricated.

What happens if I choose more items than there are?

With repetition switched off, the answer is zero — there is genuinely no way to pick eight distinct cards from a five-card pile, so zero ways is the correct count rather than an error. With repetition allowed the question is perfectly ordinary: picking 8 items from a pool of 5 that can each be reused has plenty of answers, and the calculator gives them.

What are the odds of winning a 6-from-49 lottery?

There are C(49, 6) = 13,983,816 possible draws, so a single ticket has a 1 in 13,983,816 chance of matching all six. Order is ignored because the ticket wins on the set of numbers, and repetition is off because each ball is drawn once. If order did matter the count would be P(49, 6) = 10,068,347,520, which is 6! = 720 times larger.

You might also like