Skip to content

← Math Further 9–12

Can You Prove √2 Is Not a Fraction?

Topic 17 · Grades 9–12 · Proof by contradiction

What this builds on from class
In this unit 9 sections
  1. Hunt for the fraction
  2. Proof by contradiction
  3. A proof you can see
  4. What the proof really says
  5. Harder puzzles of the same kind
  6. A story from maths
  7. Where this is used
  8. Questions
  9. Where to go next

Your maths teacher chalks a square on the school courtyard, exactly 1 meter on each side, and asks you to measure its diagonal. The tape says 141 centimeters and a bit, about 141.4. Your calculator, asked for √2, says 1.41421356… and fills the screen. Your friend Bikash shrugs: “The calculator just ran out of room. Somewhere there is a fraction, maybe with a bottom of a few lakh, that is exactly √2. Nobody has found it yet.”

Is he right? A fraction is one whole number over another, like 7/5 or 577/408. For it to be exactly √2, its square must be exactly 2. You can hunt for one right now.

Guess first. Is there a fraction, with any whole numbers you like on top and bottom, whose square is exactly 2?

Pick an answer to see why.

Try it

Hunt for the fraction

Choose a bottom (− and + move it by one). The page takes the nearest top, the only one worth trying. The fraction is exactly √2 only if top² = 2 × bottom². Can you find one that hits? Which bottoms miss by only 1?

107 squared is 2.04081633… p² = 100 2 × q² = 98
Off by
2 too many

Not equal, so this fraction is not exactly √2.

Off by just 1: a near miss! It goes on your list.

Off by just 1, but you have this one already.

Near misses (off by 1) with bottoms up to 1,000: 0 of 9

  1. 1/1
  2. 3/2
  3. 7/5
  4. 17/12
  5. 41/29
  6. 99/70
  7. 239/169
  8. 577/408
  9. 1,393/985

Hunt for the fraction

Why compare top² with 2 × bottom²? If p/q=2 p/q = \sqrt{2} , square both sides: p2/q2=2 p^2/q^2 = 2 , so p2=2q2 p^2 = 2q^2 . The question about a never-ending decimal turns into a question about whole numbers: are there two whole numbers, one of whose squares is exactly twice the other’s? Whole numbers are exact, so there is no rounding to hide behind.

Start small. With bottom 1, you need a square equal to 2; but 12=1 1^2 = 1 and 22=4 2^2 = 4 jump right over it. With bottom 2, you need a square equal to 8, which lies between 4 and 9. Here are the best tops for the first few bottoms, and for 12:

Bottom q Best top p p2 p^2 2q2 2q^2 Off by
1 1 1 2 1 too few
2 3 9 8 1 too many
3 4 16 18 2 too few
4 6 36 32 4 too many
5 7 49 50 1 too few
6 8 64 72 8 too few
12 17 289 288 1 too many

Never zero. Most bottoms miss by a few, but a handful miss by exactly 1, as close as two different whole numbers can be. Sweep the widget all the way to 1,000 and you find nine of them:

11, 32, 75, 1712, 4129, 9970, 239169, 577408, 1393985 \frac{1}{1},\ \frac{3}{2},\ \frac{7}{5},\ \frac{17}{12},\ \frac{41}{29},\ \frac{99}{70},\ \frac{239}{169},\ \frac{577}{408},\ \frac{1393}{985}

Look at them as a list, not one at a time. Can you see how each comes from the one before? Take 7/5. Its bottom plus its top, 5 + 7 = 12, is the next bottom. The next top is the old top plus twice the old bottom, 7 + 2 × 5 = 17. Check it on 17/12: the next is (17 + 24)/(17 + 12) = 41/29. And the misses take turns, 1 too few, then 1 too many, then 1 too few.

The near misses get closer and closer. 99/70 is 1.4142857…, off by less than one ten-thousandth; 577/408 is 1.4142157…, off by about two millionths. Each one is a better and better fraction for √2, but each misses by that stubborn 1. Will the hunt ever land a 0?

A computer checks every bottom from 1 to 10 million, as our own script for this page did, and finds no fraction whose square is exactly 2. What does that prove?

Pick an answer to see why.

Proof by contradiction

Here is the way to be sure about infinitely many fractions without checking any of them. Suppose there were a fraction that squares to exactly 2. Follow what it would force to be true, step by step, using only facts you are certain of. If the steps lead to something impossible, like a number that is both odd and even, then the supposition was wrong: there is no such fraction.

