Right Triangle Trig Solver

Solve any right triangle from two known values — sides and angles.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Give this tool any two known values — sides and/or an acute angle — and it solves the rest of a right triangle: the missing sides via the Pythagorean theorem, both acute angles via SOHCAHTOA, plus the area and perimeter. Useful for geometry, trigonometry homework, construction layout, and surveying.

How it works

The right angle sits at vertex C, with angle A opposite leg a, angle B opposite leg b, and the hypotenuse c opposite the right angle. Depending on the two values you supply, the solver applies:

  • Two legs: c = √(a² + b²); angle A = arctan(a ÷ b).
  • Leg and hypotenuse: the other leg = √(c² − leg²); angles from arcsin/arccos.
  • Side and acute angle: the missing sides come from sin, cos, or tan of the angle (SOHCAHTOA).

It always uses that the two acute angles sum to 90°, then computes area = ½ × a × b and perimeter = a + b + c.

Example

Legs a = 3 and b = 4:

  • Hypotenuse c = √(3² + 4²) = √25 = 5
  • Angle A = arctan(3 ÷ 4) ≈ 36.87°
  • Angle B = 90 − 36.87 = 53.13°
  • Area = ½ × 3 × 4 = 6
  • Perimeter = 3 + 4 + 5 = 12
KnownFind sides withFind angles with
Two legsPythagorasarctan
Leg + hypotenusePythagorasarcsin / arccos
Side + anglesin / cos / tan90° − known angle

Everything is computed in your browser — nothing is uploaded.

Ad placeholder (rectangle)