Right Triangle

Use this calculator

A right triangle contains one 90° angle. The two sides forming it are legs; the opposite, longest side is the hypotenuse. Knowing two valid lengths fixes its remaining side and acute angles.

Perpendicular legs and the hypotenuse

a^{2} + b^{2} = c^{2}
A = \frac{1}{2}ab

a and b are perpendicular legs, c is the hypotenuse, A is area. The two acute angles together make 90°. Lengths and their square-root calculations use one consistent unit.

Two ways to supply lengths. Two legs computes the hypotenuse from √(a² + b²). Hypotenuse + leg recovers the other leg from √(c² − a²); the hypotenuse must exceed the known leg.

Solve from the available pair

Two legs: Leg A, Leg B.

Hypotenuse + leg: Hypotenuse, Known leg.

Choose Two legs and enter Leg A/Leg B, or choose Hypotenuse + leg and enter Hypotenuse/Known leg. The 3–4–5 example gives c = 5, area = 6 and perimeter = 12.

Side, angle and area results

The principal result is Hypotenuse. Leg A, Leg B, Area, Perimeter, Altitude to hypotenuse, Angle A and Angle B are shown as detail values; angles use degrees.

Finding the altitude to the longest side

Area can be written either ½ab or ½c×altitude. Setting them equal gives altitude = ab/c, which explains the app’s extra output.

Perpendicular legs a and b and longest side c are labelled on a right triangle.

Area can be written either ½ab or ½c×altitude. Setting them equal gives altitude = ab/c, which explains the app’s extra output.

Surveying a diagonal

A 3 m horizontal run and a 4 m vertical rise form a 5 m straight separation; check that the supplied lengths meet at a right angle.

The two leg squares have areas 9 and 16; their combined area equals the hypotenuse square, 25.

A 3 m horizontal run and a 4 m vertical rise form a 5 m straight separation; check that the supplied lengths meet at a right angle.

Angle complements

For a 3–4–5 triangle, the acute angles are approximately 36.87° and 53.13°. Their sum is 90°; the 90° corner is separate.

With one leg held at 3 units, the hypotenuse grows as the second leg increases.

For a 3–4–5 triangle, the acute angles are approximately 36.87° and 53.13°. Their sum is 90°; the 90° corner is separate.

Angles from a 3–4–5 triangle

The right-angle legs 3 and 4 and hypotenuse 5 produce acute angles arctan(3/4)≈36.87° and arctan(4/3)≈53.13°. Their total is 90°; the calculator reports those angles alongside the area and hypotenuse.

Quick answers

Can I enter a known hypotenuse and one leg?

Yes, choose Hypotenuse + leg and supply c greater than the leg.

Which side is always longest?

The hypotenuse, opposite the right angle.

Does it provide an altitude?

Yes, the altitude to the hypotenuse is included in the details.