This is called proof by contradiction. You may have used it already on the island of truth-tellers and liars (Who Is Telling the Truth?): “if Asha told the truth, she would be a liar” rules Asha out. A detective uses it too: “if the butler did it, he was in two places at nine o’clock; nobody can be, so the butler didn’t do it.”

One more tool first. A fraction can always be canceled down until top and bottom have no common factor: 18/12 becomes 3/2 when you divide both by 6. A fraction that can’t be canceled any further is in its lowest terms. If √2 were a fraction, it would be some fraction in lowest terms, so we may start from one.

Proof 1: the last digits

This proof needs nothing but multiplication. Suppose p2=2q2 p^2 = 2q^2 , with p/q in lowest terms. The last digit of a square depends only on the last digit of the number squared:

A number ending in 0 1 2 3 4 5 6 7 8 9
its square ends in 0 1 4 9 6 5 6 9 4 1
twice its square ends in 0 2 8 8 2 0 2 8 8 2

p2 p^2 is a square, so its last digit is in the middle row: 0, 1, 4, 5, 6 or 9. 2q2 2q^2 is twice a square, so its last digit is in the bottom row: 0, 2 or 8. They are the same number, so they end in the same digit, and the only digit in both rows is 0.

So p2 p^2 ends in 0, which the table says happens only when p ends in 0. And 2q2 2q^2 ends in 0 only when q ends in 0 or 5. Either way, both p and q are divisible by 5. But then the fraction could be canceled by 5, and we said it was in lowest terms. Contradiction. So no fraction squares to exactly 2.

Proof 2: odd and even

This is the proof the ancient Greeks knew. Aristotle, in his book on reasoning, the Prior Analytics, used it as his example of proof by contradiction: if the diagonal and side of a square could be measured by one unit, he said, odd numbers would have to equal even ones.

Suppose p2=2q2 p^2 = 2q^2 , in lowest terms.

  • p2=2q2 p^2 = 2q^2 is 2 times a whole number, so p2 p^2 is even. An odd number times itself is odd, so p can’t be odd: p is even. Write it as p = 2k.
  • Then (2k)2=2q2 (2k)^2 = 2q^2 , that is 4k2=2q2 4k^2 = 2q^2 , so q2=2k2 q^2 = 2k^2 . Now q2 q^2 is even, and by the same reasoning q is even.
  • Both p and q are even, so the fraction could be canceled by 2. But it was in lowest terms. Contradiction.

The same wall, odd never equal to even, is why twelve fifths never land exactly on an octave in Why Does a Scale Have Twelve Notes?.

In Proof 2, why may we assume the fraction is in lowest terms?

Pick an answer to see why.

Proof 3: count the 2s

Every whole number bigger than 1 breaks into primes in only one way (the fundamental theorem of arithmetic, in Is There a Biggest Prime Number?): 360 = 2 × 2 × 2 × 3 × 3 × 5, whatever order you find them in.

Now count the 2s. Squaring a number doubles every prime in it: 12 = 2 × 2 × 3 has two 2s, and 122=144 12^2 = 144 has four. So a square always has an even number of 2s (perhaps none). In p2=2q2 p^2 = 2q^2 , the left side has an even number of 2s. The right side has the even number in q2 q^2 , plus one more: an odd number. One number can’t have both an even and an odd number of 2s in its only breakdown into primes. Contradiction, and this time without even needing lowest terms.

This is the proof that grows. Nothing in it is special to 2:

  • 3 \sqrt{3} : in p2=3q2 p^2 = 3q^2 , count the 3s. Even on the left, odd on the right. Not a fraction.
  • ∛2, the cube root of 2: in p3=2q3 p^3 = 2q^3 , the 2s on the left come in threes, and on the right there are a multiple of three plus one. Not a fraction.
  • n \sqrt{n} for any whole number n that isn’t a perfect square: some prime in n appears an odd number of times, and counting that prime gives the contradiction.

Which of these is a fraction (a rational number)?

Pick an answer to see why.

A proof you can see

The fourth proof uses no odd or even and no primes, only a picture. It is said to have been found by Stanley Tennenbaum while he was a student, in the early 1950s.

