purr.tools

Right Triangle Calculator

Enter any two sides to calculate the third side, all angles, area, and perimeter of a right triangle.

Enter any two of the three sides. Angle C is always 90°.

Share this calculation

Copy this link to share your current inputs with anyone.

How to use the right triangle calculator

Enter any two of the three sides (leg a, leg b, or hypotenuse c) and leave the third blank. The calculator applies the Pythagorean theorem to find the missing side, then uses trigonometry to compute all angles. Area is ½ × a × b. Perimeter is a + b + c.

Right triangle formulas

Pythagorean theorem: a² + b² = c². Angle A: arctan(a/b). Angle B: arctan(b/a). Angle C = 90°. Area = (a × b) / 2. Perimeter = a + b + c. The two acute angles always add up to 90°.

FAQ

What is a leg vs. a hypotenuse?

In a right triangle, the two shorter sides adjacent to the 90° angle are called legs (a and b). The longest side, opposite the 90° angle, is the hypotenuse (c). The Pythagorean theorem relates them: a² + b² = c².

Why must the hypotenuse be longer than either leg?

The hypotenuse is always the longest side in a right triangle. If you enter a hypotenuse value shorter than a leg, no valid right triangle exists for those measurements.

Embed this tool

Add this tool to your website by copying the snippet below.

<iframe
  src="https://purr.tools/en/embed/right-triangle-calculator"
  width="100%"
  height="500"
  style="border:0;border-radius:8px;"
  loading="lazy"
  title="Right Triangle Calculator — Sides, Angles & Area"
  allow="clipboard-write"
></iframe>