Formula and Method for the Pythagoras Triangle Calculator
A right triangle has one 90° angle. The side opposite that right angle, called the hypotenuse (c), is always the longest side. The two remaining sides, called legs (a and b), meet at the right angle. The Pythagorean theorem relates all three: a² + b² = c². Given any two of the three sides, you can always solve for the third.
How the calculation works
Enter two of the three side lengths and leave the unknown one blank. If the hypotenuse (c) is unknown, the calculator adds the squares of the legs and takes the square root: c = √(a² + b²). If a leg is unknown, it rearranges the theorem: a = √(c² − b²) or b = √(c² − a²). Once all three sides are known, the calculator also reports the triangle's area (½ × a × b, since the legs are perpendicular), its perimeter (a + b + c), and its two non-right interior angles, found with inverse sine: angle opposite a = sin⁻¹(a ⁄ c) and angle opposite b = 90° minus that value.
Common mistakes
- Squaring instead of adding first: a² + b² = c² means square each leg separately, then add, then take the square root of the sum — not (a + b)².
- Mixing up the hypotenuse: the hypotenuse is always the side opposite the right angle and always the longest side. If your "unknown" side isn't actually the longest, you may be solving for a leg, not the hypotenuse.
- Impossible triangles: a leg can never be longer than the hypotenuse. If you enter a leg and a hypotenuse where the leg is greater than or equal to the hypotenuse, no valid right triangle exists (c² − b² would be zero or negative).
Real-world applications
- Construction and carpentry use the 3-4-5 rule (or any multiple, like 6-8-10) to square up corners, foundations, and framing without a protractor.
- Ladder and ramp safety calculations use the theorem to find safe height or horizontal reach from a fixed length.
- Navigation and surveying use it to find straight-line (as-the-crow-flies) distance from two perpendicular legs, such as north-south and east-west displacement.
- Screen and TV sizing uses the diagonal as the hypotenuse of the width and height of the display.