Permutations

Permutations count the number of ways to arrange a set of objects in a specific order, where changing the order creates a different arrangement.

P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!}

Solve a problem with Permutations

Type the problem. The solver will use Permutations where Permutations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Permutations takes
nn
rr
Permutations
SymbolMeaning
nnThe total number of objects available to choose from; must be a non-negative integer, and if treated as the number of items to arrange rather than the total available, the result will be incorrect.
rrThe number of objects you are selecting and arranging; must be a non-negative integer not exceeding nn, and if r>nr > n, the formula is undefined because you cannot arrange more items than you have available.

When to use it

Use permutations when you need to count arrangements where order matters and you're selecting from a larger set.

Level

Usually taught in: Algebra II · Appears on: ACT

Worked examples

1. Arranging books on a shelf

Problem

How many ways can you arrange 3 books on a shelf if you have 5 books to choose from?
  1. P(5,3)=5!(53)!P(5, 3) = \frac{5!}{(5-3)!}

    We substitute n=5n = 5 and r=3r = 3 into the permutation formula.

  2. =5!2!= \frac{5!}{2!}

    We simplify the denominator by computing 53=25 - 3 = 2.

  3. =1202= \frac{120}{2}

    We evaluate the factorials: 5!=5×4×3×2×1=1205! = 5 \times 4 \times 3 \times 2 \times 1 = 120 and 2!=2×1=22! = 2 \times 1 = 2.

  4. =60= 60

    We divide 120120 by 22 to get the final answer.

Answer: 6060

We use the permutation formula because we're selecting 3 books from 5 and the order in which we arrange them matters (book A then B then C is different from C then B then A).

2. Arranging relay runners

Problem

In how many ways can a coach select and order 4 runners from a team of 10 for a relay race?
  1. P(10,4)=10!(104)!P(10, 4) = \frac{10!}{(10-4)!}

    Substitute n=10n = 10 and r=4r = 4 into the permutation formula.

  2. =10!6!= \frac{10!}{6!}

    Simplify the denominator: 104=610 - 4 = 6.

  3. =10×9×8×7×6!6!= \frac{10 \times 9 \times 8 \times 7 \times 6!}{6!}

    Expand 10!10! to show the factors up to and including 6!6!, which allows us to see the cancellation.

  4. =10×9×8×7= 10 \times 9 \times 8 \times 7

    Cancel the 6!6! from numerator and denominator.

  5. =5040= 5040

    Multiply: 10×9=9010 \times 9 = 90, 90×8=72090 \times 8 = 720, and 720×7=5040720 \times 7 = 5040.

Answer: 50405040

This problem shows the cancellation technique: rather than computing 10!10! and 6!6! separately, we can cancel (nr)!(n-r)! from the numerator and denominator, leaving only the product of the first rr terms. This is especially useful with large factorials.

3. Selecting and ordering time points for temperature measurement

Problem

A laboratory is conducting an experiment where researchers measure the temperature at 7 different times throughout a day. They need to select 4 of these time points and arrange them in order of measurement intensity (from lowest to highest reading priority). In how many different orders can they arrange 4 time points chosen from the 7?
  1. P(7,4)=7!(74)!P(7, 4) = \frac{7!}{(7-4)!}

    Identify that n=7n = 7 total time points and r=4r = 4 selected time points to arrange.

  2. =7!3!= \frac{7!}{3!}

    Simplify: 74=37 - 4 = 3.

  3. =7×6×5×4= 7 \times 6 \times 5 \times 4

    Cancel the 3!3! from numerator and denominator, leaving the product of exactly r=4r = 4 consecutive descending integers starting from 7.

  4. =840= 840

    Calculate: 7×6=427 \times 6 = 42, 42×5=21042 \times 5 = 210, and 210×4=840210 \times 4 = 840.

Answer: 840840

In this lab scenario, order matters because the researchers care about which specific time points come first, second, third, and fourth. Permutations count all these distinct orderings, which is why we use the permutation formula rather than combinations.

Common mistakes

