Factorial Calculator (n!, Exact Digits & Trailing Zeros)
Calculate n! exactly for any whole number up to 10,000, with the number of digits, trailing zeros, scientific notation and the double factorial n!!. Non-integers…
Calculate n! exactly for any whole number up to 10,000, with the number of digits, trailing zeros, scientific notation and the double factorial n!!. Non-integers use the gamma function.
Results
About This Calculator
n! = n × (n − 1) × … × 2 × 1, and 0! = 1. Factorials count arrangements: 10 people can line up in 10! = 3,628,800 ways.
Trailing zeros come from factors of 10 = 2 × 5, so count the 5s: ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + …
Example
Example: 25! = 15,511,210,043,330,985,984,000,000, which has 26 digits and 6 trailing zeros.
Assumptions
Exact integer arithmetic. Very long results are shortened in the middle for display. For non-integers, n! = Γ(n + 1).
Frequently Asked Questions
What is 0 factorial?
1, by definition (there is one way to arrange nothing).
How many zeros does 100! end with?
24.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile