Pythagorean Theorem

Part of Mathematics

How to calculate the length of any side of a right-angled triangle — essential for construction, navigation, and surveying.

Why This Matters

The Pythagorean theorem is the most practically useful theorem in elementary mathematics. It states that in any right triangle, the square of the longest side (hypotenuse) equals the sum of the squares of the other two sides. This single relationship unlocks an enormous range of practical problems: finding the height of a building without climbing it, determining the diagonal of a rectangular field, calculating roof rafter lengths, checking that walls meet at right angles, and computing distances you cannot directly measure.

Every time a builder checks that a floor is square by measuring both diagonals, they are applying — at least intuitively — the Pythagorean theorem. Every time a surveyor measures the distance between two points not in a straight line, they are using it. The theorem was known and used practically for thousands of years before Pythagoras was born: Babylonian clay tablets from 1800 BCE record Pythagorean triples, and Egyptian builders used the 3-4-5 rope trick to lay right angles. The theorem is ancient, universal, and indispensable.

Understanding the theorem fully — not just the famous formula but also how to apply it, when to apply it, and how to verify your results — is a core competency for anyone involved in construction, surveying, or navigation in a rebuilding community.

The Theorem Stated

For a right triangle with legs a and b and hypotenuse c:

a² + b² = c²

Where:

  • a and b are the two shorter sides (legs) that form the right angle
  • c is the longest side (hypotenuse), opposite the right angle

Example: A triangle has legs 3 m and 4 m. What is the hypotenuse?

  • c² = 3² + 4² = 9 + 16 = 25
  • c = √25 = 5 m

This is the famous 3-4-5 right triangle. It is worth memorizing as an instantly usable tool. See 3-4-5 Triangle for full practical applications.

Visual Proof

The simplest visual proof: draw a square of side (a+b). Inside it, arrange four identical right triangles with legs a and b, positioned so their hypotenuses form a central square. The central square has side c. The area of the large square = (a+b)² = a² + 2ab + b². The four triangles together have area 4 × (½ab) = 2ab. The central square’s area = (a+b)² − 2ab = a² + 2ab + b² − 2ab = a² + b². So c² = a² + b². QED.

This proof requires no advanced algebra — only the ability to compute the area of a square and a triangle — making it excellent for teaching.

Solving for Each Side

Finding the hypotenuse: c = √(a² + b²)

Finding a leg: a = √(c² − b²)

All three rearrangements of the same relationship. The challenge is computing square roots by hand.

Computing Square Roots Without a Calculator

Method 1: Trial and Estimation

For modest precision, estimate by finding the nearest perfect square, then interpolate.

Example: √50

  • 7² = 49, 8² = 64
  • 50 is just above 49, so √50 ≈ 7.07
  • Refine: 7.07² = 49.98 ✓ (close enough for most construction)

Perfect squares to memorize:

n
11
24
39
416
525
636
749
864
981
10100
12144
15225
20400
25625

Method 2: Babylonian (Newton-Raphson) Method

For any number S, starting with an initial guess x₀:

  • Better guess: x₁ = (x₀ + S/x₀) ÷ 2
  • Repeat until stable

Example: √50, starting with x₀ = 7

  • x₁ = (7 + 50/7) ÷ 2 = (7 + 7.143) ÷ 2 = 7.071
  • x₂ = (7.071 + 50/7.071) ÷ 2 = (7.071 + 7.071) ÷ 2 = 7.071 ✓

Converges in 2–3 iterations to precision better than 0.001 for any starting guess within a factor of 2.

Key Pythagorean Triples

A Pythagorean triple is three whole numbers (a, b, c) satisfying a² + b² = c². These are valuable because you can lay them out with a rope or measuring tape and get a perfect right angle without any calculation.

TripleNotes
3-4-5Most common, easiest
5-12-13Useful for larger layouts
8-15-17Longer proportions
7-24-25Very long span
6-8-10Scaled 3-4-5
9-12-15Scaled 3-4-5
12-16-20Scaled 3-4-5

All multiples of a Pythagorean triple are also triples. If you know 3-4-5, then 30-40-50 also works.

Practical Applications

Roof Rafter Length

A roof has a horizontal run of 4.5 m (half the building width) and a rise of 2 m. What length rafter do you need?

c = √(4.5² + 2²) = √(20.25 + 4) = √24.25 ≈ 4.92 m

Cut rafters to 4.92 m (plus overhang allowance).

Checking a Foundation for Square

A rectangle that is truly square (right-angled corners) will have both diagonals equal in length. Use the theorem to compute what the diagonal should be, then measure it.

For a 6 m × 8 m foundation:

  • Diagonal = √(6² + 8²) = √(36 + 64) = √100 = 10 m

Measure both diagonals. If both equal 10 m, the corners are square. If they differ, adjust until they match.

Height of a Tree or Wall

Stand at a measured distance (say 12 m) from the base. Use a simple angle sighting device to determine the angle of elevation. For basic applications without trigonometry, use the 3-4-5 method: step back until the tree appears at a 45° angle (equal to your distance from the base), then the height equals your distance. For other angles, see Trigonometry Basics.

Alternatively: hold a straight stick vertically at arm’s length. Adjust your position until the top of the stick aligns with the treetop and the bottom aligns with the base. The height of the tree equals your distance from it times the stick height divided by arm length — a ratio calculation that also uses Pythagorean geometry.

Diagonal Bracing

A rectangular gate or door frame needs diagonal bracing to resist racking (parallelogram deformation). The brace length:

For a gate 1.2 m wide × 2 m tall:

  • Brace = √(1.2² + 2²) = √(1.44 + 4) = √5.44 ≈ 2.33 m

Cut the brace to 2.33 m and it will fit exactly corner to corner, providing maximum rigidity.

Limitations and Extensions

The Pythagorean theorem applies only to flat (planar) geometry. On curved surfaces — the Earth’s surface, for instance — it fails for large distances. For surveying over distances greater than a few kilometers, spherical trigonometry is needed. For practical construction and land measurement up to hundreds of meters, flat-plane Pythagorean geometry is accurate enough.

The theorem also does not directly give you angles — it gives you lengths. To find angles from side lengths, you need Trig Ratios (sine, cosine, tangent). But for many construction problems — checking squareness, cutting rafters, measuring diagonals — you need only lengths, and the Pythagorean theorem is sufficient.

Learn the theorem, memorize the 3-4-5 triple, practice the Babylonian square root method, and you have a powerful toolkit for construction mathematics that has served builders for 4,000 years.