Compute n! exactly — no 170! ceiling — with the full expansion, digit count and trailing zeros. Switch tabs for permutations, combinations, double factorials and derangements.
Exact to the last digit — no 170! ceiling. Try n = 100 or more.
The factorial of a whole number multiplies that number by every whole number beneath it, down to 1. It is the answer to a single, surprisingly common question: in how many different orders can I arrange these items? That makes it the foundation of counting, probability, and the permutation and combination formulas.
Three steps turn any small factorial into a number you can check.
Start at n and write every whole number beneath it, joined by multiplication, ending at 1.
Keep a running product. Multiply the first two numbers, then carry that total into the next, and so on.
Finish the chain down to 1. The final running total is n!.
The same factorial machinery answers three different counting questions. Each tab works one through, computed live from the formula.
A ready reference for the small factorials people look up most — with each exact value, its scientific form, how many digits it has, and how many zeros it ends in.
| n | n! (exact) | Scientific | Digits | Trailing 0s |
|---|---|---|---|---|
| 0! | 1 | — | 1 | 0 |
| 1! | 1 | — | 1 | 0 |
| 2! | 2 | — | 1 | 0 |
| 3! | 6 | — | 1 | 0 |
| 4! | 24 | — | 2 | 0 |
| 5! | 120 | — | 3 | 1 |
| 6! | 720 | — | 3 | 1 |
| 7! | 5,040 | — | 4 | 1 |
| 8! | 40,320 | — | 5 | 1 |
| 9! | 362,880 | — | 6 | 1 |
| 10! | 3,628,800 | 3.62880e6 | 7 | 2 |
| 11! | 39,916,800 | 3.99168e7 | 8 | 2 |
| 12! | 479,001,600 | 4.79001e8 | 9 | 2 |
| 13! | 6,227,020,800 | 6.22702e9 | 10 | 2 |
| 14! | 87,178,291,200 | 8.71782e10 | 11 | 2 |
| 15! | 1,307,674,368,000 | 1.30767e12 | 13 | 3 |
| 16! | 20,922,789,888,000 | 2.09227e13 | 14 | 3 |
| 17! | 355,687,428,096,000 | 3.55687e14 | 15 | 3 |
| 18! | 6,402,373,705,728,000 | 6.40237e15 | 16 | 3 |
| 19! | 121,645,100,408,832,000 | 1.21645e17 | 18 | 3 |
| 20! | 2,432,902,008,176,640,000 | 2.43290e18 | 19 | 4 |
| 21! | 51,090,942,171,709,440,000 | 5.10909e19 | 20 | 4 |
| 22! | 1,124,000,727,777,607,680,000 | 1.12400e21 | 22 | 4 |
| 23! | 25,852,016,738,884,976,640,000 | 2.58520e22 | 23 | 4 |
| 24! | 620,448,401,733,239,439,360,000 | 6.20448e23 | 24 | 4 |
| 25! | 15,511,210,043,330,985,984,000,000 | 1.55112e25 | 26 | 6 |
A simple descending product that quietly underpins probability, computer science, and calculus.
A handful of identities and edge cases that make factorials easier to reason about.
Several relatives extend the factorial idea — each available as a tab in the tool above.
Three slips that trip people up most often.

PEMDAS is the order you do math operations: Parentheses, Exponents, Multiplication and Division, then Addition and Subtraction. This guide explains the rule, the left-to-right tie-breaker, the famous traps, and PEMDAS vs BODMAS.

The laws of exponents let you multiply, divide, and nest powers without ever expanding them. Add the exponents to multiply, subtract to divide, multiply to raise a power to a power. This guide states each rule in one line and proves it with a worked example.

π is the ratio of any circle's circumference to its diameter, a constant that equals about 3.14159. This guide explains what the symbol means, lists its digits and approximations, and shows how to type π on Windows, Mac, HTML, and LaTeX.