Factorial calculator
Compute factorials exactly, even when the answer has thousands of digits. Students in combinatorics, probability and programming use it to check results that overflow normal calculators.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
The factorial n! is the product of every whole number from 1 up to n, and 0! is defined as 1. Factorials grow very fast, so 52! already has 68 digits.
Formulan! = n x (n - 1) x ... x 2 x 1, with 0! = 1
Worked exampleThe factorial 52! is about 8.065817517 x 10^67, has 68 digits and ends in 12 zeros.
Example
52
- Digits
- 68
- Trailing zeros
- 12
80658175170943878571660636856403766975289505440883277824000000000000
The full exact value is shown above, computed with whole-number arithmetic.
How to use the factorial calculator
- Type a whole number n from 0 to 5,000, such as 52 for a deck of cards.
- Choose a Type: n! or n!! (double).
- Choose how to show Long results: 100 per line or One line. Results update as you type, and Run also works.
- Press Copy result or Download to keep the full number.
How it works
n! multiplies every whole number from 1 to n. n!! multiplies every other number, such as 9!! = 9 x 7 x 5 x 3 x 1.
Results use exact big integer math. 5,000! has 16,326 digits.
Results up to 36 digits are shown in full at the top. Longer results lead with a scientific notation estimate and show the full exact number below it, in lines of 100 digits or on one line.
0! and 0!! equal 1 by definition. Negative numbers, decimals and e notation are rejected, and factorials of fractions need the gamma function, which this tool does not support.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
What is a factorial?
n! is the product of all whole numbers from 1 to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120.
Why is 0! equal to 1?
There is exactly one way to arrange zero items, and defining 0! = 1 keeps formulas such as combinations working.
What is a double factorial?
n!! multiplies n by every second number below it. 10!! = 10 x 8 x 6 x 4 x 2 = 3840.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools