Permutation and Combination Calculator

Calculate permutations and combinations, with and without repetition, for probability and counting problems.

Combinations nCr (order ignored) 13,983,816
nCr = n! ÷ (r!(n − r)!); nPr = n! ÷ (n − r)!
Permutations nPr (order matters) 10,068,347,520
Combinations with repetition 25,827,165
Permutations with repetition 13,841,287,201
Odds of one specific combination 1 in 13,983,816

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Permutation and Combination Calculator does

Use this permutation and combination calculator to calculate permutations and combinations, with and without repetition, for probability and counting problems. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for calculating lottery odds. There are more free online tools on FreeToolStation.org.

How to use it

  1. Enter the total number of items and how many you are choosing.
  2. Use combinations when order does not matter, permutations when it does.
  3. The repetition rows apply when an item can be chosen more than once.
  4. The odds row expresses the combination count as a probability.

When to use it

  • Calculating lottery odds.
  • Counting possible passwords or PINs of a given length.
  • Working out how many teams can be formed from a group.

Common mistakes to avoid

  • Using permutations for a lottery — the draw order does not matter, so combinations are correct.
  • Forgetting repetition when characters can repeat, as in most password problems.

Frequently asked questions

Lottery odds: which figure do I use?

Combinations without repetition. For a 6-from-49 draw that is 13,983,816 possible tickets, so one ticket has a 1 in 13,983,816 chance of matching all six.

How many 4-digit PINs are there?

10,000. Digits can repeat and order matters, so it is permutations with repetition: 10⁴. Set n to 10 and r to 4 to see it.

Related tools

See all math & statistics calculators →