Factorials Explained (With Real Examples)

How many different ways can 4 friends line up for a photo? The answer is 24, and it comes from a factorial. Factorials show up anywhere you count arrangements, from books on a shelf to songs in a shuffled playlist. Once you see the pattern behind them, the exclamation-mark 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.
  • Factorials count the ways to arrange a group of distinct items in order.
  • 0! is defined as 1, because there is exactly one way to arrange nothing.
  • Factorials grow extremely fast: 10! already passes 3.6 million.

What Is a Factorial?

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

The mathematician Christian Kramp introduced the exclamation-mark notation in 1808. Before that, writers spelled out the whole product every time.

Each factorial builds on the one before it. Since 5! = 120, you get 6! by multiplying 120 by 6, which gives 720. In symbols, n! = n x (n – 1)!.

This step-up rule is the fastest way to work factorials by hand. 7! is 7 x 720 = 5,040, and 8! is 8 x 5,040 = 40,320. You never need to restart the chain from 1.

The same idea makes division easy. 10! / 8! is just 10 x 9 = 90, because every factor from 8 down to 1 cancels out.

Factorials apply only to whole numbers 0 and above. The value of 0! is a special case, and it gets its own section below.

Why Do Factorials Count Arrangements?

Each position you fill leaves one fewer item for the next position, so the number of choices multiplies down to 1. Picture 3 books on a shelf: a red one, a blue one, and a green one.

Any of the 3 books can go in the first spot. Once that spot is filled, 2 books remain for the second spot, and exactly 1 is left for the last.

Multiply the choices: 3 x 2 x 1 = 6 orders, which is exactly 3!. Written with first letters, they are RBG, RGB, BRG, BGR, GRB, and GBR.

The same logic works for a photo. Four friends give 4 x 3 x 2 x 1 = 24 lineups. Add a fifth friend and the count jumps to 120, five times as many.

Schedules follow the same rule. Seven different chores spread across 7 days can run in 7! = 5,040 orders.

Two conditions must hold. Every item must be different, and every item must get a spot. Identical items or empty spots need a different count.

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.

What Do Factorials Look Like in Everyday Examples?

Factorials appear whenever a full set of distinct things gets put in order, like seats, race finishes, or playlists. The table works through six common cases.

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
8! 8 x 7 x … x 1 40,320 Seating orders for 8 dinner guests
10! 10 x 9 x … x 1 3,628,800 Play orders for a 10-song playlist

Notice how quickly the counts climb. Going from 4 friends to 10 songs multiplies the arrangements by more than 150,000. Play that playlist in a new order once a day, and hearing every order takes nearly 10,000 years.

A standard deck of 52 cards shows the extreme case. It has 52! possible orders, about 8.07 x 10^67, which is roughly an 8 followed by 67 zeros.

How Is a PIN Code Different From a Factorial Problem?

A factorial counts orders of items you already have, while a PIN lets each position be any digit, repeats included. The two questions sound alike but give very different answers.

Say you know a 4-digit code uses 1, 2, 3, and 4 once each. Only the order is unknown, so there are 4! = 24 possible codes.

A full 4-digit PIN is a different problem. Each of the 4 positions can hold any digit from 0 to 9. That gives 10 x 10 x 10 x 10 = 10,000 codes.

Repeated digits shrink the factorial count. The digits 1, 1, 2, and 3 give only 12 distinct orders, not 24, because swapping the two 1s changes nothing.

A third version picks 4 different digits out of 10 in order, which gives 10 x 9 x 8 x 7 = 5,040 codes. That is a permutation, not a full factorial, and our guide to combinations vs permutations explains when order matters.

Mixing up these cases is a classic error in probability homework. Ask two questions first: are repeats allowed, and do all items get used?

Why Does 0! Equal 1?

0! equals 1 because there is exactly one way to arrange zero items: leave the set empty. Think of a factorial as a count of arrangements, not just a multiplication chain.

The step-down pattern gives a second reason. Each factorial equals the next one divided by the next number. Since 4! = 24, you get 3! = 24 / 4 = 6.

Keep going and 2! = 6 / 3 = 2, then 1! = 2 / 2 = 1. One more step gives 0! = 1 / 1 = 1, so the pattern itself forces the answer. That is why the list of factorials starts 1, 1, 2, 6, 24, 120.

The same step also shows why factorials stop at 0. Finding (-1)! would mean dividing 0! by 0, and division by zero is undefined.

The definition keeps counting formulas consistent too. Formulas that use all n items out of n end up dividing by 0!, and they only work when 0! is 1.

Why 0! Equals 1 Five boxes run left to right: 4! equals 24, 3! equals 6, 2! equals 2, 1! equals 1, and 0! equals 1. Arrows between them are labeled divide by 4, divide by 3, divide by 2, and divide by 1. Step down the pattern to reach 0! 4! = 24 3! = 6 2! = 2 1! = 1 0! = 1 / 4/ 3/ 2/ 1 Each step divides by the next number down, so 0! = 1! / 1 = 1. One more step would need 1 / 0, which is why (-1)! is undefined.
Dividing down the chain lands on 0! = 1 without any extra rule.

How Fast Do Factorials Grow?

Factorials grow faster than repeated doubling, because each step multiplies by a bigger number than the step before. Doubling always multiplies by 2, while a factorial multiplies by 11, then 12, then 13.

Picture writing out every arrangement at one per second. 5! takes 2 minutes, and 8! takes about 11.2 hours. 10! takes 42 days, and 13! takes about 197 years.

Factorials even outrun powers of 10 in the end. 24! is still smaller than 10^24, but from 25! onward, n! is always larger than 10^n.

Handheld calculators hit a wall early. A typical scientific calculator shows an error at 70!, which is about 1.2 x 10^100 and passes its display limit. Our guide on using nCr, nPr, and factorial keys on a calculator shows where those keys live.

For exact values beyond that point, the Factorial Calculator returns the full result with every digit.

How Fast Factorials Grow Bars for 3! equals 6, 4! equals 24, 5! equals 120, and 6! equals 720 are drawn to the same scale, so the first two are barely visible. The bar for 10! equals 3,628,800 is broken, because at true scale it would be 5,040 times taller than the 6! bar. Each step multiplies by a bigger number 624120720 3,628,800 3!4!5!6!10! The 10! bar is cut: at true scale it would be 5,040 times taller than the 6! bar.
Bars for 3! to 6! share one scale; 10! is far too tall to draw at that scale.
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. The pattern 1! = 2! / 2 and 0! = 1! / 1 leads to the same answer.

What Do Factorials Count in Real Life?

Factorials count the ways to arrange a full set of distinct items in order. Examples include seating orders at a dinner and finish orders in a race with no ties. Eight guests can sit in 40,320 different orders.

What Is the Difference Between a Factorial and a Permutation?

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

How Fast Do Factorials Grow?

Extremely fast. 5! is only 120, but 10! passes 3.6 million and 13! passes 6.2 billion. Each step multiplies by a larger number than the step before, so the growth keeps speeding up.

Why Does My Calculator Show an Error for Large Factorials?

A typical scientific calculator displays numbers only below 10^100. 69! is about 1.7 x 10^98, but 70! is about 1.2 x 10^100, so the calculator overflows at 70!.

Can You Take the Factorial of a Negative Number or a Decimal?

Not with the standard definition, which covers whole numbers 0 and above. The gamma function extends the idea to decimals, giving 0.5! as about 0.886, but it stays undefined for negative whole numbers.

Sources

References Used in This Article

This article is a general introduction to factorials through everyday arrangement examples. Permutation and combination formulas are covered in our related guides. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 26, 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.