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.
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.
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.
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