GetCalculator
Math

Right Triangle Calculator

Solve for all sides and angles of a right triangle given two legs, a leg and the hypotenuse, or a leg and an angle.

=Hypotenuse c
10
How this compares
  • Leg a6
  • Leg b8
  • Hypotenuse c10

The hypotenuse (10) is always the longest side of a right triangle — it stretches across the right angle, so it's longer than either leg on its own.

  • Leg a6
  • Leg b8
  • Angle A36.87°
  • Angle B53.13°
  • Area24

About the Right Triangle Calculator

A right triangle has one 90° angle, which makes it uniquely solvable — knowing just two pieces of information about it (two sides, or one side and one angle) is enough to work out everything else: the remaining side, both remaining angles, and the area. That predictability is exactly why right triangles anchor so much of trigonometry.

Geometry and trig students use this to solve for whatever's missing given two known values, but the same triangle shows up constantly in construction and design: framing a roof, checking that a ladder is at a safe angle against a wall, calculating a wheelchair ramp's rise and run, or laying out a diagonal brace.

Because a right triangle's shape is fully locked in by any two known measurements, this calculator adapts to whichever two you actually have — two legs, a leg and the hypotenuse, or a leg and an angle — rather than forcing one fixed input layout.

How it’s calculated

When both legs are known, the Pythagorean theorem finds the hypotenuse directly: a² + b² = c². When the hypotenuse and one leg are known, the same equation is rearranged to solve for the missing leg instead.

When one leg and one angle are known, trigonometric ratios take over: sine, cosine and tangent relate an angle to a ratio of two of the triangle's sides. Once one side and one non-right angle are known, those ratios pin down every other side.

In every case, once all three sides are known, the two non-right angles follow from inverse trig functions, and since a triangle's angles always sum to 180°, the two acute angles in a right triangle always add up to exactly 90°.

Frequently asked questions

How do you find the hypotenuse of a right triangle?

If you know both legs, use the Pythagorean theorem: c = √(a² + b²). If you know one leg and one angle instead, divide that leg by the sine or cosine of the angle, depending on which side it sits opposite or adjacent to.

What is SOHCAHTOA?

It's a memory aid for the three basic trig ratios in a right triangle: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent — the relationships this calculator uses whenever an angle is one of the known values.

Do the two non-right angles always add up to 90°?

Yes — every triangle's angles sum to 180°, and one of those is already the fixed 90° right angle, so the other two must always add up to the remaining 90° between them.

Why is the hypotenuse always the longest side?

It's the side directly opposite the right angle, and the right angle is the largest angle in the triangle — the longest side in any triangle is always opposite the largest angle.

Powered by GetCalculator.online