Introduction
A factorial starts with a whole number and multiplies it by every positive whole number below it. That simple rule produces surprisingly large results: 10! is already more than 3.6 million, and 20! is larger than 2 quintillion. The reason is that each new step multiplies the previous total by a growing number, so the increases become dramatic very quickly.
- What a factorial means
- The main reason factorials grow so fast
- How quickly do the numbers become large?
- Why factorial growth outruns familiar patterns
- A simple way to estimate a large factorial
- What factorials count in everyday mathematics
- Why factorials matter in computer science
- Large factorials and decimal zeros
- Calculating factorials without writing every digit
- Conclusion
What a factorial means
The factorial of a non-negative whole number n is written as n!, read as “n factorial.” For a positive number, it means multiplying all the whole numbers from n down to 1:
5! = 5 × 4 × 3 × 2 × 1 = 120
The factorial symbol is an instruction for a specific product, not an exclamation mark expressing surprise. The first few values make the pattern clear:
1! = 1
2! = 2 × 1 = 2
3! = 3 × 2 × 1 = 6
4! = 4 × 3 × 2 × 1 = 24
5! = 120
By convention, 0! is also defined as 1. This special-looking rule makes formulas involving factorials work consistently, including formulas for counting arrangements. It also fits the idea that there is exactly one way to arrange nothing: leave it as it is.
The main reason factorials grow so fast
Each new factorial is the previous factorial multiplied by the next whole number:
n! = n × (n − 1)!
For example, 6! is 6 times 5!, so it is 6 × 120, or 720. Then 7! is 7 × 720, or 5,040. The multiplier gets larger at every step. Moving from 20! to 21!, for instance, means multiplying by 21; moving from 100! to 101! means multiplying by 101.
This is more powerful than adding a steadily increasing amount. If a quantity grows by addition, each step contributes an amount. In a factorial, each new step scales the entire accumulated result. All the earlier multiplication is carried forward and enlarged again.
Factorials also contain many factors at once. While 10! has ten positive whole-number factors, 20! has twenty, and each added factor is at least as large as the earlier ones. The product therefore becomes enormous before the list of factors seems very long.
How quickly do the numbers become large?
A short sequence shows the acceleration:
5! = 120
10! = 3,628,800
15! = 1,307,674,368,000
20! = 2,432,902,008,176,640,000
These values are exact. The jump from 10! to 20! is not merely a matter of adding ten more factors to a modest total. It means multiplying 10! by 11 × 12 × 13, continuing up through 20. Each of those factors increases the existing product.
Large values are often written in scientific notation, which expresses a number as a value between 1 and 10 multiplied by a power of 10. For example, 20! is about 2.43 × 1018. The exponent indicates that the number has 19 digits, without requiring all of them to be written out.
Why factorial growth outruns familiar patterns
It helps to compare factorials with other kinds of growth. A power such as 2n repeatedly multiplies by the same number, 2. A factorial repeatedly multiplies by numbers that keep increasing. At each stage, the factorial’s next multiplier is larger than 2 once n is above 2.
A power such as n3 multiplies n by itself three times. As n increases, that gives a much slower rise than multiplying together every integer from 1 to n. For sufficiently large n, factorials outgrow any fixed power of n, and they also eventually outgrow any fixed-base exponential such as 2n.
That comparison does not mean a small factorial always exceeds every exponential. For example, the early values depend on the numbers being compared. The key point is about long-term behavior: as n continues to increase, the growing factors in n! eventually make it rise faster than those fixed-pattern alternatives.
A simple way to estimate a large factorial
Writing every factor is practical for small factorials, but not for very large ones. A useful estimate comes from Stirling’s approximation, a formula that gives a close estimate for n! when n is large:
n! ≈ √(2πn) × (n/e)n
Here, π is the familiar circle constant, and e is a mathematical constant close to 2.718. The symbol ≈ means “approximately equal to.” The formula is useful because it reveals a major source of factorial growth: the term (n/e)n raises a quantity that itself increases with n to the power n.
For a rougher understanding, mathematicians often examine the logarithm of a factorial. A logarithm turns multiplication into addition, so it makes huge products easier to study. Stirling’s approximation gives the leading pattern as log(n!) roughly equal to n log(n) − n, with details depending on the logarithm base and the accuracy required.
This approach is especially helpful when the exact factorial is too large to display. It can tell us approximately how many digits the number has, or help compare enormous quantities without calculating every digit.
What factorials count in everyday mathematics
Factorials appear naturally in counting because they measure the number of ways to arrange distinct objects. Imagine placing five different books in a row. There are five choices for the first position, four remaining choices for the second, then three, two, and one. Multiplying these choices gives 5!, or 120 possible arrangements.
This is called a permutation: an arrangement in which order matters. If the same five books are selected but their order is not important, the count is different. Factorials still appear in the formulas, but some arrangements are treated as equivalent and divided out.
For example, the number of ways to choose and arrange r items from n distinct items is n!/(n − r)!. The denominator removes the arrangements of items that were not selected. Such formulas are useful in probability, combinatorics, and many practical counting problems, from organizing schedules to evaluating possible outcomes in a model.
Why factorials matter in computer science
Factorials also help describe how the amount of work in a computer problem can grow. Some problems require considering many possible orderings. If an algorithm checks every possible arrangement of n items, it may need to examine n! cases.
That growth quickly becomes difficult to manage. A computer can handle many calculations rapidly, but speed does not remove the underlying increase in the number of cases. A task involving 10! possibilities has millions of arrangements; one involving 20! has more than 2 quintillion. The difference can make exhaustive checking impractical.
Not every problem involving factorials requires calculating the full number, and clever methods may avoid checking every arrangement. Still, factorial growth is a useful warning: a procedure that works for a small input may become unworkable as the input grows.
Large factorials and decimal zeros
Factorials become long not only because their values are large, but also because they end in many zeros. A zero at the end of a decimal number comes from a factor of 10, and 10 is 2 × 5. In a factorial there are usually more factors of 2 than factors of 5, so the number of trailing zeros is determined by how many factors of 5 appear in the product.
For example, 10! ends in two zeros. The factors 5 and 10 each contribute one factor of 5, giving two pairs of 2 and 5 that form tens. In larger factorials, additional multiples of 25, 125, and higher powers of 5 contribute extra factors of 5 as well. This is why the count is not always just the number of multiples of 5 up to n.
This detail illustrates how factorials bundle many kinds of factors together. Their size, their digits, and their divisibility properties all reflect the long product from 1 through n.
Calculating factorials without writing every digit
For modest values, a calculator can multiply the factors directly. For much larger values, mathematical software may store a factorial as an exact integer, but the number of digits grows so quickly that storing and displaying the full result can become inconvenient.
When only an estimate is needed, logarithms or Stirling’s approximation are more efficient. When a problem asks for a count modulo a number, meaning only the remainder after division by that number, it may be possible to calculate that remainder without constructing the full factorial. The right method depends on what information is needed.
It is also important to distinguish an exact answer from an approximation. An exact factorial gives every digit; an estimate gives a close scale or leading value. For many applications, knowing that a number is on the order of 10100 is more useful than printing a very long string of digits.
Conclusion
Factorials grow astonishingly fast because every step multiplies the entire previous product by a new, larger number. This makes them rise faster in the long run than fixed-base exponentials or fixed powers. The same growth explains why factorials count so many arrangements, challenge exhaustive computer searches, and are often estimated with logarithms or Stirling’s approximation rather than written out in full.

