IQR Calculator

Factorial Calculator

n! in full. Every digit, not scientific notation.

Factorial calculatorRuns entirely in your browser
Result7 digits
10!3628800
n
10
Digits
7
Approx.
3.628800e+6
(n−1)!
362880

How we calculated it

What a factorial means
10! is the product of every whole number from 1 to 10
Expand
10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1
Result
10! = 3628800

What n! counts

n! = n × (n − 1) × (n − 2) × … × 2 × 1 0! = 1 n! is the number of distinct ways to arrange n distinguishable objects in order.

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!

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.