Factorial Calculator
Calculate n factorial exactly for any whole number from 0 through 170.
About factorials
Factorial examples
See the special zero case and how quickly products grow.
| Expression | Exact value | Explanation |
|---|---|---|
| 0! | 1 | The empty-product convention. |
| 5! | 120 | 5 times 4 times 3 times 2 times 1. |
| 10! | 3,628,800 | The number of arrangements of ten distinct objects. |
| 15! | 1,307,674,368,000 | An example of rapid factorial growth. |
How to use the factorial calculator
- Enter a nonnegative whole number from 0 through 170.
- Select Calculate Factorial to multiply the integer sequence exactly.
- Read the complete result, including grouping separators for large values.
- Change the input and calculate again to compare factorial growth.
Factorial calculator FAQ
Why does zero factorial equal one?
The value 0! is defined as 1 so recursive and combinatorial formulas remain consistent. It also represents the one possible arrangement of an empty collection.
What is the recursive factorial formula?
For a positive integer n, the identity is n! = n times (n - 1)!. The recursion stops at 0! = 1.
Are decimal factorials allowed?
This calculator evaluates the standard factorial only for nonnegative integers. The gamma function can extend related calculations to many non-integer values.
Why do factorials grow so quickly?
Each successive factorial multiplies the previous value by a larger integer. This eventually outpaces any exponential function with a fixed base.
Where are factorials used?
Factorials count permutations and appear in combinations, probability distributions, and series expansions. They also describe the complexity of algorithms that test every ordering.