Cubestack

Factorial Calculator

Free factorial calculator — exact n! for any whole number up to 5000, with the number of digits, trailing zeros and scientific notation. Copy the full result.

20! =

2,432,902,008,176,640,000

Digits
19
Trailing zeros
4
Scientific notation
2.4329020 × 10^18

n! = 1 × 2 × 3 × … × n, and 0! = 1. Factorials count the ways to arrange n different things.

What is the Factorial Calculator?

The factorial n! is the product 1 × 2 × 3 × … × n. It counts how many ways n different things can be arranged and grows extremely fast — 20! already has 19 digits.

How to use it

  1. 1

    Enter n

    A whole number up to 5000.

  2. 2

    Read or copy the result

    With its size.

Features

  • Exact

    Every digit, no rounding, up to 5000!

  • Digits and zeros

    How long it is and how many zeros it ends with.

  • Copy

    The full number in one tap.

Popular uses

  • Combinatorics

    Arrangements and probabilities.

  • Programming practice

    Check big-number results.

Frequently asked questions

What is 0!?

1, by definition.

Why so many trailing zeros?

Each pair of factors 2 and 5 makes a 10.

Related tools