Factorial Calculator
Find n! for any whole number up to 170.
How this calculator works
The factorial of n, written n!, is the product of all whole numbers from 1 to n. By definition 0! equals 1. The calculator uses exact big-integer arithmetic, so results are not rounded.
Frequently asked questions
What is 0 factorial?
0! equals 1 by definition.
Why does the limit stop at 170?
170! is the largest factorial that fits in standard floating-point numbers. The exact digits are still shown.
Where are factorials used?
They count arrangements, such as permutations and combinations.