Right Triangle Calculator

Hypotenuse10.00
Angle opposite leg a36.87°
Angle opposite leg b53.13°
Area24.00
Perimeter24.00
How this was calculated
  1. With both legs known, the hypotenuse comes straight from Pythagoras: c = sqrt(a^2 + b^2).
  2. c = sqrt(6.00^2 + 8.00^2) = sqrt(36.00 + 64.00) = 10.00.
  3. The angle opposite leg a is arctan(a / b) = arctan(6.00 / 8.00) = 36.87 degrees; the other acute angle is 90 - 36.87 = 53.13 degrees.
  4. Area = a x b / 2 = 24.00, and the perimeter is 6.00 + 8.00 + 10.00 = 24.00.
  5. The two acute angles of a right triangle always sum to 90 degrees, which is why finding one angle settles the other.

This right triangle calculator finds the missing sides and angles of a right triangle from the values you already know. Enter the information you have, and the page returns the remaining measurements in one place. A quick check shows how it works: legs of 6 and 8 give a hypotenuse of 10, with acute angles of 36.87 and 53.13 degrees. Because the two acute angles of a right triangle always sum to 90 degrees, finding one angle immediately gives the other. The calculator relies on the standard relationships among the sides and angles, including the Pythagorean rule that the square of the hypotenuse equals the sum of the squares of the two legs, c^2 = a^2 + b^2. It also uses trigonometry: with a leg and its opposite angle, tangent gives the other leg (b = a / tan) and sine gives the hypotenuse (c = a / sin). Area follows too, since the area of a right triangle is half the product of its legs, because the legs are perpendicular.

These methods are the accepted standard for right triangle calculations. The Pythagorean relationship and the sine and tangent ratios are the classical tools taught in geometry and used in surveying, construction and engineering, so the calculator's answers rest on the same rules you would apply by hand. The angle sum of 90 degrees for the acute angles provides a built-in consistency check on every result. This page does not just hand you numbers: it shows the formula behind each step, the step-by-step workings, worked examples such as the 6-8-10 triangle, and the sources for the methods used, so you can follow the arithmetic and verify the answer yourself.

Worked examples

Primary result: 10.00

Primary result: 10.00 — The classic scaled 3-4-5: hypotenuse 10, angles 36.87 and 53.13 degrees. (Two legs (a and b) · 6 · 8 · 10 · 36.87)

Hypotenuse10.00
Angle opposite leg a36.87°
Angle opposite leg b53.13°
Area24.00
Perimeter24.00

Primary result: 13.00

Primary result: 13.00 — Leg 5 with hypotenuse 13 recovers leg 12. (One leg and the hypotenuse · 5 · 12 · 13 · 22.62)

Hypotenuse13.00
Angle opposite leg a22.62°
Angle opposite leg b67.38°
Area30.00
Perimeter30.00

Primary result: 10.89

Primary result: 10.89 — A 7-unit leg opposite 40 degrees builds the whole triangle. (One leg and its opposite angle · 7 · 8.34 · 10.89 · 40)

Hypotenuse10.89
Angle opposite leg a40.00°
Angle opposite leg b50.00°
Area29.20
Perimeter26.23

Solving a right triangle

Solving a right triangle means finding every unknown side and every unknown angle from just two known values. Because one angle is already fixed at 90 degrees, the other two acute angles are locked together: they always sum to 90 degrees. So if you know one acute angle, you know the other by subtraction. That leaves the side lengths, and a right triangle calculator needs only a small amount of information about them to fill in the rest — typically two sides, or one side plus one acute angle.

The first route is the Pythagorean relationship. The square of the hypotenuse equals the sum of the squares of the two legs: c^2 = a^2 + b^2. Give the calculator both legs and it returns the hypotenuse; give it a leg and the hypotenuse and it returns the missing leg. A quick worked check: legs of 6 and 8 give a hypotenuse of 10, and the acute angles come out to 36.87 and 53.13 degrees — note that those two angles add to exactly 90.

The second route uses trigonometry when you know a leg and its opposite angle. Tangent gives the other leg: b = a / tan. Sine gives the hypotenuse: c = a / sin. From there the remaining angle is simply 90 degrees minus the one you started with, so a single side-and-angle pair is enough to finish the triangle.

The third route is area, which follows directly from the geometry. The legs of a right triangle are perpendicular, so either leg can serve as the base and the other as the height. The area is therefore half the product of the legs. That relationship is handy in reverse as well: if you know the area and one leg, you can recover the other leg and then proceed with the Pythagorean route.

