Factorial Calculator
Use this factorial calculator to find n! for any non-negative whole number up to 5,000. It provides the exact factorial value, and standard form for very large results.
How to Use the Factorial Calculator
This calculator is very simple to use. Just follow these steps:
- Enter any non-negative whole number (like 5, 10, or 100) into the input box.
- Click Calculate.
- The calculator will instantly give you the exact factorial value, along with the standard form (scientific notation) if the number is extremely large.
What is a Factorial?
In mathematics, the factorial of a non-negative integer (n), denoted by n!, is the product of all positive integers less than or equal to n.
It is used extensively in combinatorics, algebra, and mathematical analysis.
For example, the factorial of 5 (written as 5!) is calculated by multiplying all whole numbers from 5 down to 1:
5! = 5 × 4 × 3 × 2 × 1 = 120
Factorial Formula
The general formula for calculating a factorial is:
There is also a special rule for the factorial of zero:
This is a mathematical convention that keeps formulas (like combinations and permutations) working correctly even when the set is empty.
Common Factorial Values
Here is a quick reference table for the most common factorials from 0! to 10!.
| Factorial (n!) | Calculation | Value |
|---|---|---|
| 0! | By definition | 1 |
| 1! | 1 | 1 |
| 2! | 2 × 1 | 2 |
| 3! | 3 × 2 × 1 | 6 |
| 4! | 4 × 3 × 2 × 1 | 24 |
| 5! | 5 × 4 × 3 × 2 × 1 | 120 |
| 6! | 6 × 5 × 4 × 3 × 2 × 1 | 720 |
| 7! | 7 × 6 × 5 × 4 × 3 × 2 × 1 | 5,040 |
| 8! | 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 | 40,320 |
| 9! | 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 | 362,880 |
| 10! | 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 | 3,628,800 |