Right Triangle Calculator
Solve any right-angled triangle from two values
Solved Triangle
Working
- c = √(a² + b²) = √(9 + 16) = 5
- A = tan⁻¹(a ÷ b) = 36.869898°, B = 90° − A = 53.130102°
- 1Choose what you knowTwo sides, or a side and an angle
- 2Enter the valuesAny length unit works
- 3Get every side and anglePlus area, perimeter and working
Right triangle formulas
In a right triangle the sides and angles are linked by Pythagoras and by SOH-CAH-TOA:
a² + b² = c²
sin A = a ÷ c (opposite ÷ hypotenuse)
cos A = b ÷ c (adjacent ÷ hypotenuse)
tan A = a ÷ b (opposite ÷ adjacent)
A + B = 90°
Which side is which?
The hypotenuse c is always the longest side, opposite the right angle. Angle A sits opposite side a, and angle B opposite side b. Swap a and b if your diagram labels them the other way round.
Special right triangles
A 30-60-90 triangle has sides in the ratio 1 : √3 : 2, and a 45-45-90 triangle has sides 1 : 1 : √2. The 3-4-5 triangle is the simplest one with whole-number sides.
Related calculators
Frequently asked questions
How do I find the hypotenuse?
Square both legs, add them, and take the square root: c = √(a² + b²). With legs 3 and 4, the hypotenuse is 5.
How do I find an angle from two sides?
Use the inverse trig functions. With the opposite side a and adjacent side b, A = tan⁻¹(a ÷ b).
How do I find the area of a right triangle?
Half the product of the two legs: area = a × b ÷ 2.
Last reviewed: October 2026