In practice you rarely need to decide which route applies — a right triangle calculator checks what you have entered and takes the appropriate path, whether that is two sides, a side and an angle, or a side together with the area. The one rule to keep in mind is that the two knowns must actually determine the triangle; two angles alone, for example, fix the shape but not the size, since they describe a family of similar triangles rather than one specific triangle.

  • Two sides: use c^2 = a^2 + b^2 to find the third side, then the angles.
  • One leg and its opposite angle: b = a / tan gives the other leg, c = a / sin gives the hypotenuse.
  • A leg and the area: double the area and divide by the known leg to get the other leg, then continue with Pythagoras.
The two acute angles of a right triangle always sum to 90 degrees, so once you have one, the other is a single subtraction away.

Pythagoras and the two-leg case

Pythagoras gives the right triangle calculator its most famous rule: the square of the hypotenuse equals the sum of the squares of the two legs, written c^2 = a^2 + b^2. The hypotenuse is the side opposite the right angle and is always the longest side. The two legs are the sides that meet at the right angle. If you know both legs, you square each one, add the results, and take the square root of the sum to get the hypotenuse. That single step handles the two-leg case completely.

A worked check makes the rule concrete. Take legs of 6 and 8. Squaring gives 36 and 64, which add to 100, and the square root of 100 is 10. So a right triangle with legs 6 and 8 has a hypotenuse of 10. The two acute angles in this triangle are 36.87 degrees and 53.13 degrees. Notice that these add to 90 degrees, which is no coincidence: the two acute angles of a right triangle always sum to 90 degrees, because the right angle already accounts for the other 90 degrees of the triangle's 180. This 6-8-10 triangle is a scaled version of the smallest whole-number right triangle, the 3-4-5, and it is a handy way to sanity-check any right triangle calculator result.

The theorem also rearranges to solve for a missing leg when you know the other leg and the hypotenuse. Subtract the square of the known leg from the square of the hypotenuse, then take the square root. If the hypotenuse is 13 and one leg is 5, the other leg is the square root of 169 minus 25, which is the square root of 144, or 12. The same logic works in reverse for checking whether a triangle is right-angled: if the squares of the two shorter sides add up to the square of the longest side, the triangle contains a right angle.

When the two-leg case is not what you have, trigonometry fills the gap. With a leg and its opposite angle, tangent gives the other leg (b = a / tan) and sine gives the hypotenuse (c = a / sin). Once all three sides are known, the area of a right triangle is half the product of its legs, since the legs are perpendicular. For the 6-8-10 triangle, that is half of 48, or 24 square units. Together, the Pythagorean relationship and these ratios let a right triangle calculator move from any sufficient set of inputs to every side, angle, and area of the triangle.

Quick check: legs 6 and 8 give a hypotenuse of 10, with acute angles of 36.87 and 53.13 degrees — and those two angles always add to 90 degrees.

Using angles: sine, cosine and tangent

When you know an angle as well as a side, the trigonometric ratios let a right triangle calculator fill in the rest. Each ratio links a particular pair of sides to a particular angle. Sine compares the side opposite the angle to the hypotenuse. Cosine compares the side adjacent to the angle to the hypotenuse. Tangent compares the opposite side to the adjacent side. Because the right angle sits across from the hypotenuse, the hypotenuse is always the longest side, so sine and cosine values for the acute angles stay below 1.

Here is a worked route using a leg and its opposite angle. Suppose you know leg a and the angle opposite it. Tangent relates that leg to the other leg: b = a / tan(angle). Sine relates the same leg to the hypotenuse: c = a / sin(angle). So one known leg plus one known acute angle is enough to compute the remaining leg and the hypotenuse, and from there the area follows as half the product of the two legs, since the legs are perpendicular. If instead you start from the adjacent leg or the hypotenuse, you rearrange the same ratios to solve for the missing side.

Always finish with the angle sum check. The two acute angles of a right triangle always sum to 90 degrees, so once you have one acute angle, the other is simply 90 minus that value. If your computed angles do not add up to 90, something in the setup or the arithmetic is off. This check is quick and catches most mistakes before you rely on the result.

A concrete example ties the ratios to Pythagoras. Take legs of 6 and 8. The square of the hypotenuse equals the sum of the squares of the two legs, so c^2 = 6^2 + 8^2 = 36 + 64 = 100, giving a hypotenuse of 10. The acute angles in this triangle are 36.87 and 53.13 degrees, and those two values sum to 90, confirming the angle check. The area is half of 6 times 8, which is 24.

  • Sine: opposite side divided by hypotenuse.
  • Cosine: adjacent side divided by hypotenuse.
  • Tangent: opposite side divided by adjacent side.
  • With a leg and its opposite angle: b = a / tan(angle) and c = a / sin(angle).
  • Angle sum check: the two acute angles always add to 90 degrees.
Use the angle sum as your final check: the two acute angles must total 90 degrees. In the 6-8-10 triangle, 36.87 plus 53.13 equals 90, which confirms the result.