Suppose p2=2q2 p^2 = 2q^2 for some whole numbers, and take the smallest such pair. In pictures: a square of side p has exactly the area of two squares of side q. Put the two small squares inside the big one, in opposite corners. They overlap in a middle square, which is covered twice, and they leave two corner squares bare. If the two small squares really have the same total area as the big one, then the area covered twice must exactly equal the area left bare.

But look at the sides. The middle square has side 2q − p, and each bare corner has side p − q. Both are whole numbers bigger than 0, since p2=2q2 p^2 = 2q^2 lies between q2 q^2 and (2q)2 (2q)^2 , so p lies between q and 2q; and 2q − p is less than p. “Middle = two corners” says (2q−p)2=2(p−q)2 (2q - p)^2 = 2(p - q)^2 : a smaller pair with the same property. Yet we took the smallest pair. Contradiction. (Or without “smallest”: each pair gives a smaller one, forever, and whole numbers can’t shrink forever. This is called infinite descent.)

Try it

Step down

Pick a near miss to start from and press Step down. Each step takes the middle square and one bare corner as the next pair.

292941side p = 99q = 70
p² =
9,801
2 × q² =
9,800
Off by
1 too many

99/70→ 41/29→ 17/12→ 7/5→ 3/2→ 1/1→ 0/0→ 0/0

Middle covered twice, two corners bare: equal areas only if p² = 2q².

One step down: a smaller pair, missing by the same 1.

Down to 1/1. An exact pair would have to shrink forever, so there is none.

From 99/70 the steps go 41/29, 17/12, 7/5, 3/2, 1/1: the near-miss list, backwards, each still missing by exactly 1, until it bottoms out at 1/1. An exact pair would give another exact pair at every step and never reach a bottom. In algebra, for any whole numbers,

p2−2q2=−[ (2q−p)2−2(p−q)2 ]. p^2 - 2q^2 = -\left[\,(2q - p)^2 - 2(p - q)^2\,\right].

The step down keeps the size of the miss, so a miss of 1 stays 1 and a miss of 0 would stay 0 forever.

What the proof really says

√2 is a real length

None of this says √2 doesn’t exist. It is a perfectly real length: the diagonal of your chalk square. Here is a square whose area is exactly 2, and whose side is therefore exactly √2.

area 211√2half of 1
Figure 17.1 Four unit squares make a 2 × 2 square. The diagonals of the four make a tilted square of four half-squares, so its area is 2 and its side is √2.

The tilted square’s side is the diagonal of a unit square, and its area is 2, so the diagonal is √2. (This is the drawing in Plato’s dialogue Meno, where Socrates, only by asking questions, leads a slave boy who has never been taught geometry to find the square twice the size of a given one.)

What the proof says is that the side and the diagonal have no common measure. However tiny a unit you choose, it can’t fit a whole number of times along both the side and the diagonal, or their ratio would be a fraction. The Greeks called such lengths incommensurable; today we call √2 an irrational number: a number that is not a ratio of whole numbers.

“Its decimals never end” is not the reason

And the calculator? 1.41421356 is a fraction (141,421,356 over 100,000,000), and its square is 1.9999999932…, close but not 2. Every number a calculator stores is a fraction, fine for building and measuring. The proof is about exactly.

Harder puzzles of the same kind

Mixing rational and irrational

Is 1+2 1 + \sqrt{2} a fraction? Suppose it were, 1+2=r 1 + \sqrt{2} = r with r a fraction. Then 2=r−1 \sqrt{2} = r - 1 , and a fraction minus 1 is a fraction. But √2 isn’t. Contradiction: 1+2 1 + \sqrt{2} is irrational. The same argument shows:

  • a fraction plus an irrational number is always irrational;
  • a fraction (other than 0) times an irrational number is always irrational: if 32=r 3\sqrt{2} = r , then 2=r3 \sqrt{2} = \frac{r}{3} , a fraction.

But two irrational numbers can combine to give a fraction. 2+(−2)=0 \sqrt{2} + (-\sqrt{2}) = 0 , and 2×8=16=4 \sqrt{2} \times \sqrt{8} = \sqrt{16} = 4 . One such example, a counterexample, is enough to show that “irrational + irrational is always irrational” is false. A proof by contradiction shows something is true in every case; a counterexample shows a claim fails in at least one.

Which statement is always true?

Pick an answer to see why.

The twist: when the proof should fail

