Right Triangle Calculator: Sides, Angles
This right triangle calculator solves a right triangle from any two known values, like two sides or one side and one angle. It finds the missing sides with the Pythagorean theorem and sine, cosine and tangent, plus both acute angles, the area and the perimeter. It suits geometry class, roof pitch and ramp work.
Right Triangle Calculator
Angle A opposite leg a; angle B opposite leg b; C = 90 deg.
-
-
-
-
This right triangle calculator solves a 90° triangle from two known values: two sides, or one leg and an angle. It returns all three sides, both acute angles, the sine, cosine and tangent of angle A, plus the area and perimeter.
How to use the Right Triangle Calculator
- Choose the Known Combination: legs a & b, leg a & hypotenuse c, leg b & hypotenuse c, leg a & angle A, or leg b & angle A.
- Enter the two values. Angle A is in degrees, between 0 and 90, and sits opposite leg a.
- Press Calculate.
- Read Sides a, b, c, Angles A, B, C, Trig at A and Area / Perimeter. The diagram labels each side and angle.
Formula
sin A = a/c cos A = b/c tan A = a/b
Area = ½ab Perimeter = a + b + c
SOH-CAH-TOA links the angles to the sides. With leg a and angle A, the tool uses c = a ÷ sin A and b = a ÷ tan A; with leg b and angle A, it uses a = b × tan A and c = b ÷ cos A.
Example
Legs a = 3 and b = 4: c = √(9 + 16) = 5. Angle A = tan⁻¹(3/4) ≈ 36.87°, so B ≈ 53.13°. sin A = 0.6, cos A = 0.8 and tan A = 0.75. Area = ½ × 3 × 4 = 6, and the perimeter is 12.
Frequently asked questions
How do I find the angles of a right triangle from its sides?
Use inverse trig. A = tan⁻¹(a/b), or sin⁻¹(a/c) if you know the hypotenuse. Then B = 90° − A. For legs 3 and 4, A ≈ 36.87° and B ≈ 53.13°.
What does SOH-CAH-TOA mean?
It's a memory aid: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent. For angle A, the opposite side is a and the adjacent side is b.
How do I find the sides from one side and an angle?
If you know leg a and angle A, the hypotenuse is c = a ÷ sin A and the other leg is b = a ÷ tan A. With a = 5 and A = 30°, c = 10 and b ≈ 8.6603.
What is a 30-60-90 triangle?
A right triangle with angles of 30°, 60° and 90°. Its sides are always in the ratio 1 : √3 : 2, so the hypotenuse is twice the shortest side.
If you only need a missing side, the Pythagorean Theorem Calculator is quicker.
Solve a right triangle
How to use it
- Pick the known combination, such as two legs or a leg and an angle.
- Enter the values, with angles in degrees.
- Read all three sides and both acute angles.
- Check the area and perimeter below.
More questions
What is SOH CAH TOA?
Sine = opposite ÷ hypotenuse, cosine = adjacent ÷ hypotenuse, tangent = opposite ÷ adjacent.
What is the area of a right triangle?
Half the product of the two legs: area = a × b ÷ 2.
Do the two acute angles add to 90°?
Yes. With the 90° angle, all three add to 180°.
Related tools: Triangle Calculator, Hypotenuse Calculator (Reverse Solve), Roof Pitch Calculator.
How high a 20 ft ladder reaches
Pick which two values you know (two legs, a leg and the hypotenuse, or a leg and an angle), enter them and read all sides, both acute angles, sin, cos, tan, the area and the perimeter. To work with sine, cosine and tangent on their own, use the Trig Calculator.
Worked example: a 20 ft ladder (hypotenuse) has its base 5 ft from the wall. The wall height reached is 19.36 ft, the ladder meets the ground at 75.52°, the area is 48.41 sq ft and the perimeter is 44.36 ft.
More answers
How high does a 20 ft ladder reach with its base 5 ft out?
Use Leg and hypotenuse with b = 5 and c = 20. The height is √(400 − 25) = √375 ≈ 19.36 ft. Always follow the ladder maker's safety label for setup.
How do I turn a ladder angle into a base distance?
Use the cosine. Base distance = ladder length × cos(angle). For 75.52°, cos = 0.25, so a 20 ft ladder sits 20 × 0.25 = 5 ft from the wall.