A number is rational if it can be written as a fraction p/qp/q of integers with q≠0q \neq 0, 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

2\sqrt{2} is irrational — it cannot be expressed as pq\frac{p}{q} where p,qp, q 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: 2\sqrt{2} is not equal to any fraction of integers.

Proof by contradiction

Assume 2=pq\sqrt{2} = \frac{p}{q} in lowest terms (i.e., gcd⁡(p,q)=1\gcd(p, q) = 1).

Squaring both sides: 2=p2q22 = \frac{p^2}{q^2}, so p2=2q2p^2 = 2q^2.

Since p2p^2 is even, pp must be even (the square of an odd number is odd). Write p=2rp = 2r.

Substituting: (2r)2=2q2⇒4r2=2q2⇒q2=2r2(2r)^2 = 2q^2 \Rightarrow 4r^2 = 2q^2 \Rightarrow q^2 = 2r^2.

So q2q^2 is even, meaning qq is also even.

But if both pp and qq are even, they share factor 2 — contradicting our assumption that gcd⁡(p,q)=1\gcd(p, q) = 1. ■\blacksquare

Two steps carry the weight. The lemma "the square of an odd number is odd" is one line of algebra: (2k+1)2=4k2+4k+1=2(2k2+2k)+1(2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1. And "lowest terms" is not an extra assumption but a free choice: if 2\sqrt{2} were any fraction at all, it would also be a reduced one. We may also take p,q>0p, q > 0, since 2>0\sqrt{2} > 0.

The card below walks the same argument one line at a time, and checks every line on a pair you choose. Drag p/qp/q along the number line or set pp and qq: a ✓ marks a line your pair makes true. However you choose, the first line (coprime) and the eighth (both even) never hold together, and p2−2q2p^2 - 2q^2 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 7/57/5. It is in lowest terms, and 72−2⋅52=−17^2 - 2 \cdot 5^2 = -1: close, but not zero. Press "double p and q" and the pair becomes 14/1014/10. Now pp is even, so the proof's next move applies: p=2rp = 2r and the pair (q,r)(q, r) takes its place. The card follows that descent, 14/10→10/7→7/514/10 \to 10/7 \to 7/5, and it stops at an odd pp — here, back at the fraction it started from. Each step halves p2−2q2p^2 - 2q^2 and flips its sign, so a nonzero gap runs out of halvings. Only a pair with p2=2q2p^2 = 2q^2 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 3/2, 7/5, 17/12, 41/29, 99/70, …3/2,\ 7/5,\ 17/12,\ 41/29,\ 99/70,\ \ldots, each made from the one before by p/q→(p+2q)/(p+q)p/q \to (p + 2q)/(p + q). They solve the Pell equation p2−2q2=±1p^2 - 2q^2 = \pm 1 and are the convergents of the continued fraction 2=[1;2,2,2,…]\sqrt{2} = [1; 2, 2, 2, \ldots]: the best rational approximations of 2\sqrt{2}, each closer than any fraction with a smaller denominator. A difference of ±1\pm 1 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 p2=2q2p^2 = 2q^2, count the factors of 2. A square has every prime to an even power, so 22 appears in p2p^2 an even number of times, and in q2q^2 an even number of times too — which makes the count in 2q22q^2 odd. One integer cannot have both, so p2=2q2p^2 = 2q^2 has no solution in positive integers. This version needs no "lowest terms" at all.

Third proof: the rational root theorem

If a polynomial anxn+⋯+a0a_n x^n + \cdots + a_0 with integer coefficients has a rational root p/qp/q in lowest terms, then pp divides a0a_0 and qq divides ana_n. For x2−2x^2 - 2 that leaves only ±1\pm 1 and ±2\pm 2 as candidates, and none of them squares to 22. So 2\sqrt{2}, a root of x2−2x^2 - 2, is not rational. The same check settles x3−2x^3 - 2, x2−3x^2 - 3 and many others at a glance.

Fourth proof: infinite descent, without parity

Suppose 2=p/q\sqrt{2} = p/q with qq the smallest possible positive denominator. Since 1<2<21 < \sqrt{2} < 2, we have q<p<2qq < p < 2q. Then

2q−pp−q=(2−2) q(2−1) q=2 (2−1)2−1=2,\frac{2q - p}{p - q} = \frac{(2 - \sqrt{2})\,q}{(\sqrt{2} - 1)\,q} = \frac{\sqrt{2}\,(\sqrt{2} - 1)}{\sqrt{2} - 1} = \sqrt{2},

and the new denominator satisfies 0<p−q<q0 < p - q < q — a smaller one, contradicting the choice of qq. 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 nn, n\sqrt{n} is rational if and only if nn is a perfect square. If n=p/q\sqrt{n} = p/q then p2=nq2p^2 = n q^2. Every prime appears to an even power in p2p^2 and in q2q^2, so it appears to an even power in nn — and a number whose prime exponents are all even is a square. Hence 3\sqrt{3}, 5\sqrt{5}, 6\sqrt{6}, 8\sqrt{8} are irrational, and 9=3\sqrt{9} = 3 is not. The same argument shows nk\sqrt[k]{n} is irrational unless nn is a perfect kk-th power.

The parity proof transfers directly to d\sqrt{d} for any prime dd, because a prime that divides p2p^2 divides pp. It breaks where it should. For 4\sqrt{4}, the analogous steps give p2=4q2p^2 = 4q^2, then p=2rp = 2r and r2=q2r^2 = q^2: nothing forces qq to be even, and indeed 4=2/1\sqrt{4} = 2/1.

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 3\sqrt{3} up to 17\sqrt{17}.

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 p2p^2 divides pp. For a composite number the step fails: 4∣624 \mid 6^2 but 4∤64 \nmid 6.
  • Arguing from decimals. "The decimals of 2=1.41421356…\sqrt{2} = 1.41421356\ldots 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 2\sqrt{2} 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 x2=2x^2 = 2.
  • Assuming irrationality is preserved by arithmetic. 2⋅2=2\sqrt{2} \cdot \sqrt{2} = 2 and 2+(−2)=0\sqrt{2} + (-\sqrt{2}) = 0. Irrational plus rational is irrational, but irrational plus irrational can be anything.
  • Confusing irrational with transcendental. 2\sqrt{2} is irrational and algebraic: it is a root of x2−2x^2 - 2.

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.