Compute n! (factorial) for any positive integer — exact results for big numbers.
Result:
The factorial of a non-negative integer n, written as n!, is the product of all positive integers less than or equal to n. The formula is: n! = n × (n−1) × (n−2) × … × 2 × 1. By definition, 0! = 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely fast — 10! is already 3,628,800 and 20! exceeds 2.4 quintillion. This calculator uses JavaScript BigInt for arbitrary-precision arithmetic, ensuring exact results even for very large inputs without any floating-point rounding errors.
A factorial (denoted n!) is the product of all positive integers from 1 to n. It represents the number of ways to arrange n distinct objects in a sequence. For example, 4! = 4 × 3 × 2 × 1 = 24, meaning there are 24 different ways to arrange 4 items.
Zero factorial equals 1 by convention and mathematical consistency. It represents the number of ways to arrange zero objects, which is exactly one way (the empty arrangement). It also keeps the recursive formula n! = n × (n−1)! valid when n = 1.
This calculator uses JavaScript BigInt, which supports arbitrarily large integers. You can compute factorials of numbers up to 10,000 or more. However, very large results (like 10000!) produce thousands of digits and may take a moment to display.