Factorial Calculator
MathCalculate the factorial of any number from 0 to 170 instantly. Get the exact result with step-by-step multiplication shown, free and in your browser.
Reviewed by the thecalcu.com team ยท Last updated July 30, 2026
n!
What is a Factorial?
A Factorial Calculator computes n!, the product of all positive integers from 1 up to n, for any value from 0 to 170. Factorials are one of the most fundamental building blocks in combinatorics and probability, representing the number of ways to arrange a set of distinct items in order, but they grow so explosively fast that calculating them by hand beyond single digits quickly becomes impractical.
This calculator computes the exact result instantly, along with a step-by-step expansion showing the multiplication chain for smaller values. It's the computational foundation behind the Permutation & Combination Calculator and Probability Calculator, both of which use factorials internally.
Why Use a Factorial Calculator?
Factorials grow so quickly that even moderately sized inputs produce enormous results, 10! is already over 3.6 million, and 20! exceeds 2.4 quintillion. Calculating these by hand means multiplying a long chain of numbers together, where a single arithmetic slip anywhere in the chain throws off the entire result.
This calculator removes that risk, computing the exact value instantly regardless of how large the input is, up to the limits of standard floating-point precision. A student verifying a combinatorics homework answer, or anyone working through a probability problem that requires a factorial as an intermediate step, gets an instant, reliable result.
Who Should Use This Calculator?
- Students and teachers working through combinatorics, probability, or algebra problems that require factorial calculations.
- Computer science students analysing algorithm complexity, where factorial growth rates appear in certain problem classes.
- Anyone solving permutation or combination problems who needs the underlying factorial values as part of a larger calculation.
- Statistics students working with probability distributions or combinatorial formulas that rely on factorials.
- Puzzle and maths enthusiasts curious about how quickly factorial values grow for larger inputs.
What Insights Does the Factorial Calculator Give You?
The calculator gives you the exact factorial value, along with a breakdown that makes the calculation transparent:
- n!, the headline result, the exact product of all integers from 1 to n.
- Expansion, for smaller values of n, the step-by-step breakdown shows the full multiplication chain, making it easy to verify the calculation by hand if needed.
For larger values where showing the full chain wouldn't be practical, the breakdown instead shows the general pattern (n ร (nโ1) ร (nโ2) ร ... ร 2 ร 1) so you can still see exactly how the result was derived.
How to use this Factorial calculator
- Enter or slide to the Number (n) you want to calculate the factorial of, from 0 to 170.
- Read the n! result card for the exact factorial value.
- Open the step-by-step breakdown to see the multiplication chain (for smaller values) or the general expansion pattern (for larger ones).
- Adjust the input to explore how quickly the result grows as n increases.
Show formula & methodology โShow less โ
Formula & Methodology
The factorial of n is defined as: n! = n ร (n โ 1) ร (n โ 2) ร ... ร 2 ร 1, with the special case 0! = 1 Worked example: for n = 6: - 6! = 6 ร 5 ร 4 ร 3 ร 2 ร 1 - = 720 Worked example (larger value): for n = 15: - 15! = 15 ร 14 ร 13 ร ... ร 2 ร 1 - = 1,307,674,368,000
Frequently Asked Questions