Pythagorean Theorem Formula

GEOMETRY

Pythagorean theorem formula

The Pythagorean theorem relates the three sides of a right triangle. The square of the hypotenuse — the side opposite the right angle — equals the sum of the squares of the other two sides. It is the foundation of distance and geometry calculations.

c² = a² + b²

What each symbol means

Symbol Meaning Units
a One leg of the right angle any length unit
b The other leg same unit
c Hypotenuse (longest side) same unit

Rearranged forms

Solve for the hypotenuse: c = √(a² + b²)
Solve for a leg: a = √(c² − b²)

Worked example

A right triangle has legs of 3 and 4. Find the hypotenuse.

  1. Start from c² = a² + b².
  2. Substitute a = 3 and b = 4: c² = 9 + 16.
  3. Add: c² = 25.
  4. Take the square root: c = √25.
c = 5

All three sides must use the same length unit. The theorem only applies to right triangles; for other triangles use the law of cosines. The 3-4-5 and 5-12-13 are handy integer right triangles to remember.

Have two sides and need the third?

Enter any two sides and the Pythagorean Theorem Calculator finds the missing one and the area.

How the theorem works

Build a square on each side of a right triangle. The theorem says the area of the square on the hypotenuse exactly equals the combined area of the squares on the two legs. That geometric fact becomes the algebra c² = a² + b².

Where it is used

The theorem underpins the distance formula, navigation, construction layout (the 3-4-5 method for square corners), screen and TV diagonals, and any time you need a straight-line distance from horizontal and vertical amounts.

FAQ

What is the Pythagorean theorem?

For a right triangle, c² = a² + b², where c is the hypotenuse and a and b are the two legs.

Does it work for any triangle?

No, only right triangles. For triangles without a right angle, use the law of cosines, which adds a correction term.

What is a Pythagorean triple?

A set of three whole numbers that satisfy the theorem, such as 3-4-5 or 5-12-13. They form right triangles with integer sides.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.