nPr Formula — Permutations, Derivation, Examples

#Math Formula
TL;DR
The nPr formula counts how many ordered arrangements of rr objects you can make from nn distinct objects: nPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}. This article derives that formula from the counting principle, defines every symbol, shows where order makes a permutation different from a combination, and works six examples from a simple line-up to a locked-position arrangement.
BT
Bhanzu TeamLast updated on June 22, 20266 min read

What Is the nPr Formula?

A permutation is an ordered selection. The nPr formula gives the number of ways to pick and arrange rr items from nn distinct items, where rearranging the chosen items counts as a new result.

;nPr=n!(n−r)!;\boxed{;^nP_r = \frac{n!}{(n-r)!};}

Symbol

Meaning

Notes

nn

Total number of distinct objects available

A positive integer

rr

Number of objects selected and arranged

0≤r≤n0 \le r \le n

n!n!

nn factorial — the product n(n−1)(n−2)⋯1n(n-1)(n-2)\cdots 1, a shrinking sequence of factors

0!=10! = 1 by definition

nPr^nP_r

Number of ordered arrangements

Also written P(n,r)P(n,r) or nPr_nP_r

The condition that the nn objects are distinct matters — the formula assumes no repeats among the items, and that an item, once placed, is not used again. Permutations are the ordered half of combinatorics; the unordered half is counted by nCr, the combination formula.

How Is the nPr Formula Derived?

The derivation comes straight from the fundamental counting principle: if one choice has xx options and the next has yy, the two together have x×yx \times y outcomes. Filling rr ordered positions from nn objects works the same way.

  • The first position can be filled nn ways.

  • The second position then has n−1n - 1 objects left.

  • The third has n−2n - 2, and so on.

  • The rr-th (last) position has n−r+1n - r + 1 objects left.

Multiply the choices:

nPr=n(n−1)(n−2)⋯(n−r+1).^nP_r = n(n-1)(n-2)\cdots(n-r+1).

That product is the top of a factorial cut short after rr terms. To write it cleanly, multiply and divide by (n−r)!(n-r)!:

nPr=n(n−1)⋯(n−r+1)⋅(n−r)!(n−r)!=n!(n−r)!.^nP_r = \frac{n(n-1)\cdots(n-r+1)\cdot(n-r)!}{(n-r)!} = \frac{n!}{(n-r)!}.

The (n−r)!(n-r)! in the denominator is exactly the part of n!n! you do not use — the objects you never placed. That is the whole formula, and it is why nPn=n!0!=n!^nP_n = \frac{n!}{0!} = n!: arranging all nn objects uses every factor.

Examples of the nPr Formula

Example 1

Evaluate 10P4^{10}P_4.

10P4=10!(10−4)!=10!6!=10×9×8×7=5040.^{10}P_4 = \frac{10!}{(10-4)!} = \frac{10!}{6!} = 10 \times 9 \times 8 \times 7 = 5040.

Final answer: 50405040.

Example 2

How many 3-letter arrangements can be made from the letters of the word MATH (no repeats)?

Wrong attempt. A student thinks "choose 3 letters from 4" and computes 4!3!,1!=4\frac{4!}{3!,1!} = 4 using the combination formula. Check it against a small case: from M, A, T the arrangements MAT and TAM are clearly different words, yet the combination count treats them as one. Order matters here, so a combination undercounts.

Correct. Use the permutation formula:

4P3=4!(4−3)!=4!1!=24.^4P_3 = \frac{4!}{(4-3)!} = \frac{4!}{1!} = 24.

Final answer: 2424 arrangements.

Example 3

In how many ways can 8 runners finish 1st, 2nd, and 3rd in a race?

Three ordered positions from eight runners:

8P3=8!5!=8×7×6=336.^8P_3 = \frac{8!}{5!} = 8 \times 7 \times 6 = 336.

Final answer: 336336 ways.

Example 4

How many ways can 6 books be arranged on a shelf?

All six are arranged, so r=n=6r = n = 6:

6P6=6!0!=720.^6P_6 = \frac{6!}{0!} = 720.

Final answer: 720720.

Example 5

How many 4-digit numbers can be formed from the digits 1–9 with no digit repeated?

Nine distinct digits, four ordered positions:

9P4=9!5!=9×8×7×6=3024.^9P_4 = \frac{9!}{5!} = 9 \times 8 \times 7 \times 6 = 3024.

Final answer: 30243024.

Example 6

Five people sit in a row of five seats, but two specific friends must sit at the two ends. How many arrangements are possible?

