Pythagorean Theorem Calculator: a² + b² = c² – Find Sides of a Right Triangle

tutorials

The Pythagorean theorem is far more than school mathematics – it appears in every roof pitch, in calculating the length of a ladder, and in finding the diagonal of a sports field. Whenever you have a right triangle and know two sides, the Pythagorean calculator instantly gives you the third side, accurately and without error.

Step by Step: How to Use the Pythagorean Calculator

  1. Choose the unknown side: Do you want to calculate the hypotenuse (c, the longest side opposite the right angle) or one of the legs (a or b)?
  2. Enter the known sides: For the hypotenuse: enter both legs a and b. For a leg: enter the hypotenuse c and the other leg.
  3. Set the unit: Choose mm, cm or m – all three sides must be in the same unit.
  4. Read the result: The calculator outputs the missing side and displays the formula and calculation step used.
  5. Calculate angles (optional): Some versions also calculate the interior angles using sine, cosine and tangent.

Practical Examples

Example 1 – Leaning a ladder against a wall: You want to lean a ladder against a house wall. The wall is 4.5 m high (b) and the ladder should stand 1.2 m from the house (a). Required ladder length: c = √(4.5² + 1.2²) = √(20.25 + 1.44) = √21.69 = 4.66 m. Buy a 5 m ladder.

Example 2 – Calculating roof pitch: A gable roof has a base span (half width) of 5 m and a ridge height of 2.8 m above the eaves. Rafter length: c = √(5² + 2.8²) = √(25 + 7.84) = √32.84 = 5.73 m. Round up to 6 m per rafter for the timber order.

Example 3 – Room diagonal: Rectangular room 4.2 × 6.5 m. Floor diagonal: c = √(4.2² + 6.5²) = √(17.64 + 42.25) = √59.89 = 7.74 m. Useful for knowing the maximum length of a piece of furniture that needs to be manoeuvred through the room.

The Pythagorean Theorem: a² + b² = c²

Hypotenuse: c = √(a² + b²). Leg: a = √(c² − b²). Classic example: the 3-4-5 triangle (3²+4²=9+16=25=5²). Roof pitch: base 4 m, height 3 m → rafter length = 5 m.

Frequently Asked Questions (FAQ)

How do I check whether my triangle is truly right-angled?
Use the converse of the Pythagorean theorem: if a² + b² = c², the triangle is right-angled. Tradespeople use this to check angles on site: a 3-4-5 triangle (in any scale) always has an exact right angle – handy for setting out foundations and paving areas.

Does Pythagoras work in three dimensions?
Yes – the space diagonal of a cuboid is d = √(a² + b² + c²). This is a two-step application of Pythagoras: first the floor diagonal d₁ = √(a² + b²), then the space diagonal d = √(d₁² + c²) = √(a² + b² + c²).

What is the difference between the hypotenuse and a leg?
The hypotenuse is always the longest side of a right triangle and lies opposite the right angle. The other two sides are called legs (or catheti). Memory tip: "hypo" comes from Greek and means "under" – the hypotenuse lies "under" (opposite) the right angle.