HomeArticlesHow ToPythagorean Theorem
HOW TO

How to Use the Pythagorean Theorem

Learn how to use the Pythagorean theorem to find a missing side of a right triangle — with the formula, worked examples, and real-world applications.

Reviewed by the thecalcu.com team · Last updated August 4, 2026

Free calculators used in this guide

Pythagorean Theorem Calculator

Overview

The Pythagorean theorem is one of the oldest and most widely used results in mathematics: in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. Written as a² + b² = c², it lets you find a missing side of a right triangle whenever the other two are known, with no protractor or trigonometry required.

This guide walks through identifying a right triangle correctly, applying the formula in both directions (solving for the hypotenuse and solving for a leg), and using the theorem for practical problems like construction layout, screen diagonals, and distance measurement. Once you understand the steps, the Pythagorean Theorem Calculator can check your work in seconds.

What You Need

Before applying the theorem, gather:

  • Confirmation that the triangle has a right angle: exactly one angle measuring 90 degrees
  • The lengths of any two sides: either both legs, or one leg and the hypotenuse
  • A consistent unit of measurement: convert all sides to the same unit (metres, feet, inches) before calculating
  • A calculator or square root table for any answer that isn't a perfect square

Step 1: Identify a Right Triangle

The Pythagorean theorem only applies to right triangles, meaning triangles with exactly one 90-degree angle. Before doing anything else, confirm the triangle qualifies. In diagrams, a right angle is usually marked with a small square symbol at the corner.

Once you've confirmed the right angle, identify the three sides:

  • The hypotenuse sits directly opposite the right angle. It's always the longest side of the triangle.
  • The two legs are the sides that meet at the 90-degree corner and form the right angle itself.

Getting this identification wrong is the single most common mistake when using the theorem, because the formula treats the hypotenuse differently from the two legs. Mislabel a leg as the hypotenuse, and every calculation after that point will be wrong.


Step 2: Understand the Formula

The Pythagorean theorem is written as:

a² + b² = c²

Where a and b are the lengths of the two legs, and c is the length of the hypotenuse. In words: square each leg, add the results together, and you get the square of the hypotenuse.

The formula can be rearranged depending on which side is unknown:

c = √(a² + b²)         → solving for the hypotenuse
a = √(c² − b²)         → solving for a missing leg
b = √(c² − a²)         → solving for the other missing leg

Only one of these three forms applies to any given problem, depending on which two sides you already know.


Step 3: Solve for the Hypotenuse (When Both Legs Are Known)

This is the most common use case. If you know both legs, square each one, add the squares together, then take the square root of the total.

Worked example: A right triangle has legs of 3 and 4 units.

c² = a² + b² = 3² + 4² = 9 + 16 = 25
c = √25 = 5

The hypotenuse is 5 units. This particular combination, 3-4-5, is famous as the simplest Pythagorean triple, a set of whole numbers that satisfies the theorem exactly with no rounding. It shows up constantly in textbooks and real-world layout work because the numbers are clean.

If your legs don't form a perfect-square combination, your final answer will be an irrational decimal. Legs of 5 and 7, for example, give c = √(25+49) = √74 ≈ 8.60. That's still a correct and usable answer, it just won't be a whole number.


Step 4: Solve for a Missing Leg (When Hypotenuse and One Leg Are Known)

If you already know the hypotenuse and one leg, rearrange the formula to isolate the missing leg. Subtract the known leg's square from the hypotenuse's square, then take the square root.

a = √(c² − b²)

Worked example: A right triangle has a hypotenuse of 13 units and one leg of 5 units.

a² = c² − b² = 13² − 5² = 169 − 25 = 144
a = √144 = 12

The missing leg is 12 units, giving the triple (5, 12, 13), another common whole-number combination. Notice that this step subtracts rather than adds, the opposite of Step 3. Mixing up addition and subtraction here is a frequent source of errors, since both steps use squares and square roots but combine them differently depending on which side is missing.


Step 5: Apply It to Real-World Problems

The theorem shows up well beyond the classroom, wherever two perpendicular measurements meet a third diagonal one.

Screen and TV sizes. A television's advertised size is always its diagonal measurement, which is the hypotenuse of the right triangle formed by its height and width. A screen that's 24 inches wide and 13.5 inches tall has a diagonal of √(24² + 13.5²) = √(576 + 182.25) ≈ √758.25 ≈ 27.5 inches, close to a standard "27-inch" monitor once you account for rounding and bezel.

