Why Can’t You Divide by Zero? (0/0 and 1/0 Explained)
Quick answer: Division by zero is undefined because division must undo multiplication. For 6 ÷ 0, no number works: any number times 0 gives 0, never 6. For 0 ÷ 0, every number passes the multiplication check, so there is no single answer. Neither has a value in ordinary arithmetic. But 0 ÷ 6 = 0 is perfectly valid, and 1 ÷ 0 is not infinity.
Facts checked November 22, 2026.
Ask a calculator for \(1 \div 0\) and it shows an error. Ask a phone assistant and it may make a joke. Ask a computer program and you might get Infinity, NaN or a crash. Behind all of these is one short argument that anyone who knows multiplication can follow. If you want the basic rules first, see our lesson on division by zero.
Why Is Division by Zero Undefined? The Simple Proof
Division is defined through multiplication. Saying \(a \div b = c\) means exactly that \(c \times b = a\). For example, \(12 \div 4 = 3\) because \(3 \times 4 = 12\).
Now try \(6 \div 0 = c\). That would mean
\[ c \times 0 = 6. \]But any number times 0 is 0, never 6. No number \(c\) works, so \(6 \div 0\) has no answer. The same reasoning works for every nonzero number divided by zero.
Why Zero Has No Reciprocal
A reciprocal is the number you multiply by to get 1. The reciprocal of 4 is \(\tfrac{1}{4}\), because \(4 \times \tfrac{1}{4} = 1\). Zero has no reciprocal, because \(0 \times c = 0\) for every number \(c\), never 1. That is another way to see that \(1/0\) is undefined.
What Is 0 Divided by 0?
For \(0 \div 0 = c\) we would need \(c \times 0 = 0\). This time the problem is the opposite: every number works. \(5 \times 0 = 0\), \(-2 \times 0 = 0\), \(1{,}000 \times 0 = 0\). A division should give one answer, and here there is no way to choose one, so \(0 \div 0\) is also undefined.
Undefined vs Indeterminate
In calculus, when the top and bottom of a fraction both approach zero, the limit is said to have the indeterminate form 0/0. The name means “you need more information,” because such limits can come out differently:
\[ \lim_{x \to 0} \frac{x}{x} = 1, \qquad \lim_{x \to 0} \frac{x^2}{x} = 0, \qquad \lim_{x \to 0} \frac{x}{x^2} \text{ does not exist}. \]“Indeterminate” describes a limit. It does not mean the number \(0 \div 0\) has several valid values: the arithmetic expression itself stays undefined.
| Expression | What we need | Problem | Result |
|---|---|---|---|
| \(6 \div 0\) | \(c \times 0 = 6\) | No number works | Undefined |
| \(0 \div 0\) | \(c \times 0 = 0\) | Every number works | Undefined (indeterminate) |
| \(0 \div 6\) | \(c \times 6 = 0\) | Only \(c = 0\) works | \(0\) |
Notice the last row: dividing zero by a number is perfectly fine and gives 0.
Try it: Division-by-Zero Explorer
Change the numbers and check the multiplication yourself. Whenever the denominator is 0, no answer passes the check.
Is 1 Divided by 0 Infinity?
No. \(1 \div 0\) is undefined, not infinity.
The guess comes from what happens as the divisor gets close to zero:
| \(x\) | 1 | 0.1 | 0.01 | 0.001 | −0.001 | −0.01 | −0.1 |
|---|---|---|---|---|---|---|---|
| \(1 \div x\) | 1 | 10 | 100 | 1,000 | −1,000 | −100 | −10 |
In limit notation,
\[ \lim_{x \to 0^+} \frac{1}{x} = +\infty, \qquad \lim_{x \to 0^-} \frac{1}{x} = -\infty. \]Because the two sides behave differently, the two-sided limit does not exist. On a graph of \(y = 1/x\), the two branches shoot off in opposite directions along the vertical line \(x = 0\), which the curve never touches. More importantly, approaching zero is not the same as dividing by zero: a limit can describe unbounded growth without making \(1/0\) a number.
The Fake Proof That 1 = 2
Division by zero is the hidden mistake in a famous trick:
- Let \(a = b\), with \(b \neq 0\).
- Multiply by \(a\): \(a^2 = ab\).
- Subtract \(b^2\): \(a^2 – b^2 = ab – b^2\).
- Factor: \((a + b)(a – b) = b(a – b)\).
- Divide both sides by \(a – b\): \(a + b = b\).
- Since \(a = b\): \(2b = b\), so \(2 = 1\).
Step 5 divides by \(a – b\), which is 0 because \(a = b\). This is exactly why mathematics refuses to define division by zero: allowing it would let you “prove” anything.
Can You Ever Divide by Zero?
In ordinary arithmetic (real numbers), no. Mathematicians have built other number systems where a symbol for \(1/0\) exists, but each one pays a price:
- The Riemann sphere adds a single point \(\infty\) to the complex numbers, so \(1/0 = \infty\) is allowed. But \(0/0\), \(\infty – \infty\) and \(0 \times \infty\) remain undefined.
- The extended real line adds \(+\infty\) and \(-\infty\) for limits, but still leaves \(1/0\) undefined, because of the sign problem shown above.
- Advanced note: more unusual structures, such as “wheels,” define every division, including \(0/0\), but familiar rules like \(x – x = 0\) stop holding in general. They are research curiosities, not school arithmetic.
What Computers Do With Division by Zero
| Language or tool | \(1 / 0\) | \(0 / 0\) |
|---|---|---|
| JavaScript (Number) | Infinity | NaN |
JavaScript (BigInt, 1n / 0n) | RangeError | RangeError |
| Python (built-in numbers) | ZeroDivisionError | ZeroDivisionError |
| NumPy (64-bit floats) | inf (warning by default) | nan (warning by default) |
| Most calculators | Error | Error |
Computers do not override the math. JavaScript numbers and NumPy floats follow the IEEE 754 floating-point standard, which defines special values: a signed infinity for a nonzero number divided by zero and NaN (“not a number”) for 0/0. These are computing conventions that flag a problem, not real-number answers: in JavaScript even 1 / -0 gives -Infinity, and NaN is not equal to itself. For more on how computers store numbers, see why 0.1 + 0.2 does not equal 0.3.
When Division by Zero Disabled a Navy Ship
In September 1997, the US Navy cruiser USS Yorktown, a test ship for the “Smart Ship” program, lost propulsion off the coast of Virginia. According to an October 24, 1997, Atlantic Fleet memo described by Government Computer News, the ship’s computers could not handle a division by zero after a zero was entered into a database field; later reporting said a petty officer had entered it while calibrating a fuel valve. The failure took down the engineering network’s consoles, and fleet officials said the ship was dead in the water for about 2 hours and 45 minutes. The lesson for programmers: check inputs before they reach a division.
How Division by Zero Affects AI
Neural networks divide constantly: averaging, normalizing and scaling. If a denominator becomes 0, a single NaN can spread through millions of calculations and ruin a training run. That is why AI code adds a tiny positive number, called epsilon (\(\varepsilon\)), for numerical stability. In PyTorch, the Adam optimizer’s default epsilon is \(10^{-8}\), added outside the square root, while layer normalization’s default is \(10^{-5}\), added inside it:
Epsilon is not a universal fix: its size and placement depend on the algorithm, and it slightly changes the result.
The math rule “never divide by zero” becomes the engineering rule “make sure you never can.”
Common Misconceptions
“Anything divided by zero is zero.” No. That would require \(0 \times 0 = 6\) for \(6 \div 0\).
“Anything divided by zero is infinity.” Not in ordinary arithmetic. Infinity is not a real number, and the two one-sided limits of \(1/x\) disagree.
“Zero divided by zero is 1.” No. Every number \(c\) satisfies \(c \times 0 = 0\), so there is no single answer.
“You can’t divide zero.” You can: \(0 \div 5 = 0\). Only dividing by zero is undefined.
Watch: Why You Cannot Divide by Zero
If you learn better by watching, these videos are worth your time.
Check Your Understanding
Five quick questions to see how much of this has stuck. Pick an answer and press Submit; you will see a short explanation either way.
Answer each question and press Submit to see your result right away.
Frequently Asked Questions
Why can you not divide by zero?
Division undoes multiplication. To find 6 ÷ 0 you would need a number that gives 6 when multiplied by 0, but every number times 0 is 0. So no answer exists, and division by zero is undefined.
What is 0 divided by 0?
It is undefined. Every number c satisfies c × 0 = 0, so there is no single answer. In calculus, 0/0 is called an indeterminate form.
Is 1 divided by 0 infinity?
Not in ordinary arithmetic. As x approaches 0, 1/x goes to positive infinity from the right and negative infinity from the left, so no single value exists, and infinity is not a real number.
Does zero have a reciprocal?
No. A reciprocal must multiply with the number to give 1, but 0 times any number is 0.
What is 0 divided by a number?
Zero. For example, 0 ÷ 5 = 0, because 0 × 5 = 0.
What happens when a computer divides by zero?
It depends on the system. JavaScript returns Infinity or NaN, Python raises a ZeroDivisionError, and most calculators show an error.
Keep Exploring
Sources and Further Reading
- Government Computer News, Software glitches leave Navy Smart Ship dead in the water (July 1998)
- Wolfram MathWorld: Division by Zero
- Government Computer News, Navy: Calibration flaw crashed Yorktown LAN (November 1998)
- MDN: BigInt division by zero (RangeError)
- PyTorch documentation: torch.optim.Adam
- PyTorch documentation: torch.nn.LayerNorm
Related to This Article
More math articles
- Ideal Weight Calculator
- The Ultimate GACE Elementary Education Math Course
- TDEE Calculator
- Snake Game
- NCLEX SATA Partial Credit: How Plus/Minus Scoring Works (2027 Prep)
- Scientific polling
- Binary, Decimal & Hexadecimal Converter (Free, with Steps)
- Conic Sections
- Credit Card Interest Calculator: Payoff Time and Total Interest
- HSPT Math Practice Test Questions


What people say about "Why Can’t You Divide by Zero? (0/0 and 1/0 Explained) - Effortless Math"?
No one replied yet.