About this tool
Calculate the exact factorial of a number up to 10,000, a result with more than 35,000 digits, and download it as a text file. For each n you also get the digit count, the number of trailing zeros and a scientific-notation approximation, and those keep working up to one billion. Everything is computed in your browser with big integers.
How to use Factorial Calculator
- Enter a whole number n.
- Read the digit count, trailing zeros and scientific value.
- Copy or download the exact digits.
Frequently asked questions
Why is 0! equal to 1?
By convention the empty product is 1. It also keeps formulas such as n! = n × (n − 1)! and the number of ways to arrange items consistent.
How are the trailing zeros counted?
Each zero comes from a factor of 10 = 2 × 5, and there are always more 2s than 5s, so you count the 5s: ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + …
Can I get factorials of decimals?
Not here. Factorials of non-integers are defined by the gamma function; this tool covers whole numbers.