Permutation and Combination Calculator

nPr, nCr, and the versions with repetition, for any n up to 1000.

How it works

Enter n things and choose r of them. nCr counts selections where order does not matter, nPr counts arrangements where order does. The tool also shows the counts when repeats are allowed. Large values are exact.

The formula

nPr = n! / (n - r)!
nCr = n! / (r! (n - r)!)
with repeats: n^r arrangements, C(n + r - 1, r) selections

Worked example

Choose 3 of 10: 10P3 = 10 x 9 x 8 = 720 and 10C3 = 720 / 6 = 120.

Good to know

Common questions

What is the difference between permutation and combination?
Permutation counts ordered arrangements, combination counts unordered groups.
How do I count arrangements of a word with repeated letters?
Divide n! by the factorial of each repeated count. This tool does not do that directly.
What is 0!?
1.

More in Math, Science & Engineering.