About Permutation and Combination Calculator
Enter how many items there are to choose from (n) and how many you pick (r). The calculator gives all four standard counts at once: combinations C(n, r) where order does not matter, permutations P(n, r) where it does, and both again when the same item may be picked more than once.
Every answer is exact. Small ones are shown in full; large ones in scientific notation with their digit count, and the complete digits of the count you choose are listed underneath, ready to copy. n and r can each go up to 10,000.
How it works
- P(n, r) = n! / (n − r)! counts ordered selections; C(n, r) = P(n, r) / r! counts unordered ones. Both are 0 when r is larger than n.
- With repetition allowed, ordered selections number nʳ, and unordered ones C(n + r − 1, r), the number of ways to fill r places from n kinds.
- The products are computed exactly with whole-number arithmetic of unlimited size, multiplying in balanced halves so that even C(10000, 5000) takes milliseconds.
- Inputs are kept in the page address, so a calculation can be bookmarked or shared as a link.
Questions
When should I use combinations rather than permutations?
Use combinations when only the group matters, such as lottery numbers or a committee. Use permutations when the order matters, such as a race podium or the digits of a PIN.
What does "with repetition" mean?
The same item can be picked more than once, as when choosing ice-cream scoops from n flavours (combinations) or setting a code where digits can repeat (permutations).
Why is the answer 0 when r is bigger than n?
Without repetition you cannot pick more items than there are, so there is no way to do it. With repetition r can be larger than n, and those counts are not 0.
Are large results rounded?
No. The headline figures switch to scientific notation once they pass 15 digits, but the exact value below lists every digit. n and r are limited to 10,000 each.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.