Pre-Algebra Foundations

Zero on Top or Bottom of a Fraction, Telling Zero From Undefined

Learn why zero on top of a fraction gives zero, why zero on the bottom is undefined, and how this shapes equations with variables.

Key takeaways

  • If b ≠ 0, then 0/b = 0, because 0 is the only number that times b gives 0.
  • A nonzero number divided by 0 is undefined, because no number times 0 can produce it.
  • The form 0/0 is undefined because every number would pass the multiplication check, so none is singled out.
  • A fraction equals zero exactly when its numerator is zero and its denominator is not.
  • Values that make an original denominator zero stay excluded even after that factor cancels.

A fraction with zero on top and a nonzero number below equals zero: 0/7 = 0. A fraction with zero on the bottom has no value at all: 7/0 is undefined. The case with zeros in both places, 0/0, is also undefined.

You can rebuild all three answers from one question about multiplication, so there is nothing to memorize by rote. This article shows how, and then applies the idea to expressions with variables, equations, graphs and slopes.

Division is a multiplication question

To compute 12 ÷ 3, you ask which number times 3 gives 12. The answer is 4. In general:

a/b = c    means    c × b = a      (and there must be exactly one such c)

The phrase "exactly one" does the real work. A division has a value only when one number, and only one, passes the multiplication check. If no number passes, or if many pass, there is nothing sensible for the fraction to stand for.

Every zero case can now be settled by writing it as a multiplication question and counting the answers.

Zero on top

Take 0/5. Which number times 5 gives 0? Only 0 does, since any nonzero number times 5 is nonzero. So 0/5 = 0.

The sharing picture agrees. Split 0 cookies among 5 people and each person receives 0 cookies. The arithmetic is unremarkable and the answer is a perfectly good number.

The same holds for any nonzero denominator, including negatives and fractions: 0/(-8) = 0, 0/(2/3) = 0 and 0/π = 0. An answer of zero is a real answer. Students sometimes write "no solution" when they reach x = 0/4, but the solution is x = 0.

For example, 4x + 9 = 9 leads to 4x = 0 and then x = 0. Check: 4(0) + 9 = 9.

Zero on the bottom

Now take 5/0. Which number times 0 gives 5? Every number times 0 gives 0, so no number works. The fraction has no value.

It is tempting to say the answer is "infinity." Infinity is not a real number, and treating it like one breaks the rules of arithmetic. If 5/0 were a number called N, then N × 0 would have to be both 0 and 5.

There is a true statement hiding nearby. As the denominator shrinks toward zero from the positive side, the quotient grows without bound.

Denominator 5 ÷ denominator
1 5
0.1 50
0.01 500
0.001 5,000
-0.001 -5,000

Approaching from the negative side, the values plunge in the other direction. The two sides disagree, which is one more reason no single value can be assigned at zero.

The special case of zero over zero

For 0/0, ask which number times 0 gives 0. This time every number works: 3 × 0 = 0, -10 × 0 = 0 and 1,000 × 0 = 0. A fraction cannot equal all of them at once, so 0/0 is undefined as well.

In calculus you will meet the phrase indeterminate form for limits that look like 0/0. It means that knowing the top and bottom both approach zero is not enough to tell you what the quotient approaches. It does not give the expression 0/0 itself a value.

Four cases of top and bottom in a/b
Top nonzero, bottom nonzero One nonzero answer, such as 6/3 = 2 Top zero, bottom nonzero One answer, and it is 0 Top nonzero, bottom zero No number works: undefined Top zero, bottom zero Every number works: undefined Top nonzero, bottom nonzero One nonzero answer, such as 6/3 = 2 Top zero, bottom nonzero One answer, and it is 0 Top nonzero, bottom zero No number works: undefined Top zero, bottom zero Every number works: undefined

Ask which number times the bottom gives the top.

What goes wrong if you divide by zero anyway

A single unnoticed division by zero can "prove" something false. Here is a well known puzzle. Start by supposing a = b, where both are nonzero.

a = b
a² = ab                      (multiply by a)
a² - b² = ab - b²            (subtract b²)
(a - b)(a + b) = b(a - b)    (factor each side)
a + b = b                    (divide by a - b)
b + b = b                    (since a = b)
2 = 1                        (divide by b)

Every line looks routine, yet the conclusion is nonsense. The faulty step is dividing by a - b. Since a = b, that quantity is 0. Before the division, both sides equal zero, which is true. Afterward, the equation claims 2b = b.

The lesson carries into ordinary homework. Whenever you divide by an expression containing a letter, ask whether it could be zero. If it could, handle that case on its own.

The same care applies to multiplying both sides by zero, which is legal but useless. It turns the false statement 3 = 8 into the true statement 0 = 0, so it cannot be reversed. Multiplying by an expression that might be zero can therefore let in values that never solved the original equation.