Fix the two friends at the ends: they can swap, giving 2P2=2^2P_2 = 2 ways. The remaining three people fill the three middle seats in 3P3=6^3P_3 = 6 ways. By the counting principle, total =2×6=12= 2 \times 6 = 12.

Final answer: 1212 arrangements.

Why Permutations Matter — From Passwords to PIN Pads

Counting ordered arrangements was forced into existence by problems where sequence is the answer, not a detail.

  • Security. The number of possible PINs, passwords, and lock combinations is a permutation count — a 4-digit PIN with no repeats has 10P4=5040^{10}P_4 = 5040 possibilities, which is exactly why short codes are weak.

  • Scheduling and rankings. Seating charts, tournament brackets, race results, playlist orders — anything where "who is first" changes the outcome — is permutation territory.

  • Genetics and biology. The order of bases along a DNA strand is a permutation problem; sequence determines the gene.

  • Cryptography. Modern ciphers rest on how astronomically many ways symbols can be ordered, so that guessing the right order is infeasible.

The destination, in a later probability chapter, is computing the odds of a specific arrangement: once you can count the arrangements, the probability of any one of them is one divided by that count. Counting cleanly is also what makes other reference formulas tractable — the same factorial machinery sits inside the sum of arithmetic sequence formula when you count terms before adding them.

Tripping Points to Avoid

Mistake 1: Using nPr when order does not matter

Where it slips in: Problems about committees, teams, handshakes, or lottery picks — where rearranging the chosen people changes nothing.

Don't do this: Apply nPr^nP_r to "choose 3 students for a committee from 10." A committee of {A, B, C} is the same committee as {C, B, A}.

The correct way: When order is irrelevant, use the combination formula nCr=n!r!,(n−r)!^nC_r = \frac{n!}{r!,(n-r)!}.

Mistake 2: Mishandling 0!0!

Where it slips in: Cases where r=nr = n, so the denominator is 0!0!.

Don't do this: Treat 0!0! as 00, which would make nPn^nP_n undefined.

The correct way: 0!=10! = 1 by definition. So nPn=n!0!=n!^nP_n = \frac{n!}{0!} = n!, which matches the count of arranging all nn objects.

Mistake 3: Forgetting the "distinct objects, no repetition" assumption

Where it slips in: Words with repeated letters (like BALLOON) or problems allowing repeats.

Don't do this: Apply plain nPr^nP_r to arrange the letters of a word with duplicates.

The correct way: When items repeat, divide by the factorial of each repeat count, or use the with-repetition rule nrn^r when repeats are allowed. The bare nPr formula assumes all nn items are different and none is reused.

Mistake 4: Subtracting in the wrong place

Where it slips in: Plugging into n!(n−r)!\frac{n!}{(n-r)!} in a hurry.

Don't do this: Compute (n−r)!n!\frac{(n-r)!}{n!} or n!r!\frac{n!}{r!} by misremembering which factorial sits where.

The correct way: The bigger factorial n!n! is on top; the denominator is (n−r)!(n-r)!.

Conclusion

  • The nPr formula counts ordered arrangements of rr from nn distinct objects: nPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}.

  • It is derived from the counting principle: nn choices for the first place, n−1n-1 for the second, down to n−r+1n-r+1 for the last.

  • Use nPr when order matters and nCr when it does not — swapping two chosen items being a new result is the test.

  • The most common mistake is using nPr for an unordered selection like a committee.

  • Permutations underpin passwords, schedules, rankings, and the probability of a specific arrangement.

Practice These Three Before Moving On

  1. Evaluate 7P2^7P_2.

  2. How many ways can 5 students be seated in 3 chairs?

  3. How many 5-letter arrangements use the distinct letters of PRIME?

Answer to Question 1: 4242. Solve Questions 2 and 3 with n!(n−r)!\frac{n!}{(n-r)!}; if you are unsure whether order matters, return to Mistake 1.

Want a live Bhanzu trainer to walk your child through more nPr formula problems? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the nPr formula?
nPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!} — the number of ways to arrange rr objects chosen from nn distinct objects, where order matters.
What does nPr mean?
It means the number of permutations (ordered arrangements) of rr items selected from nn items. The PP stands for permutation.
What is the difference between nPr and nCr?
nPr counts arrangements (order matters); nCr counts selections (order does not). They are linked by nCr=nPrr!^nC_r = \frac{^nP_r}{r!}.
Why is 0!0! equal to 1?
Because the formula forces it: nPn^nP_n must equal n!n!, and that only works if the denominator 0!=10! = 1. It is the empty product, which is defined as 11.
Can r be larger than n in nPr?
No. You cannot arrange more objects than you have, so rr must satisfy 0≤r≤n0 \le r \le n.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →