Factorial Calculator

Enter n to get n! written out in full, not rounded, along with how many digits it has, how many zeros it ends in and a short scientific-notation form. Switch to nPr or nCr for permutations and combinations, again as exact whole numbers. Works for n up to 5,000 and runs in your browser.

Calculate

10!

3628800

Number of digits
7
Trailing zeros
2
Exact value

3628800

Every calculation runs in your browser. What you type never leaves this device.

Features

  • Exact n! for n from 0 to 5,000 (5000! has 16,326 digits)

  • Number of digits and trailing zeros

  • Scientific notation to 7 significant digits

  • Exact permutations nPr = n! / (n − r)!

  • Exact combinations nCr = n! / (r! (n − r)!)

  • Copy the full value with one click

  • Runs in your browser; free, no signup

When you need it

Permutations and combinations

Check Class 11 P&C answers and JEE or CAT questions on arrangements and selections.

Probability

Count outcomes, like the 2,598,960 five-card hands from a 52-card deck (52C5).

Aptitude shortcuts

Verify trailing-zero questions such as "how many zeros does 100! end with?" (24).

Programming

Compare your big-number code against an exact reference value.

Factorials, nPr and nCr explained

What a factorial is

n! is the product of all whole numbers from 1 to n: 5! = 5 × 4 × 3 × 2 × 1 = 120. By definition 0! = 1. Factorials grow very fast: 20! is already about 2.4 × 10^18, more than a normal calculator can show exactly.

Counting trailing zeros

Each trailing zero comes from a factor 10 = 2 × 5, and there are always more 2s than 5s. So count the 5s: n/5 + n/25 + n/125 + ..., keeping only whole parts. For 100!: 20 + 4 = 24 zeros.

nPr and nCr

  • nPr counts ordered arrangements: choosing a captain, vice-captain and wicket-keeper from 11 players is 11P3 = 990.
  • nCr counts selections where order does not matter: choosing 3 players from 11 is 11C3 = 165.
  • nCr = nPr ÷ r!, and nCr = nC(n − r).

Related tools

Check whether a number is prime and find its factors with the prime number checker, or use the scientific calculator for everyday expressions.

Factorial Calculator - FAQ