Factorial

Factorial of a whole number from 0 through 18.

0! is 1. A negative number or a number above 18 has no result.

Enter a whole number from 0 to 18.

How the factorial is calculated

Enter a whole number n from 0 to 18. The factorial n! is the product of the whole numbers from 1 through n.

0! is 1, and no numbers are multiplied. 1! is 1. When n is from 2 to 10, the expanded product lists the factors from n down to 1. 19 and above have no result, so the product stays an exact whole number.

How to use this calculator

  1. Enter a whole number from 0 to 18.
  2. Read the factorial.
  3. The row below is how many whole numbers were multiplied. From 2 to 10, the next row is the expanded product.

Factorial

n is a whole number from 1 through 18. n! is the product of the whole numbers from 1 through n.

Product of the whole numbers from 1 through n
n!=1·2·…·n

0! is defined as 1. A negative number is not a factorial in this calculator.

Source

The factorial of a non-negative integer is defined on the Wikipedia page on the factorial.

Worked examples

Example: 5

5! = 5 × 4 × 3 × 2 × 1 = 120. Numbers multiplied: 5.

Example: 10

10! = 3,628,800. Numbers multiplied: 10.

What to keep in mind

The number must be a whole number from 0 to 18. 0! is 1, and the count of numbers multiplied is 0. 1! is 1. 18! is 6,402,373,705,728,000. A negative number, a decimal such as 1.5, and 19 have no result. A completed result, including the whole number, can be stored in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.

Common questions about the factorial

What is 5!?

120. That is 5 × 4 × 3 × 2 × 1.

What is 10!?

3,628,800.

What is 0! and 1!?

Both are 1. For 0!, the count of numbers multiplied is 0.

What is 18!?

6,402,373,705,728,000.

What counts as a whole number here?

An integer from 0 to 18. A negative number, a decimal such as 1.5, and 19 have no result.

Does this calculator store my number?

A completed result can be saved in this browser’s local history, including the whole number. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.