Right Triangle Solver logo
Right Triangle Solver

Side Calculations

Pythagorean Theorem Calculator: Find the Hypotenuse

Find the hypotenuse c of a right triangle from the two legs a and b. Enter both values to calculate c instantly.

Pythagorean Theorem Calculator

This calculator finds Hypotenuse c using c = √(a² + b²).

Enter inputs to calculate Hypotenuse c.

What This Tool Solves

Use this page when the two sides that meet at the 90° angle are known and the diagonal side is missing. The calculator focuses on the classic hypotenuse case, so the inputs stay simple and the result is easy to check.

Known values

Leg a and leg b

Finds

Hypotenuse c

Main formula

c = √a² + b²

Best for

Diagonals, ladders, ramps, screens, and geometry homework

Right Triangle Diagram: Finding the Hypotenuse

The diagram shows the exact side relationship used by the tool. The two legs are the known input values, and the slanted side c is the hypotenuse that the calculator finds.

Right Triangle Diagram: Finding the Hypotenuse Right triangle diagram with known legs a and b and unknown hypotenuse c. a = known b = known c = find

Diagram Key

Known side a = known

Leg a is one of the two sides that forms the right angle.

Known side b = known

Leg b is the other side that forms the right angle.

Side to find c = find

Hypotenuse c is the longest side and sits opposite the 90° angle.

  • a and b can be swapped; the hypotenuse result will be the same.
  • Use the same unit for both legs before calculating.
  • The answer c will always be greater than either leg in a valid right triangle.

Pythagorean Theorem Formula

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. To solve for the hypotenuse, take the square root of both sides.

In this formula, a and b are the two legs of the right triangle — the sides that form the right angle. c is the hypotenuse, the longest side, opposite the right angle. This formula only works for right triangles.

a2+b2=c2a^2 + b^2 = c^2
c2=a2+b2c^2 = a^2 + b^2
c=sqrta2+b2c = \\sqrt{a^2 + b^2}

How to Calculate the Hypotenuse

  1. Confirm that the triangle contains a 90° angle. The theorem does not apply to other triangles.
  2. Identify the two legs that form that right angle. These are your a and b.
  3. Enter the length of leg a in the first input field.
  4. Enter the length of leg b in the second input field.
  5. Confirm both measurements use the same unit.
  6. Click Calculate to find the hypotenuse.
  7. Review the result and the step-by-step solution shown below the calculator.
  8. Verify the answer by checking that a² + b² equals c².

Quick Example

Given a = 6 cm and b = 8 cm, the hypotenuse is 10 cm. See the detailed examples below for full step-by-step solutions.

c=62+82=36+64=100=10c = \sqrt{6^2 + 8^2} = \sqrt{36 + 64} = \sqrt{100} = 10

Pythagorean Theorem Examples with Solutions

Example 1: The 6-8-10 Triangle

Problem: Find the hypotenuse of a right triangle with legs a = 6 cm and b = 8 cm.

Given: a = 6 cm, b = 8 cm. Find: c.

Formula: c = √(a² + b²)

Substitution: c = √(6² + 8²) = √(36 + 64) = √100

Answer: c = 10 cm

Verification: 6² + 8² = 36 + 64 = 100 = 10².

Example 2: The 5-12-13 Triangle

Problem: A right triangle has legs a = 5 m and b = 12 m. Find the hypotenuse.

Given: a = 5 m, b = 12 m. Find: c.

Calculation: c = √(5² + 12²) = √(25 + 144) = √169 = 13 m

Answer: c = 13 m

Verification: 5² + 12² = 25 + 144 = 169 = 13².

The numbers 5, 12, and 13 form a Pythagorean triple: three positive integers satisfying a² + b² = c².

Example 3: Rectangular Room Diagonal

Problem: A rectangular room measures 9 ft by 12 ft. Find the diagonal distance between opposite corners.

Given: a = 9 ft, b = 12 ft. Find: c (diagonal).

Calculation: c = √(9² + 12²) = √(81 + 144) = √225 = 15 ft

Answer: The diagonal is 15 ft.

Why this works: The diagonal divides the rectangle into two congruent right triangles. The two sides become the legs, and the diagonal becomes the hypotenuse.

Room floor plan diagram showing how a diagonal forms the hypotenuse of a right triangle

Figure: A rectangle's diagonal always forms the hypotenuse of the two right triangles it creates.

Example 4: Ladder Against a Wall

Problem: A ladder reaches a point 12 ft above the ground. Its base is 5 ft from the wall. Find the ladder length.

Given: a = 5 ft (ground distance), b = 12 ft (wall height). Find: c (ladder).

Calculation: c = √(5² + 12²) = √(25 + 144) = √169 = 13 ft

Answer: The ladder length is 13 ft.

Note: This is an idealized geometric model assuming a perfectly vertical wall and flat ground. It does not establish ladder safety.

