Updated · Built and checked by the PlinzoTools team, formulas tested against published sources
Solve for the hypotenuse and both non-right angles from two legs.
Given the two legs of a right triangle, this tool solves for the hypotenuse (via the Pythagorean theorem) and both non-right angles (via inverse tangent).
Enter both leg lengths. The hypotenuse and both angles appear instantly.
Hypotenuse = √(legA² + legB²)
Angle A = arctan(legA / legB), Angle B = 90° - Angle A
The tool labels the two legs Leg A and Leg B, and reports Angle A and Angle B. Angle A is the angle opposite Leg A, and Angle B is opposite Leg B. It computes Angle A as the inverse tangent of Leg A divided by Leg B, and then subtracts from 90 degrees to get Angle B. So a long Leg A relative to Leg B gives a large Angle A. Keeping this straight matters when you transfer the answer to a drawing or a real structure: the angle sits at the end of the hypotenuse that is farthest from the leg it faces.
Take legs of 5 and 12. The hypotenuse is the square root of 25 + 144, which is the square root of 169, or 13. Angle A is the arctangent of 5 / 12, which is about 22.62 degrees, and Angle B is 90 minus that, about 67.38 degrees. The tool shows the hypotenuse to four decimal places and angles to two.
A non-integer case: legs 1 and 12 might describe a gentle ramp that rises 1 unit over 12 units of horizontal run. The hypotenuse is the square root of 145, about 12.0416, and the slope angle is about 4.76 degrees. Here Leg A is the rise and Leg B is the run.
Both legs must be greater than zero, otherwise the tool shows a prompt asking for valid legs. Equal legs give a hypotenuse of leg times the square root of two and two angles of exactly 45 degrees. Very unequal legs push one angle close to 0 and the other close to 90. Because the angle uses an inverse tangent, you cannot use this tool if you know a leg and the hypotenuse; it needs both legs.
Right triangles appear in roof pitch and stair layout, ladder placement, ramp design, surveying, screen diagonals and navigation. For carpentry or construction where safety codes apply, such as stair rise limits or ladder angles, confirm requirements with your local building authority rather than relying on a basic calculation. To work with angles in radians, follow up with the Degrees and Radians Converter.
Yes -- since the triangle's three angles sum to 180° and one is the right angle (90°), the other two always add up to 90°.
Not with this tool, which needs both legs. Use the Pythagorean Theorem Calculator to find the missing leg first, then enter both legs here.
Angle A is opposite Leg A. It is calculated as the arctangent of Leg A divided by Leg B.
The two acute angles are both 45 degrees, and the hypotenuse is a leg length times about 1.4142.
A leg of zero length does not form a triangle, and the angle formula would involve dividing by zero, so the tool asks for positive values.
Reference: NIST Weights and Measures