Where Permutations usually goes wrong
Answer came out wrong
Trying to compute P(5,7)P(5, 7) or writing P(5,7)=5!2!P(5, 7) = \frac{5!}{-2!} when selecting more items than available.
Always check that rnr \leq n before applying the formula. If r>nr > n, there are zero permutations because you cannot arrange more objects than you have.
Using the formula P(n,r)=n!r!(nr)!P(n, r) = \frac{n!}{r!(n-r)!} (which is actually the combination formula) instead of P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!}.
Use P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!} for permutations. Only add an r!r! in the denominator if the problem explicitly states that order does not matter, in which case use combinations instead.
Writing a product with the wrong number of factors, such as P(5,3)=5×4P(5,3) = 5 \times 4 instead of 5×4×35 \times 4 \times 3.
The product form is n×(n1)×(n2)××(nr+1)n \times (n-1) \times (n-2) \times \cdots \times (n-r+1), which has exactly rr terms. For P(5,3)P(5,3), write 5×4×35 \times 4 \times 3 (three factors), not 5×45 \times 4 (two factors).
The mistakeWhy it is wrongThe fix
Trying to compute P(5,7)P(5, 7) or writing P(5,7)=5!2!P(5, 7) = \frac{5!}{-2!} when selecting more items than available.When r>nr > n, the quantity (nr)(n - r) becomes negative, making (nr)!(n-r)! undefined because factorials of negative numbers do not exist.Always check that rnr \leq n before applying the formula. If r>nr > n, there are zero permutations because you cannot arrange more objects than you have.
Using the formula P(n,r)=n!r!(nr)!P(n, r) = \frac{n!}{r!(n-r)!} (which is actually the combination formula) instead of P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!}.The combination formula divides by r!r! to account for the fact that order does not matter; permutations do not divide by r!r! because order does matter and creates distinct arrangements.Use P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!} for permutations. Only add an r!r! in the denominator if the problem explicitly states that order does not matter, in which case use combinations instead.
Writing a product with the wrong number of factors, such as P(5,3)=5×4P(5,3) = 5 \times 4 instead of 5×4×35 \times 4 \times 3.The product must contain exactly rr factors (the number of objects being arranged). Writing too few factors gives a result that is too small.The product form is n×(n1)×(n2)××(nr+1)n \times (n-1) \times (n-2) \times \cdots \times (n-r+1), which has exactly rr terms. For P(5,3)P(5,3), write 5×4×35 \times 4 \times 3 (three factors), not 5×45 \times 4 (two factors).

Tips and when to use something else

  • Use Combinations instead of Permutations when order does not matter — for example, choosing a committee where Bob-Alice-Carol is the same as Alice-Bob-Carol.
  • The product form P(n,r)=n×(n1)×(n2)××(nr+1)P(n, r) = n \times (n-1) \times (n-2) \times \cdots \times (n-r+1) is often faster than computing factorials by hand, especially for large nn.
  • Permutations appear in real-world problems like arranging people in a line, ordering tasks, ranking winners, or passwords where repetition is not allowed.
  • If the problem allows repetition (such as a 4-digit PIN where you can reuse digits), use the Fundamental Counting Principle instead: multiply n×n×n×n=nrn \times n \times n \times n = n^r.

Frequently asked questions

What is the difference between permutations and combinations?
Permutations count arrangements where order matters; combinations count selections where order does not. If you're arranging people in seats, use permutations. If you're choosing a team, use combinations. The permutation formula is P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!} and the combination formula is C(n,r)=n!r!(nr)!C(n, r) = \frac{n!}{r!(n-r)!}.
When should I use P(n, r) instead of the multiplication principle?
Both methods work, but the permutation formula is faster when you want a single calculation. Use the multiplication principle (count choices at each step) when you want to understand the structure of the problem or when the counting is unequal at each step. For equal decreasing choices, P(n,r)P(n, r) gives the answer directly.
Can you compute P(n, 0)?
P(n,0)=n!n!=1P(n, 0) = \frac{n!}{n!} = 1 by definition, because there is exactly one way to arrange zero objects from nn objects: the empty arrangement. This makes sense and is consistent across counting formulas.
Why is (n-r)! in the denominator and not just (n-r)?
The (nr)!(n-r)! cancels out the trailing factors in n!n! that you do not need. When you expand n!n!, you get n×(n1)××2×1n \times (n-1) \times \cdots \times 2 \times 1, and (nr)!=(nr)×(nr1)××2×1(n-r)! = (n-r) \times (n-r-1) \times \cdots \times 2 \times 1. Dividing removes those factors, leaving you with exactly rr factors: n×(n1)××(nr+1)n \times (n-1) \times \cdots \times (n-r+1).

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18