Factorial Calculator
Calculate n! (n factorial) for any non-negative integer up to 170.
The Factorial Calculator computes n! (n factorial) for any non-negative integer. The factorial of n is the product of all positive integers from 1 to n: n! = n × (n-1) × (n-2) × ... × 2 × 1.
Special Cases
0! = 1(by definition)1! = 15! = 120(5 × 4 × 3 × 2 × 1)10! = 3,628,800
Where Factorials Are Used
Factorials appear frequently in combinatorics and probability. The number of ways to arrange n distinct objects is n!. Combinations and permutations both use factorials: C(n,r) = n!/(r!(n-r)!) and P(n,r) = n!/(n-r)!. Factorials also appear in Taylor series expansions and the definition of the exponential function.
The calculator supports values up to 170! since larger values exceed floating-point number limits. The result also shows the number of digits in the factorial.