Factorial Calculator
Enter a non-negative integer to calculate its factorial (n!). Handles values up to 170 for combinatorics, probability, and permutation problems.
n!
Enter values to calculate
How to Use the Factorial Calculator
1
Enter a non-negative integer (0 to 170).
2
Press Calculate.
3
View the factorial result.
Frequently Asked Questions
What is a factorial?
n! is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
What is 0 factorial?
0! = 1 by definition. This is important for many combinatorial formulas.
Why is 170 the limit?
171! exceeds the maximum number JavaScript can represent, resulting in Infinity.