The Pythagorean Theorem Formula
The Pythagorean theorem establishes that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two legs. This relationship holds true for any right triangle, regardless of the actual side lengths.
If you know two sides and need the third, rearrange algebraically. For a missing leg, subtract the known leg's square from the hypotenuse's square, then take the square root.
a² + b² = c²
c = √(a² + b²)
a = √(c² − b²)
a— Length of the first legb— Length of the second legc— Length of the hypotenuse (the longest side, opposite the right angle)
Understanding Right Triangles
A right triangle is distinguished by one 90-degree angle. The two sides that form this right angle are called legs, and they meet at the corner. The third side, stretching across from the right angle, is the hypotenuse—always the longest side in the triangle.
Because all angles in any triangle sum to 180 degrees, the two non-right angles in a right triangle must together total exactly 90 degrees. This constraint is what makes the Pythagorean relationship so powerful and why it applies universally to this shape.
Right triangles appear everywhere: roofing, ladder placement, navigation, construction layout, and screen diagonals. Recognising and working with them is a practical skill across many disciplines.
Using the Calculator: Step-by-Step
The calculator requires minimal input. Simply provide the lengths of any two sides—it doesn't matter if you supply two legs or one leg and the hypotenuse.
- Enter leg a: Input the measured or known length of the first leg.
- Enter leg b (or hypotenuse c): Input whichever second measurement you have.
- Get instant results: The calculator computes the missing side, area, and perimeter automatically.
If you already know the hypotenuse and one leg, the tool will solve for the unknown leg. The calculator handles all rearrangements internally, so you don't need to worry about which formula variant to apply.
Area and Perimeter of Right Triangles
Beyond the Pythagorean relationship, two other measurements are often needed:
- Area: Multiply the two legs and divide by two. The formula is
Area = ½ × a × b. Unlike other triangles, you don't need height and base separately—the legs themselves serve this role. - Perimeter: Add all three sides:
Perimeter = a + b + c. Once you know all three lengths, the perimeter is straightforward.
These derived measurements are especially useful in real-world applications like calculating how much material to fence a triangular plot or determining the paint coverage needed for a triangular wall section.
Common Pitfalls and Tips
Avoid these typical mistakes when working with the Pythagorean theorem.
- Forgetting to take the square root — After adding a² + b², you must take the square root to find c. A common error is leaving the answer as c² instead of solving for c itself. Always finish with the square root step.
- Confusing legs with hypotenuse — The hypotenuse is always the longest side and always opposite the right angle. If you accidentally treat a leg as if it were the hypotenuse, your calculation will be incorrect. Check that your answer makes sense: the hypotenuse should be longer than either leg alone.
- Using it for non-right triangles — The Pythagorean theorem applies only to right triangles. If your triangle has no 90-degree angle, this formula will not work. For other triangle types, use the law of cosines or other methods instead.
- Rounding too early — If you round intermediate results (like a² or b²) before the final calculation, accumulated rounding errors can skew your answer. Keep full precision until the very end, then round your final result.