Try it with your numbers
Show every step
Read as “n factorial.” The shortcut that does most of the work in algebra is , because it lets you build one factorial from the one before it and cancel factorials in fractions.
How do you calculate a factorial?
Start at , multiply by , then by , and keep going until you reach . Because the recursive rule holds, you never need to restart from scratch: if you know one factorial, the next is a single multiplication.
Example 1. Find .
Multiply left to right: , then , then , then , then , then . So . The shortcut gives the same answer in one step: since , you get .
Memorize through (they are ) and you can rebuild everything else quickly. Pairing factors also helps by hand: , which is easier to hold in your head than a long chain.
Quick check
Answer:
Why does n factorial count arrangements?

The formula is not arbitrary. Suppose you line up people in chairs. The first chair can be filled ways, the second chair then has people left to choose from, the third has , and so on down to one person for the last chair. Choices at each stage multiply, which gives . That is the whole reason the factorial exists, and it rests on nothing more than multiplying integers.
You can check it by listing. The letters can be ordered as , which is orderings, and .
The trap here is repeated objects. The word LEVEL does not have distinct arrangements, because swapping the two L’s (or the two E’s) gives the same word. Divide out each repeat:
Whenever identical items appear, the factorial overcounts, and you divide by the factorial of each repeat count.
Why does 0 factorial equal 1?
Run the recursive rule backward. Rearranging gives . Start from :
The pattern forces . It also fits the counting meaning: there is exactly one way to arrange nothing, namely the empty arrangement. The full argument is on the page about why zero factorial equals 1.
Then , and every factorial after it would collapse to . Defining is the only choice that keeps the whole system consistent.
Students often assume because “nothing times anything is nothing.” That reasoning applies to a product with a factor of zero in it, but is an empty product, and an empty product is defined as , the same way .
How do you simplify factorial fractions and expressions?
Most factorial questions in algebra are really cancellation questions. The key idea: write the larger factorial down only as far as the smaller one, then cancel. It is the same move as reducing numbers in simplifying fractions, except the common factor is a whole factorial.
- Pick the smaller factorial in the fraction.
- Expand the larger factorial until the smaller one appears as a tail.
- Cancel that matching factorial from top and bottom.
- Multiply or expand what is left.
Example 2. Simplify .
Example 3. Simplify .
The common error is cancelling the exclamation mark as if it were a factor. is not . Expand it properly: . Division of factorials gives a product of the numbers between, never a smaller factorial (unless the gap happens to fit).
Quick check
Answer:
Where does the factorial sign fit in the order of operations?
The factorial binds to the number directly in front of it, much like an exponent does. So it is done before multiplication, division, addition and subtraction, which matters when you apply the order of operations to mixed expressions.
Two more traps cost points. First, is not : at the first is and the second is . Second, a factorial does not distribute over addition or multiplication, so . In general either. Extra practice with mixed expressions is on the order of operations practice problems page.
A symbol you may meet is the double factorial , which multiplies every second number: . It is a different operation from , which would be a number with more than digits.
Try this: Evaluate by hand, doing each factorial before anything else. (Answer: .)
Can you take the factorial of a negative number or a fraction?
For negative integers, no. Try with the backward rule: would need , which is impossible. So , and the rest are undefined. Watch the sign placement, though: , while does not exist.
Decimals and fractions are not part of the school definition either, so a problem asking for is usually a calculator exercise. Mathematicians do extend the idea with the gamma function, which satisfies for whole numbers and is defined by an integral:
This gives meaningful values between the whole numbers. For instance . It is a reminder that the factorial you use in class lives only on the whole numbers, a small corner of the real number system, and the smooth curve through those points is a separate idea.
How fast do factorials grow, and why do they end in zeros?

Growth is the surprising part. Adding gives , which you can get from the arithmetic series formula, but multiplying the same numbers gives .
| 0 | 1 |
| 1 | 1 |
| 2 | 2 |
| 3 | 6 |
| 4 | 24 |
| 5 | 120 |
| 6 | 720 |
| 7 | 5,040 |
| 8 | 40,320 |
| 9 | 362,880 |
| 10 | 3,628,800 |
By the value is about , which is why scientific notation takes over. Many scientific calculators overflow at , which is about . For estimates, Stirling’s approximation says . At it gives about million, within roughly of the true value.
Trailing zeros come from factors of . Every even number supplies a , so there are always more s than s, and the number of zeros equals the number of s in the prime factorization of . Multiples of count twice, multiples of three times, and so on:
For that is zeros.
Quick check
Answer:
Where are factorials used in real problems?
Anywhere you count orderings. The number of ways to arrange distinct items is , and a standard deck has possible shuffles, so a well-shuffled deck has almost certainly never occurred before in history.
Two formulas built from factorials come up constantly. Permutations count ordered selections of items from , and combinations count unordered ones:
The combination formula is the permutation formula divided by , which removes the reorderings of each chosen group.
Example 4. Choose a podium (gold, silver, bronze) from runners, versus choosing a -person committee from people.
The ratio is exactly , because each committee can be ordered ways on a podium. Factorials also power the series for , since . Adding the terms through gives , already close to .
How can you check a factorial answer?
A few quick tests catch most arithmetic slips. Use them before you trust a long product or a calculator result.
- Divisibility: is a multiple of every whole number from to . Spot-check with the divisibility rules: must be divisible by , , , and so on.
- Last digits: for , ends in (it contains both a and a ). For it is always even.
- Ratio test: must equal . If your divided by your is not , one is wrong.
- Size estimate: compare with Stirling’s formula or the table above, since a result off by a factor of is an arithmetic error.
The divisibility test works because literally has each of those numbers as a factor. It also explains why a list of multiples of numbers 1 to 100 will always include once you are looking at a multiple of any number up to . For algebraic answers, test with a small value: if you simplify to , plug in and confirm .
Practice problems
0 of 5 solved
- Evaluate .
Answer:
Write . Pair the factors: . - Evaluate .
Answer:
Write . Cancel from top and bottom. What remains is . - Evaluate .
Answer:
Factorials come first: and . Multiply: . Add: . - Simplify .
Answer:
Expand the top: . Cancel . The result is , which equals . - Solve for a positive integer .
Answer:
Expand: , so the fraction equals . Solve , which factors as . Only is positive. Check: .
Common questions
What does the exclamation mark mean in math?
After a whole number it means factorial: multiply that number by every positive whole number below it. So . It is read as "six factorial", not as an exclamation.
What is 0 factorial, and why is it 1?
By definition . It is the only value that keeps true at , and it matches the fact that there is exactly one way to arrange zero objects.
Can you take the factorial of a negative number?
Not a negative integer: , and so on are undefined. Negative non-integers such as can be handled with the gamma function, which is beyond most algebra courses.
What is the difference between and ?
A double factorial multiplies every second number down from , so . It is not the factorial of a factorial, which would be written .
How many zeros are at the end of 100 factorial?
There are 24. Count factors of 5: .
Why do factorials grow so fast?
Each step multiplies by a bigger number than the last, so the multiplier keeps increasing instead of staying fixed. That is why is already and is about .