Skip to content
FiftyCalc Free calculators for all 50 states

Right Triangle Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Pick what you know (two sides, or a side and an angle) to solve the whole right triangle.

Result

Sample figures

Hypotenuse c—

Leg a —

  • Leg b—
  • Angle A (degrees)—
  • Angle B (degrees)—
  • Area (square units)—
  • Perimeter (length units)—
  • Height to the hypotenuse (length units)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Right Triangle Calculator

What you know: choose Legs a and b, Leg a and hypotenuse c, Leg a and angle A (opposite a) or Hypotenuse c and angle A. Prefilled example: Legs a and b.

Leg a (length units; modes 1, 2, 3): enter 0 or more. Prefilled example: 3.

Leg b (length units; mode 1): enter 0 or more. Prefilled example: 4.

Hypotenuse c (length units; modes 2, 4): enter 0 or more. Prefilled example: 10.

Angle A opposite leg a (modes 3, 4), in °: enter a number from 0 to 90. Prefilled example: 30.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. What you know: choose Legs a and b, Leg a and hypotenuse c, Leg a and angle A (opposite a) or Hypotenuse c and angle A.
  2. Leg a (length units; modes 1, 2, 3): enter 0 or more.
  3. Leg b (length units; mode 1): enter 0 or more.
  4. Hypotenuse c (length units; modes 2, 4): enter 0 or more.
  5. Angle A opposite leg a (modes 3, 4), in °: enter a number from 0 to 90.
  6. Read the result: Hypotenuse c; the panel also shows Leg a, Leg b, Angle A (degrees), Angle B (degrees), Area (square units), Perimeter (length units) and Height to the hypotenuse (length units).

How this calculator works

Sides come from the Pythagorean theorem, a² + b² = c², and from the right-triangle trigonometric ratios: sin A = a ÷ c, cos A = b ÷ c, tan A = a ÷ b.

With a leg and the opposite angle, b = a ÷ tan A; with the hypotenuse and an angle, a = c × sin A and b = c × cos A. The two acute angles always add up to 90°.

Area = a × b ÷ 2, perimeter = a + b + c, and the height to the hypotenuse is a × b ÷ c.

Worked example

What you knowLegs a and b
Leg a (length units; modes 1, 2, 3)3
Leg b (length units; mode 1)4
Hypotenuse c (length units; modes 2, 4)10
Angle A opposite leg a (modes 3, 4)30 °
Hypotenuse c5
Angle A (degrees)36.8699
Angle B (degrees)53.1301
Area (square units)6
Perimeter (length units)12
Height to the hypotenuse (length units)2.4

Frequently asked questions

How do I find the hypotenuse with legs 3 and 4?

c = √(3² + 4²) = √25 = 5. The angles are about 36.87° and 53.13°, and the area is 6.

Can I solve a right triangle from one side and one angle?

Yes. With leg a = 5 opposite a 30° angle, leg b = 5 ÷ tan 30° ≈ 8.6603 and the hypotenuse is 10.

Why do I get a dash?

The values cannot form a right triangle, for example a leg longer than the hypotenuse.

Questions answered

Related calculators