Uni-Sine
MathematicsGeometry

Hypotenuse calculator: find the longest side of a right triangle

The hypotenuse is the longest side of a right triangle, opposite the right angle. From the two legs a and b, it is c = √(a² + b²), so legs of 3 and 4 give a hypotenuse of 5. From one side and an angle, divide: c = opposite ÷ sin A, or c = adjacent ÷ cos A. This hypotenuse calculator is part of our Trigonometry Calculator, which works it out either way and gives the angles too.

Try it

Trigonometry Calculator

Interactive triangle solver with step-by-step

Go to its page

How to find the hypotenuse with the calculator

  1. Open the Trigonometry Calculator. It starts on the unit circle, so at the top of the sidebar choose Standard triangle.
  2. Under Triangle, find the panel that says "Type any three values, including a side, then Solve". It has boxes for the sides a, b and c and the angles A, B and C. Each side is opposite the angle with the same letter.
  3. Press Right angle at C. This fills in C = 90°, so c is the hypotenuse.
  4. Type what you know: the two legs in a and b, or one leg and one of the other angles. Angles are in degrees while Degrees is on.
  5. Press Solve. Measurements shows c, the hypotenuse, with every other side and angle, and the triangle is redrawn to fit the view.

A line under the buttons names the method it used, such as the cosine rule for two legs or the sine rule for a side and an angle. It gives the results rather than written working, so the methods below show how to get the same answers by hand. Measurements rounds lengths to 2 decimal places.

Hypotenuse formula from two sides

c = \sqrt{a^2 + b^2}c is the hypotenuse, a and b are the legs

Square each leg, add, and take the square root. This is the Pythagorean theorem, a² + b² = c², rearranged for c. The Pythagorean theorem calculator guide covers the theorem in full, including finding a missing leg and checking whether a triangle has a right angle.

Example 1: two legs with decimals

The legs are 2.4 m and 3.2 m.

c = \sqrt{2.4^2 + 3.2^2} = \sqrt{5.76 + 10.24} = \sqrt{16} = 4

The hypotenuse is 4 m. These are the 3, 4, 5 triangle scaled by 0.8, which is why the answer comes out whole. In the calculator, type a = 2.4 and b = 3.2, press Right angle at C, then Solve.

Example 2: a straight-line distance

You walk 300 m east and then 400 m north. How far are you from where you started, in a straight line? East and north are at right angles, so the two walks are the legs and the shortcut is the hypotenuse: √(300² + 400²) = √250,000 = 500 m, compared with 700 m walked.

01231234300 m400 mENS500 m
One square is 100 m

Example 3: the length of a ramp

A loading ramp climbs 0.8 m and covers 5 m of ground. How long is its sloping surface?

c = \sqrt{0.8^2 + 5^2} = \sqrt{0.64 + 25} = \sqrt{25.64} = 5.06

The ramp is 5.06 m long. Solve also gives its angle: with the climb typed as a and the ground as b, angle A is 9.09°, the slope of the ramp.

Hypotenuse from an angle and a side

If you know one acute angle and one leg, use sine or cosine. Name the leg first: it is opposite the angle if it doesn't touch it, and adjacent if it does. Then:

\sin A = \frac{\text{opposite}}{\text{hypotenuse}} \quad \Rightarrow \quad \text{hypotenuse} = \frac{\text{opposite}}{\sin A}
\cos A = \frac{\text{adjacent}}{\text{hypotenuse}} \quad \Rightarrow \quad \text{hypotenuse} = \frac{\text{adjacent}}{\cos A}

Tangent doesn't involve the hypotenuse, so it can't give it directly. In the calculator, side a is opposite angle A and side b is next to it, so type the leg in a or b to match.

Example 4: the side opposite the angle

In a right triangle, angle A is 35° and the side opposite it is 10 cm.

c = \frac{10}{\sin 35^{\circ}} = \frac{10}{0.5736} = 17.43

The hypotenuse is 17.43 cm. In the calculator: Right angle at C, a = 10, A = 35, then Solve.

Example 5: the side next to the angle

