Try it with your numbers
Show every step
A permutation is an arrangement in which ABC and CBA count as different outcomes. The whole idea rests on the fundamental counting principle, and once you see that, the formula stops being something to memorize.
What is the permutations formula and where does it come from?
Picture numbered slots in a row, such as the places in a race. The first slot can be filled by any of items. Once one is used, the second slot has choices, the third has , and so on until the last slot, which has choices. Multiplying the choices gives the count.
The factorial form is just a compact way to write that product. Multiply and divide by and the extra factors are exactly what the fraction cancels. So the denominator is not a mysterious correction: it removes the arrangements of the items you never picked.
This also explains why . Arranging all items must give , and that equals only if . The formula assumes order matters, no item is reused, and . Break any of those and a different formula applies, which the rest of this page covers.
How do you calculate nPr step by step?

Skip the big factorials. Write factors starting at and count down. For that means three factors starting at 8:
The factorial route agrees: . The shortcut is the same calculation with the cancelling already done, and it avoids overflow on a calculator when is large. Most scientific calculators have an nPr key, and on a TI graphing calculator it sits in the MATH menu under PRB.
A quick sanity check: the answer must fall between and . Here and , and sits between them. If your result lands outside that window, a factor is missing or extra.
Here is a second worked example. A club of 12 members elects a president, a vice president and a treasurer. The roles differ, so order matters:
If the same 3 people were simply a committee with no roles, the order would vanish and the count would shrink to . That is the territory of combinations, and the roles-or-no-roles question is the quickest way to tell the two apart.
Quick check
Answer:
How do you count permutations with repeated letters?
When some items are identical, the plain formula overcounts. The fix comes from one clean idea. Pretend the identical items are secretly labelled, such as and in BOOK, and count all arrangements. Swapping the two O’s does not produce a new word, so every real arrangement was counted times. Divide:
For several repeated groups, divide by a factorial for each group. Take MISSISSIPPI: 11 letters, with I four times, S four times, P twice and M once.
Using 11! alone would overcount each word exactly times. Notice that M, which appears once, contributes a factor of and can be ignored.
The group counts in the denominator must add up to . For MISSISSIPPI, . If they do not, a letter was missed.
Which permutations formula fits the problem?

