Factorial Calculator
Calculate the exact factorial of a non-negative whole number.
Your result
MATHExample values are prefilled. Results update automatically when JavaScript is available.
What this tool calculates
Calculate the exact factorial of a non-negative whole number.
Inputs used: Non-negative integer.
On this page How it works & practical examples
How to use the Factorial Calculator
The factorial counts ordered arrangements of n distinct items. The output is an exact integer string; the digit count helps assess very large results.
The calculation
Worked example
Starting with 5! = 120, multiply by 6, 7, 8, 9 and 10 to get 10! = 3,628,800. The displayed digit count is seven. The empty product convention defines 0! = 1, so the same calculator also handles zero.
Understanding the result
n! counts the orderings of n distinct items when every ordering is possible. The result is an exact whole-number string, not a floating-point approximation. For arrangements with restrictions or selections without order, a permutation or combination model may be more suitable.
Assumptions and limits
Supports up to 500 to keep output manageable. It does not evaluate the gamma function or factorials of non-integers.
Common questions
Why is 0! equal to 1?
There is one way to arrange zero items: the empty arrangement. Defining 0! as 1 also keeps n! = n × (n−1)! consistent when n = 1.
Is the displayed number rounded?
No. This tool uses integer arithmetic for n up to its stated limit and presents the full decimal integer. The digit count describes the length of that integer.
Related calculators
For selections where order may or may not matter, use Permutation & Combination instead of treating every choice as n!.