How to calculate a factorial
- Enter a whole number from 0 to 1000.
- Read n! and how many digits it has.
What a factorial is
n! is the product of every whole number from 1 to n. By definition 0! = 1.
Factorials grow very fast, so the answer is computed exactly with whole-number arithmetic and shown in full rather than rounded.
Worked examples
5!
1 × 2 × 3 × 4 × 5 = 120.
10!
10! = 3,628,800.
Frequently asked questions
Why is 0! equal to 1?
It is defined that way so that formulas for permutations and combinations work, and because there is exactly one way to arrange nothing.
What are factorials used for?
Counting arrangements: n different items can be ordered in n! ways.