Pythagorean Theorem Calculator
Find any side of a right triangle from the other two.
Enter your values and press Calculate to see the result and the working.
Formula used — Pythagorean theorem
Variables
- a First leg
- One of the two sides forming the right angle (m)
- c Hypotenuse
- The side opposite the right angle (m)
What does this calculator do?
Finds any side of a right triangle from the other two: the hypotenuse from the two legs, or a leg from the hypotenuse and the other leg.
When would you use it?
When checking that a corner really is square, sizing a leaning ladder, finding the direct distance between two points, or the diagonal of a screen or rectangle.
How the formula works
The theorem says the square on the hypotenuse equals the sum of the squares on the two legs. "Square" is literal here: draw a square on each side, and the one on the hypotenuse has exactly the combined area of the other two.
It applies to right triangles only — which makes it a practical test: measure three sides, and if the equation holds, the corner is exactly square.
That is the origin of the builder's 3-4-5 rule: any triangle in those proportions must be right-angled, because 9 + 16 = 25.
What does the result mean?
The hypotenuse is always longer than either leg and shorter than both added together. That matches reality: cutting the corner is shorter than going around it, but never shorter than a single side.
Common mistakes
Applying it to a triangle that is not right-angled is the fundamental error — it simply does not hold. Another is putting the hypotenuse where a leg belongs, which produces the root of a negative number or a meaningless answer.
Worked example
The 3-4-5 triangle
A right triangle with legs of 3 m and 4 m — how long is the hypotenuse?
A ladder's reach
A 5 m ladder with its base 3 m from a wall — how high does it reach?