Skip to content

Permutation and Combination CalculatorNew

nPr, nCr and the with-repetition versions, exact to any size.

Runs in your browser · free · no sign-up

Combinations nCr (order ignored)
120
Permutations nPr (order matters)
720
With repetition, combinations
220
With repetition, permutations nʳ
1,000

nCr = n! ÷ (r!(n−r)!), nPr = n! ÷ (n−r)!. Exact big-integer maths — no floating-point rounding.

About the Permutation and Combination Calculator

Calculate permutations and combinations (nPr and nCr) with exact big-integer answers, plus the counts when repetition is allowed.

The question to ask is whether order matters. Choosing 3 students from 10 for a committee is a combination: 10C3 = 120. Giving those 3 students first, second and third prize is a permutation: 10P3 = 720. The tool shows both side by side so you can see that permutations are always r! times larger.

Two more counts cover repetition. Combinations with repetition, (n + r − 1)Cr, count things like choosing 3 scoops from 10 flavours where flavours can repeat. Permutations with repetition, nʳ, count PIN codes or passwords: a 4-digit PIN has 10⁴ = 10,000 possibilities.

All arithmetic uses exact big integers, so 52C5 = 2,598,960 poker hands is exact and even 1000C500 is computed without floating-point overflow. Very long results are shown in scientific form. Inputs are capped at 5,000 to keep the page fast.

How to use the Permutation and Combination Calculator

  1. 1Enter n, the number of items to choose from.
  2. 2Enter r, how many you pick.
  3. 3Read nCr, nPr and the repetition variants.

Key features

  • nCr and nPr side by side
  • With-repetition formulas
  • Exact big-integer results
  • Scientific form for huge answers

Practical uses

  • Probability and statistics homework
  • Lottery and card-game odds
  • Counting password or PIN possibilities

Tips and common mistakes

  • Probability = favourable combinations ÷ total combinations.
  • nC0 and nCn are always 1.
  • nCr equals nC(n−r): choosing 3 to keep is choosing 7 to leave.

Limitations

  • n up to 5,000.
  • Does not handle multisets with specific repeat counts.

Privacy

Everything you enter or open on this page is processed in your browser. uTooli does not receive, store or log it.

Frequently asked questions

What is the difference between permutation and combination?

Permutations count arrangements where order matters; combinations count selections where it does not.

What are the odds of winning a 6/49 lottery?

49C6 = 13,983,816, so one ticket has a 1 in about 14 million chance.

What is 0!?

1, by definition. That makes nC0 and nPn work out correctly.

How many 4-letter codes from 26 letters?

With repetition, 26⁴ = 456,976; without repetition, 26P4 = 358,800.

What is the difference between permutation and combination?

Permutations count arrangements where order matters; combinations count selections where it does not.

What are the odds of winning a 6/49 lottery?

49C6 = 13,983,816, so one ticket has a 1 in about 14 million chance.

Related tools

Prime Factorization CalculatorNewPrime factors in power form, prime check and number of divisors.
Random Number GeneratorNewPick random numbers in any range.
Average CalculatorNewMean, median, mode and standard deviation.
Significant Figures CalculatorNewCount sig figs and round any number to n significant figures.