Proof that √2 is Irrational: Interactive Walkthrough
A number is rational if it can be written as a fraction of integers with , and irrational otherwise. The square root of 2 — the length of the diagonal of a unit square — is the first number ever shown to be irrational. The proof fits in a few lines, and it is worth knowing exactly why each line holds.
Theorem
is irrational — it cannot be expressed as where are integers with no common factors.
Since every fraction can be reduced by dividing numerator and denominator by their greatest common divisor, this says the same as: is not equal to any fraction of integers.
Proof by contradiction
Assume in lowest terms (i.e., ).
Squaring both sides: , so .
Since is even, must be even (the square of an odd number is odd). Write .
Substituting: .
So is even, meaning is also even.
But if both and are even, they share factor 2 — contradicting our assumption that .
Two steps carry the weight. The lemma "the square of an odd number is odd" is one line of algebra: . And "lowest terms" is not an extra assumption but a free choice: if were any fraction at all, it would also be a reduced one. We may also take , since .
The card below walks the same argument one line at a time, and checks every line on a pair you choose. Drag along the number line or set and : a ✓ marks a line your pair makes true. However you choose, the first line (coprime) and the eighth (both even) never hold together, and is never zero. "Next near miss" jumps through the fractions that come closest, each missing by exactly one.
The proof that √2 is irrational written out line by line, each line checked on a pair p/q the reader picks on a number line from 1 to 2, with the descent from that pair shown step by step until it stops.
A worked example
The card opens on . It is in lowest terms, and : close, but not zero. Press "double p and q" and the pair becomes . Now is even, so the proof's next move applies: and the pair takes its place. The card follows that descent, , and it stops at an odd — here, back at the fraction it started from. Each step halves and flips its sign, so a nonzero gap runs out of halvings. Only a pair with could keep descending for ever, through smaller and smaller positive integers — and no such sequence exists. The card gives up after 40 steps; no pair you can set comes anywhere near that.
The near misses are , each made from the one before by . They solve the Pell equation and are the convergents of the continued fraction : the best rational approximations of , each closer than any fraction with a smaller denominator. A difference of is as close as two integers can be without being equal, which is exactly why the gap never closes.
Second proof: unique factorisation
Every positive integer factors into primes in exactly one way (the fundamental theorem of arithmetic). In , count the factors of 2. A square has every prime to an even power, so appears in an even number of times, and in an even number of times too — which makes the count in odd. One integer cannot have both, so has no solution in positive integers. This version needs no "lowest terms" at all.
Third proof: the rational root theorem
If a polynomial with integer coefficients has a rational root in lowest terms, then divides and divides . For that leaves only and as candidates, and none of them squares to . So , a root of , is not rational. The same check settles , and many others at a glance.
Fourth proof: infinite descent, without parity
Suppose with the smallest possible positive denominator. Since , we have . Then
and the new denominator satisfies — a smaller one, contradicting the choice of . Geometrically, this is folding the side of an isosceles right triangle onto its hypotenuse: the leftover piece is a smaller isosceles right triangle with integer sides, if the first one had them.
Generalisation: when is √n irrational?
For a positive integer , is rational if and only if is a perfect square. If then . Every prime appears to an even power in and in , so it appears to an even power in — and a number whose prime exponents are all even is a square. Hence , , , are irrational, and is not. The same argument shows is irrational unless is a perfect -th power.
The parity proof transfers directly to for any prime , because a prime that divides divides . It breaks where it should. For , the analogous steps give , then and : nothing forces to be even, and indeed .
History, and a legend
The Pythagorean school in the 5th century BC discovered that the side and diagonal of a square are incommensurable: no unit of length, however small, measures both a whole number of times. This undid the belief that all magnitudes are ratios of whole numbers, and Greek mathematics answered with Eudoxus' theory of proportion, preserved in Book V of Euclid's Elements; Book X classifies incommensurable magnitudes. Aristotle (Prior Analytics I.23) cites the proof as the model of reduction to the impossible: if the diagonal were commensurable, odd numbers would equal even ones. Plato's Theaetetus tells how Theodorus showed the irrationality of up to .
The story that Hippasus of Metapontum was drowned at sea for revealing the secret comes from writers many centuries later, and the sources disagree about what he revealed. It is a legend, not a documented event.
Common mistakes
- Asserting "p² even, so p even" without reason. It is true, but it is the heart of the proof. The reason is that odd squares are odd — or, more generally, that a prime dividing divides . For a composite number the step fails: but .
- Arguing from decimals. "The decimals of never repeat" is equivalent to irrationality, not evidence for it; no finite number of digits can show it.
- Thinking the proof shows √2 does not exist. It shows is not a fraction. As a real number it exists — it is the side of a square of area 2, and the positive solution of .
- Assuming irrationality is preserved by arithmetic. and . Irrational plus rational is irrational, but irrational plus irrational can be anything.
- Confusing irrational with transcendental. is irrational and algebraic: it is a root of .
Short answers
Why is the square root of 2 irrational?
If √2 were a fraction p/q in lowest terms, squaring would give p² = 2q². Then p² is even, so p is even; writing p = 2r gives q² = 2r², so q is even too. Both even contradicts lowest terms, so no such fraction exists.
Why does p² even imply p even?
Because the square of an odd number is odd: (2k + 1)² = 4k² + 4k + 1 = 2(2k² + 2k) + 1. So if p were odd, p² would be odd. An even p² therefore forces p to be even.
Can we assume the fraction is in lowest terms?
Yes. Any fraction p/q equals one in lowest terms, obtained by dividing p and q by their greatest common divisor. If √2 equalled some fraction, it would equal a fraction in lowest terms, so assuming that costs nothing.
Is the square root of every non-square integer irrational?
Yes. If n is a positive integer that is not a perfect square, √n is irrational. If √n = p/q then p² = n q², and comparing prime factorisations shows every prime appears in n to an even power, which makes n a perfect square.
Is √2 transcendental?
No. √2 is irrational but algebraic: it is a root of the polynomial x² − 2 with integer coefficients. Transcendental numbers such as π and e are roots of no such polynomial.
Who first proved that √2 is irrational?
The discovery is credited to the Pythagoreans in the 5th century BC, as the incommensurability of the side and the diagonal of a square. The story that Hippasus was drowned for revealing it is a later legend, not history.
Further reading
- G. H. Hardy, E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008. Chapter 4 proves the irrationality of √2 and its generalisations in several ways.
- M. Aigner, G. M. Ziegler, Proofs from THE BOOK, Springer. The chapter "Some irrational numbers" goes on to π and e.
- R. Courant, H. Robbins, What Is Mathematics?, Oxford University Press, 1941; 2nd ed. revised by I. Stewart, 1996. Incommensurable segments and the number line.
- G. H. Hardy, A Mathematician's Apology, Cambridge University Press, 1940. Uses this proof as one of two examples of a first-rate theorem.
- Euclid, Elements, Book X, on incommensurable magnitudes; Aristotle, Prior Analytics I.23.