CalcOcean
Use the Pythagorean theorem to find a right triangle’s hypotenuse or leg, check units, and avoid common square-root mistakes.
Use the Pythagorean theorem to find a right triangle’s hypotenuse or leg, check units, and avoid common square-root mistakes.

Math

Pythagorean Theorem: How to Find a Missing Side

For a right triangle, the squares built on the two perpendicular legs have the same total area as the square on the hypotenuse. That relationship turns two known side lengths into the third—provided the triangle really contains a right angle.

Published 10 min read

Quick answer: identify the hypotenuse first

Label the two sides that meet at the right angle a and b. Label the side opposite the right angle c; this is the hypotenuse and it is the longest side. The theorem is a² + b² = c². To find the hypotenuse, square both legs, add the squares and take the positive square root. To find a missing leg, subtract the known leg’s square from the hypotenuse’s square, then take the positive square root.

The Pythagorean theorem calculator finds a hypotenuse from two perpendicular legs. For a missing leg, rearrange the equation before entering numbers elsewhere. Lengths are normally nonnegative, so geometry uses the positive square root. A negative number inside the square root signals that the supposed hypotenuse is too short or that the sides were mislabeled.

Why the theorem works only for right triangles

The equation describes a triangle with one 90-degree angle. If the angle between the known sides is acute or obtuse, the relationship changes and the law of cosines is the general tool. Do not apply the Pythagorean theorem merely because a drawing looks rectangular. Diagrams are often not to scale, and a corner that appears square may not be declared or measured as one.

A right-angle marker, a reliable perpendicular construction or problem text can establish the condition. In practical measurement, tolerances matter: a wall and floor may be close to perpendicular without being mathematically exact. The calculated diagonal is then an idealized reference. Compare it with measurement uncertainty rather than treating a tiny mismatch as proof of a structural problem.

Find a hypotenuse with a 3–4–5 example

For legs of 3 and 4 units, square them to obtain 9 and 16. Add to get 25, then take the square root: c = 5. Substitute the answer back into the equation: 3² + 4² = 5², or 9 + 16 = 25. This whole-number triple is memorable, but the method works when the answer is irrational and must be approximated.

Notice that the hypotenuse is not 3 + 4. Straight-line distance across a rectangle is shorter than traveling along two sides. It is also longer than either individual leg. Those inequalities provide a quick check: for positive legs, the computed hypotenuse should be greater than each leg but less than their sum. A result outside that interval exposes most operator mistakes.

Find a missing leg by rearranging first

Suppose the hypotenuse is 13 and one leg is 5. Write b² = 13² − 5² before calculating. The squares are 169 and 25, their difference is 144, and b = 12. Reversing the subtraction would produce a negative radicand. This 5–12–13 triangle verifies cleanly because 25 + 144 equals 169.

Never subtract the raw lengths and then square. The expression √(13² − 5²) is not equal to 13 − 5. Exponents apply before subtraction, and parentheses protect the intended order. On a calculator, enter the full squared difference and inspect it before applying the square root. The intermediate value should be positive and smaller than c².

Handle decimal sides without premature rounding

If legs are 2.5 metres and 6.2 metres, c = √(2.5² + 6.2²) = √(6.25 + 38.44) = √44.69, approximately 6.685 metres. Rounding the squares to whole numbers would materially change the result. Keep the input precision through the calculation and round only the final length to a level suitable for the measurement.

The answer should not imply more accuracy than the inputs. Side lengths recorded to the nearest tenth do not support a diagonal reported to nine decimal places. For construction or engineering, account for measurement uncertainty, material tolerances and applicable standards. An online calculation can check arithmetic, but it cannot certify the accuracy of a tape measure or the suitability of a design.

Keep every length in one unit system

Both legs must use compatible units before they are squared. If one is 3 metres and the other is 400 centimetres, convert first: 400 centimetres is 4 metres, so the hypotenuse is 5 metres. Squaring 3 and 400 without conversion would combine square metres with square centimetres, which has no coherent physical meaning even though a calculator returns a number.

The unit conversion guide explains dimensional consistency, and the length converter can align common units. Convert source measurements, preserve enough digits, solve the triangle, and then convert the result if a different output unit is needed. This order reduces repeated rounding and makes the calculation auditable.

Use the theorem for rectangle diagonals

A rectangle’s length and width meet at right angles, and a diagonal forms the hypotenuse. A screen measuring 48 centimetres wide and 27 centimetres high has a geometric diagonal of √(48² + 27²), approximately 55.1 centimetres. Product “screen size” conventions may use a nominal diagonal and may not describe the whole device, so distinguish a geometric calculation from a manufacturer’s specification.

The same approach checks room diagonals, sheet materials and map grid offsets. Yet real spaces can be irregular, surfaces can slope, and measured points may not lie in one plane. State what the legs represent. A mathematically precise diagonal based on approximate or misaligned inputs is still only as reliable as those inputs.

Calculate straight-line distance on a coordinate grid

For points (x₁, y₁) and (x₂, y₂), the horizontal change is x₂ − x₁ and the vertical change is y₂ − y₁. These changes are perpendicular legs, so distance is √[(x₂ − x₁)² + (y₂ − y₁)²]. From (1, 2) to (7, 10), the changes are 6 and 8, producing distance 10.

Signs disappear after squaring, but calculate each difference consistently. The formula gives straight-line Euclidean distance on a flat coordinate plane. It does not automatically equal road distance, walking distance or distance on Earth’s curved surface. Choose a model that matches the problem rather than assuming every pair of locations forms a practical right-triangle route.

Test whether three sides form a right triangle

