Math
Factorial Calculator
Work out the factorial of a whole number, the product of all positive whole numbers up to it.
The result is the factorial of your number, the product of all whole numbers from 1 up to that number.
Formula
Factorial n! = 1 × 2 × 3 × ... × n, and 0! = 1 by definition.
How it works
Enter a whole number from 0 to 170. The calculator multiplies every whole number from 1 up to your number. For example, 5! = 120.
FAQs
What does the Factorial do?
It takes the values you enter and works out the factorial for you, showing the result straight away.
What should I enter?
Enter ordinary numbers in the boxes above. If a value does not make sense for this calculation, the page will ask you to check it instead of showing a wrong answer.
Can I use the result for homework or everyday math?
Yes. It is a general-purpose math helper; for exam or professional work, still check the steps against your own working.
Related calculators
Arithmetic Sequence Calculator
Instant result, no sign-up.
All tools are free.
Each page shows the formula it uses, so you can check the result yourself.
Built for phone browsers.
Start with a free calculator
Search, pick a calculator, and get an instant result. No sign-up, no download.