Right Triangle Solver

The Right Triangle Solver turns two legs, a leg and the hypotenuse, or a side and an acute angle into every side, angle, area and perimeter via Pythagoras and SOHCAHTOA, drawn to scale.

How to Solve a Right Triangle

Give any two pieces: two legs, a leg and the hypotenuse, or a side and an angle. The solver finds the missing sides, both acute angles, the area and the perimeter.

1

Find the missing side

With two sides known, the Pythagorean theorem a² + b² = c² gives the third, where c is the hypotenuse opposite the right angle. With one side and an angle, the solver uses SOHCAHTOA: sin A = a/c, cos A = b/c and tan A = a/b.

2

Find the angles

The two acute angles always add up to 90°, so once angle A is known, angle B = 90° − A. From sides alone, the solver uses the inverse functions, such as A = arctan(a/b).

3

Work out area and perimeter

Because the two legs are perpendicular, the area is simply ½ × a × b. The perimeter is a + b + c. The diagram draws the triangle to scale with the right angle marked at C.

Frequently Asked Questions

How do you find the hypotenuse of a right triangle?
Square both legs, add them, and take the square root: c = √(a² + b²). For legs 3 and 4, c = √(9 + 16) = √25 = 5.
What is SOHCAHTOA?
It is a memory aid for the three basic trig ratios: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. Each one links an angle to two sides.
Can you solve a right triangle from two angles?
No. Angles fix the shape but not the size, so you need at least one side length. Any two pieces with at least one side are enough.
How do you find an angle of a right triangle from its sides?
Use the inverse trig function that matches the sides you know. With opposite a = 3 and adjacent b = 4, A = arctan(3/4) ≈ 36.87°, and B = 90° − 36.87° = 53.13°.