Order the side lengths so the largest is c, then compare a² + b² with c². Exact equality identifies a right triangle in exact arithmetic. For sides 6, 8 and 10, 36 + 64 = 100. If the left side is greater, the angle opposite c is acute; if smaller, it is obtuse, assuming the lengths form a valid triangle.

Measured values rarely produce exact equality because of rounding and uncertainty. Decide an appropriate tolerance before testing rather than rounding until the values match. Also check the triangle inequality: the two shorter sides must add to more than the longest. A set such as 2, 3 and 6 cannot form any triangle, so classifying its angle would be meaningless.

Understand squares as areas, not decorative exponents

The theorem’s classic geometric meaning compares areas. A square built on a side of length a has area a². For a right triangle, the areas on the legs add exactly to the area on the hypotenuse. This interpretation explains why the equation contains squares and why adding unsquared side lengths cannot substitute for it.

Area units also clarify dimensional consistency. If side lengths are centimetres, a², b² and c² are square centimetres; after adding areas, the square root returns centimetres. The ratios and proportions guide provides additional scaling context: if every side is multiplied by k, the square areas multiply by k² while the triangle remains similar.

Common mistakes and quick reasonableness checks

The most common errors are choosing the wrong hypotenuse, applying the formula to a non-right triangle, forgetting the square root, subtracting in the wrong order, and mixing units. Another is assuming c² = a² + b² means c = a + b. Square roots do not distribute over addition in that way. Write the labeled equation before substituting numbers.

Check that c is the longest side, that all lengths are positive, and that the final answer fits the triangle inequality. Substitute the calculated value back into the squared equation using unrounded digits. When a decimal approximation is required, state the rounding. These small checks make a result defensible without turning a simple geometry problem into an unexplained calculator output.

Know when another method is required

If you know two sides and the included angle is not 90 degrees, use the law of cosines. If you know angles and one side, trigonometric ratios or the law of sines may be appropriate. On a sphere, geodesic calculations replace flat-plane distance for long routes. In surveying and construction, applicable procedures may also account for slope and instrument calibration.

The Pythagorean theorem remains foundational because many problems can be decomposed into perpendicular components. Its strength comes from matching a clear condition to a reproducible formula. Confirm that condition, preserve units and precision, and explain what the triangle represents. Then the numerical answer supports understanding rather than merely filling a blank.

Scale similar right triangles

If every side of a right triangle is multiplied by the same positive factor, the new triangle remains right and similar. A 3–4–5 triangle scaled by 2 becomes 6–8–10. The leg squares become four times as large because lengths doubled, and the hypotenuse square does too: 36 + 64 = 100. This provides families of examples and a useful check on unit conversions.

Scaling only one side changes the triangle’s shape and requires recalculation. Do not assume a familiar triple after changing one measurement. Similarity depends on preserving all side ratios. When a plan or drawing has a scale, convert every length consistently before applying the theorem.

Apply the theorem in three dimensions

A rectangular box adds another perpendicular dimension. First find the diagonal of the base, then combine it with the height: space diagonal d = √(length² + width² + height²). A box 3 by 4 by 12 has base diagonal 5 and space diagonal 13. This is the two-dimensional theorem applied twice.

All three dimensions must share one unit and meet at right angles. A parcel’s space diagonal can help check whether a straight rigid object fits geometrically, but real packing also depends on object thickness, openings and internal obstructions. Treat the result as one constraint, not a full packing guarantee.

Connect the theorem with construction checks

Builders can use a 3–4–5 layout to establish a right angle: mark proportional distances along two lines and adjust until the distance between the marks matches the scaled hypotenuse. Larger multiples reduce the relative impact of a small marking error, but only when measurements and endpoints are controlled.

This is an application of geometry, not a substitute for building standards, surveying or professional inspection. Uneven surfaces, tape sag and inaccessible corners introduce error. For safety-critical work, use suitable instruments and qualified practice. The theorem supplies the target relationship; measurement quality determines how closely reality is known to match it.

A final worksheet for any missing-side problem

Draw or imagine the triangle, mark the right angle and label the opposite side c. Write every known length with its unit. If c is missing, add the leg squares; if a leg is missing, subtract the known leg square from c². Take the positive square root, round once and substitute back. This sequence prevents the diagram, algebra and units from becoming disconnected.

When the answer will guide a physical cut, clearance or purchase, add measurement tolerance and verify on site. A computed length can be internally correct while the real object is not square, flat or accessible. Geometry supplies an ideal relationship, not a warranty about the measured environment.

Frequently asked questions

What is the Pythagorean theorem formula?

For a right triangle, a squared plus b squared equals c squared, where a and b are the perpendicular legs and c is the hypotenuse opposite the right angle.

How do I find the hypotenuse?

Square both legs, add the squared values, and take the positive square root. The hypotenuse should be longer than either leg but shorter than the sum of the two legs.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the positive square root. Confirm that the hypotenuse is the longest side before subtracting.

Can I use the theorem on any triangle?

No. The theorem in this form applies only to right triangles. For other triangles, a more general relationship such as the law of cosines may be needed.

Why must the units match?

The equation adds squared lengths. Mixing metres and centimetres would add areas expressed on different scales. Convert all side lengths to one unit before squaring and convert the final length afterward if needed.

How can I check my answer?

Substitute the unrounded side lengths back into the equation, confirm the hypotenuse is the longest side, and check the triangle inequality. For measured data, allow a tolerance justified by measurement precision.

Sources and calculation notes

About the author

CalcOcean Editorial Team

The shared publishing byline for CalcOcean educational explanations and checked examples.

Dates describe publication changes, not independent specialist review.