What is a factorial in math?
The factorial of a whole number n, written n!, is the product of all the whole numbers from n down to 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. It counts the ways to arrange n different objects in a row. By agreement, 0! = 1.
Factorial in a picture
Formal definition and notation
For a positive integer n, n! = n(n − 1)(n − 2) ⋯ 2 · 1, and 0! = 1. Equivalently, factorials are defined recursively by 0! = 1 and n! = n · (n − 1)! for n ≥ 1. The number n! is the number of permutations (orderings) of n distinct objects. Factorials are not defined for negative integers.
| Symbol | Read it as | Meaning |
|---|---|---|
| n! | n factorial | the product n × (n − 1) × ⋯ × 1 |
| 0! | zero factorial | equals 1 |
| n!(n − r)! | n factorial over n minus r factorial | the number of ordered arrangements of r objects chosen from n |
Key facts
- Factorials grow very fast: 10! = 3,628,800, and 20! has 19 digits.
- 0! = 1: there is exactly one way to arrange zero objects (do nothing), and it keeps n! = n × (n − 1)! working at n = 1.
- Factorials power counting formulas: permutations n!(n − r)! and combinations n!r!(n − r)!.
- n! is divisible by every whole number from 1 to n. For example, 6! = 720 is divisible by 4 and by 5.
- The exclamation mark binds tightly: 2 × 3! means 2 × 6 = 12, not 6! = 720.
Where the name comes from. The exclamation-mark notation n! was introduced by Christian Kramp in 1808.
Factorial formula
- n
- a whole number (0, 1, 2, 3, …)
- n! = n × (n − 1)!
- each factorial is the one before times the next number, so 6! = 6 × 120 = 720
To simplify a quotient of factorials, cancel the shared part instead of multiplying everything out: 9!7! = 9 × 8 = 72.
Factorial examples, step by step
Example 1: Evaluate a factorial
Find 6!.
- Write the product: 6! = 6 × 5 × 4 × 3 × 2 × 1.
- Multiply in pairs: 6 × 5 = 30 and 4 × 3 = 12, with 2 × 1 = 2.
- 30 × 12 = 360, and 360 × 2 = 720.
Answer: 6! = 720.
Example 2: Simplify a quotient of factorials
Simplify 10!8! × 2!.
- Write 10! = 10 × 9 × 8!.
- Cancel 8!: 10 × 92!.
- 2! = 2, so 902 = 45.
Answer: 10!8! × 2! = 45.
Example 3: Arrangements with a condition
Five friends line up for a photo. How many different orders are possible? How many if Maya must stand first?
- Any order: 5 choices for the first spot, then 4, 3, 2, 1. That is 5! = 120.
- If Maya is first, only the other 4 friends move.
- They can line up in 4! = 24 orders.
Answer: There are 120 orders in all, and 24 orders with Maya first.
Common mistakes
There is exactly one way to arrange nothing. Also, 1! = 1 × 0! only works if 0! = 1.
Factorials do not divide like plain numbers. Expand the larger one until the smaller factorial appears, then cancel.
A factorial multiplies; it does not add. Adding 1 through 5 gives a triangular number, which is a different idea.
The factorial applies only to the number right before the exclamation mark. Compute 3! first, then multiply by 2.
Not to be confused with
A factor is a number that divides another (3 is a factor of 12). A factorial is a product of every whole number down to 1 (3! = 6).
A factorial n! counts orders of all n objects. A permutation count n!(n − r)! counts orders of only r of them, such as 5!3! = 20 ways to pick and order 2 of 5.
44 = 4 × 4 × 4 × 4 = 256 repeats the same factor. 4! = 4 × 3 × 2 × 1 = 24 counts down.
Quick check: 3 questions
What is 5!?
Answer: C. 5! = 5 × 4 × 3 × 2 × 1 = 120. 15 adds instead of multiplying, 25 is 52, and 3125 is 55.Show answer and explanation
What is 12!10!?
Answer: A. 12! = 12 × 11 × 10!, so the quotient is 12 × 11 = 132. 65 divides 12 by 10, and 2 or 2! subtracts the numbers.Show answer and explanation
In how many orders can 7 runners finish a race if there are no ties?
Answer: D. 7 choices for first place, 6 for second, and so on: 7! = 5040. 49 is 72, 28 is 7 + 6 + ⋯ + 1, and 7 counts only the winner.Show answer and explanation
Factorial: frequently asked questions
Why does 0! equal 1?
There are two good reasons. Counting: n! is the number of ways to arrange n objects, and there is exactly one way to arrange zero objects. Pattern: n! = n × (n − 1)!, so 1! = 1 × 0!. Since 1! = 1, 0! must be 1. This choice also makes formulas like n!(n − r)! work when r = n.
What is factorial used for?
Factorials count arrangements. They answer questions like how many ways 8 books can sit on a shelf (8! = 40,320) or how many seating orders a team has. They appear in permutation and combination formulas, in probability, in the binomial theorem, and in calculus series such as the one for e.
Can you take the factorial of a negative number or a fraction?
Not with the school definition. n! is defined only for whole numbers 0, 1, 2, 3 and so on, because it counts arrangements of whole objects. Advanced math extends the idea to fractions using the gamma function, but negative integers still have no factorial.
Practice and tools
Sources
- Common Core State Standards, High School Statistics and Probability (HSS-CP.B.9)
- OpenStax, College Algebra, 9.5 Counting Principles
- Weisstein, Eric W. "Factorial." MathWorld, Wolfram Research (Kramp notation, 1808)
Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS HSS-CP.B.9
Cite this entry
Effortless Math Team. “Factorial.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/factorial/
Flashcard
Browse all terms in the Math Dictionary · More probability terms · Random term