Expressions with variables

A letter in a denominator may or may not make it zero, depending on its value. Before working with such an expression, find the excluded values by setting each denominator equal to zero.

Look at (x - 3)/(x + 2).

x numerator denominator value
8 5 10 1/2
3 0 5 0
-2 -5 0 undefined

So the expression is zero at x = 3 and undefined at x = -2. The numerator controls where it can vanish, and the denominator controls where it exists at all.

Some denominators never reach zero for real numbers. Since x² ≥ 0, the quantity x² + 4 is at least 4, so 1/(x² + 4) is defined for every real x. Others have two trouble spots: x² - 9 = (x - 3)(x + 3), so 1/(x² - 9) excludes both 3 and -3.

Solving equations where a fraction equals zero

The rule for solving is short. A fraction equals 0 when the numerator is 0 and the denominator is not. Solve the numerator, then test each result in the denominator.

(x² - 25)/(x - 5) = 0
numerator:    x² - 25 = 0    so x = 5 or x = -5
denominator:  x - 5 ≠ 0      so x = 5 is rejected
solution:     x = -5
check:        (25 - 25)/(-10) = 0

At x = 5 the original expression is 0/0, so 5 is not a solution even though it made the top vanish. This is one source of extraneous solutions, values produced by the algebra that do not satisfy the starting equation. More practice appears in checking answers against excluded values.

Compare the equation 4/(x - 1) = 0. The numerator is 4 and can never be 0, so there is no solution.

What cancelling does not erase

Consider (x² - 25)/(x - 5) again, now as an expression. Factoring gives (x - 5)(x + 5)/(x - 5), which simplifies to x + 5 for x ≠ 5.

The condition is part of the answer. The expression x + 5 equals 10 at x = 5, while the original has no value there. On a graph, y = (x² - 25)/(x - 5) is the line y = x + 5 with a single point missing, usually drawn as a hole at (5, 10). The topic is developed in why excluded values survive cancellation.

Dividing both sides of an equation by a variable raises a related danger. In x² = 6x, dividing by x gives x = 6 and silently drops the solution x = 0. Factor instead: x(x - 6) = 0, so x = 0 or x = 6, an application of the zero product property.

Zeros hidden in larger expressions

Excluded values are not always sitting in plain sight. Three situations are worth recognizing.

A nested fraction has more than one denominator. In 1/(1 - 2/x), the small fraction needs x ≠ 0, and the large denominator needs 1 - 2/x ≠ 0, which means x ≠ 2. Both values are excluded.

A division sign creates a denominator out of whatever follows it. In (x/4) ÷ ((x - 1)/(x + 3)), you need x + 3 ≠ 0 because it is a denominator, and x - 1 ≠ 0 because you cannot divide by a fraction whose value is zero. So x cannot be -3 or 1. The value x = 0 is fine here and makes the whole quotient 0.

A negative exponent is a fraction in disguise. The expression (x - 6)⁻¹ means 1/(x - 6), so x ≠ 6.

Formulas from other subjects follow the same rule. The expression d/t for average speed needs t ≠ 0, which matches common sense: a trip that takes no time has no average speed. If d = 0 and t = 2 hours, the speed is 0/2 = 0, which simply says you did not get anywhere.

In a spreadsheet, a divide-by-zero message usually means a cell in the denominator is empty or zero. Find out why before covering the message with a default value.

Zero and undefined in slopes

The slope of a line is rise over run, the change in y divided by the change in x. It shows both zero cases in a picture.

A horizontal line through (1, 4) and (6, 4) has slope (4 - 4)/(6 - 1) = 0/5 = 0. The line is perfectly flat, and its steepness really is zero.

A vertical line through (2, 1) and (2, 7) would have slope (7 - 1)/(2 - 2) = 6/0, which is undefined. The line exists and is easy to draw, but it has no slope. Saying "no slope" for a flat line causes confusion, so use "zero slope" and "undefined slope." There is a closer look at zero and undefined slope.

Common questions

Why do calculators show an error for 5 ÷ 0?

The device has no number it can correctly display. Some programming systems return a special symbol for infinity or "not a number" under their own arithmetic standards. Those are conventions for handling exceptions in software, and they do not make division by zero valid in algebra.

Is zero divided by a variable always zero?

Only for values where the variable is not zero. The expression 0/x equals 0 for every x ≠ 0 and is undefined at x = 0.

How can I check my answer quickly?

Substitute it into the original expression, before any simplifying. Compute the denominator first. If it comes out 0, the value is excluded. If it is nonzero and the numerator is 0, the fraction equals 0.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 41 articles in Pre-Algebra Foundations →

Latest news on this topic