Most lost points come from choosing the wrong formula, not from arithmetic. Three questions sort nearly every problem:
- Does order matter? If not, it is a combination, and permutations vs combinations shows how to decide.
- Can the same item be used again, as with digits in a PIN?
- Are some of the items identical, as with repeated letters in a word?
| Situation | Count |
|---|---|
| Choose and order of different items, no reuse | |
| Arrange all different items | |
| Reuse allowed, slots | |
| Some items identical | |
| Around a circle, rotations the same |
Reuse allowed and identical items sound alike but are different ideas. A 4-digit PIN with repeats allowed has possibilities, because every slot has all 10 digits available. With no repeated digits it drops to . The PINs that disappear are exactly those with at least one repeated digit.
How many circular permutations are there?
Around a round table, rotating everyone one seat produces the same arrangement. Linear counting treats those rotations as different, so it counts each seating exactly times. Divide by :
For 6 people, , which equals . Another way to see it: seat one person anywhere to fix the reference point. The other 5 then fill the remaining seats in ways.
Two traps matter here. If the seats are numbered or distinguishable (a table with a head, or chairs with name cards), rotations are no longer identical and the answer is again. And if the circle can be flipped over, as with a bracelet or necklace of distinct beads, each arrangement and its mirror image are the same, so divide by 2 once more. Five distinct beads on a bracelet give (this flip rule applies when there are at least 3 beads).
Quick check
Answer:
How do you handle permutations with restrictions?
Restrictions break the simple product, but three tactics cover almost every case:
- Fill the most restricted slot first, then the rest.
- Glue items that must stay together into one block, then arrange the block internally.
- Count everything, then subtract the forbidden cases (the complement).
Take 3-digit numbers from the digits 0 to 5 with no repeats. The first digit cannot be 0, so fill it first: choices. The second slot has left (0 is now allowed), and the third has . That gives . The complement confirms it: all arrangements, minus the that start with 0, leaves .
Try this: Seat 4 people in a row so that Dana is not in the first seat. Count it twice, once with the restricted-slot-first method and once with the complement. Both should give the same number.
Now a glued example. Five people stand in a row, and A and B must be adjacent. Treat AB as one block, so there are 4 units to arrange: . The block itself can be AB or BA: . Total: . People who must not be adjacent are the complement: .
How do you solve for n when nPr is given?
Sometimes the answer is known and is missing. For , expand the product: . Rearranged, that is a quadratic:
So or . A count of items cannot be negative, so . Check: . If the factoring is not obvious, the quadratic formula practice problems cover the same technique.
A faster mental method works for small . You are looking for consecutive descending whole numbers with the given product. For , think of , so . Checking factor pairs near the cube root of the target finds the starting number quickly.
This also answers the question about negatives and fractions. Factorials are defined for whole numbers , so and must be whole numbers with . Negative or fractional values have no meaning as item counts, and a negative root of the quadratic must be discarded. When with no reuse, the count is .
How do permutations connect to combinations and probability?
Every group of items can be ordered in ways, so permutations are combinations multiplied by the orderings of each group:
Check with , : and .
, but permutations do not behave that way: while .
Permutations also drive basic probability when outcomes are equally likely. Suppose 8 runners finish in a random order. Exactly one finishing order puts three named runners in gold, silver and bronze, out of possible podiums, so the chance is . If the order among those three does not matter, podiums qualify, giving , which equals . The same event, counted with or without order, gives the same probability as long as numerator and denominator use the same convention.
Quick check
Answer:
Where else do permutations show up in math?
Determinants are built from permutations. The determinant of an matrix is a sum over all ways to pick one entry from each row and column, with each term given a plus or minus sign. A 2×2 matrix has terms, which is why the 2×2 determinant is . A 3×3 matrix has terms, the three positive and three negative products you meet in the 3×3 determinant.
The sign of each term depends on how many pairs are out of order (inversions) in the arrangement. A fully reversed list of items has the most inversions, , which is the sum from the arithmetic series formula.
Factorials grow absurdly fast, so logs help you gauge size. Since a log of a product is a sum of logs (see the logarithm rules), , so has 19 digits. A shuffled 52-card deck has about orderings, which is why a well-shuffled deck has almost certainly never occurred before in history. The same counting underlies passwords, scheduling and cipher design.
Practice problems
0 of 5 solved
- Evaluate .
Answer:
Write three factors starting at 9: . Multiply: , then . - Ten runners enter a race. In how many ways can gold, silver and bronze medals be awarded (no ties)?
Answer:
Order matters because the medals differ. Count . That equals . - How many different arrangements of the letters in LETTER are there?
Answer:
LETTER has 6 letters, with E twice and T twice. Use . Then . - How many 3-digit even numbers can be made from the digits 1, 2, 3, 4, 5, 6 if no digit repeats?
Answer:
Fill the restricted slot first: the last digit must be 2, 4 or 6, so choices. The other two slots use the remaining 5 digits in order: . Total: . - Seven people stand in a line. Ana and Ben must not stand next to each other. How many line-ups are possible?
Answer:
Total line-ups: . Line-ups with Ana and Ben together: glue them into one block, so . Subtract: .
Common questions
What is the formula for permutations?
The number of ordered arrangements of items chosen from different items is . It is the same as multiplying descending factors starting at . Arranging all items gives .
What is the difference between a permutation and a combination?
A permutation counts selections where order matters, so ABC and CBA are different. A combination ignores order, so they are the same selection. Each combination of items corresponds to permutations, which is why .
Why does 0! equal 1?
There is exactly one way to arrange zero items: do nothing. It also keeps the formula consistent, because arranging all items must give , which only works if .
How do you find permutations when some letters repeat?
Count all arrangements as if every letter were different, then divide by for each group of identical letters. For BOOK this gives .
How many ways can n people sit around a circular table?
If only the seating relative to the others matters, there are ways, because rotating everyone gives the same arrangement. If the seats are numbered or distinguishable, the answer is .
Can r be larger than n in a permutation?
Not when items cannot be reused. You cannot fill 5 ordered slots from 3 different items, so the count is . If reuse is allowed, such as digits in a PIN, the count is and can be as large as you like.