Enter any two sides of a right-angled triangle and the calculator finds the third side using the Pythagorean theorem, showing the full substitution so students can follow every step.
The side opposite the right angle — always the longest side, labeled c here. The other two sides (legs) are a and b.
Rearrange the theorem: a = √(c² − b²). The hypotenuse must be longer than either leg; if it is not, the triangle cannot be a right triangle with those sides and the calculator says so.
No. The theorem is true only for right-angled triangles. For other triangles you need the law of cosines — the Trigonometry Calculator on this site can help with angles and ratios.
Because 3² + 4² = 5² exactly, builders and carpenters have used a 3-4-5 rope or tape to mark true right angles for thousands of years. Other whole-number triples include 5-12-13, 8-15-17 and 7-24-25.
a² + b² = c². Finding the hypotenuse: c = √(a² + b²). Finding a leg: a = √(c² − b²) or b = √(c² − a²). Exactly two sides must be given; the third is derived, and a leg can only be found when the hypotenuse is the longest side.
Inputs: hypotenuse c = 13, leg a = 5, find b.
Steps: b = √(c² − a²) = √(169 − 25) = √144 = 12.
Result: b = 12 — the 5-12-13 triple.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.