Small factorials
5! = 120 and 20! = 2,432,902,008,176,640,000.
Calculate n! exactly, up to 10,000!, with its number of digits and trailing zeros.
Enter your values and select Calculate to see the result.
Runs in your browser — nothing you enter is sent to a server.
n! (n factorial) multiplies every whole number from 1 to n; 0! is 1. Factorials grow very fast, so the calculator uses exact big-integer arithmetic and shows the number of digits and trailing zeros. Very long results are shown in scientific form, with every digit listed below when there are up to 3,000.
n! = 1 × 2 × 3 × … × n
⌊n ÷ 5⌋ + ⌊n ÷ 25⌋ + ⌊n ÷ 125⌋ + …
Each zero needs a 2 and a 5; fives are the rarer factor.
5! = 120 and 20! = 2,432,902,008,176,640,000.
100! has 158 digits and ends in 24 zeros; 1,000! ends in 249 zeros.
Counting arrangements: n different items can be ordered in n! ways. They also appear in probability and series.
There is exactly one way to arrange nothing, and it keeps formulas like n! = n × (n − 1)! true.
They use the gamma function, which this calculator doesn't cover.
Calculate nPr and nCr, with and without repetition, exactly — even for very large numbers.
Math Tools
Raise any number to a power, with every digit of large whole-number results.
Math Tools
Check whether a number is prime and see its prime factorization, divisors and the nearest primes.
Math Tools