Factorials: Definition, Method and Examples

MathPublished

Factorials: Definition, Method and Examples

A factorial, written n!n!, is the product of all positive whole numbers from nn down to 11. For example, 5!=5×4×3×2×15! = 5 \times 4 \times 3 \times 2 \times 1, and by definition 0!=10! = 1.

What is a factorial?

A factorial is a mathematical operation that finds the product of a positive whole number and every positive whole number less than it. It represents the total number of ways to arrange a collection of distinct objects into a sequence.


The operation is written using an exclamation mark immediately following a positive whole number. This is known as the factorial function or exclamation mark notation. When you see an expression like n!n!, you read it aloud as "nn factorial".

Expand factorial notation

To evaluate a factorial, expand it by writing the chosen integer, followed by each descending positive integer down to 11. Then, multiply all of these factors together.


The general mathematical rule is n!=n×(n−1)×(n−2)×⋯×1n! = n \times (n-1) \times (n-2) \times \dots \times 1.

Two equations showing the general expansion for n factorial alongside the specific numerical expansion for 5 factorial.

Why 0 factorial equals 1

A common error is assuming that the value of 0!0! is 00. By mathematical definition, 0!0! equals 11. Conceptually, there is exactly one way to arrange an empty set of objects: doing nothing.


You can also observe this logic by following the pattern of mathematical division. Each factorial can be found by dividing the next higher factorial by its starting number. When you divide 1!1! by 11, the logical mathematical result is 11.

A step-down division diagram showing that as factorials decrease from 4 to 0, dividing each result by its starting number confirms that 0 factorial equals 1.

Calculate factorial values

Factorial values start small but grow extremely quickly as the starting number increases. You can calculate each new value efficiently by multiplying the previous factorial by the next whole number.


Here is a reference table for the first seven non-negative integers.

Factorial Notation

Expansion

Value

0!0!

(Defined value)

11

1!1!

11

11

2!2!

2×12 \times 1

22

3!3!

3×2×13 \times 2 \times 1

66

4!4!

4×3×2×14 \times 3 \times 2 \times 1

2424

5!5!

5×4×3×2×15 \times 4 \times 3 \times 2 \times 1

120120

6!6!

6×5×4×3×2×16 \times 5 \times 4 \times 3 \times 2 \times 1

720720

Use factorials to count arrangements

Factorials allow you to calculate how many different ways you can order or line up a specific number of distinct items. The factorial function is a direct application of the product rule for counting.


If you have 33 different items, you have 33 choices for the first position, 22 choices for the second, and 11 choice for the last position. The total number of arrangements is 3!=3×2×1=63! = 3 \times 2 \times 1 = 6. This counting logic forms the foundation for calculating both permutations and combinations.

An arrangement model showing three colored circles mixed into six different unique permutations, demonstrating that 3 factorial equals 6.

Worked examples

Here are three examples demonstrating how to evaluate and simplify factorial expressions.


Example 1: Expanding and evaluating a factorial


Question: What is the value of 7!7!?


Method:

  1. Expand the factorial into a product of descending integers down to 11.
  2. Multiply the numbers in sequence.

Answer: 7!=7×6×5×4×3×2×1=5,0407! = 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 5{,}040.


Check: Verify the arithmetic by dividing 5,0405{,}040 by 77, which correctly equals 720720, confirming the known value of 6!6!.


Example 2: Canceling factorials in a fraction


Question: Evaluate 8!6!\dfrac{8!}{6!} without a calculator.


Method:

  1. Expand the larger factorial in the numerator until its final term matches the smaller factorial in the denominator.
  2. Cancel the matching factorials from the top and bottom.
  3. Multiply the remaining whole numbers.

A fraction showing 8 factorial over 6 factorial simplified to 8 times 7 times 6 factorial, with the 6 factorials canceled out to leave 56.

Answer: 8!6!=56\dfrac{8!}{6!} = 56.


Check: Expand both factorials completely to confirm the cancellation leaves exactly 8×78 \times 7.


Example 3: Counting arrangements


Question: How many different ways can 44 students stand in a line for a photograph?


Method:

  1. Identify the number of distinct objects being arranged. There are 44 students.
  2. Apply the factorial function to find the total number of orders.
  3. Calculate the product of 4!4!.

Answer: There are 2424 different arrangements.


Check: The product 4×3×2×14 \times 3 \times 2 \times 1 equals 2424, which matches the expected permutation calculation.

Common mistakes

Avoid these frequent errors when working with factorial notation.

  • Misinterpreting the symbol: In mathematics, an exclamation mark represents the factorial operation. It is not punctuation or an instruction to read a number with ordinary emphasis.
  • Assuming a zero value: Remember that a factorial evaluates to zero only if the sequence is multiplied by zero. By definition, 0!=10! = 1.
  • Distributing the operation: You cannot split a factorial across addition. The expression (a+b)!(a + b)! does not equal a!+b!a! + b!. For example, (2+3)!=5!=120(2 + 3)! = 5! = 120, but 2!+3!=2+6=82! + 3! = 2 + 6 = 8.

Frequently asked questions

Here are answers to common questions about the factorial function.


What does n factorial mean?

It means the product of the positive integer nn and every positive integer smaller than it, all the way down to 11.


Can factorials be negative or decimals?

The standard factorial function is defined only for non-negative integers. You cannot calculate the factorial of a negative number or a decimal fraction using basic factorial notation.


Does a factorial grow faster than an exponent?

Yes, for large starting numbers, factorials grow much faster than most standard exponents and powers. Because the values become immense so quickly, results for very large factorials are often expressed using scientific notation.

Practice questions

Question

Four connected boxes display the descending numbers 4, 3, 2, and 1 separated by multiplication signs.

The model above shows the sequence for calculating 4!4!. Which mathematical expression represents the total?

  • 4×3×2×14 \times 3 \times 2 \times 1

  • 4+3+2+14 + 3 + 2 + 1

  • 4×4×4×44 \times 4 \times 4 \times 4

  • 4×14 \times 1

Answer:

4×3×2×14 \times 3 \times 2 \times 1

Question

What is the value of 5!3!\dfrac{5!}{3!}?

  • 2020

  • 22

  • 6060

  • 120120

Answer:

2020

Question

Why does 0!0! equal 11?

  • There is exactly one way to arrange zero objects.

  • Zero multiplied by one is zero.

  • All factorials must evaluate to zero.

  • It is a calculation mistake and should be zero.

Answer:

There is exactly one way to arrange zero objects.

Question

Evaluate 3!+2!3! + 2!.

  • 88

  • 120120

  • 55

  • 1212

Answer:

88

Question

Five empty rectangular frames are arranged in a horizontal row on a wall.

Five different paintings are placed in a row on a wall, as shown above. How many different arrangements are possible?

  • 120120

  • 2525

  • 55

  • 1515

Answer:

120120