• Foundation
  • About 16 min
  • 5 practice questions

Combining two squares: the Baudhāyana-Pythagoras theorem

Combine two different squares into one using a right triangle, understand why a² + b² = c² for every right triangle, and use it to find the hypotenuse or a missing side.

If something looks wrong, please tell us.

By the end of this lesson you can

  • State the Baudhāyana-Pythagoras theorem and explain why it is true.
  • Find the hypotenuse of a right triangle from the other two sides.
  • Find one of the shorter sides when the hypotenuse and the other side are known.

We can now join two equal squares into one bigger square: build it on the diagonal. Baudhāyana went further and solved the general problem: how do you join two different squares into a single square whose area is their total? His answer is one of the most useful results in mathematics.

Baudhāyana's rule

Take two squares with sides a and b. Make a right-angled triangle whose two shorter sides (the sides forming the right angle) are a and b. Then the square built on the hypotenuse has area equal to the sum of the areas of the two squares. In symbols, if c is the hypotenuse:

If a right-angled triangle has shorter sides a and b and hypotenuse c, then a² + b² = c².

— The Baudhāyana-Pythagoras theorem

Baudhāyana stated this rule in general form in his Śulba-Sūtra, about 800 BCE. The Greek thinker Pythagoras (about 500 BCE), who lived a few centuries later, also studied it, so it is widely called the Pythagorean theorem. Calling it the Baudhāyana-Pythagoras theorem makes clear which result is meant and credits both. If a = b, the rule gives c² = 2a², which matches the doubled square of the last lesson.

Joining two squares into one

  1. Two squares with sides a and b Areas a² and b².
  2. Right triangle with shorter sides a and b Place the sides at a right angle.
  3. Square on the hypotenuse c Build a square on the longest side.
  4. Area c² = a² + b² The new square holds exactly both old squares.

Why it works

Baudhāyana's own explanation is a cut-and-rearrange argument. Place the two squares side by side so that their bases lie on one line; the shape has area a² + b². Cut off two copies of the right triangle with sides a and b from this shape, and slide them to new positions. The pieces fit together, without gaps or overlaps, into a square whose four sides are each the hypotenuse c, and whose four corners are right angles (at each corner, the two acute angles of the triangle, which add up to 90°, meet). Nothing was added or removed, so c² = a² + b². Try it with paper squares of two sizes.

There is also a quick check with algebra you met in Part I. Arrange four copies of the triangle inside a big square of side a + b, so that they leave a tilted square of side c in the middle. Area of the big square = (a + b)² = a² + 2ab + b². It also equals the tilted square plus four triangles: c² + 4 × (½ab) = c² + 2ab. Comparing, a² + 2ab + b² = c² + 2ab, so a² + b² = c².

Worked example 1: finding the hypotenuse

A right triangle has shorter sides 6 cm and 8 cm. Find the hypotenuse.

c² = 6² + 8² = 36 + 64 = 100.
c = √100 = 10 cm.

Check by drawing: a right angle with arms 6 cm and 8 cm, joined up, measures 10 cm.

Worked example 2: finding a shorter side

A right triangle has hypotenuse 17 cm and one shorter side 15 cm. Find the third side b.

15² + b² = 17², so 225 + b² = 289.
b² = 289 − 225 = 64, so b = √64 = 8 cm.

To find a shorter side, subtract the squares; to find the hypotenuse, add them.

Worked example 3: an answer that is not a whole number

Shorter sides 2 and 5. Then c² = 4 + 25 = 29. Since 5² = 25 and 6² = 36, c lies between 5 and 6. Going further: 5.3² = 28.09 and 5.4² = 29.16, so 5.3 < c < 5.4.

Which side are you finding?

  • Finding the hypotenuse c
    • Square both shorter sides
    • Add the squares: c² = a² + b²
    • Take the square root
  • Finding a shorter side b
    • Square the hypotenuse and the known side
    • Subtract: b² = c² − a²
    • Take the square root

Key takeaways: in every right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides: a² + b² = c². Add squares to find the hypotenuse, subtract squares to find a shorter side, and use bounds when the answer is not a perfect square.

Check your understanding

  1. 1. A right triangle has shorter sides 5 cm and 12 cm. How long is its hypotenuse?

    1. 17 cm
    2. 13 cm
    3. √17 cm
    4. 169 cm
    Show answer

    Answer: B. c² = 5² + 12² = 25 + 144 = 169, so c = √169 = 13 cm. Adding the sides (17) is a common slip; it is the squares that add.

  2. 2. A right triangle has hypotenuse 25 cm and one shorter side 7 cm. Find the other side.

    1. 18 cm
    2. 32 cm
    3. 24 cm
    4. 26 cm
    Show answer

    Answer: C. b² = 25² − 7² = 625 − 49 = 576, so b = √576 = 24 cm. Check: 7² + 24² = 49 + 576 = 625 = 25².

  3. 3. Two squares have areas 49 cm² and 576 cm². What is the side of the single square that has their combined area?

    1. 25 cm
    2. 31 cm
    3. 625 cm
    4. 35 cm
    Show answer

    Answer: A. Combined area = 49 + 576 = 625 cm². The side is √625 = 25 cm. (The squares have sides 7 cm and 24 cm, the shorter sides of a right triangle with hypotenuse 25 cm.)

  4. 4. A right triangle has shorter sides 3 and 5. Between which two whole numbers does its hypotenuse lie?

    1. 7 and 8
    2. 4 and 5
    3. 8 and 9
    4. 5 and 6
    Show answer

    Answer: D. c² = 3² + 5² = 9 + 25 = 34. Since 5² = 25 and 6² = 36, and 25 < 34 < 36, the hypotenuse lies between 5 and 6.

  5. 5. For a right triangle with shorter sides a and b and hypotenuse c, which statement is always true?

    1. a + b = c
    2. a² + b² = c²
    3. a² − b² = c²
    4. c² = 2ab
    Show answer

    Answer: B. The Baudhāyana-Pythagoras theorem says a² + b² = c². For example, 3² + 4² = 9 + 16 = 25 = 5², while 3 + 4 = 7 is not 5.

Privacy · Terms · Refunds · Delivery