A good test of any proof is to try it where the answer is “yes”, and see where it breaks. Try Proof 2 on 4 \sqrt{4} , which is the fraction 21 \frac{2}{1} . Suppose p2=4q2 p^2 = 4q^2 in lowest terms. Then p2 p^2 is even, so p is even, p = 2k. Then 4k2=4q2 4k^2 = 4q^2 , so k2=q2 k^2 = q^2 : nothing forces q to be even, and there is no contradiction. Good: the proof stops exactly where it should. Counting primes agrees: 4 = 2 × 2 has an even number of 2s.

A story from maths

Where this is used

Questions

a. ★ Which of these can be written as a fraction of two whole numbers?

Pick an answer to see why.

b.★

Prove that 5 \sqrt{5} is not a fraction, using Proof 3 (count a prime).

Hint
Answer
c.★★

Prove that 3−22 3 - 2\sqrt{2} is irrational.

Hint
Answer
d.★★

Baudhayana’s value is 577408 \frac{577}{408} . Use the near-miss rule to find the next two near misses after it, and check the first.

Answer
e.★★★

Prove that 2+3 \sqrt{2} + \sqrt{3} is irrational.

Hint
Answer

Where to go next

Where these facts come from
  • The Shulba Sutras (four major ones, Baudhayana’s the oldest, possibly compiled around 800–500 BCE), Baudhayana’s rule for the diagonal in translation and its value 577/408, Heath’s three stages and his finding of no evidence of irrationality in the Shulba Sutras: Wikipedia, “Shulba Sutras”, citing Plofker (2007) and Heath (1925), read October 2026.
  • 577/408 = 1.414215686, correct to five decimal places; the altar twice the size; Datta’s 1932 suggestion of cutting a second square into strips: MacTutor, “Baudhayana” and “The Indian Sulbasutras”, read October 2026.
  • The Babylonian tablet YBC 7289 (about 1800–1600 BCE); the Pythagoreans and the legend of Hippasus; Aristotle’s Prior Analytics I.23; Tennenbaum’s proof in the early 1950s; the proofs by descent, by unique factorization and by the square picture: Wikipedia, “Square root of 2”, read October 2026.
  • Aristotle’s example of proof by contradiction (odd numbers equal to evens if the diagonal were commensurate), Prior Analytics, Book I, Part 23: the Internet Classics Archive’s text (tr. A. J. Jenkinson), read October 2026; retold in our own words.
  • Hippasus: no ancient writer specifically credits him with the discovery; Pappus’s and Iamblichus’s stories of a member drowned at sea: Wikipedia, “Hippasus”, read October 2026.
  • Theodorus and the squares of area 3 up to 17, in Plato’s Theaetetus; area 2 not mentioned: Wikipedia, “Theodorus of Cyrene”, read October 2026.
  • The near-miss fractions as the sequence 1/1, 3/2, 7/5, 17/12, 41/29, 99/70 (Pell numbers) and 577/408 among them: Wikipedia, “Pell number”, read October 2026.
  • Lambert’s proof that π is irrational, published 1768: Wikipedia, “Proof that π is irrational”, read October 2026.
  • Jarden’s 1953 argument about 22 \sqrt{2}^{\sqrt{2}} , the Gelfond–Schneider theorem, and that π+e \pi + e is not known to be irrational: Wikipedia, “Irrational number”, read October 2026. The Gelfond–Schneider theorem, proved independently in 1934: Wikipedia, “Gelfond–Schneider theorem”, read October 2026.
  • Socrates and the slave boy doubling the square by its diagonals: Wikipedia, “Meno”, read October 2026.
  • The A series: the √2 ratio, Lichtenberg’s letter of 25 October 1786, DIN 476 in 1922, A0 of one square meter, A4 210 × 297 mm, the quoted sentence on rounding, the 71% copier setting: Markus Kuhn, “International standard paper sizes”, read October 2026.
  • The seventeen proof assistants, each proving the irrationality of √2: Freek Wiedijk (compiler), “The Seventeen Provers of the World”, read October 2026.
  • Every number on this page (the near-miss table and ladder, the search to 10 million, the last-digit table, 1.41421356², the step-down chain and its identity, Baudhayana’s fraction and its error, the A sizes’ ratios, 22 \sqrt{2}^{\sqrt{2}} , and the answers to the questions) was computed by a script, checks/textbooks/math-further-9-12/17/tmp/answers.py.