Permutation Calculator

STATISTICS & PROBABILITY

Find the number of permutations — ways to arrange r items from n when order matters. Enter n and r.

Permutations
—
Order matters.

Usage Tip

Permutations are combinations times r factorial — multiply C(n,r) by the orderings of the chosen items.

THE MATH
P(n, r) = n! ÷ (n − r)!
Order matters
Permutations count arrangements where order matters, like race finishes or passwords.
There are always more permutations than combinations for the same n and r.
Enter whole numbers with r no greater than n.
The matching combination count is shown for comparison.
P(n, n) equals n factorial.
Practical Notes

A permutation is an arrangement in which order matters, so picking A then B is different from picking B then A. The number of ways to arrange r items chosen from n is n factorial divided by n minus r factorial. Choosing three runners for first, second and third place out of ten gives 10 times 9 times 8, or 720 outcomes.

If order does not matter, you want combinations instead, which divide the result by r factorial. Factorials grow very quickly, so even modest values of n produce huge numbers. The number of items chosen, r, cannot be larger than the number available, n, unless repetition is allowed, which is a different calculation.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.