Numbers and Arithmetic

Why You Cannot Divide by Zero

See exactly what breaks when you divide by zero, why limits and computers seem to say otherwise, and where mathematicians bend the rule.

Key takeaways

  • The statement a ÷ b = c means that c is the one and only number with c × b = a.
  • For a nonzero number divided by zero no value works, and for zero divided by zero every value works.
  • Allowing division by zero while keeping the usual laws would force all numbers to be equal.
  • Limits describe what happens near zero in the denominator, which is a different question from dividing by zero.

You cannot divide by zero because division is defined as undoing multiplication, and multiplication by zero cannot be undone. To say that 6 ÷ 0 = c would mean c × 0 = 6, but every number times 0 is 0. No value of c works.

The case 0 ÷ 0 fails for the opposite reason: every value of c satisfies c × 0 = 0, so there is no way to pick one. In both cases the expression does not name a number, and mathematicians call it undefined.

What division means

The sentence 12 ÷ 3 = 4 is a statement about multiplication: 4 × 3 = 12. A division question asks for the missing factor.

For it to be a good question, two things must hold. There must be an answer, and there must be only one. For any nonzero divisor, both are true among the rational, real or complex numbers.

With divisor 0, the question "what times 0 gives 12?" has no answer. The question "what times 0 gives 0?" has too many: 7 works, −3 works, a million works.

You can also picture sharing or grouping. Twelve cookies in groups of three makes four groups. How many groups of zero cookies make twelve cookies? Taking more empty groups never gets you any closer. Repeated subtraction says the same thing: subtracting 0 from 12 again and again never reaches 0.

Three cases side by side

It helps to separate the situations that people lump together under "dividing with zero." Only two of them are problems.

Three divisions involving zero
0 ÷ 5 Asks: what times 5 gives 0? Exactly one answer: 0 Perfectly defined 5 ÷ 0 Asks: what times 0 gives 5? No answer exists Undefined 0 ÷ 0 Asks: what times 0 gives 0? Every number answers Undefined 0 ÷ 5 Asks: what times 5 gives 0? Exactly one answer: 0 Perfectly defined 5 ÷ 0 Asks: what times 0 gives 5? No answer exists Undefined 0 ÷ 0 Asks: what times 0 gives 0? Every number answers Undefined

Zero divided by a nonzero number is completely ordinary. If five people share nothing, each gets nothing. The trouble arises only when zero is the divisor.

A quick way to remember which is which is to rewrite the division as multiplication before deciding. If you can solve the multiplication in exactly one way, the division is fine.

Why zero times anything is zero

The argument rests on the fact that c × 0 = 0 for every c. This is not an extra assumption. It follows from the distributive law.

c × 0 = c × (0 + 0)          since 0 + 0 = 0
      = c × 0 + c × 0        distributive law
0     = c × 0                subtract c × 0 from both sides

So any number system that has addition, subtraction and the distributive law must send everything times zero to zero. These are rules you rely on constantly, as the basic laws of arithmetic explains.

Now suppose zero had a reciprocal z, meaning 0 × z = 1. We have just shown 0 × z = 0. So 1 = 0. Multiply both sides by any number x and you get x = 0. Every number would be zero, and arithmetic would collapse to a single element.

The fake proof that 1 = 2

Division by zero is the hidden step in many puzzle "proofs." Here is a classic one. Start with any nonzero number a and let b = a.

a = b
a² = ab                  multiply by a
a² − b² = ab − b²        subtract b²
(a + b)(a − b) = b(a − b)
a + b = b                divide by (a − b)     ← the error
2b = b
2 = 1                    divide by b

Every line is fine except the marked one. Since a = b, the quantity a − b is 0. The line before it says 2b × 0 = b × 0, which is true, and cancelling the zeros turns a true statement into a false one.

The same trap appears in honest algebra. If you divide both sides of x² = 5x by x, you get x = 5 and lose the solution x = 0. The safe method is to write x(x − 5) = 0 and consider each factor.

What happens nearby

People often say that 1 ÷ 0 "is infinity." The intuition comes from dividing by small numbers.

x 1/x x 1/x
0.1 10 −0.1 −10
0.01 100 −0.01 −100
0.0001 10,000 −0.0001 −10,000

As x approaches 0 through positive values, 1/x grows without bound. Through negative values it falls without bound. The two sides head in opposite directions, so there is not even a single behavior to assign to the point x = 0.

In the language of calculus, we say the one-sided limits are +∞ and −∞. The symbol ∞ here describes unbounded growth. It is not a real number. One-sided limits shows how to read such statements.

Why 0/0 is called indeterminate

In limit problems you often meet a fraction whose top and bottom both approach zero. The result depends on how fast each one gets there. All of these have the form 0/0 as x approaches 0:

2x / x      → 2
x² / x      → 0
x / x³      grows without bound   (x ≠ 0)
sin x / x   → 1                   (x in radians)

In each, you never actually divide by zero. A limit concerns values of x close to 0 but different from it, where the fraction is perfectly defined.

This is the foundation of the derivative. The slope of x² at x = 3 comes from

((3 + h)² − 9)/h = (6h + h²)/h = 6 + h      for h ≠ 0
as h → 0 this approaches 6

You cancel h only while it is nonzero, and then ask where the simplified expression is heading. Evaluating limits of the form 0/0 collects the standard techniques.

What calculators and computers do

A basic calculator shows an error. Software is more varied, and the differences confuse people.

Many programming languages raise an error or exception for integer division by zero. Standard floating-point arithmetic, defined by the IEEE 754 standard, has special values instead. Under its default rules, 1.0 divided by positive zero gives positive infinity, and 0.0 divided by 0.0 gives NaN, short for "not a number." Some languages override this and raise an error anyway.

These special values are engineering conventions that let a long computation continue and flag a problem. They do not turn 1 ÷ 0 into a real number. NaN even compares as unequal to itself.

Some proof-checking systems define x ÷ 0 to be 0 as a convenience, so that the division function accepts every input. Their theorems about division then carry the condition that the divisor is nonzero, so no false results about ordinary arithmetic follow.

When mathematicians add a point at infinity

There are respectable systems where 1/0 has a value. In complex analysis, the Riemann sphere adds a single point called ∞ to the complex plane and sets 1/0 = ∞ and 1/∞ = 0. Projective geometry does something similar with a line that closes up into a loop.

Notice what is given up. In these systems, expressions such as 0 × ∞, ∞ − ∞ and 0/0 remain undefined. The new point does not obey all the rules of ordinary numbers, so you cannot cancel or rearrange freely around it.

So the accurate statement is this. In ordinary arithmetic, and in any structure called a field, division by zero is not defined. You may build another structure where a symbol like 1/0 is meaningful, provided you say which rules survive.

Where the problem hides

Watch for denominators that can be zero without looking like zero.

  • The expression (x² − 4)/(x − 2) equals x + 2 only when x ≠ 2. The original is undefined at 2.
  • The slope between two points, (y₂ − y₁)/(x₂ − x₁), is undefined for a vertical line. Zero slope belongs to a horizontal line.
  • The formula for an average divides by the number of items, so an empty list has no average.
  • A percentage change from a starting value of 0 has no value.
  • In the quadratic formula, a = 0 makes the denominator vanish, which is why the formula assumes a ≠ 0.

In spreadsheets and programs, test the denominator first and decide what the program should report. Replacing an error with 0 can quietly corrupt totals and averages.

A worked exercise in domains

The domain of an expression is the set of inputs for which it is defined. Finding it often comes down to ruling out zero denominators. Take

f(x) = (x + 1)/(x² − x − 6)

Factor the bottom: x² − x − 6 = (x − 3)(x + 2). The denominator is zero when x = 3 or x = −2, so the domain is every real number except those two.

Now solve an equation that has a trap built in:

x/(x − 2) = 2/(x − 2)       requires x ≠ 2
x = 2                       multiply by x − 2
but x = 2 is excluded, so there is no solution

Multiplying both sides by x − 2 is legitimate only while it is nonzero. The "answer" it produced is precisely the value that was forbidden, which is called an extraneous solution. Always return to the original equation and check.

The same care applies in proofs with letters. Before cancelling a factor, write down why it cannot be zero, or treat the zero case separately. That one habit prevents most hidden divisions by zero.

Explaining it to someone else

The shortest honest explanation is a challenge: "Find the number that you can multiply by 0 to get 6." After a few tries, the learner sees why no search will succeed.

Then ask for the number that multiplies 0 to give 0, and collect several correct answers. That shows why 0 ÷ 0 is also off limits.

Phrases such as "you're not allowed" make it sound like an arbitrary ban. It is better to say that the question has no single answer. The rule protects every other rule you use, including the ones that make signs multiply the way they do.

Written for 4Mathematics 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 38 articles in Numbers and Arithmetic →

Latest news on this topic