Factorial Calculator
n! in full. Every digit, not scientific notation.
What n! counts
Five books on a shelf can be arranged 5! = 120 ways. Ten books, 3,628,800. Factorials grow faster than any exponential, which is why brute-force approaches to ordering problems stop working so abruptly.
Why 0! is 1
There is exactly one way to arrange nothing — the empty arrangement. Defining 0! = 1 also keeps the recurrence n! = n × (n − 1)! working at n = 1, and keeps the combination formula correct when r = 0 or r = n. It is a definition that makes everything else consistent, not an arbitrary choice.
Exact digits, not an approximation
Standard floating-point arithmetic overflows at 171!, and loses exactness well before that — 21! already exceeds the range where a double can represent every integer. This calculator uses arbitrary-precision integers, so the answer is exact to the last digit: 100! is a 158-digit number, and all 158 digits are shown.
Worked example
Small factorials
5 × 4 × 3 × 2 × 1 = 120. Then 6! = 720, 7! = 5040, 8! = 40,320. Each step multiplies by the next integer, so the growth accelerates continuously.