Factorial Calculator
Calculate the factorial of any non-negative integer with step-by-step working.
Use a non-negative whole number from 0 to 170.
Quick values
Factorial result
10! = 3,628,800
Product of all positive whole numbers from n down to 1.
Input value
10
The n in n!.
Number of digits
7
Length of the exact result.
Formula used
n! = n × (n − 1) × ... × 1
Exact value
3628800
Full result shown.
Expanded form
10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3628800
Factorial Formula
Factorial
n! = n × (n − 1) × ... × 1
Zero factorial
0! = 1
Recursive form
n! = n × (n − 1)!
Permutation formula
nPr = n! ÷ (n − r)!
Combination formula
nCr = n! ÷ (r! × (n − r)!)
Example
5! = 5 × 4 × 3 × 2 × 1
Variable Explanations
n
The non-negative whole number used in n!.
!
The factorial symbol.
n!
The product of all positive integers from n down to 1.
0!
Defined as 1.
nPr
Permutations: ordered arrangements.
nCr
Combinations: unordered selections.
How Factorials Work
Worked Examples
Find 5!
Formula: n! = n × (n − 1) × ... × 1
Substitution: 5 × 4 × 3 × 2 × 1
Answer: 120
Multiply all positive whole numbers from 5 down to 1.
Find 0!
Formula: 0! = 1
Substitution: Defined value
Answer: 1
This convention is important in combinations and probability.
Find 7!
Formula: 7! = 7 × 6!
Substitution: 7 × 720
Answer: 5,040
Factorials can be built from smaller factorials.
Permutation example
Formula: nPr = n! ÷ (n − r)!
Substitution: 5P3 = 5! ÷ 2!
Answer: 60
Factorials help count ordered arrangements.
Combination example
Formula: nCr = n! ÷ (r! × (n − r)!)
Substitution: 5C2 = 5! ÷ (2! × 3!)
Answer: 10
Combinations divide out repeated orderings.
Fast growth example
Formula: 10!
Substitution: 10 × 9 × ... × 1
Answer: 3,628,800
Even small factorials can become large quickly.
Factorials in Counting and Probability
Arrangements
Factorials count ways to arrange distinct items.
Permutations
Use factorials when order matters.
Combinations
Use factorials and divide duplicate orderings when order does not matter.
Probability
Factorials help count possible outcomes.
Statistics
Factorials appear in binomial and distribution formulas.
Series
Factorials appear in Taylor series and advanced math.
Common Factorial Mistakes
Understanding Your Result
Factorial result
The exact product of all positive whole numbers from n down to 1.
Expanded form
Shows the multiplication chain for small values of n.
Digit count
Shows how large the factorial result is.
Compact result
Shortens very large values so they stay readable on mobile.
Counting meaning
Represents the number of ways to arrange n distinct items.
Frequently Asked Questions
Related tools