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 the factorial calculator
- 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.
Factorial calculation example
- 5! = 5 × 4 × 3 × 2 × 1 = 120.
- 10! = 3,628,800.
- 20! ≈ 2.43 × 1018 — factorials grow faster than powers.
- 0! = 1 by definition.
Where factorials are used
- Arrangements: 6 books can be lined up in 6! = 720 ways.
- Combinations and permutations (nCr, nPr) are built from factorials.
- Probability and series in calculus.
Factorial calculator: common 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.
- Why is 0! equal to 1?
- There is exactly one way to arrange nothing, and it keeps formulas such as n! = n × (n − 1)! working for n = 1.