Charts & references · 3 min read

Factorials Chart: 0! to 20! and What They Count

Factorials Chart: 0! to 20! and What They Count — illustration
In short: n! is the product of all whole numbers from 1 to n. 10! = 3,628,800, and 20! = 2,432,902,008,176,640,000.

The chart

nn!nn!
011139,916,800
1112479,001,600
22136,227,020,800
361487,178,291,200
424151,307,674,368,000
51201620,922,789,888,000
672017355,687,428,096,000
75,040186,402,373,705,728,000
840,32019121,645,100,408,832,000
9362,880202,432,902,008,176,640,000
103,628,800

What n! counts

n! is the number of ways to arrange n different objects in a row. Five books can be lined up in 5! = 120 orders.

That is why factorials appear in permutations and combinations.

Why 0! = 1

There is exactly one way to arrange nothing, and defining 0! = 1 keeps formulas like nCr = n!/(r!(n−r)!) working at the edges.

15! with exact arithmetic
Answer15! = 1,307,674,368,000
  • 13 digits
  • 3 trailing zeros
Step-by-step working 3 steps
  1. 1
    Definition
    n! = n × (n − 1) × … × 2 × 1,  and 0! = 1

    The factorial counts the ways to arrange n different items in a row.

  2. 2
    Multiply it out
    15! has 13 digits

    The product is computed with exact whole-number arithmetic, so no digits are rounded.

  3. 3
    Trailing zeros
    Count the factors of 5: ⌊15/5⌋ = 3

    Each factor of 5 pairs with a factor of 2 to make a trailing zero.

Growth

Factorials outgrow exponentials: 10! = 3,628,800 is already larger than 2²⁰ = 1,048,576. The factorial calculator handles values up to 1000!.

Frequently asked questions

What is 5 factorial?

5! = 5 × 4 × 3 × 2 × 1 = 120.

Can you take the factorial of a decimal?

Not with the ordinary definition; the gamma function extends it to non-integers.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading