Skip to content
OddMaths
Back to Maths That Feels Wrongmaths feels wrong

Why You Can't Divide by Zero (and How 5 Becomes 3)

Calculators refuse to divide by zero, and for a very good reason. Allow it, and you could 'prove' that 5 equals 3. Here is why maths says no, with the help of some cookies.

There's one sum that calculators refuse to do: dividing by zero. It isn't being lazy. If it did the sum, maths would break.

The Cookie Test

Let's start with something easy. You have 12 cookies to share equally.

Share among 4 friends: 12 ÷ 4 = 3 each.
Share among 2 friends: 12 ÷ 2 = 6 each.
Share among 1 friend: 12 ÷ 1 = 12 each.

What if you share among 0 friends? Who gets the cookies? Nobody is there to receive them, so the question doesn't make sense. But that's not enough for a mathematician. They'd like to know if there's a number that works.

Stop and Think

Hint 1: Division is multiplication run backwards. 12 ÷ 3 = 4 because 4 × 3 = 12.
Hint 2: So if 12 ÷ 0 had an answer, what would you multiply by 0 to get 12?
Hint 3: What's the answer to any number multiplied by 0?

Why There's No Answer

Let's take the hints one at a time. If 12 ÷ 0 were some number, call it ?, then multiplying back would give:

? × 0 = 12

But any number times 0 is 0. Not 12. Not 5. Always 0. So no number can ever work, and 12 ÷ 0 has no answer. Mathematicians say it's undefined.

What about 0 ÷ 0? Now we'd need:

? × 0 = 0

This time every number works: 1 × 0 = 0, and 7 × 0 = 0, and 1,000 × 0 = 0. There's no single answer, so it's also not allowed. (Mathematicians call that one indeterminate.)

What If We Sneak Up on Zero?

Let's divide 12 by smaller and smaller numbers and watch what happens:

12 ÷ 4 = 3
12 ÷ 2 = 6
12 ÷ 1 = 12
12 ÷ 0.5 = 24
12 ÷ 0.1 = 120
12 ÷ 0.001 = 12,000
12 ÷ 0.000001 = 12,000,000

The answers explode. The closer we get to zero, the bigger they become, with no end. There's no number to stop at, which is another sign that "12 ÷ 0" isn't a number.

The Fake Proof: 5 = 3?

Here's what would happen if you were allowed to divide by zero. Read this carefully:

5 × 0 = 0
3 × 0 = 0
So 5 × 0 = 3 × 0.
Now "cancel" the zeros from both sides: 5 = 3!

Wait, what? 5 can't be 3. Something went wrong. The mistake is the "cancelling" step. Cancelling the zeros means dividing both sides by 0, and that's the forbidden move. If you allowed it, you could prove that any two numbers are equal.

So the rule against dividing by zero isn't there to annoy you. It's what keeps 5 and 3 different.

What Do Computers Do?

Different tools handle it differently:

Python stops and complains with a "ZeroDivisionError".
JavaScript says 1 ÷ 0 is Infinity, and 0 ÷ 0 is NaN ("Not a Number").

Both are choices made by the people who built the tools. In ordinary maths, the answer is simply that division by zero is undefined.

Try It Yourself

Cookie check. What is 20 ÷ 0.01? (Think: how many hundredths fit into 20?)

Multiplying back. Why can't 8 ÷ 0 equal any number?

Spot the mistake. Here's another fake proof: "2 × 0 = 1 × 0, so 2 = 1." Where is the mistake?

Check your answers: 20 ÷ 0.01 = 2,000. 8 ÷ 0 would need a number that, multiplied by 0, gives 8, and nothing times 0 gives 8. And in the fake proof, going from "2 × 0 = 1 × 0" to "2 = 1" means dividing both sides by 0, which isn't allowed.

The OddMaths Takeaway

Zero is a special number: when you multiply by it, everything turns into 0, and you can never get back. That's why dividing by it breaks the rules of maths.

So the calculator isn't being fussy when it says "Error". It's protecting you from proving that 5 equals 3.

🎯 Test Your Skill

Don't do it. Your calculator is watching.