Skip to content

Pythagorean Theorem

The relationship between the sides of a right triangle — the most practically used theorem in geometry.

△ Geometry

Formula used

c2=a2+b2

In any right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides.

What is this formula?

The theorem says the square on the hypotenuse equals the sum of the squares on the two legs. "Square" here is not a mathematical metaphor but a literal geometric description: draw a square on each side of the triangle and the one on the hypotenuse has exactly the combined area of the other two.

That geometric formulation is how the ancients knew it, centuries before it was written algebraically, and more than three hundred distinct proofs are documented.

The essential restriction is that it applies to right triangles only. That restriction is precisely what gives it its greatest practical value: it can be used as a test. Measure three sides, and if the equation holds the corner is exactly square — a builder's technique thousands of years old.

Hence the famous 3-4-5 rule: any triangle in those proportions must be right-angled, because 9 + 16 = 25. Carpenters and builders still use these numbers to set square corners without precision instruments.

The theorem also underpins the very notion of distance in mathematics: the distance formula between two points on a coordinate plane is simply Pythagoras written in coordinates.

Variables

a First leg
One of the two sides forming the right angle (any unit of length)
b Second leg
The other side forming the right angle (the same unit)
c Hypotenuse
The side opposite the right angle — always the longest (the same unit)

Units

All sides must share the same unit. The theorem is unit-agnostic; the answer carries whatever unit the inputs used.

Rearranged forms

c=a2+b2

For the hypotenuse directly from the two legs.

a=-b2+c2

For a leg from the hypotenuse and the other leg — such as how high a leaning ladder reaches.

Worked example

A 5 m ladder has its base 3 m from a wall. How high does it reach?

  1. b=-a2+c2
  2. b=4
  3. b=4

The ladder reaches 4 metres. Note this is the classic 3-4-5 triangle.

Where it is used

  • Checking a corner is truly square with the 3-4-5 rule.
  • Working out a screen or rectangle's diagonal from its two sides.
  • Finding the straight-line distance between two coordinates.
  • Calculating how high a leaning ladder reaches from its length and base distance.

Assumptions

  • The triangle is right-angled — otherwise the theorem simply does not apply.
  • The geometry is flat (Euclidean); it does not hold on a curved surface.

Related formulas