Calculate factorials (n!) quickly and accurately
Enter a positive integer to calculate its factorial. The factorial of n (written as n!) is the product of all positive integers from 1 to n.
Enter a positive integer between 0 and 170. Factorial is defined for non-negative integers only.
Important: Factorials grow very rapidly. For numbers larger than 170, the result exceeds JavaScript's number precision limits.
Try these common factorial calculations to understand how the calculator works
Calculate factorial of 5 - easy to verify manually
n = 5
Special case: 0! equals 1 by mathematical definition
n = 0
Calculate factorial of 10 - demonstrates rapid growth
n = 10
Calculate factorial of 15 - shows how quickly factorials grow
n = 15