Maths calculators
Factorial Calculator
Enter a whole number to get its factorial — the product of every whole number from 1 up to it.
n! = 1 × 2 × 3 × … × n, and 0! = 1. Factorials grow fast: 20! is already over 2 quintillion. Above 170 the answer is too large for a standard number.
How to use
- Enter a whole number from 0 to 170.
- Press “Calculate factorial” to see n!.
- For numbers up to 20, the full multiplication is written out.
Frequently asked questions
- How is a factorial worked out?
- Multiply every whole number from 1 up to n: 5! = 1 × 2 × 3 × 4 × 5 = 120. By definition, 0! = 1.
- Why is 170 the limit here?
- Factorials grow extremely fast — 171! is larger than the biggest number a standard browser number can hold, so the answer would overflow.
- Where are factorials used?
- In counting arrangements and combinations: the number of ways to arrange n different items is n!. For example, 5! = 120 ways to order 5 books.
- Is my data stored?
- No. The calculation runs in your browser.