Guide

What is a factorial?

By Viktor Lassen3 min readUpdated 3 September 2026

A factorial is a short way of writing a long chain of multiplications down to 1. Five children in a row can stand in 5 × 4 × 3 × 2 × 1 = 120 ways, and we write that as 5!.

A factorial is a short way of writing a chain of multiplications that goes all the way down to 1, and we write it with an exclamation mark, like 5!5!. The hurdle is that the sign looks like a new operation you have to learn, when it's actually just an abbreviation.

When do I use this?

Factorials turn up when we count the number of ways to put things in order. In Counting outcomes we used the tree diagram and the product rule to count combinations. When the things we combine are the same items lined up in different orders, the multiplication is always the same chain, and that chain is what the factorial writes for us.

The procedure

  1. Ask how many items can go in the first place. Say there are 5.
  2. The same item can't be in two places at once, so 4 are left for the second place, then 3 for the third, and so on down to 1.
  3. Multiply the chain: 5×4×3×2×15 \times 4 \times 3 \times 2 \times 1.
  4. Write it the short way: 5!5!. The exclamation mark means multiply all the numbers together, all the way down to 1.

Worked example: five children in a row

Say we have 5 children we need to line up in a row, and we want to find out how many different ways the children can stand. The same child can't stand in 2 places at the same time, so to start with, 5 children can stand in 1st place, 4 children in 2nd place, 3 children in 3rd place, and so on. We therefore find the number of different line-ups by saying

5×4×3×2×15 \times 4 \times 3 \times 2 \times 1

Five children in a row can be lined up in 5! = 120 different ways

Worked example: shuffling a deck of cards

Another example could be a deck of cards. How many different ways can the deck be shuffled? There are 52 cards, so we say

52×51×50×49×48×47×46\timess52 \times 51 \times 50 \times 49 \times 48 \times 47 \times 46 \timess

and so on. Since this gets very long, we have a way of writing it more easily. Namely the factorial. This long chain we can simply write as

52!52!

We just put a "!" after the number. It indicates that we multiply all the numbers together, all the way down to 1. An example could be 5!5!:

5!=5×4×3×2×1=1205! = 5 \times 4 \times 3 \times 2 \times 1 = 120

So the 5 children can stand in the row in 120 different ways.

The general version

When we work with orderings, the factorial is something we use often. More generally we say that the factorial is defined as

n!=n×(n−1)×(n−2)×(n−3)\timessn! = n \times (n - 1) \times (n - 2) \times (n - 3) \timess

Here nn is just the number you choose. All it says is that you make the number 1 smaller each time, and keep multiplying until you get to 1.

Common mistakes

  • "The factorial is a new operation with its own rules." It isn't. It's just a shorter way of writing a chain of multiplications, made because the long version, like the one for 52 cards, gets very long.
  • "I stopped the chain early." The chain goes all the way down to 1. 5×4×35 \times 4 \times 3 isn't 5!5!; you keep going with ×2×1\times 2 \times 1.

Factorials are the ordering case of the product rule for counting, and the whole topic starts in Counting outcomes.

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

👉 Get started for free