Factorial Calculator

Enter a non-negative whole number to calculate its factorial.

Formula

n! = n × (n−1) × (n−2) × ... × 1, with 0! = 1

Example

5! = 5 × 4 × 3 × 2 × 1 = 120.

Frequently Asked Questions

Why is 0! equal to 1?
By mathematical convention, the factorial of zero is defined as 1 — it represents the one way to arrange zero items.