Right Triangle Calculator

Enter any two sides of a right triangle. c = √(a² + b²), so legs of 3 and 4 give a hypotenuse of 5. The angles, area and perimeter are shown too.

By Mustansar Iqbal Khan, independent developerUpdated

Right Triangle Calculator

Fill in any two values. Leave the rest blank.
Result

Working it out…

The Pythagorean theorem

In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. To find a leg, use a = √(c² − b²).

a² + b² = c²

Using it on the job

  • Check a corner is square with the 3-4-5 rule (or 6-8-10)
  • Find the length of a rafter or stair stringer
  • Work out the diagonal of a room or TV

Frequently asked questions

How do I find the angles?

α = arctan(a ÷ b). The other angle is 90° − α.

What is the 3-4-5 rule?

Measure 3 ft along one wall and 4 ft along the other. If the diagonal is 5 ft, the corner is square.

Can the hypotenuse be shorter than a leg?

No. It is always the longest side.