Example 5: A Non-Integer Result

Problem: Given a = 7 m and b = 9 m, find the hypotenuse.

Calculation: c = √(7² + 9²) = √(49 + 81) = √130 ≈ 11.401754 m

Answer: c ≈ 11.40 m, rounded to two decimal places.

Verification: 7² + 9² = 130 = (√130)².

The exact result is √130 m. Round only at the final display step; rounding intermediate values introduces errors.

Where Is the Pythagorean Theorem Used?

The theorem applies whenever two perpendicular distances combine into one diagonal distance. For each application below, the two perpendicular measurements are the legs a and b, and the diagonal or sloped distance is the hypotenuse c.

Room and building diagonals. A rectangular room 9 ft by 12 ft has a 15 ft diagonal (Example 3). Builders use this to check that corners are square: if the measured diagonal matches the calculated one, the corner is a true right angle.

Ladder length and wall height. Given the height a ladder must reach and how far its base sits from the wall, the required ladder length follows directly (Example 4).

Ramp length from rise and run. A ramp rising 7 m over a 24 m horizontal run has a sloped length of c = √(7² + 24²) = √(49 + 576) = √625 = 25 m.

Screen and rectangular object diagonals. A 16:9 screen measuring 32 inches wide and 18 inches tall has a diagonal of c = √(32² + 18²) = √(1024 + 324) = √1348 ≈ 36.7 inches.

Geometry homework and technical drawings. Any problem giving the two sides around a right angle and asking for the side across from it is a hypotenuse problem.

Real-world measurements include measurement error, so treat results as estimates. Do not use these calculations to certify building-code compliance or engineering safety.

What Are Pythagorean Triples?

Pythagorean triples are sets of three positive integers a, b, and c satisfying a² + b² = c². When a problem uses a triple, the hypotenuse comes out as a whole number with no rounding needed.

Multiplying all three sides of a valid triple by the same positive factor produces another valid right triangle. For example, doubling 3-4-5 gives 6-8-10, and tripling it gives 9-12-15.

Common Pythagorean triples:

Input Requirements and Common Checks

Both legs must be positive numbers. Decimals are valid inputs, and the calculator keeps enough precision for the step-by-step work to be useful.

The two inputs must use the same unit. If a is in feet and b is in inches, convert one measurement first so the result is meaningful.

The theorem only applies when the included angle is 90°. If your triangle has no right angle, this formula will not give a correct answer.

Before you calculate, check that:

How to Check Your Hypotenuse Calculation

Verify each result before using it. For the 6-8-10 example: 6² + 8² = 36 + 64 = 100 = 10².

A valid hypotenuse is always longer than either leg but shorter than their sum. If your answer violates either bound, re-check the inputs.

A quick reasonableness check:

Common Pythagorean Theorem Mistakes

Most wrong hypotenuse answers come from using the right formula on the wrong sides. The legs must be the two sides that make the right angle; the hypotenuse is never an input on this page.

Another common issue is stopping at a² + b². That value is c², not c. The square root step is what turns the squared value back into the actual side length.

Avoid these mistakes:

Related Calculators

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What is the Pythagorean theorem?

The Pythagorean theorem is a formula that relates the three sides of a right triangle: a² + b² = c². It says that the square of the hypotenuse equals the sum of the squares of the two legs. It only applies to right triangles.

02 How do I calculate the hypotenuse?

Square both legs (a² and b²), add them together, and take the square root of the sum. The formula is c = √a² + b². Or just enter your values above and let the calculator do it.

03 Why does the formula use a square root?

The theorem gives you c², the square of the hypotenuse. Taking the square root converts that squared value back into the actual side length c. Without this step you would have the area-like quantity c² instead of the length.

04 Can the theorem be used for any triangle?

No. The Pythagorean theorem only works for right triangles — triangles with a 90° angle. If your triangle has no right angle, use the general triangle calculators instead.

05 What are Pythagorean triples?

Pythagorean triples are sets of three positive integers satisfying a² + b² = c², such as 3-4-5, 5-12-13, and 8-15-17. Problems using triples give whole-number answers with no rounding needed.

06 Can I use decimal measurements?

Yes. Decimals are valid inputs. For example, a = 2.5 and b = 6 gives c = √6.25 + 36 = √42.25 = 6.5. Keep full precision during calculation and round only the final displayed answer.

07 How do I calculate a rectangle’s diagonal?

A rectangle’s diagonal divides it into two right triangles. Treat the two sides as legs a and b, then apply c = √a² + b². For a 9 ft by 12 ft room, the diagonal is √81 + 144 = 15 ft.

08 How can I check whether my answer is correct?

Verify that a² + b² = c². For 6-8-10: 36 + 64 = 100. Also check that c > a, c > b, and c < a + b. If any check fails, re-examine which sides you entered as legs.