Factorial Calculator

Calculate n! exactly for any whole number up to 5,000, with digit count, trailing zeros and scientific notation.

Calculator

Was this tool useful?

About this tool

About Factorial Calculator

Factorials grow very fast. This calculator gives exact answers using big-number maths, plus helpful facts about the result.

How it works

n! = n × (n − 1) × … × 2 × 1, and 0! = 1. Trailing zeros = ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + …

Example

20! = 2,432,902,008,176,640,000 (19 digits, 4 trailing zeros).

How to use this tool

  1. Enter a whole number n.
  2. Click Calculate.
  3. Copy the exact value or the scientific form.

Frequently asked questions

Why is 0! equal to 1?

There is exactly one way to arrange zero objects, and it keeps formulas like n! = n × (n−1)! consistent.

Can I find factorials of decimals?

Not here. That needs the gamma function.

Can I use the Factorial Calculator for homework?

Yes. The Factorial Calculator shows the answer and, where possible, the method, so you can check your own working. Teachers usually want to see the steps, so use it to learn the method rather than only copying the answer.