Factorial Calculator
Calculate n! exactly as a large integer for n from 0 through 5000.
How to use
- Enter an integer n between 0 and 5000.
- Calculate to view the complete factorial and its digit count.
Capabilities and scope
The runner uses BigInt instead of Number so every integer digit of large factorials is preserved.
How it works
It multiplies the integers from 1 through n using BigInt, with 0! defined as 1.
Example
For n=20 the result is 2432902008176640000.
Useful for
- Obtain factorial values for combinatorics
- Inspect exact digits of a very large factorial
Before you use it
- Negative, non-integer, and values above 5000 are rejected by the runner.
Frequently asked questions
Is 5000! rounded?
No. Within the accepted range, the BigInt integer result itself is exact.