Factorial Calculator n! – Steps & Big Numbers
n!
- = n×(n−1)×…×1 with 0!=1 by definition.
- Example: 5!=120, 10!=3628800.
Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.
How the Factorial Calculator Works
A factorial counts ordered arrangements, so it multiplies every whole number from n down to 1: 5! = 5×4×3×2×1 = 120, the number of ways to order five books on a shelf. The value explodes fast — 10! = 3,628,800 and 20! = 2,432,902,008,176,640,000. Zero factorial is defined as 0! = 1 so that formulas like C(n,r) = n!/(r!(n-r)!) stay valid at the boundaries. This calculator lists each partial product (5, 20, 60, 120) so the growth is visible, and it switches to scientific notation for large n. Standard floating-point doubles overflow beyond 170! ≈ 7.26×10³⁰⁶, the hard ceiling for everyday tools; the calculator warns when you approach it and explains the exact-math alternative.
- 1
Enter n
Type a non-negative integer such as 5 or 20
- 2
Chain the multiplications
Multiply n × (n−1) × … × 1, printing each partial product
- 3
Handle 0 and 1
Both return 1: 0! = 1 by definition and 1! = 1
- 4
Format large results
Switch to scientific notation past 20! and warn near the 170! limit
Use Cases
Permutation Counting
Ordering 8 runners: 8! = 40,320 possible finish orders
Combinatorics Formulas
Feed n! into nCr and nPr for combinations and arrangements
Probability Problems
Chance deals like shuffled decks rely on 52! ≈ 8×10⁶⁷ orders
Tips
- 1
0! = 1, not 0 — the empty product convention
- 2
Factorials outrun exponentials: 20! ≈ 2.43×10¹⁸ but 20³ is only 8,000
- 3
Doubles stop at 170!; beyond that use logs or big-integer math
Common Mistakes
Assuming 0! = 0 instead of the defined value 1
Believing (n+1)! is roughly n! + n; actually (n+1)! = (n+1)×n!, so 6! = 6×120 = 720
Applying factorial to non-integers without the gamma function
Trusting calculator displays past 170! where doubles overflow to infinity
FAQs
What is 0! equal to?
How large is 10!?
Why does my calculator fail at 171!?
How fast do factorials grow?
How is n! used in combinations?
Related tools
Pick another tool to continue your calculation.
Floor & Ceiling Calculator – Round Any Number
Calculate floor and ceiling of any number.
Fraction Reducer – Simplify to Lowest Terms
Reduce a fraction to its simplest form.
Fraction Simplifier – GCD Steps & Mixed Numbers
Simplify fractions and get decimal value and GCD.
Fraction Calculator – Add, Subtract, Multiply, Divide
1/2 + 1/3 = 5/6 and 3/4 × 8 = 6. Add, subtract, multiply or divide fractions and get simplified results and decimals with each step shown.
Continued Fraction Calculator – Decimal to Fraction
Convert decimal to continued fraction.
Continued Fraction Evaluator – From Coefficients
Evaluate a continued fraction from its coefficients.