Factorial Calculator
Calculate the factorial of a whole number (n!), with exact results and the steps.
Factorial Calculator
What This Calculator Does
The factorial of a whole number , written , just means “multiply every whole number from 1 up to .” So .
It grows astonishingly fast - is already over three million - and it turns up whenever you count arrangements. The number of ways to line up different things in order is exactly (3 books fit on a shelf in different orders), which is why factorials sit at the heart of permutations and probability.
How It Works
with by definition.
Worked Examples
| n | n! |
|---|---|
| 0 | 1 |
| 1 | 1 |
| 5 | 120 |
| 7 | 5,040 |
| 10 | 3,628,800 |
FAQ
How do you calculate a factorial?
Multiply every whole number from 1 up to n. For 5: .
Why is 0! equal to 1?
By definition — there is exactly one way to arrange zero items (the empty arrangement), so is set to 1.
How large a factorial can this handle?
Up to 170! exactly. Factorials grow extremely fast, so larger values are not shown here.