Right Triangle Calculator
Solve a right triangle from the measurements you already know. The result shows the hypotenuse, both legs, both acute angles, area and perimeter, with a clear reminder of which angle faces which side.
Loading the calculator. It runs in your browser, so JavaScript needs to be on.
How to use the Right Triangle Calculator
- Choose Two legs, Hypotenuse + leg, or Hypotenuse + angle. The right angle is already fixed at 90 degrees.
- Enter the requested side lengths in the same unit. In the angle tab, enter the angle opposite leg a in degrees.
- Select the unit used for the sides. Read the hypotenuse at the top and use the breakdown for the missing side, angles, area and perimeter.
The formula
With legs a and b, hypotenuse c = √(a2 + b2). With c and a known, b = √(c2 - a2). With c and acute angle A, a = c sin A and b = c cos A. Angle A = arctan(a/b), angle B = 90 - A, area = ab/2 and perimeter = a + b + c.
Worked example
Legs 3 cm and 4 cm give a hypotenuse of 5 cm, area 6 cm^2 and perimeter 12 cm. Angle A, opposite the 3 cm leg, is 36.869898 degrees, and angle B is 53.130102 degrees. A hypotenuse of 13 cm with known leg 5 cm gives the other leg as 12 cm.
The hypotenuse must be the longest side
The hypotenuse sits opposite the right angle and is always longer than either leg. A hypotenuse of 3 with a leg of 4 is impossible, so the calculator asks you to correct those entries. A leg equal to the hypotenuse would leave the other leg at zero and would not form a triangle.
Label the acute angle before using trigonometry
Angle A faces leg a. Its adjacent leg is b, while c is the hypotenuse. At A = 30 degrees with c = 2, leg a is 1 and leg b is about 1.7320508. Swapping which angle you mean swaps the two legs, even though the hypotenuse and area stay the same.
A diagonal creates two matching right triangles
Draw a diagonal across a rectangle and its length becomes the hypotenuse, with the rectangle's sides as legs. This makes the tool useful for checking a rectangular frame or finding a diagonal reach. The formulas assume an exact right angle, so they cannot compensate for a leaning wall or a corner that is out of square.
Right Triangle Calculator questions
What is the missing side of a 5-12-13 triangle?
If 13 is the hypotenuse and 5 is one leg, the other leg is 12. The check is 5 squared plus 12 squared equals 13 squared.
Can I solve a right triangle with one side only?
No. You need a second side or one acute angle to determine its proportions. The right angle alone does not set the shape.
Do the two acute angles add to 90 degrees?
Yes. All triangle angles total 180 degrees, and the fixed right angle uses 90 of them. The remaining two therefore total 90 degrees.
Related calculators
- Pythagorean TheoremEnter two legs to find a right triangle hypotenuse, or a leg and hypotenuse to find the...
- Triangle CalculatorEnter three sides, two sides and their angle, or two angles and a side. Solve triangle...
- Rectangle CalculatorEnter length and width to get rectangle area, perimeter, diagonal and side ratio. Size...
- Area CalculatorEnter dimensions for a rectangle, triangle, circle, trapezoid or ellipse to get area in...
- Square Root CalculatorEnter a nonnegative number to find its principal square root, the opposite solution and...