Skip to main content

Calcu.fit

Right Triangle Calculator: Find Sides, Angles, Area, and Hypotenuse

Use this free right triangle calculator to solve any right triangle. Enter any two known values (two sides, or one side and one angle), and the calculator finds the missing sides, the two acute angles, the area, the perimeter, and more. It shows the Pythagorean theorem and SOH CAH TOA steps. No signup needed.

Right Triangle Calculator

Enter any two known values. At least one value must be a side length.

Enter exactly two values. Angles must be between 0° and 90°.

Calculation Results

a b c 90°

Additional Measurements

Formula & Steps

How to Use This Right Triangle Calculator

Label the triangle like this:

  • The right angle (90°) is at corner C.
  • a and b are the two legs (the sides next to the right angle).
  • c is the hypotenuse (the longest side, opposite the right angle).
  • A is the angle opposite side a, and B is the angle opposite side b.

Then:

  1. Choose what you know, for example “two legs”, “a leg and the hypotenuse”, or “a side and an angle”.
  2. Enter the two values.
  3. Click Calculate.

You only need two values, as long as at least one is a side. The right angle is already known. If you know one acute angle, the other is 90° minus it.

What You’ll See in Your Results

  • All three sides (a, b, c)
  • Both acute angles (A and B)
  • The area and the perimeter
  • The altitude to the hypotenuse
  • The inradius and the circumradius
  • Steps with the formulas used
  • A message if the values cannot form a right triangle

Right Triangle Basics

A right triangle has one angle of exactly 90°. The other two angles are acute (less than 90°) and add up to 90°.

PartDescription
Hypotenuse (c)The longest side, across from the right angle
Legs (a and b)The two shorter sides that meet at the right angle
OppositeThe side across from the angle you are looking at
AdjacentThe leg next to the angle you are looking at (not the hypotenuse)

The hypotenuse is always longer than either leg.

The Pythagorean Theorem

a² + b² = c²

  • Hypotenuse: c = √(a² + b²)
  • A leg: a = √(c² − b²), and b = √(c² − a²)

The theorem works only for right triangles.

Trigonometric Ratios (SOH CAH TOA)

RatioFormulaMemory aid
sin AOpposite ÷ Hypotenuse = a ÷ cSOH
cos AAdjacent ÷ Hypotenuse = b ÷ cCAH
tan AOpposite ÷ Adjacent = a ÷ bTOA

To find an angle, use the inverse functions:

  • A = sin⁻¹(a ÷ c) = cos⁻¹(b ÷ c) = tan⁻¹(a ÷ b)
  • B = 90° − A

Values for Common Angles

Anglesincostan
30°0.50.86600.5774
45°0.70710.70711
60°0.86600.51.7321

Other Right Triangle Formulas

Area: ½ × a × b

Perimeter: a + b + c

Altitude to the hypotenuse: h = ab ÷ c

Inradius (inscribed circle): r = (a + b − c) ÷ 2

Circumradius (circumscribed circle): R = c ÷ 2 (the hypotenuse is a diameter of that circle)

Right Triangle Calculator Examples

All answers are rounded for display.

Example 1: Two Legs (6 and 8)

  • Hypotenuse: c = √(6² + 8²) = √100 = 10
  • Angle A = tan⁻¹(6 ÷ 8) ≈ 36.87°
  • Angle B = 90° − 36.87° = 53.13°
  • Area = ½ × 6 × 8 = 24
  • Perimeter = 6 + 8 + 10 = 24
  • Altitude to the hypotenuse = (6 × 8) ÷ 10 = 4.8
  • Inradius = (6 + 8 − 10) ÷ 2 = 2
  • Circumradius = 10 ÷ 2 = 5

Example 2: A Leg and the Hypotenuse (5 and 13)

  • Other leg: b = √(13² − 5²) = √144 = 12
  • Angle A = sin⁻¹(5 ÷ 13) ≈ 22.62°
  • Angle B ≈ 67.38°
  • Area = ½ × 5 × 12 = 30

