Factorial Calculator
Calculate n! exactly for n up to 5000, with digit count, scientific notation and trailing zeros.
Also searched as: n! · factorial of a number · exact factorial
Your inputs
Results
25!
15511210043330985984000000
- Scientific notation
- 1.551121004333 × 10^25
- Number of digits
- 26
- Trailing zeros
- 6
✓Exact calculation — rounded only for display
What if?
Pick an input and drag the slider to see how the result changes.
What this calculator does
The factorial n! is the product of all integers from 1 to n. It grows extremely fast, so exact results need big-integer arithmetic.
Formula and method
Worked example
Calculated by this tool with its default inputs:
Inputs
- n: 25
Results
- 25!: 15511210043330985984000000
- Scientific notation: 1.551121004333 × 10^25
- Number of digits: 26
- Trailing zeros: 6
How to read the results
n! counts the ways to arrange n distinct items in order.
Assumptions and limitations
- Defined here for non-negative integers.
Questions
Why is 0! equal to 1?
There is exactly one way to arrange zero items, and it keeps formulas consistent.
Methodology and verification
- Result type
- Exact mathematical calculation (rounded only for display)
- Formula version
- 1.0
- Automated verification
- 5 reference and validation test cases, checked against independently computed values. The site cannot be built if any of them fail.
Privacy
Everything you enter is calculated in this browser and is not sent to Numerith or anyone else. Inputs are added to a share link only if you choose to include them. Privacy policy