Skip to content
Mathico

Right Triangle Calculator

Solve any right triangle from two values: two sides, or a side and an angle. Get every side and angle, the area, perimeter and more, with SOHCAHTOA steps.

Enter any two values, at least one of them a side, and leave the rest blank.

°
°
abcαβ

Solved triangle

6 · 8 · 10

sides a · b · c

Angle α
36.8699°
Angle β
53.1301°
Right angle
90°
Area
24
Perimeter
24
Altitude to c
4.8
Inradius
2
Circumradius
5
  1. c = √(a² + b²) = √(6² + 8²)

How to use the right triangle calculator

  1. Enter any two values: two sides, or one side and one acute angle. Leave the other boxes blank.
  2. Read the solved triangle: all three sides, both acute angles, area, perimeter, the altitude to the hypotenuse, and the inradius and circumradius.
  3. Check the steps to see which formula was used.

Labels follow the diagram: legs a and b, hypotenuse c, angle α opposite leg a and angle β opposite leg b. Only need the long side? The hypotenuse calculator is a quicker, focused version.

Right triangle formulas

Pythagorean theorem: a² + b² = c²
SOHCAHTOA: sin α = a/c · cos α = b/c · tan α = a/b
Angles: α + β = 90°
Area = ½ab · Perimeter = a + b + c · Altitude to c = ab/c
Inradius r = (a + b − c)/2 · Circumradius R = c/2

Worked examples

Two legs: a = 6, b = 8

c = √(36 + 64) = 10; α = arctan(6/8) ≈ 36.87°, β ≈ 53.13°; area 24, perimeter 24, altitude 4.8, inradius 2, circumradius 5.

Hypotenuse and an angle: c = 10, α = 30°

a = 10 × sin 30° = 5, b = 10 × cos 30° ≈ 8.660. This is a 30-60-90 triangle, with sides in the ratio 1 : √3 : 2.

A leg and the angle opposite it: a = 7, α = 35°

c = 7 ÷ sin 35° ≈ 12.204, b = 7 ÷ tan 35° ≈ 9.997.

Real life: a wheelchair ramp

A ramp rising 2 ft over a 24 ft horizontal run (a common 1:12 slope) has an angle of arctan(2/24) ≈ 4.76° and a surface length of √(2² + 24²) ≈ 24.08 ft. Slopes are often written as ratios; see the ratio calculator.

Special right triangles

TypeAnglesSide ratio
Isosceles right45° – 45° – 90°1 : 1 : √2
Half-equilateral30° – 60° – 90°1 : √3 : 2
3-4-5 triple≈ 36.87° – 53.13° – 90°3 : 4 : 5

An isosceles right triangle with legs of 5 has a hypotenuse of 5√2 ≈ 7.071 and an area of 12.5.

Which formula do I need?

  • Two sides known: use a² + b² = c² for the third side, then inverse trig for the angles.
  • Hypotenuse + angle: opposite = c × sin, adjacent = c × cos.
  • Leg + angle: use tan to get the other leg and sin or cos for the hypotenuse, depending on whether the angle is opposite or next to the leg.
  • Two angles only: not solvable for lengths. Similar triangles share angles but differ in size; scale them with the proportion calculator.

Common mistakes

  • Calculator in radians: angles here are in degrees. Switch your handheld calculator to DEG mode.
  • Mixing up opposite and adjacent: they depend on which angle you use. Opposite is across from the angle; adjacent touches it (and isn't the hypotenuse).
  • A "leg" longer than the hypotenuse: impossible. The hypotenuse is always the longest side.

More math calculators.

Sources

Frequently asked questions

How do you solve a right triangle?

You need two values, at least one of them a side. With two sides, use the Pythagorean theorem for the third side and inverse trig (such as α = arctan(a/b)) for the angles. With a side and an angle, use sine, cosine or tangent (SOHCAHTOA) to find the other sides. The two acute angles always add up to 90°.

What does SOHCAHTOA mean?

It's a memory aid for the trig ratios in a right triangle: Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent, where 'opposite' and 'adjacent' are relative to the angle you're working with.

How do I find the missing side of a right triangle?

If you know the other two sides, use a² + b² = c² (for a leg, a = √(c² − b²)). If you know one side and an angle, use trig: for example, opposite = hypotenuse × sin(angle), adjacent = hypotenuse × cos(angle).

What is an isosceles right triangle?

A right triangle whose two legs are equal, so both acute angles are 45°. Its sides are in the ratio 1 : 1 : √2. With legs of 5, the hypotenuse is 5√2 ≈ 7.071 and the area is 12.5.

Why can't I solve a right triangle from two angles?

Angles alone fix the shape but not the size: a tiny and a huge 30-60-90 triangle have the same angles. You need at least one side length to get actual measurements.

How is the area of a right triangle calculated?

Area = ½ × leg a × leg b, because the two legs are perpendicular and act as base and height. A right triangle with legs 6 and 8 has area 24.