Pythagorean theorem calculator

MA-11Math

Find the missing side of a right triangle plus its area, perimeter and angles.

Find
Area
6
Perimeter
12
Angle opposite a
36.87°
Angle opposite b
53.13°

Last updated: October 2026 · Report a calculation error

The Pythagorean theorem

In a right triangle, the squares of the two legs add up to the square of the hypotenuse: a² + b² = c². The hypotenuse c is opposite the right angle and is the longest side.

Example: legs of 3 and 4 give c = √(9 + 16) = √25 = 5. The calculator also shows the area (6), perimeter (12) and the acute angles: 36.87° and 53.13°.

How to find a leg

When you know the hypotenuse and one leg: b = √(c² − a²). For c = 13 and a = 5: b = √(169 − 25) = √144 = 12.

abc
345
51213
81517
72425

These are Pythagorean triples — right triangles with whole-number sides.

Practical uses

  • Checking a right angle on site: measure 3 m along one wall and 4 m along the other — the diagonal must be exactly 5 m.
  • Ladder length: to reach 4 m high standing 1 m from the wall you need √(16 + 1) ≈ 4.12 m.
  • The diagonal of a screen, room or plot of land.

Frequently asked questions

Does it work for any triangle?

No — only right triangles. For others use the law of cosines: c² = a² + b² − 2ab·cos γ.

How do I find the diagonal of a rectangle?

It’s the hypotenuse of a triangle with the rectangle’s sides: a 4 × 3 rectangle has a diagonal of 5.

See alsoWhole category

  1. MA-01Percentage calculatorFind X% of a number, what percent one number is of another and percentage change.
  2. MA-02Root and exponent calculatorCalculate the n-th root or any power of a number.
  3. MA-03Fraction calculatorAdd, subtract, multiply and divide fractions with automatic simplification.
  4. MA-04Number base converterConvert numbers between decimal, binary, octal and hexadecimal.