Factorial Calculator
n! = 1 × 2 × … × n; 0! = 1
Calculate a factorial for a nonnegative integer up to 170.
Formula
n! = 1 × 2 × … × n; 0! = 1
Worked example
Nonnegative integer: 6
With these inputs, the result is **720 **.
How to use this calculator
- Identify the quantity you want to calculate.
- Enter your measurements in the units shown on each field.
- Read the result, which updates as you change the inputs.
- Check the assumptions below before applying the result.
Assumptions and limits
Values larger than 170 overflow standard floating-point arithmetic. Very large factorials are approximate rather than exact integers.
Precision and checking
Results are rounded for display. Use the most accurate measurements available, and avoid rounding your inputs unnecessarily. Extra decimal places in a result do not make an estimate more reliable.
To check a result, substitute the same input values into the formula shown above. Change one value at a time to understand how the quantity responds.
Frequently asked questions
What assumptions does this calculation use?
Values larger than 170 overflow standard floating-point arithmetic. Very large factorials are approximate rather than exact integers.
Are my inputs sent to a server?
No. The calculation runs locally in your browser. The result updates as you edit the inputs.
