Factorial Calculator
This Factorial Calculator finds n factorial, written n!, and shows the working line by line. It writes out every whole number from n down to 1 and multiplies them together. Factorials count the number of ways to put things in order, which is why they appear in the permutations and combinations formulas. 0! and 1! are both 1 by definition, so the pattern only needs the multiplication when n is 2 or more.
Step-by-step method
- Set up the problem.
- Write the formula.
- Write out the whole numbers from n down to 1.
- Multiply them together.
Formula: Factorial Formula
This formula multiplies every whole number from n down to 1. By definition 0! is 1.
Useful Tips to Remember
A factorial multiplies a whole number by every positive whole number below it, so \(5! = 120\). By definition, \(0! = 1\), not 0. Factorials grow very quickly, so large values are easier to handle by cancelling in fractions, as in \(\frac{10!}{8!} = 10 \times 9\). Factorials are only defined for non-negative whole numbers.
Required knowledge
- No prerequisite knowledge is needed.
Where Are Factorials Used?
A factorial multiplies a whole number by every smaller positive whole number, so \(5! = 5 \times 4 \times 3 \times 2 \times 1\). It counts how many ways a set of different objects can be arranged in order, such as books on a shelf or runners finishing a race. Factorials are the building blocks of permutations, combinations and the binomial distribution. They also show how quickly possibilities grow, which is why a deck of 52 cards has more possible orders than there are atoms on Earth.
- Counting the ways to arrange books, people or tasks in order
- Working out every possible finishing order in a race
- Calculating permutations and combinations
- Understanding the huge number of possible card shuffles
- Appearing in probability formulas and series in calculus
Factorial Practice Problems
Example 1 works out \(5!\), and Example 2 works out \(7!\). Try multiplying the numbers down to 1 yourself before opening each example. For two more free worked examples, check out the Factorial Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Write out the whole numbers from n down to 1.
- Multiply them together.
Formula
Formula: Factorial Formula
This formula multiplies every whole number from n down to 1. By definition 0! is 1.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding \(5!\), the whole numbers from \(5\) down to \(1\) multiplied together.
Step 2
Step 2 - Write the formula.
In this problem: A factorial multiplies every whole number from n down to 1. By definition \(0! = 1\).
Step 3
Step 3 - Write out the whole numbers from n down to 1.
In this problem: Counting down from \(5\) gives \(5 \times 4 \times 3 \times 2 \times 1\).
Step 4
Step 4 - Multiply them together.
In this problem: Multiplying them gives \(5 \times 4 \times 3 \times 2 \times 1 = 120\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Write out the whole numbers from n down to 1.
- Multiply them together.
Formula
Formula: Factorial Formula
This formula multiplies every whole number from n down to 1. By definition 0! is 1.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding \(7!\), the whole numbers from \(7\) down to \(1\) multiplied together.
Step 2
Step 2 - Write the formula.
In this problem: A factorial multiplies every whole number from n down to 1. By definition \(0! = 1\).
Step 3
Step 3 - Write out the whole numbers from n down to 1.
In this problem: Counting down from \(7\) gives \(7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1\).
Step 4
Step 4 - Multiply them together.
In this problem: Multiplying them gives \(7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 5040\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Factorial Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Factorial Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.