Home / Math / Permutation Calculator

Permutation Calculator (nPr)

Instantly calculate the number of possible arrangements (permutations) for any set of items. Free, accurate, and easy to use.

👨‍🏫

Reviewed by Dr. Alex M., Ph.D.

Mathematics Professor & Data Scientist | Last Updated: November 2025

Understanding Permutations

Permutations relate to the act of arranging all the members of a set into some sequence or order, or if the set is already ordered, rearranging (reordering) its elements. The process of permuting is called a permutation.

The Permutation Formula (nPr)

The number of permutations of n distinct objects taken r at a time is given by the formula:

P(n, r) = n! / (n - r)!

Where:

Permutation vs. Combination

The main difference between permutations and combinations is whether the order matters.

💡 Expert Tip: Identifying the Problem

Look for keywords like "arrange", "order", "sequence", or "schedule" in word problems. These usually indicate that you need to calculate permutations. If the problem uses words like "select", "choose", or "group", it's likely a combination problem.

⚠️ Common Mistake: Repetition

The standard nPr formula assumes that repetition is not allowed (e.g., you can't pick the same person twice for a ranking). If repetition is allowed (like a lock code where numbers can repeat), the formula is simply nr.

Frequently Asked Questions

What is 0! (zero factorial)?

By definition, 0! is equal to 1. This is a convention that makes many mathematical formulas, including the permutation formula, work correctly.

How many ways can I arrange 5 books on a shelf?

This is a permutation where n=5 and r=5. The calculation is 5! / (5-5)! = 120 / 1 = 120 ways.

Why is nPr always larger than nCr?

Because for every combination (group of items), there are multiple ways to arrange them. For example, the combination {A, B} can be arranged as AB or BA (2 permutations).

References

1. "Permutation." Wikipedia. https://en.wikipedia.org/wiki/Permutation
2. "Permutations and Combinations." Khan Academy. https://www.khanacademy.org/math/statistics-probability