Factorial Calculator

Updated July 2026

Enter a non-negative integer to compute its factorial exactly — every digit, with no rounding. You also get a scientific-notation approximation, the total digit count for large results, and the full multiplication expansion for small numbers. Everything runs privately in your browser.

The factorial of n, written n!, is the product of all the integers from 1 up to n: n! = n × (n−1) × … × 2 × 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By definition 0! = 1.
A non-negative whole number. Values up to 100000 are supported.
The full a × b × c form is shown for small n.
Result
Approximate
Number of digits
Input n
Expansion
Exact value

How this factorial calculator works

The factorial of a non-negative integer n, written n!, is the product of every whole number from 1 up to n. So 4! = 4 × 3 × 2 × 1 = 24, and 6! = 6 × 5 × 4 × 3 × 2 × 1 = 720. Factorials grow extremely fast — much faster than exponentials — which is why even modest inputs produce enormous results.

Because the answers get so large, this calculator uses big-integer arithmetic (JavaScript BigInt) to multiply the numbers exactly. That means 100! is shown as its full 158-digit value rather than being squashed into a rounded floating-point figure like 9.33 × 10157. For convenience we still display that scientific-notation approximation and the total digit count alongside the exact integer.

Worked example: to find 5!, multiply 5 × 4 × 3 × 2 × 1. Working left to right: 5 × 4 = 20, then 20 × 3 = 60, then 60 × 2 = 120, then 120 × 1 = 120. So 5! = 120.

Reference table: 0! through 10!

nn!
01
11
22
36
424
5120
6720
75,040
840,320
9362,880
103,628,800

Reference note: the ordinary factorial is defined only for non-negative integers, with 0! = 1 by convention. Negative numbers and decimals are rejected. Inputs above 100000 are capped to keep the calculation responsive.

Frequently asked questions

What is a factorial?
A factorial, written n!, is the product of every integer from 1 up to n. For example 5! = 5 × 4 × 3 × 2 × 1 = 120. It counts the number of ways to arrange n distinct items in order.
What is 0 factorial?
0! equals 1 by definition. There is exactly one way to arrange an empty set — the empty arrangement — and defining 0! = 1 keeps formulas such as the binomial coefficient and the recurrence n! = n × (n−1)! consistent.
How big is 100 factorial?
100! is a 158-digit number, approximately 9.33 × 10^157. It is far too large for ordinary floating-point numbers, which is why this calculator uses exact big-integer arithmetic to show every digit.
What is a factorial used for?
Factorials appear throughout combinatorics and probability. They count permutations (orderings) of n items, form the denominators of combination and permutation formulas, and appear in Taylor series, the gamma function, and many statistical distributions.
Can you take the factorial of a negative or decimal number?
The ordinary factorial is only defined for non-negative integers (0, 1, 2, 3, …). Negative numbers and decimals are not allowed here. The gamma function extends the idea to other values, but that is a different operation from the integer factorial this tool computes.
What is 10 factorial?
10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3,628,800. It is the number of distinct ways to order ten different items.
⚡ Factorial Calculator — by larely ↗

Related tools

Fibonacci Calculator

Generate the Fibonacci sequence and find the Nth Fibonacci number.

Molarity Calculator

Solve molarity = moles / liters, including from mass and molar mass.

Modulo Calculator

Calculate a mod n with quotient, remainder and negative-number handling.

Percent Error Calculator

Calculate percent error between an experimental and a true value.

Z-Score Calculator

Find a z-score and its percentile from a value, mean and standard deviation.

Cylinder Volume Calculator

Find a cylinder's volume, surface area and capacity in liters or gallons.

Half-Life Calculator

Calculate remaining quantity, decay constant and half-lives elapsed.

Percent Yield Calculator

Calculate reaction percent yield from actual and theoretical yield.

Trigonometry Calculator

Calculate sin, cos, tan and their inverses in degrees or radians.

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles or temperature.

Weighted Average Calculator

Calculate a weighted average from value and weight pairs.

Probability Calculator

Calculate single-event probability and combined odds for two events.

Browse all 251 free tools →