Right Triangle Calculator tool

Right Triangle Calculator

A right triangle has one 90° corner.

What is a right triangle calculator?

A right triangle calculator solves a 90° triangle when you know any two side lengths. Enter the two legs or one leg and the hypotenuse; leave the unknown side at 0. It applies a² + b² = c², then finds both acute angles, area, and perimeter. The tool matches Class 9 Pythagoras problems and quick checks for ladder or ramp lengths.

How to use the Right Triangle Calculator

  1. Enter leg a and leg b if you know them.
  2. Leave the unknown side as 0.
  3. Or enter one leg and hypotenuse c.
  4. Read the computed third side.
  5. Check angles, area, and perimeter below.

About this calculator

A right triangle has one 90° corner. The side opposite that corner — the hypotenuse — is always the longest. The Pythagorean theorem links the three sides: a² + b² = c². Give any two sides and this calculator finds the third, both acute angles, the area, and the perimeter.

Leave the unknown side as 0. The classic 3-4-5 triangle has legs 3 and 4 with hypotenuse 5. If you know the hypotenuse and one leg, the calculator uses c² − a² = b² to find the missing leg — but the hypotenuse must be longer than either leg or the triangle is impossible.

Right triangles appear everywhere: ladder against a wall, roof pitch, diagonal screen size, GPS distance on flat maps. For the pure Pythagorean step-by-step proof use the [[pythagorean]] calculator. For general triangles (not necessarily 90°) try the [[triangle]] calculator. For distance between two coordinate points use the [[distance]] calculator.

Formula for a right triangle

c² = a² + b²
Area = (a × b)/2
Angles from tan θ = opposite/adjacent
  • a and b are the legs meeting at 90°
  • c is the hypotenuse opposite the right angle
  • Enter 0 for the side you want solved

Right triangle example: legs 3 and 4

A right triangle has legs a = 3 and b = 4 with hypotenuse unknown. Enter 3 and 4 and leave c at 0.

Hypotenuse is c = √(9 + 16) = 5 units. Area is (3 × 4)/2 = 6 square units. Perimeter is 3 + 4 + 5 = 12 units.

Acute angles are about 36.87° and 53.13°, summing to 90° with the right angle. Enter 3, 4, and 0 for c to reproduce side 5.0000 and area 6.0000 on the page.

Common uses

  • Find hypotenuse length from two known legs — construction and layout work
  • Find a missing leg when you know the hypotenuse and one side
  • Compute roof pitch angles or ladder reach problems
  • Verify 3-4-5 or 5-12-13 triples in carpentry squares
  • School geometry — area and perimeter from two given sides

Frequently asked questions

How do I find the hypotenuse of a 3-4-5 triangle?

Enter leg a = 3, leg b = 4, leave hypotenuse as 0. The calculator returns c = √(9 + 16) = 5. Area = 6 square units and the two acute angles are about 36.87° and 53.13°.

What happens if I enter all three sides?

The calculator needs exactly two known sides. If all three are positive it may not know which one to solve. Leave the unknown side as 0 and fill in the other two.

Can the hypotenuse be shorter than a leg?

No. If your inputs imply c ≤ a or c ≤ b, the triangle is invalid — the calculator shows a warning. The hypotenuse must always exceed both legs in a right triangle.

How are the angles calculated?

Once all three sides are known, angle A = arctan(a/b) and angle B = arctan(b/a). They always sum to 90° because the third angle is the right angle.

What if I only know the hypotenuse and one leg?

Enter the hypotenuse in side c and the known leg in side a or b. Leave the other leg as 0. The calculator subtracts squares: b = √(c² − a²). Example: c = 13, a = 5 gives b = 12.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026