Formula and Method for the Perimeter of a Right Triangle
A right triangle has one 90° angle formed by two perpendicular sides called legs (a and b). The side opposite the right angle, called the hypotenuse (c), is always the longest side. Its length follows from the Pythagorean theorem: c = √(a² + b²). Once all three sides are known, the perimeter is simply their sum: P = a + b + c. This calculator also derives the triangle's area and one interior angle from the same two legs.
How the calculation works
Enter the lengths of the two legs and choose the unit they are measured in. The calculator first applies the Pythagorean theorem, c = √(a² + b²), to find the hypotenuse. It then adds all three sides to get the perimeter, P = a + b + c. Because the two legs are perpendicular, the area follows directly from A = ½ × a × b — no separate height measurement is needed. Finally, the angle opposite leg a is found with the inverse tangent: angle A = arctan(a / b), and the third angle is 90° minus that value (the three interior angles of any triangle sum to 180°).
Common mistakes
- Confusing legs with the hypotenuse: the hypotenuse is always the longest side and is opposite the right angle — it can never be entered as one of the two legs.
- Skipping the square root: a² + b² gives c², not c. Forgetting to take the square root is a common source of error when computing the hypotenuse by hand.
- Mixing units: keep both leg lengths in the same unit — convert inches to feet, or centimeters to meters, before entering the values.
Real-world applications
- Carpentry and construction use the 3-4-5 rule (a special case of the Pythagorean theorem) to check that corners are square before framing.
- Fencing, edging, and trim projects use the perimeter to determine how much linear material is needed for a triangular plot or panel.
- Roofing and ramp design use the legs and hypotenuse to compute rise, run, and slope length.
- Surveying and navigation use right-triangle relationships to find straight-line distances from two perpendicular measurements.