Factorial Calculator
| n | n! | n | n! |
|---|---|---|---|
| 0 | 1 | 8 | 40,320 |
| 1 | 1 | 9 | 362,880 |
| 2 | 2 | 10 | 3,628,800 |
| 3 | 6 | 11 | 39,916,800 |
| 4 | 24 | 12 | 479,001,600 |
| 5 | 120 | 13 | 6,227,020,800 |
| 6 | 720 | 14 | 87,178,291,200 |
| 7 | 5,040 | 15 | 1,307,674,368,000 |
The two rules students forget: 0! = 1 by definition - the empty arrangement counts as one arrangement - and the values outrun every calculator display fast, 69! is past 10 to the 98th. Combinatorics reads n! as the number of ways to arrange n distinct items.
Mathematical reference: NIST, Weights and Measures — NIST publishes precise mathematical constants and computational standards used in scientific calculations including factorials and combinatorics.
Enter n and get n! — the product of every whole number from 1 to n — computed exactly, with all digits shown. Factorials explode fast (10! already has 7 digits, 100! has 158), and most calculators quietly switch to scientific notation and lose the digits. This one keeps every single one.
Factorials count arrangements: 5! is the number of ways to order five things (120), which makes it the backbone of probability, combinatorics, and the permutation formulas behind shuffles, rankings and lottery odds.
The growth curve is worth internalizing once: each step multiplies by the next integer, so the digit count climbs roughly n log 10 of n — 15! is already 13 digits, 50! has 65, and 69! crosses 10^98. The table below keeps 0-15 exact for homework checks, where most factorial questions actually live.
How to use
- Type a whole number n between 0 and 1,000.
- Read n! with every digit displayed — 0! is defined as 1.
- Check the digit count to appreciate how fast factorials grow.
Worked examples
Eight factorial, the last one a pocket calculator shows whole
8! = 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 = 40,320. It is the last factorial a typical eight-digit display shows whole - 9! = 362,880 still fits, 13! = 6,227,020,800 breaks it, and 21! = 51,090,942,171,709,440,000 overflows a 64-bit signed integer. The chain display on this page keeps going long after every pocket calculator has surrendered to notation.
Twenty factorial, the astronomical border
20! = 2,432,902,008,176,640,000 - about 2.4 x 10^18, nineteen digits. It sits just under the 64-bit integer ceiling (about 9.2 x 10^18), which makes it the classic test case: 20! fits in a long, 21! does not. Card-shuffle context makes it tangible - a deck of 20 distinct cards can be ordered more ways than there are grains of sand on a large beach.
Why 1000! ends in exactly 249 zeros
Trailing zeros come from tens, and each ten needs a 2 and a 5 - the fives are the scarce factor. Count them: floor(1000/5) = 200, plus floor(1000/25) = 40 for the multiples of 25, plus 8 for 125, plus 1 for 625: 249. The twos are so abundant they never run out, so the fives alone set the count - the same Legendre logic the calculator's trailing-zero readout applies to any n.
Frequently asked questions
What is 5 factorial?
5! = 5 × 4 × 3 × 2 × 1 = 120. It counts the ways to arrange 5 items in order — five books on a shelf have 120 possible orders.
Why is 0 factorial equal to 1?
By definition: there is exactly one way to arrange zero items (do nothing). The convention also makes formulas like n! = n × (n−1)! work for n = 1.
How big is 100 factorial?
158 digits long — roughly 9.33 × 10^157. It exceeds the number of atoms in the observable universe by a wide margin, which is why exact-digit display matters.
Where are factorials used?
Counting permutations and combinations, probability (card shuffles, lottery odds), Taylor series in calculus, and algorithm analysis. Anywhere 'how many orderings' appears, factorials are hiding.
How many trailing zeros does 100! have?
24. Trailing zeros come from factors of 10, and tens are made of 2×5 — the fives are always scarcer. Floor(100/5) + floor(100/25) = 20 + 4 = 24, a shortcut that works for any n! without ever computing the value.
What does n! mean in permutations?
Exactly n × (n−1) × ... × 1 ways to order n distinct items — n choices for first place, n−1 for second, and so on. Related formulas reuse it: nPk = n!/(n−k)! for ordered picks, nCk = n!/(k!(n−k)!) for unordered ones.
What is 1000 factorial?
A number with 2,568 digits that begins 402387260... and ends in 249 trailing zeros - about 4 x 10^2567 in scientific shorthand. No physical count corresponds to it: atoms in the observable universe number around 10^80, so 1000! is to that what that number is to 1, squared twice over. Its size comes from Stirling's approximation, n! ~ sqrt(2*pi*n) * (n/e)^n, which is how mathematicians handle it without printing the digits; this calculator is the contrarian option, printing every one of the 2,568 exactly.