Diagonal of a room or rectangle. A room that measures 12 feet by 16 feet has a corner-to-corner diagonal of √(12² + 16²) = √(144+256) = √400 = 20 feet. That's useful for fitting furniture, running cables, or checking whether a rectangular space is actually square.

Construction, the 3-4-5 method. Builders verify that a corner is exactly 90 degrees without a protractor by measuring 3 units along one wall and 4 units along the adjoining wall, then checking that the diagonal between those two marked points is exactly 5 units (or any consistent multiple, like 6-8-10 for larger layouts). If the diagonal is off, the corner isn't square, and the framing needs adjustment before work continues.

Navigation and shortest-distance problems. Travel 8 km east and then 6 km north, and your straight-line distance from the starting point is √(8² + 6²) = √(64+36) = √100 = 10 km, shorter than the 14 km you actually walked, because the direct path cuts across the right angle formed by the two legs of the journey.


Common Mistakes to Avoid

Confusing which side is the hypotenuse. The hypotenuse is always opposite the right angle and always the longest side, never one of the two sides forming the 90-degree corner. If your "answer" for the hypotenuse comes out shorter than one of the legs you started with, you've set up the equation incorrectly. Go back and recheck which side is actually opposite the right angle.

Forgetting to take the square root at the end. The formula a² + b² = c² produces c², not c. A calculation that stops at "c² = 25" isn't finished; the actual side length is √25 = 5. Leaving an answer in squared form is a frequent error on tests and in practical work, and it will be off by a wide margin from the true measurement since squared units grow much faster than linear ones.

Applying the theorem to a triangle that isn't a right triangle. This theorem only works for right triangles. For any other triangle, acute or obtuse, with no 90-degree angle, you need the Law of Cosines (c² = a² + b² − 2ab·cos(C)) instead. Using a² + b² = c² on a non-right triangle silently produces a wrong number with no error or warning, so confirm the right angle first.

Mixing units before calculating. Entering one leg in centimetres and the other in metres without converting will corrupt the result, since the squaring operation amplifies the inconsistency. Always convert every measurement to the same unit before squaring and adding.


Formula & Methodology

The core relationship, a² + b² = c², can be proven several ways, and the proof makes the formula much easier to remember and trust.

Rearrangement (geometric) proof. Take four identical copies of the same right triangle and arrange them inside a square whose side length is (a + b). Arranged one way, the four triangles surround a smaller square in the middle with side length c, so the total area is 4 × (½ab) + c². Arranged another way, the same four triangles can be repositioned to leave two smaller squares, one with side a, one with side b, uncovered, giving total area 4 × (½ab) + a² + b². Both arrangements fill the exact same (a+b)² square, so the leftover areas must be equal: c² = a² + b².

Algebraic check. Expanding (a+b)² = a² + 2ab + b² and comparing it against the area arrangement above is the standard way textbooks formalize the rearrangement proof without relying purely on a diagram.

The converse, used for verification. The converse of the Pythagorean theorem states that if a triangle's three sides satisfy a² + b² = c² (where c is the longest side), the triangle contains a 90-degree angle, even if no one ever measured an angle directly. This is the basis of the 3-4-5 construction method. Rather than assuming a corner is square and calculating the diagonal, builders measure all three sides and use the converse to confirm the angle is exactly 90 degrees. If the measured diagonal doesn't match the calculated value, the angle isn't square, and the structure needs correcting before work continues.

Together, the direct theorem and its converse make the Pythagorean relationship a two-way tool. Use a² + b² = c² to predict an unknown side from a known right angle, and run the same equation in reverse to prove a right angle exists from three measured sides.

Frequently Asked Questions