Area and perimeter

Area and perimeter are the two measurements people ask for most often after the missing side, and a right triangle makes both unusually simple. Because the two legs meet at a 90-degree corner, each leg can serve as a base and the other as the height. That means the area of a right triangle is half the product of its legs, since the legs are perpendicular. For legs of 6 and 8, the area is half of 6 times 8, or 24 square units. No altitude needs to be dropped from a vertex and no trigonometry is required; the perpendicularity is already built into the shape.

The perimeter is just as direct: add the three sides. You need the hypotenuse first, and that is where Pythagoras comes in. The square of the hypotenuse equals the sum of the squares of the two legs, c^2 = a^2 + b^2. With legs 6 and 8, the squares are 36 and 64, which sum to 100, so the hypotenuse is 10. The perimeter is then 6 + 8 + 10 = 24 units. Notice that this triangle has the same numerical value for area and perimeter, which is a coincidence of these particular legs, not a rule to carry to other triangles. A right triangle calculator handles the square root for you when the legs are not a tidy pair.

It also helps to know when the legs and hypotenuse are not the only route. If you have one leg and its opposite angle, tangent gives the other leg (b = a / tan) and sine gives the hypotenuse (c = a / sin). So a single leg plus one acute angle is enough to reach both the area and the perimeter. The two acute angles of a right triangle always sum to 90 degrees, so once you know one, you know the other by subtraction. In the 6-8-10 triangle, the acute angles are 36.87 and 53.13 degrees, and those two values add to exactly 90.

A few quick sanity checks catch most input errors before they spread. The hypotenuse must be the longest side, so if your computed hypotenuse is shorter than either leg, something went wrong. Both remaining angles must be acute and must add to 90 degrees; an obtuse or right result among them signals a mistake. The area must be less than half the square of the hypotenuse, since the legs cannot both reach the full hypotenuse length. And the perimeter must exceed twice the hypotenuse, because the two legs together are always longer than it.

  • Area = half the product of the legs, because the legs are perpendicular.
  • Perimeter = leg + leg + hypotenuse; find the hypotenuse with c^2 = a^2 + b^2.
  • With one leg and its opposite angle: b = a / tan and c = a / sin.
  • The two acute angles always sum to 90 degrees.
Sanity checks: the hypotenuse is the longest side, both other angles are acute and add to 90 degrees, and the perimeter is greater than twice the hypotenuse.

FAQs

How do I find the hypotenuse?

Use the Pythagorean theorem. Square both legs, add the two squares together, and take the square root of that sum: c = sqrt(a^2 + b^2). This works for any right triangle, and the result is always the longest side, the one across from the 90-degree corner.

How do I find a missing leg?

Rearrange Pythagoras to solve for the leg: leg = sqrt(hypotenuse^2 - other leg^2). Subtract the square of the known leg from the square of the hypotenuse, then take the square root. The hypotenuse must be the larger number, so if your subtraction gives a negative result, you have mixed up which side is the hypotenuse.

What are the angles of a 3-4-5 triangle?

A 3-4-5 triangle has a 90-degree corner plus two acute angles: about 36.87 degrees opposite the side of 3 and 53.13 degrees opposite the side of 4. Those two acute angles add to 90 degrees, as they must in any right triangle, and the three angles together total 180 degrees.

Can a right triangle have two right angles?

No. The angles of any triangle sum to 180 degrees, so one right angle leaves exactly 90 degrees for the other two combined. A second 90-degree angle would use up all of that remainder and leave nothing for a third angle, so a triangle can never contain two right angles.

How do I find an angle from two sides?

Use the inverse trig ratio that matches the sides you know: arctan of opposite over adjacent is the commonest, and it gives the angle directly. If you know the hypotenuse instead, use arcsin with opposite over hypotenuse or arccos with adjacent over hypotenuse. Then subtract from 90 degrees to get the remaining acute angle.

What is the area of a right triangle?

The area is half the product of the two legs, because the legs stand at right angles and serve as base and height. Multiply the two leg lengths together and divide by two. You do not need the hypotenuse for this, since the legs already give you both the base and the perpendicular height.

Sources

Related calculators

Triangle Altitude Calculator
All three altitudes of a triangle from its sides — Heron's area first, then each height as 2A over its base.
Heron's Formula Calculator
The area of any triangle from its three sides alone — plus the semiperimeter, inradius and circumradius.
Trigonometry Calculator
All six trig functions of an angle — or solve a right triangle from its hypotenuse and one acute angle, with a Pythagorean check.
Slope Calculator
Slope, angle, distance and midpoint between two points, plus the full equation of the line through them — the whole coordinate-geometry answer in one go.