Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Method · Permutation and Combination

How to count permutations

A permutation counts arrangements where order matters. To count how many ways rr items can be arranged from nn distinct items, use nPr=n!(nr)!{}^{n}P_{r}=\dfrac{n!}{(n-r)!}.

Identify nn and rr, substitute, then cancel the factorials.

What this method is for

A permutation counts the number of ways to arrange items when the order matters, that is, when swapping two items gives a different arrangement. In the Form 5 Permutation and Combination chapter of Add Math, this is the tool for questions such as 'in how many ways can 3 books be arranged in a row from 5 different books?'

or 'how many 3-digit codes can be formed?'. The key formula is nPr=n!(nr)!{}^{n}P_{r}=\dfrac{n!}{(n-r)!}, where nn is the number of distinct items available and rr is the number of positions to fill.

It answers counting problems where each ordering is treated as a separate outcome, and it feeds directly into probability questions later on.

When to reach for it

Reach for a permutation whenever a question is about arranging or ordering objects, or filling positions in a line, a row, or a sequence, look for words like 'arrange', 'in a row', 'order', 'line up', or 'code'. The deciding test is simple: ask whether changing the order gives a different result.

If AB is different from BA, order matters and you use a permutation; if AB is the same as BA (a plain selection), you use a combination instead. Seat arrangements, forming numbers from digits, and lining up people or books are all permutation problems, so read the question for whether position or order is important.

The method, step by step

Permutations of r from n
nPr=n!(nr)!{}^{n}P_{r}=\dfrac{n!}{(n-r)!}
  1. 1

    Check that order matters

    Confirm that a different order counts as a different arrangement, if so, it is a permutation.

  2. 2

    Identify n and r

    Let nn be the number of distinct items available and rr the number of positions to fill.

  3. 3

    Substitute into the formula

    Write nPr=n!(nr)!{}^{n}P_{r}=\dfrac{n!}{(n-r)!} with your values of nn and rr.

  4. 4

    Cancel the factorials

    Expand only as far as needed and cancel the common (nr)!(n-r)!.

  5. 5

    Compute the value

    Multiply the remaining factors to get the final count.

Order matters or not?

If rearranging the same items gives a new outcome, use a permutation nPr{}^{n}P_{r}. If order makes no difference, you are only choosing a group, use a combination nCr{}^{n}C_{r} instead.

Deciding this first prevents most errors.

Worked example

Q1[3 marks]

A student has 5 different storybooks and wants to place 3 of them in a row on a shelf. In how many ways can this be done?

Show worked solution

The books are placed in a row, so the order matters, this is a permutation. Here n=5n=5 (books available) and r=3r=3 (positions on the shelf).

Substitute into the formula:

5P3=5!(53)!=5!2!{}^{5}P_{3}=\frac{5!}{(5-3)!}=\frac{5!}{2!}

Expand and cancel the common 2!2!:

5!2!=5×4×3×2!2!=5×4×3\frac{5!}{2!}=\frac{5\times4\times3\times2!}{2!}=5\times4\times3

Multiply out: 5×4×3=605\times4\times3=60.

So there are 6060 ways to arrange 3 of the 5 books in a row.

Common mistakes to avoid

  • Using a combination nCr{}^{n}C_{r} when the order actually matters, or a permutation when it does not.
  • Swapping nn and rr in the formula, e.g. writing r!(nr)!\dfrac{r!}{(n-r)!}.
  • Forgetting that repeated identical items reduce the count, arrangements of a word with repeated letters need division by the factorials of the repeats.
  • Misreading whether all nn items are used or only rr of them.
  • Arithmetic slips when expanding factorials, cancel the common factorial first to keep the numbers small.

How one-to-one teaching helps

The step that trips students up is the very first one: deciding whether order matters. Choose wrongly and the whole answer uses the wrong formula.

In a one-to-one lesson our teachers give you a quick, reliable test,'does swapping two items make a new arrangement?', and practise it on mixed questions until the choice between nPr{}^{n}P_{r} and nCr{}^{n}C_{r} is instant. We also show how cancelling the common factorial keeps the arithmetic clean.

Teachers at spmaddmath.com.my are experienced, and lessons are online and taught in English. To see how we teach permutations, message us on WhatsApp to arrange a one-hour paid class from RM50/hr at the teacher's rate.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters, so AB and BA are different. A combination counts selections where order does not matter, so AB and BA are the same.

Decide which applies before choosing between nPr{}^{n}P_{r} and nCr{}^{n}C_{r}.

What does n!n! mean?

The factorial n!n! means the product of all whole numbers from nn down to 1, so 5!=5×4×3×2×1=1205!=5\times4\times3\times2\times1=120.

By definition 0!=10!=1, which keeps the permutation formula working when r=nr=n.

What is nPn{}^{n}P_{n}?

When you arrange all nn items, nPn=n!0!=n!{}^{n}P_{n}=\dfrac{n!}{0!}=n!. For example, arranging 4 different books in a row gives 4!=244!=24 ways, because every position is filled and 0!=10!=1.

How do I handle repeated identical items?

When some items are identical, divide by the factorial of each repeated group. For instance, the number of arrangements of the letters in a 4-letter word with one letter repeated twice is 4!2!=12\dfrac{4!}{2!}=12, because swapping the two identical letters does not create a new arrangement.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply