Can you write exactly as a fraction? Not a close one like . An exact one, some whole number divided by another whole number, that lands on dead on.
You can't. And this isn't "nobody's found it yet." It's proven impossible, and it has been for about 2,500 years.
The story goes that this exact fact broke a group of ancient Greek mathematicians called the Pythagoreans, who believed every length in the universe could be measured as a ratio of whole numbers. Then someone in their own school proved that the diagonal of a simple square couldn't be. Legend says they drowned him for it. True or not, the discomfort was real: this proof cracked open a hole in numbers that took centuries to properly understand.
So let's build the proof ourselves, piece by piece, until you can see exactly why refuses to be a fraction.
Can't we just try really hard to find one?
Before reaching for a proof, it's worth asking the obvious question: what if we just search? Pick a denominator , find the whole number that gets closest to , and check how close lands to 2.
For each b, a is the closest whole number to b√2. The bar shows a² − 2b². Find one that touches the line.
Slide through different values of , or hit scan and watch them all go by. Notice the bars never touch that dashed line. jumps around, sometimes close to zero, sometimes not, but it never actually lands on it. No matter how far you search, this quantity refuses to hit exactly 0.
That's suggestive, but it's not proof. We checked 20 fractions. There are infinitely many. To actually settle this, we need an argument that covers every possible and at once, not just the ones we tried.
What does "lowest terms" actually buy us?
Here's the strategy: assume IS a fraction, , and follow that assumption until it breaks.
But there's a sneaky move we get to make first. Any fraction, no matter how bloated, can be reduced by dividing out whatever numerator and denominator have in common. reduces to . also reduces to . So if really does equal some fraction, it equals one written in lowest terms too, where the top and bottom share no common factor at all.
7×4 over 5×4, grouped into 4 identical blocks. Cancel the shared blocks and see what's left.
Watch what happens as you cancel the shared blocks. No matter how big gets, there's always a bottom layer left standing where nothing more can be divided out. We're allowed to assume and share no common factor, because every fraction can be pushed down to a version that doesn't. We write that as .
That one assumption is about to do all the work.
Why does being even force to be even?
We're going to need one more tool before the trap can close: a fact about even and odd numbers.
Claim: if is even, then itself has to be even. Watch it hold across a whole range of numbers before we say why.
Scan every n from 1 to 20. Watch the color of n and the color of n² always agree. Hover any column to inspect it.
Hover across the strip. The color of on top always matches the color of below it, every single time. Here's why it has to. If is even, write . Then , which is 2 times something, so it's even. If is odd, write . Then , which is 2 times something plus 1, so it's odd. Even numbers square to even numbers, odd numbers square to odd numbers, and there's no third option. So if you know is even, can't be odd. It has to be even.
Now we have both pieces: the lowest-terms assumption, and this parity lemma. Time to put them together.
So what actually happens when we assume ?
Here's the whole proof, laid out one forced step at a time.
Step through the whole proof. Every box is forced by the one before it.
Assume √2 equals a fraction a/b, already reduced so gcd(a, b) = 1.
Step through it slowly. Every box follows from the one before it, no leaps, no guessing. We assumed in lowest terms. That forced . That forced to be even. Writing and substituting back forced to be even too. And now both and are even, which means they share the factor 2, which flatly contradicts from step one.
We didn't choose that contradiction. It was forced, the same way N+1 is forced to beat any candidate for "largest number." The only assumption we made anywhere in this chain was that could be written as a fraction in the first place. Since everything after that was airtight, that's the assumption that has to give.
There is no pair of whole numbers and with . is irrational.
Why does this matter beyond one square root?
This isn't just a fact about . It's the moment numbers stopped being simple.
Before this proof, "number" basically meant "whole number, or a ratio of whole numbers." That covers a lot of ground: every measurement you could physically construct with a ruler and a compass, everyone assumed, would land on some fraction eventually. is not exotic. It's just the diagonal of a unit square, about as basic a shape as geometry has. And it sits completely outside the world of fractions.
The same proof structure works for , , and most square roots of whole numbers that aren't perfect squares. Once you see it here, you can rebuild it anywhere a "no fraction can do this" claim shows up: assume it can, force out a property that can't coexist with the setup, and the assumption collapses.
The short version
Assume in lowest terms, meaning and share no common factor. Squaring gives , so is even, which forces to be even. Write and substitute back in, and turns out even too, which forces to be even as well. But if and are both even, they share the factor 2, contradicting the fact that we started with no common factor at all.
The assumption breaks. can't be written as a fraction. It's irrational, and it always was.
All visualizations are interactive React components running entirely in your browser, built with plain SVG. No libraries beyond React.