Skip to content

Right Triangle Calculator

This right triangle calculator solves a triangle with one 90° angle. Pick what you already know, enter it, and get every side, both acute angles, the area, the perimeter and the height to the hypotenuse.

Hypotenuse c

5

√(3² + 4²) = 5

Leg a
3
Leg b
4
Angle A (opposite a)
36.8699°
Angle B (opposite b)
53.1301°
Area
6
Perimeter
12
Height to hypotenuse
2.4

How to use this calculator

  1. 1 Choose what you know: two legs, a leg and the hypotenuse, a leg and an acute angle, or the hypotenuse and an acute angle.
  2. 2 Enter the measurements. For a leg, pick whether it is leg a or leg b. Angles are in degrees.
  3. 3 Read the hypotenuse, the missing leg, both acute angles, the area, the perimeter and the height to the hypotenuse.
  4. 4 Check the working line, which shows the formula used for the first step.

What is a right triangle?

A right triangle has one angle of exactly 90 degrees, called the right angle. The two sides that form the right angle are the legs. The side opposite the right angle is the hypotenuse, and it is always the longest side.

The other two angles are called acute angles, because each is smaller than 90 degrees. They always add up to 90 degrees. So if you know one acute angle, you automatically know the other.

Right triangles appear in ramps, roof frames, screens and maps. Once you know any two sides, or one side and one acute angle, you can solve the rest of the triangle. For a length between two points on a graph, the distance calculator uses the same right-triangle idea.

Four ways to solve a right triangle

A triangle is fixed by three facts. The right angle is one of them, so you need two more. The calculator offers four common pairs.

If you know two legs, the Pythagorean theorem gives the hypotenuse. If you know a leg and the hypotenuse, it gives the missing leg. The Pythagorean theorem calculator works through those two steps in detail.

If you know an angle, trigonometry does the rest. The sine, cosine and tangent ratios link an angle to two sides. For example, the leg opposite an angle divided by the hypotenuse equals the sine of that angle.

The main trigonometry ratios, for angle A and leg a opposite it
RatioFormulaExample with A = 30°
Sineopposite ÷ hypotenusesin 30° = 0.5
Cosineadjacent ÷ hypotenusecos 30° ≈ 0.8660
Tangentopposite ÷ adjacenttan 30° ≈ 0.5774

Area, perimeter and height

The area is half the product of the two legs. You can use either leg as the base, because the other leg is then the height. This is the same idea as the triangle formula in the area calculator.

The perimeter is the total of all three sides. It is useful for fencing, edging or trim along the outside of a triangular piece.

The height to the hypotenuse is the straight drop from the right-angle corner to the longest side. It is always shorter than either leg, so it helps when you need the slant of a roof or the depth of a corner.

Tips for accurate answers

Check your settings before you read the result. These steps prevent the most common errors:

  • Check the calculator mode. Angles must be in degrees, not radians.
  • Label the legs. Decide which leg is a and which is b, and keep that choice.
  • Enter angles below 90°. Acute angles must be between 0 and 90 degrees.
  • Round at the end. Keep extra decimals during the sum, then round the answer.
  • Compare with a sketch. A quick drawing shows whether the hypotenuse is the longest side, as it should be.

The formula

Pythagorean theorem

a² + b² = c²

a, b
the two legs, which meet at the right angle
c
the hypotenuse, opposite the right angle

Acute angles

tan A = a ÷ b, sin A = a ÷ c, cos A = b ÷ c, A + B = 90°

A, B
the two acute angles; A is opposite leg a and B is opposite leg b

Area, perimeter and height

Area = ½ × a × b, Perimeter = a + b + c, Height to hypotenuse h = a × b ÷ c

h
the distance from the right-angle corner to the hypotenuse

Worked example

A roof brace with legs of 8 ft and 15 ft

  1. 1.Hypotenuse: c = √(8² + 15²) = √289 = 17 ft.
  2. 2.Angle A: arctan(8 ÷ 15) = 28.0725°. Angle B = 90° − 28.0725° = 61.9275°.
  3. 3.Area: ½ × 8 × 15 = 60 square ft. Perimeter: 8 + 15 + 17 = 40 ft.
  4. 4.Height to hypotenuse: 8 × 15 ÷ 17 = 7.0588 ft.

The brace is 17 ft long. Its acute angles are 28.0725° and 61.9275°, its area is 60 square ft and its perimeter is 40 ft.

Frequently asked questions

How do I solve a right triangle?

Enter two known facts, such as two legs, or one leg and one acute angle. The calculator uses the Pythagorean theorem and trigonometry to find the other sides and angles.

Which side is the hypotenuse?

The hypotenuse is the side opposite the right angle. It is always the longest side, so it is the only side that can be longer than both legs.

Why does a known leg need a longer hypotenuse?

A leg is always shorter than the hypotenuse. If the hypotenuse you enter is not longer than the known leg, no right triangle can exist, and the calculator says so.

Do the two acute angles add up to 90 degrees?

Yes. The two acute angles in any right triangle always add up to 90°. The calculator shows them to four decimal places, so they sum to 90 once rounded.

What is the height to the hypotenuse?

It is the perpendicular distance from the right-angle corner to the hypotenuse. It equals twice the area, divided by the hypotenuse.

Sources

Last reviewed by the GridCalculators team.