Right Triangle Calculator

Enter two sides, or a side and an angle, to solve the whole right triangle.

°
°

How to use the Right Triangle Calculator

  1. Choose the known values.
  2. Enter the leg a.
  3. Enter the leg b.
  4. Enter the hypotenuse c.
  5. Enter the angle α.
  6. Enter the angle β.
  7. Press Calculate. The result updates automatically as you type.

About the Right Triangle Calculator

A right triangle is fully determined by any two independent measurements, as long as at least one is a side. With two sides, the Pythagorean theorem gives the third and the inverse tangent gives the angles. With a side and an angle, the sine, cosine and tangent ratios (remembered as SOH-CAH-TOA) give the rest.

This is everyday trigonometry: the length of a ramp for a given rise and slope angle, the height of a tree from your distance and the angle to its top, a rafter length from roof pitch, or the run of a stair stringer. Enter angles in degrees. The default 6-8-10 triangle is simply the classic 3-4-5 triangle doubled, so its angles are about 36.87° and 53.13°.

Formula

sin α = a ÷ c    cos α = b ÷ c    tan α = a ÷ b
a² + b² = c²    α + β = 90°

Area = a × b ÷ 2, perimeter = a + b + c, and the altitude from the right angle to the hypotenuse is a × b ÷ c. Angle α is opposite side a; angle β is opposite side b.

Example calculation

Using the default values:

  • Known values = Legs a and b
  • Leg a = 6
  • Leg b = 8

the calculator returns:

  • Side a: 6
  • Side b: 8
  • Hypotenuse c: 10
  • Angle α (degrees): 36.8699
  • Angle β (degrees): 53.1301
  • Area: 24
  • Perimeter: 24
  • Altitude to hypotenuse: 4.8

Frequently asked questions

What does SOH-CAH-TOA mean?

Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent. It is a memory aid for the three basic trig ratios.

Can I solve a right triangle from two angles?

No. Angles alone fix the shape but not the size; you need at least one side length.

How do I find an angle from two sides?

Use an inverse trig function. With opposite 6 and adjacent 8, α = arctan(6 ÷ 8) ≈ 36.87°.

Last updated: · Category: Math calculators