Example 3: A Leg and an Angle

Leg a = 7 is opposite angle A = 35°.

  • Angle B = 90° − 35° = 55°
  • Other leg: b = a ÷ tan A = 7 ÷ tan 35° ≈ 9.997
  • Hypotenuse: c = a ÷ sin A = 7 ÷ sin 35° ≈ 12.204

Example 4: The Hypotenuse and an Angle

Hypotenuse c = 20 and angle A = 30°.

  • a = c × sin A = 20 × 0.5 = 10
  • b = c × cos A = 20 × 0.8660 ≈ 17.321
  • Angle B = 60°

Example 5: A Ladder Against a Wall

A 4 m ladder has its foot 1.2 m from the wall. How high does it reach?

  • Height = √(4² − 1.2²) = √(16 − 1.44) = √14.56 ≈ 3.816 m
  • The angle with the ground = cos⁻¹(1.2 ÷ 4) ≈ 72.54°

For real ladders, follow the ladder’s label and local safety guidance. A rule of thumb you may see is an angle of about 75°.

Example 6: A Ramp

A ramp rises 0.5 m at an angle of 5°.

  • Run (horizontal) = 0.5 ÷ tan 5° ≈ 5.715 m
  • Length of the ramp = 0.5 ÷ sin 5° ≈ 5.737 m

Example 7: A Screen Size

A 55-inch TV has a 16:9 shape, and 55 inches is the diagonal (the hypotenuse).

  • The diagonal of a 16 by 9 rectangle is √(16² + 9²) = √337 ≈ 18.358
  • Width = 55 × 16 ÷ 18.358 ≈ 47.94 in
  • Height = 55 × 9 ÷ 18.358 ≈ 26.96 in

Example 8: The Height of a Tree from Its Shadow

The shadow is 12 m long, and the sun is 40° above the horizon.

  • Height = 12 × tan 40° ≈ 10.07 m

Example 9: A Roof

A roof has a horizontal run of 6 m and a rise of 2.5 m.

  • Rafter length = √(6² + 2.5²) = √42.25 = 6.5 m
  • Pitch angle = tan⁻¹(2.5 ÷ 6) ≈ 22.62°

Example 10: Distance Between Two Points

The points (1, 2) and (7, 10) form a right triangle with legs 6 and 8.

  • Distance = √(6² + 8²) = 10

Example 11: Is It a Right Triangle?

  • Sides 7, 24, 25: 7² + 24² = 49 + 576 = 625 = 25². Yes.
  • Sides 5, 6, 8: 5² + 6² = 61, which is not 64. No (it is an obtuse triangle).

Example 12: The Diagonal of a Square and a Box

  • A square with a side of 10 has a diagonal of 10√2 ≈ 14.142.
  • A box that is 3 by 4 by 12 has a space diagonal of √(3² + 4² + 12²) = 13.

Special Right Triangles

45°-45°-90° Triangle

The two legs are equal, and the hypotenuse is leg × √2.

  • Legs 1 : 1 : √2
  • Leg 7 gives a hypotenuse of 7√2 ≈ 9.899

30°-60°-90° Triangle

The sides are in the ratio 1 : √3 : 2. The short leg is opposite 30°, the long leg is opposite 60°, and the hypotenuse is twice the short leg.

  • Short leg 5 gives a long leg of 5√3 ≈ 8.660 and a hypotenuse of 10

Pythagorean Triples

A Pythagorean triple is a set of three whole numbers (a, b, c) with a² + b² = c². Multiples of a triple are also triples.

TripleCheck
3, 4, 59 + 16 = 25
5, 12, 1325 + 144 = 169
8, 15, 1764 + 225 = 289
7, 24, 2549 + 576 = 625
20, 21, 29400 + 441 = 841
9, 40, 4181 + 1,600 = 1,681
6, 8, 10Double of 3, 4, 5

