GEOMETRY · RIGHT TRIANGLES · ELEMENTARY

Pythagorean Theorem

The Pythagorean Theorem connects the three side lengths of every right triangle. It helps find a missing side, test whether an angle is right, and calculate straight-line distances from perpendicular measurements.

THEOREM STATEMENT

The square of the hypotenuse equals the sum of the squares of the legs

For a right triangle whose perpendicular legs have lengths a and b and whose hypotenuse has length c:

a2+b2=c2a^2+b^2=c^2

The hypotenuse is opposite the 90° angle and is the longest side. This relationship applies to right triangles in Euclidean geometry; it is not a rule for every triangle.

Right triangle with legs a and b and hypotenuse cThe horizontal leg a and vertical leg b meet at a marked right angle; the opposite sloping side is hypotenuse c.abc90°The hypotenuse lies opposite the right angle
Legs a and b meet at the right angle. The opposite side c is the hypotenuse.

What the formula means

Squaring a side length gives the area of a square built on that side. The theorem says the area of the square on the hypotenuse equals the combined areas of the squares on the two legs. If the legs are 3 and 4 units, their square areas are 9 and 16 square units. Together they make 25 square units, so the hypotenuse is 5 units.

32+42=523^2+4^2=5^2

Letters represent positive lengths, and all measurements must use the same unit before calculation. The equation compares squared lengths (for example, cm²); taking a square root returns a length. Keep the units attached to each step so the result is easy to interpret.

The theorem is useful even when a right triangle is hidden in a diagram. A rectangle’s diagonal, the height of an isosceles triangle, or the distance between two points creates a right triangle. Identify the perpendicular sides first, then substitute. If the angle is not 90°, use another relationship such as the Law of Cosines.

Proof using similar triangles

Draw the altitude from the right-angle vertex to the hypotenuse. It splits the hypotenuse into segments p and q, with p + q = c. The two smaller triangles are similar to the original: each has a right angle and shares an acute angle with the large triangle.

  1. 1
    Relate leg a to its projection.

    Similarity gives a/c = p/a. Multiplying both sides by ac gives a² = cp.

    a2=cpa^2=cp
  2. 2
    Relate leg b to the other projection.

    For the second smaller triangle, b/c = q/b, so b² = cq.

    b2=cqb^2=cq
  3. 3
    Add and use p + q = c.

    The projections fill the hypotenuse. Substituting their sum gives the theorem.

    a2+b2=cp+cq=c(p+q)=c2a^2+b^2=cp+cq=c(p+q)=c^2

This proof uses the similarity of the altitude-created triangles. Another famous approach rearranges four congruent right triangles inside a square and compares the remaining areas. Different proofs illuminate different ideas, but all rely on the right-angle condition.

How to solve for a missing side

Find the hypotenuse

When both legs are known, add their squares and take the positive square root. A length cannot be negative.

c=a2+b2c=\sqrt{a^2+b^2}

Find a leg

If the hypotenuse and one leg are known, subtract the known leg’s square from c², then take the positive square root. For a valid nondegenerate triangle, c must be longer than either leg.

a=c2−b2a=\sqrt{c^2-b^2}

Worked example: ladder against a wall

A 13-foot ladder rests with its base 5 feet from a vertical wall. The ladder is opposite the right angle, so c = 13; the ground distance is a = 5. Let b be the height reached on the wall.

  1. 1
    Rearrange for the unknown leg.

    Subtract the known leg square from the hypotenuse square.

    b2=132−52=169−25=144b^2=13^2-5^2=169-25=144
  2. 2
    Take the positive square root and check.

    The height is 12 ft. The original relation is satisfied because 5² + 12² = 13².

    b=144=12 ftb=\sqrt{144}=12\text{ ft}

Worked example: an exact radical

For legs of 6 cm and 7 cm, c = √(6² + 7²) = √85 cm. Since 85 is not a perfect square, √85 cm is the exact answer. A value around 9.22 cm is only an approximation; retain the radical when an exact result is requested.

The converse: test whether a triangle is right

Let x ≤ y ≤ z be the side lengths of a triangle. If x² + y² = z², then the angle opposite z is 90°. The longest side must be used as z; testing the wrong side can give a false conclusion.

For 7, 24, and 25, 7² + 24² = 49 + 576 = 625 = 25², so the triangle is right. For 5, 6, and 8, the two shorter squares sum to 61, not 64; it is not a right triangle. This converse is a useful construction check when direct angle measurement is inconvenient.

A 3–4–5 triangle is particularly handy in building and surveying. Mark lengths 3, 4, and 5 in the same unit; the angle between the shorter lengths is right. Scaling all three lengths preserves the result, so 6–8–10 works as well.

Pythagorean triples and Euclid’s formula

A Pythagorean triple is a set of positive integers (a, b, c) satisfying a² + b² = c². Common examples are (3, 4, 5), (5, 12, 13), and (8, 15, 17). Multiplying every member by the same positive integer creates another triple, such as (6, 8, 10).

For integers m > n > 0, Euclid’s construction gives a triple from m² − n², 2mn, and m² + n² when m and n are coprime and have opposite parity. Choosing m = 2 and n = 1 produces 3, 4, 5. This generates integer right triangles; it is not required for a missing-side calculation.

a=m2−n2,b=2mn,c=m2+n2a=m^2-n^2,\quad b=2mn,\quad c=m^2+n^2

Applications beyond the classroom

Coordinate distance

Horizontal and vertical changes between two points form the legs of a right triangle, yielding the distance formula.

d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Building and design

Diagonal measurements help check square corners, frames, ramps, roof supports, and rectangular layouts.

Navigation and mapping

Perpendicular east–west and north–south displacements can be combined to estimate a straight-line distance.

Algebra and geometry

The theorem supports trigonometry, analytic geometry, and calculations involving diagonals, heights, and radii.

This is a Euclidean result. On a curved surface, ordinary flat-plane distances may not obey the equation over large regions. On a sphere, for example, a shortest path follows a great circle, so the geometry differs from a flat map.

History and attribution

The relationship was known and used in multiple ancient mathematical traditions before the surviving Greek proofs associated with the Pythagoreans. Babylonian records include numerical knowledge of right-triangle triples, while surveying and construction made reliable right-angle methods valuable. The theorem is named for Pythagoras because of its association with his school, but it is not historically safe to claim that one person first discovered it.

Euclid’s Elements includes a celebrated geometric proof in Book I. Its area-based construction compares squares and triangles. The modern name is a conventional label for a result with a long, shared history.

Common mistakes

  • Using the rule on a non-right triangle. Check that the included angle is 90°.
  • Misidentifying c. The hypotenuse is opposite the right angle and is the longest side.
  • Adding lengths rather than squares. Calculate a² and b² before adding.
  • Forgetting the square root. Isolate the squared side, then take the positive root.
  • Rounding too early or mixing units. Keep exact values and convert measurements to one unit before computing.

Pythagorean Theorem FAQs

What is the Pythagorean Theorem formula?

For legs a and b and hypotenuse c in a right triangle, a² + b² = c².

How do I find the hypotenuse?

Use c = √(a² + b²): square both perpendicular legs, add, and take the positive square root.

Can the theorem find a missing leg?

Yes. If c and one leg are known, subtract the known leg’s square from c² and take the positive square root.

Does it work for every triangle?

No. It applies to right triangles in Euclidean geometry. Non-right triangles require a different relationship, such as the Law of Cosines.

Who invented the theorem?

Its history predates the named Greek school and spans several ancient traditions. The familiar name reflects an association with Pythagoras, not a certain single-person discovery.