Now the 10 cm side is adjacent to the 35° angle instead.

c = \frac{10}{\cos 35^{\circ}} = \frac{10}{0.8192} = 12.21

The hypotenuse is 12.21 cm. In the calculator, type b = 10 instead of a. The same 10 cm and 35° give two different answers, which is why naming the side comes first. Your calculator must be in degree mode for these.

Practise finding a missing side from an angle, then press Mark to check your answer in the course.

Find the missing side practice.

Press Mark to have your answer marked in the Trigonometry course.

Special right triangles: hypotenuse shortcuts

TriangleSides in the ratioHypotenuse
45-45-901 : 1 : √2A leg × √2
30-60-901 : √3 : 22 × the shortest leg
3, 4, 5 and its multiples3 : 4 : 55 parts
5, 12, 13 and its multiples5 : 12 : 1313 parts

A 45-45-90 triangle with legs of 6 has hypotenuse 6√2 ≈ 8.49, and the calculator's badge calls it an isosceles right triangle. In a 30-60-90 triangle the shortest leg is opposite the 30° angle, so a shortest leg of 5 gives a hypotenuse of exactly 10, because sin 30° = 1/2. These ratios come from the fact that right triangles with the same angles are similar, which is also why sine and cosine work at all.

Try one

practice
Pick an answer, then check it.
In a right triangle, the side opposite a 30° angle is 7 cm. How long is the hypotenuse?

Checking a hypotenuse answer

  • It must be the longest side. If your hypotenuse is shorter than a leg, something went wrong.
  • It must be shorter than the two legs added together, because a straight line is the shortest route. In example 2, 500 m is less than 700 m.
  • Check the angles add to 180°. With the right angle, the other two must add to 90°. Solve shows all three.
  • Square it back. c² should equal a² + b². For example 1, 4² = 16 = 5.76 + 10.24.

Common mistakes

  • Adding the legs. The hypotenuse of 3 and 4 is 5, not 7. Square, add, then square root.
  • Forgetting the square root. a² + b² is c², not c.
  • Multiplying by sin or cos instead of dividing. Multiplying the hypotenuse by sin A gives a leg. To get the hypotenuse from a leg, divide.
  • Using sin when the side is adjacent, or cos when it is opposite. Name the side relative to the angle first.
  • Radians mode. sin 35 in radians is a very different number. Check your calculator says DEG.
  • Using it on a triangle without a right angle. Only right triangles have a hypotenuse. For other triangles, use the sine or cosine rule, which the calculator's solver also does from any three values.

Common questions

How do you find the hypotenuse?
From the two legs: square them, add, and take the square root, c = √(a² + b²). From a leg and an angle: divide the opposite side by sin of the angle, or the adjacent side by cos of the angle.
How do you find the hypotenuse with only one side?
You need an angle as well, unless the triangle is a special one. With a 45° angle, multiply a leg by √2. With a 30° angle, the hypotenuse is twice the side opposite it. Otherwise use sine or cosine.
Is the hypotenuse always the longest side?
Yes. It is opposite the right angle, which is the biggest angle in a right triangle, and the longest side is always opposite the biggest angle.
Can the hypotenuse be a decimal?
Yes, usually. Only Pythagorean triples like 3, 4, 5 give whole numbers. Legs of 7 and 9 give √130 ≈ 11.40.
Does a triangle without a right angle have a hypotenuse?
No. The word only applies to right triangles. For the longest side of any other triangle, use the cosine rule, or type three known values into the calculator's solver.

Revision cards

Read the front, say your answer, then flip to check.

Where to go next

  • Solve it

    Trigonometry Calculator

    Interactive triangle solver with step-by-step

    Open the tool
  • Learn it

    Trigonometry

    Understand the true math behind everyday geometry with trig functions and identities

    Start the course
  • Test it

    Geometry, Algebra 2 & SAT Math

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · GeometryPythagorean theorem calculator: find any side with stepsFind the hypotenuse or a missing leg of a right triangle with the Pythagorean theorem, worked examples you can check, and a right triangle test.