Factorial Calculator

Enter a whole number n to find n factorial, the product of every whole number from 1 to n.

A whole number from 0 to 1000.

Try

Result

You entered5!5!

5!=120\displaystyle 5! = 120

Number of digits

3\displaystyle 3

Trailing zeros

1\displaystyle 1
Show the work
  1. Factorial

    The factorial multiplies every whole number from nn down to 11. Here n=5n = 5.

    Using n!=n×(n−1)×⋯×2×1n! = n \times (n-1) \times \cdots \times 2 \times 1

    5!=5×4×3×2×1=120\begin{aligned} 5! &= 5 \times 4 \times 3 \times 2 \times 1 \\ &= 120 \end{aligned}
  2. Result

    So 5!=1205! = 120.

Worked examples