Home · Math · Algebra · Factorial Calculator

Factorial Calculator

The factorial of a whole number n: the product of all positive integers up to n, written n!.

Your figures

Example result — edit the figures to make it yours

3,628,800

n!

(n − 1)!362,880
(n + 1)!39,916,800

What this calculator does

The factorial of a whole number n: the product of all positive integers up to n, written n!. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

n! = n × (n − 1) × … × 2 × 1

By convention 0! = 1. Factorials grow extremely fast — 21! already exceeds 5 × 10^19 — and underpin permutations and combinations.

Worked example

With the example inputs this page opens with (number n 10), the result is 3,628,800 — n!. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying number n
Number nn!
5120
840,320
103,628,800
12.51,710,542,068
151,307,674,368,000
202,432,902,008,176,640,000

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Factorial Calculator work?

The factorial of a whole number n: the product of all positive integers up to n, written n!. Number n → n!, (n − 1)!, (n + 1)!. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Factorial Calculator need?

Number n → n!, (n − 1)!, (n + 1)!. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Factorial Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.