Factorials Explained (With Real Examples)

How many different ways can 4 friends line up for a photo? The answer is a factorial, and it is bigger than most people guess. Factorials show up anywhere you need to count arrangements, and once you see the pattern behind them, the exclamation-point notation stops looking mysterious.

Quick Answer

  • A factorial multiplies a whole number by every whole number below it down to 1, written with an exclamation mark.
  • 5! means 5 x 4 x 3 x 2 x 1, which equals 120.
  • 0! is defined as 1, a special rule that keeps counting formulas consistent.
  • Factorials count the number of ways to arrange a group of distinct items in order.
  • Factorials grow extremely fast. 10! already passes three million.

What Is a Factorial?

A factorial takes a whole number and multiplies it by every smaller whole number down to 1. It is written with an exclamation mark after the number. So 5! is read as “5 factorial” and means 5 x 4 x 3 x 2 x 1, which works out to 120.

The rule has one exception. 0! is defined as 1, not 0. This looks strange at first, but it is not arbitrary. Mathematicians define it that way because it keeps the counting formulas that use factorials working correctly, including cases where you arrange zero items in exactly one way, doing nothing.

Why Factorials Count Arrangements

Picture 3 books on a shelf: a red one, a blue one, and a green one. How many different orders can you place them in? Start with the first spot. Any of the 3 books could go there. Once that spot is filled, only 2 books remain for the second spot. That leaves exactly 1 book for the last spot.

Multiply the choices at each step: 3 x 2 x 1 = 6. There are 6 different orders for 3 books, and that calculation is exactly 3!. This is the core idea behind every factorial: it counts how many ways you can arrange a full set of distinct items, one choice at a time, with the options shrinking by one at every step.

Counting arrangements of 3 books Three shelf positions are shown. The first position has 3 possible books, the second has 2 remaining choices, and the third has 1 remaining choice, multiplying to 6 total arrangements. 3 books on a shelf: how many orders? Spot 1 3 choices Spot 2 2 choices left Spot 3 1 choice left 3 x 2 x 1 = 6 possible orders This is exactly what 3! means.
Each spot removes one option, so the choices multiply together.

Factorial Worked Examples

The same logic scales up to any group size. Here are a few common examples worked out in full.

Common factorial values and what they count
Factorial Calculation Result What it counts
0! defined as 1 1 Arranging zero items, exactly one way
3! 3 x 2 x 1 6 Orders for 3 books on a shelf
4! 4 x 3 x 2 x 1 24 Lineups for 4 friends in a photo
5! 5 x 4 x 3 x 2 x 1 120 Finish orders in a 5-runner race
10! 10 x 9 x … x 1 3,628,800 Seating orders for 10 people

Notice how quickly the numbers grow. Going from 4 friends to 10 people multiplies the possible arrangements by more than 150,000 times. For any factorial larger than a few digits, the Factorial Calculator computes the exact result along with its digit count.

How fast factorials grow Six bars of increasing height show factorial values for 1 through 10, with the bar heights capped visually since 10 factorial is over 3.6 million, far larger than the smaller factorials shown. Factorial values climb fast 1! = 1 2! = 2 3! = 6 4! = 24 5! = 120 10! = 3,628,800 bar capped, true height is off the chart
Each extra number in the chain multiplies the total, so the bars quickly outgrow the chart.

A PIN Code Example

Factorials also explain why a 4-digit PIN made from 4 different digits has fewer possible orders than people expect. If you already know the 4 digits and just need to find the arrangement, there are 4! = 24 possible orders. That is very different from a full 4-digit PIN allowing repeated digits, which has 10,000 possibilities instead, since each of the 4 positions can independently be any digit 0 through 9.

This distinction, arranging a fixed set of items versus choosing freely with repeats allowed, is the difference between a factorial problem and a simple counting problem, and mixing the two up is one of the most common mistakes in probability questions.

Why 0! Equals 1

It helps to think of a factorial as counting the ways to arrange a set, rather than as a plain multiplication chain. There is exactly one way to arrange a set of zero items: do nothing. Defining 0! as 1 keeps that idea consistent, and it also keeps other formulas built on factorials, like combinations and permutations, working correctly at their edge cases.

Need an exact factorial for a large number?

The Factorial Calculator computes any factorial exactly, no matter how many digits the result has.

FAQs About Factorials

What Does a Factorial Mean?

A factorial multiplies a whole number by every whole number below it down to 1. It is written with an exclamation mark, so 5! means 5 x 4 x 3 x 2 x 1, which equals 120.

Why Is 0 Factorial Equal to 1?

0! is defined as 1 because there is exactly one way to arrange a set of zero items, doing nothing. This definition also keeps combination and permutation formulas built on factorials working correctly.

What Do Factorials Count in Real Life?

Factorials count the number of ways to arrange a full set of distinct items in order, such as the seating orders for a group of people or the finish orders in a race with no ties.

How Fast Do Factorials Grow?

Extremely fast. 5! is only 120, but 10! already passes three million, and 20! has 19 digits. Each additional number multiplies the previous result, so the growth accelerates quickly.

What Is the Difference Between a Factorial and a Permutation?

A factorial arranges every item in a full set. A permutation arranges only some of the items from a larger set, and its formula divides one factorial by another to remove the items left out.

Can You Take the Factorial of a Negative Number?

Not with the standard definition. Factorials are only defined for whole numbers 0 and above, since the “count down to 1” process has no meaningful stopping point for negative numbers.

Can You Take the Factorial of a Decimal Number?

Not with the basic definition used here. A related function called the gamma function extends factorial-like behavior to non-whole numbers, but that is a more advanced topic beyond ordinary factorial arithmetic.

Sources

References Used in This Article

This article is general math education. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 24, 2026.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.

Leave a Comment