What is the Pythagorean theorem used for?
It finds a missing side length in a right triangle when the other two sides are known. Builders use it to check that corners are square, navigators use it to work out the shortest distance between two points, and it's the reason you can find a screen's diagonal from its height and width. It's also the foundation for the distance formula in coordinate geometry. Any time two measurements meet at a right angle and you need the third, this theorem applies.
Does the Pythagorean theorem work on any triangle?
It only works on right triangles, meaning one of the three angles has to be exactly 90 degrees. For triangles without a right angle, you'll need the Law of Cosines or Law of Sines instead. Applying a² + b² = c² to a non-right triangle produces an incorrect result, because the relationship between the sides depends specifically on that 90-degree angle.
How do I know which side is the hypotenuse?
The hypotenuse sits directly opposite the right angle, and it's always the longest of the three sides. The two sides that meet at that 90-degree corner are called the legs. If you're unsure which angle is 90 degrees, look for the small square symbol in a diagram; that's the standard notation for a right angle.
What is the 3-4-5 triangle and why is it useful?
It's the simplest set of whole numbers that satisfies a² + b² = c² (3² + 4² = 9 + 16 = 25 = 5²), which makes it the easiest right triangle to verify by hand. Builders and carpenters use it on site without a calculator: measure 3 units along one wall, 4 units along the perpendicular wall, and if the diagonal between those two points measures exactly 5 units, the corner is a true 90 degrees. Any multiple of 3-4-5, such as 6-8-10 or 9-12-15, works the same way.
Can the Pythagorean theorem be used to prove a triangle is a right triangle?
Yes. This is called the converse of the Pythagorean theorem, and it works in the opposite direction from the usual formula. Measure all three sides of a triangle, and if the square of the longest side equals the sum of the squares of the other two, the triangle contains a 90-degree angle. That's exactly how the 3-4-5 method works in construction: it doesn't start from a known right angle, it proves one exists by checking the measurements.
What units does the Pythagorean theorem use?
Any consistent unit of length works, whether that's metres, feet, inches, or centimetres, as long as all three sides are measured in the same unit before you apply the formula. Mixing units, like entering one leg in metres and the other in centimetres, will produce a meaningless result. Convert every measurement to a single unit first, calculate, then convert the answer back if you need to.
Why do I take a square root at the end of the calculation?
The formula a² + b² = c² gives you c², the hypotenuse squared, not the hypotenuse itself. Squaring 5 gives 25, so if your calculation lands on c² = 25, the actual side length c is the square root of 25, or 5. Forgetting this final step is one of the most common errors, and it leaves your answer in squared units (like square metres) instead of the linear measurement you actually need.
How does the Pythagorean theorem relate to the distance formula?
The distance formula in coordinate geometry, d = √((x₂−x₁)² + (y₂−y₁)²), is really the Pythagorean theorem applied to a coordinate plane. The horizontal difference (x₂−x₁) and vertical difference (y₂−y₁) form the two legs of a right triangle, and the straight-line distance between the two points is the hypotenuse. That's why the theorem sits underneath so much of analytic geometry, computer graphics, and GPS distance calculations.
Can I use the Pythagorean theorem to find a TV or screen's diagonal size?
You can, and it's how those sizes are advertised in the first place. TV and monitor sizes are always given as a diagonal measurement, and that diagonal is the hypotenuse of a right triangle formed by the screen's height and width. Square the width, square the height, add them, and take the square root to get the diagonal in inches. This also lets you check whether a screen will actually fit a given space, since width and height alone can be misleading.
What is a Pythagorean triple?
It's a set of three positive whole numbers that exactly satisfies a² + b² = c², such as (3, 4, 5), (5, 12, 13), (8, 15, 17), or (7, 24, 25). These triples let you work with exact whole-number answers instead of irrational square roots. Any whole-number multiple of a known triple is also a valid triple, so (6, 8, 10) is just (3, 4, 5) doubled.
How accurate do my measurements need to be when using this theorem in real life?
Because the formula squares each measurement, small input errors get amplified. A 2% error in a leg measurement can produce a noticeably larger error in the calculated hypotenuse, especially on large structures. For construction or engineering use, measure to the precision your tools allow (millimetres or fractions of an inch) and check by measuring the diagonal directly where you can, rather than relying only on the calculated value.
Is there a quick way to check my Pythagorean theorem answer?
Confirm that your answer is larger than both legs but smaller than their sum. The hypotenuse is always the longest side, but it has to be shorter than the two legs added together, a property known as the triangle inequality. You can also square your answer and check it equals the sum of the two squared legs you started with. The [Pythagorean Theorem Calculator](/pythagorean-theorem-calculator/) is the fastest way to confirm a manual calculation.

Related Articles

HOW TO

How to Calculate Probability

HOW TO

How to Calculate Standard Deviation

HOW TO

How to Calculate Z-Score

HOW TO

How to Calculate Burn Rate and Runway

HOW TO

How to Calculate Percentage Change