Probability

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.

Enter a non-negative whole number.

How to Use the Factorial Calculator

This calculator is very simple to use. Just follow these steps:

  1. Enter any non-negative whole number (like 5, 10, or 100) into the input box.
  2. Click Calculate.
  3. 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:

n! = n × (n - 1) × (n - 2) × ... × 1

There is also a special rule for the factorial of zero:

0! = 1

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!)CalculationValue
0!By definition1
1!11
2!2 × 12
3!3 × 2 × 16
4!4 × 3 × 2 × 124
5!5 × 4 × 3 × 2 × 1120
6!6 × 5 × 4 × 3 × 2 × 1720
7!7 × 6 × 5 × 4 × 3 × 2 × 15,040
8!8 × 7 × 6 × 5 × 4 × 3 × 2 × 140,320
9!9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1362,880
10!10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 13,628,800

Frequently Asked Questions

It is defined as 1 so that mathematical formulas involving combinations and permutations work correctly. For example, if you want to find the number of ways to arrange 0 items, there is exactly 1 way to do nothing.

No, factorials are only defined for non-negative integers (whole numbers). If you need to extend the factorial function to non-integers or negative numbers, you would use the Gamma function in advanced mathematics.

Standard factorials only apply to whole numbers. However, similar to negative numbers, mathematicians use the Gamma function to evaluate the factorial equivalent for real numbers and decimals.