Which Method Should You Use?

You knowUse
Two legsPythagorean theorem for c, and tan⁻¹ for the angles
A leg and the hypotenusePythagorean theorem for the other leg, and sin⁻¹ or cos⁻¹ for the angles
A leg and an angletan, sin, or cos, and B = 90° − A
The hypotenuse and an anglesin and cos
Only the anglesNot enough. Many sizes have the same angles.

Where Right Triangles Are Used

  • Construction: checking square corners, roof rafters, stairs, and ramps
  • Surveying and navigation: distances, heights, and bearings
  • Screens and frames: the diagonal of a rectangle
  • Engineering and physics: forces and vectors
  • Everyday problems: ladders, shadows, and shortcuts across a field
  • School geometry and trigonometry

Common Mistakes

  • Using the Pythagorean theorem for a triangle that is not a right triangle. It only works with a 90° angle.
  • Putting a leg in place of the hypotenuse. c is always the longest side.
  • Mixing up the opposite and adjacent sides. They depend on which angle you are using.
  • Calculator in the wrong mode. Check degrees and radians.
  • Using sin where you need cos, or tan. Write SOH CAH TOA down first.
  • Adding instead of subtracting. To find a leg, use c² − b², not c² + b².
  • Rounding too early. Keep full precision until the end.
  • A leg that is longer than the hypotenuse. This is not possible.

Tips for Using a Right Triangle Calculator

  • Draw a sketch and mark the right angle, and label the sides a, b, and c.
  • Check that the hypotenuse is the longest side.
  • Use the same unit for all lengths.
  • Check your answer: the two acute angles must add up to 90°.
  • Estimate first. A 6-8-10 triangle is a quick check for many problems.
  • For real jobs, measure carefully and check local rules and safety guidance.

Right Triangle Calculator vs. Other Tools

  • Triangle Calculator: solves any triangle (SSS, SAS, ASA, AAS, SSA).
  • Slope Calculator: rise over run, which is a right triangle too.
  • Circle Calculator: area, circumference, arc, and sector.
  • Scientific Calculator: trig functions, powers, and roots.
  • Ratio Calculator: simplify and scale ratios.

Frequently Asked Questions (FAQ)

How do I find the hypotenuse of a right triangle?

Use the Pythagorean theorem: c = √(a² + b²). For legs 6 and 8, c = √100 = 10.

 Use a = √(c² − b²). For a hypotenuse of 13 and a leg of 5, the other leg is √(169 − 25) = 12.

 In a right triangle, a² + b² = c², where c is the hypotenuse and a and b are the legs.

Use the inverse trig functions. For legs 6 and 8, A = tan⁻¹(6 ÷ 8) ≈ 36.87°, and B = 90° − A ≈ 53.13°.

It is a memory aid: sine = opposite ÷ hypotenuse, cosine = adjacent ÷ hypotenuse, and tangent = opposite ÷ adjacent.

Half the product of the two legs: ½ × a × b. For legs 6 and 8, the area is 24.

No. You need one more value, such as another side or an acute angle. The right angle is already known.

No. Many triangles of different sizes have the same angles, so you need at least one side.

A set of three whole numbers where a² + b² = c², such as 3-4-5 or 5-12-13.

 A right triangle with angles of 30°, 60°, and 90°. Its sides are in the ratio 1 : √3 : 2.

It is the line from the right angle to the hypotenuse, at 90° to it. Its length is ab ÷ c.

Yes. It is free, with no registration and no limits.

It uses standard formulas and the numbers you enter. Results are rounded for display.

Disclaimer

This calculator is for general and educational use. Results are rounded for display and assume a perfect right triangle. For construction, ladders, ramps, roofs, surveying, or any work that affects safety, measure carefully, follow local rules and safety guidance, and consult a qualified professional. Follow your teacher’s rules on the form of the answer.