Right Triangle & Pythagorean Theorem Calculator

Solve a right triangle with the Pythagorean theorem: find the hypotenuse or missing leg, both angles, area and perimeter.

Results

Hypotenuse c
5
Leg b
4
Angle α (opposite a)
36.87
Angle β (opposite b)
53.13
Area
6
Perimeter
12

How it’s calculated

In a right triangle the two legs a and b meet at 90°, and the hypotenuse c is the side opposite the right angle. The Pythagorean theorem links them, and the acute angles come from the tangent ratio.

c = √(a² + b²) b = √(c² − a²) α = arctan(a ÷ b) β = 90° − α Area = ½ × a × b

Example: legs 3 ft and 4 ft give c = √(9 + 16) = √25 = 5 ft, α = arctan(0.75) ≈ 36.87°, β ≈ 53.13°, area 6 ft² and perimeter 12 ft.

Frequently asked questions

What is the Pythagorean theorem?

In any right triangle, a² + b² = c², where c is the hypotenuse. For legs 3 and 4, c = √(9 + 16) = 5.

How do I find a missing leg?

Choose “one leg and the hypotenuse” and enter them. The missing leg is √(c² − a²); for c = 13 and a = 5 it is 12.

What is the 3-4-5 rule in construction?

Measure 3 units along one line and 4 along the other; if the diagonal is exactly 5, the corner is square. Multiples like 6-8-10 work too.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator