Pythagorean theorem calculator
Pythagorean theorem formula
Worked example: why the 3-4-5 triangle always works
Step 1 — Square each side: 3² = 9 and 4² = 16, and 5² = 25.
Step 2 — Add the two smaller squares: 9 + 16 = 25.
Step 3 — Compare: the sum equals the square of the longest side exactly, so a triangle with sides 3, 4 and 5 must contain a right angle.
Any multiple of the same ratio works too, because the equation scales cleanly: 6-8-10, 9-12-15 and 30-40-50 are all right triangles. That is why the 3-4-5 pattern turns up on building sites — mark 3 units along one edge and 4 along the other, and the diagonal between the marks is exactly 5 only when the corner is square.
Real uses: ladders and screen sizes
Ladders are a find-the-leg problem. A 5 m ladder leans on a wall with its foot 3 m out from the base. The wall, the ground and the ladder form a right triangle, so the height it reaches is √(5² − 3²) = √(25 − 9) = √16 = 4 m. Notice the ladder itself is the hypotenuse — the longest side, opposite the right angle between wall and ground.
Screens are sold by their diagonal, which is a find-the-hypotenuse problem. A tablet screen measuring 20 cm by 15 cm has a diagonal of √(20² + 15²) = √(400 + 225) = √625 = 25 cm — that 25 cm corner-to-corner figure, converted to inches, is the size printed on the box.
Two checks before you start: the theorem only works on right triangles, so confirm one angle is 90°; and the hypotenuse must come out longer than either leg but shorter than the two legs added together. If your answer breaks either rule, a leg and the hypotenuse have been swapped somewhere.
Frequently asked questions
What is the Pythagorean theorem?
How do you find the hypotenuse?
How do you find a missing leg?
What is a 3-4-5 triangle?
Does it work for non-right triangles?
Is this Pythagorean calculator free?
Worked example: the 6-8-10 triangle
If the two short sides of a right triangle are 6 and 8, the hypotenuse is √(6² + 8²) = √(36 + 64) = √100 = 10. This 6-8-10 triangle is just the classic 3-4-5 triangle doubled, and builders use it to check corners are truly square: measure 6 units along one wall and 8 along the other — if the diagonal is exactly 10, the corner is a perfect right angle.
Solving for a short side works in reverse: with a hypotenuse of 13 and one side of 5, the other side is √(13² − 5²) = √(169 − 25) = √144 = 12.