Everyday utilities

Factorial Calculator

Factorial Calculator

Exact n! for n up to 25,000, with digit count, trailing zeros and scientific notation.

About this tool

About Factorial Calculator

The factorial n! multiplies every whole number from 1 up to n, and it grows astonishingly fast: 20! already has 19 digits and 52!, the number of ways to shuffle a deck of cards, has 68. Most calculators give up around 170! and show only an approximation. This one computes the exact value with big-integer arithmetic for any n from 0 to 25,000, where the answer runs to about 99,000 digits. Alongside the full number you get the digit count, the number of trailing zeros (from Legendre's formula) and a compact scientific form such as 4.0238726 × 10^2567 for 1000!. The exact value sits in a scrolling panel you can copy or download as a text file, and quick buttons fill in common values like 10!, 52! and 100!. The calculation runs on your own device.

Built and maintained by Abhi JainUpdated

How to Calculate a Factorial

  1. 1

    Enter n

    Type a whole number into n, or tap a quick button such as 52! or 100!.

  2. 2

    Read the summary

    See the result (or its scientific form for large values), the number of digits and the trailing zeros.

  3. 3

    Copy or download

    Use Copy or Download on the exact value panel to keep every digit.

Factorial Calculator: questions and answers

What is a factorial?

n! = n × (n − 1) × … × 2 × 1. For example 5! = 5 × 4 × 3 × 2 × 1 = 120.

Why is 0! equal to 1?

There is exactly one way to arrange zero items, and defining 0! = 1 keeps formulas such as n! = n × (n − 1)! and the combinations formula consistent.

How many trailing zeros does 100! have?

24. Count the factors of 5: ⌊100/5⌋ + ⌊100/25⌋ = 20 + 4 = 24. Each pairs with a factor of 2 to make a 10.

What is 52 factorial?

52! ≈ 8.0658 × 10^67, the number of different orders a standard deck of cards can be in.

Can I find the factorial of a decimal?

Not here, since factorials are defined for whole numbers. The gamma function extends them to decimals; the Scientific Calculator accepts inputs like 0.5!.