Right Triangle Side and Angle Calculator

Enter any two known values of a right triangle — two legs, a leg and the hypotenuse, or a side and an angle — to solve for every side, angle, and the area.

Quick Facts

Pythagorean theorem
a² + b² = c²
Relates the two legs (a, b) to the hypotenuse (c).
Angle sum
A + B = 90°
The two acute angles are always complementary, since angle C = 90°.
Trig ratios
sin A = a/c, cos A = b/c, tan A = a/b
SOH-CAH-TOA, used to solve for a missing side or angle.
Area
Area = ½ · a · b
The two legs serve directly as base and height.

Your Results

Calculated
Leg a
-
Side opposite angle A
Leg b
-
Side opposite angle B
Hypotenuse c
-
c = √(a² + b²)
Angle A
-
Opposite leg a
Angle B
-
Opposite leg b (90° − A)
Area
-
½ × leg a × leg b

Ready

Choose which two values you know, enter them, then press Calculate.

Formula and Method for Solving a Right Triangle

A right triangle has one 90° angle (usually labeled C), two legs (a and b) that form that right angle, and a hypotenuse (c) — the longest side, opposite the right angle. Because the triangle is constrained by that 90° angle, knowing any two of its five measurements (leg a, leg b, hypotenuse c, angle A, angle B) is enough to solve for the rest using the Pythagorean theorem and basic trigonometric ratios.

How the calculation works

Choose which two values you know from the dropdown, then this calculator applies the matching relationship: if you know both legs, it uses the Pythagorean theorem c = √(a² + b²) and finds angle A with A = arctan(a / b). If you know a leg and the hypotenuse, it finds the missing leg with b = √(c² − a²) and angle A with A = arcsin(a / c). If you know a leg and angle A, it uses the tangent and sine ratios (b = a / tan A, c = a / sin A). If you know the hypotenuse and angle A, it uses a = c · sin A and b = c · cos A. In every case, angle B is found from B = 90° − A, since the two acute angles of a right triangle are always complementary, and the area is Area = ½ · a · b, because the two perpendicular legs act directly as base and height.

Common mistakes

  • Mixing up which angle is "A": in this calculator, angle A is always the angle opposite leg a (not the angle at a specific vertex) — swapping which leg is "a" changes which angle comes out as A.
  • Entering degrees when radians are expected (or vice versa): select the correct angle unit before calculating; a value of 0.6435 means something very different as degrees versus radians.
  • Assuming the hypotenuse can be shorter than a leg: the hypotenuse is always the longest side of a right triangle, so a leg-and-hypotenuse input where the "hypotenuse" is smaller than the leg is not a valid triangle.

Real-world applications

  • Construction and carpentry use the Pythagorean theorem (the "3-4-5 rule" and its multiples) to square up corners, walls, and foundations.
  • Roofing and ramp design use the angle-and-side relationships to convert a rise/run pitch into a slope angle, or vice versa.
  • Surveying and navigation use right-triangle trigonometry to find distances or heights that cannot be measured directly, such as a building's height from its shadow and the sun's angle.
  • Physics and engineering decompose forces, velocities, and vectors into perpendicular components using the same sine and cosine relationships.

Frequently Asked Questions

How do I find the hypotenuse of a right triangle?
Use the Pythagorean theorem: c = √(a² + b²), where a and b are the two legs. For example, legs of 3 and 4 give a hypotenuse of √(9+16) = √25 = 5.
How do I find a missing angle if I know the sides?
Use an inverse trig function. If you know the two legs, angle A (opposite leg a) is A = arctan(a / b). If you know a leg and the hypotenuse, use A = arcsin(a / c) or A = arccos(b / c). The other acute angle is 90° minus A.
Why do the two acute angles always add up to 90°?
The interior angles of any triangle sum to 180°. A right triangle has one 90° angle, so the remaining two acute angles must add up to 180° − 90° = 90°; they are complementary.
How do I find the area of a right triangle?
Multiply the two legs and divide by 2: Area = ½ × a × b. Because the legs meet at a 90° angle, they act directly as the base and height, so no separate height measurement is needed.