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.