Pythagorean Theorem Formula

Find the third side of a right-angled triangle, or the straight-line distance between two points.

The formula

c = √(a² + b²)

Variables and units

SymbolMeaningUnit
chypotenuse, the side opposite the right angleany length unit
a, bthe two sides that form the right anglesame length unit

Other forms of the formula

The same relationship rearranged, so you can solve for whichever quantity is unknown.

  • a = √(c² − b²)
  • b = √(c² − a²)

How it works

In any right-angled triangle, the square on the longest side equals the sum of the squares on the other two sides. Taking the square root gives the length itself.

The same relationship measures the diagonal of a rectangle and the distance between two points on a grid. All three lengths must be in the same unit before you start.

Worked example

A television screen is 48 inches wide and 27 inches high. What is its diagonal?

  1. c = √(48² + 27²)
  2. c = √(2304 + 729)
  3. c = √3033 = 55.07

About 55 inches, which is how the screen would be advertised.

Common mistakes

  • Applying it to a triangle without a right angle.
  • Adding the sides before squaring: (a + b)² is not a² + b².
  • Mixing units, such as one side in feet and the other in inches.

Where it is used

Checking that corners are square on a building site (the 3-4-5 rule), finding screen diagonals, ladder lengths and cable runs.

Frequently asked questions

What is the formula for Pythagorean theorem?

c = √(a² + b²). Rearranged to find the other quantities: a = √(c² − b²); b = √(c² − a²).

What do the symbols mean, and which units should I use?

c is hypotenuse, the side opposite the right angle (any length unit); a, b is the two sides that form the right angle (same length unit). Use consistent units so the answer comes out in the unit you expect.

What are common mistakes with this formula?

Applying it to a triangle without a right angle. Adding the sides before squaring: (a + b)² is not a² + b².

Where is this formula used?

Checking that corners are square on a building site (the 3-4-5 rule), finding screen diagonals, ladder lengths and cable runs.

Is there a worked example?

Yes. A television screen is 48 inches wide and 27 inches high. What is its diagonal? About 55 inches, which is how the screen would be advertised.