Factorial Calculator

Compute n! for large n with exact big-integer arithmetic — no rounding errors.

Enter your details and press Calculate to see results.

Formula

n! = n × (n−1) × … × 2 × 1, with 0! = 1

Example

5! = 5 × 4 × 3 × 2 × 1 = 120. 20! ≈ 2.43 × 10¹⁸.

Why factorials explode in size

Each additional factor multiplies the total by an ever-larger number, so 70! already exceeds the range of ordinary calculators. This tool switches to exact arbitrary-precision arithmetic and formats huge results in scientific notation while keeping every digit exact behind the scenes.

Frequently asked questions

Why is 0! equal to 1?

It makes combinatorics consistent: there is exactly one way to arrange zero items (the empty arrangement).

Where are factorials used?

Counting permutations and combinations, probability, series expansions like eˣ, and recursion examples in computer science.