You can use the Pythagorean theorem online for free in seconds: open the Pythagorean Calculator, enter the two sides you know, and read the third from a² + b² = c². Legs of 3 and 4 give a hypotenuse of exactly 5, because 9 + 16 = 25 and √25 = 5. This guide covers finding the hypotenuse, finding a missing leg, the triples worth memorising, and the everyday jobs — screen sizes, ladders and diagonals — where this one theorem does the work.
The Pythagorean theorem is probably the most useful single result in school mathematics, and unusually for a theorem, its statement fits in one line: in a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides. It is also one of the oldest results in mathematics, known in some form to Babylonian, Indian and Chinese mathematicians long before Pythagoras gave it his name in the Greek tradition. Its staying power comes from how often the world presents right triangles in disguise. A wall meets the ground at a right angle, so a ladder leaning on it completes a right triangle. A rectangle is two right triangles back to back, so its diagonal is a hypotenuse. A television screen is a rectangle, so its advertised size is a hypotenuse too. This guide keeps the algebra and the applications together, because the theorem is easiest to remember in the places you actually use it.
How Do You Use the Pythagorean Theorem Online, Step by Step?
- Open the calculator. Go to the Pythagorean Calculator with the two known sides noted.
- Confirm there is a right angle. The theorem is only true for right triangles. Look for the square corner marker on a diagram, or for a genuinely perpendicular pair in the real situation — a wall and level ground, the width and height of a rectangle.
- Identify the hypotenuse. It is the side opposite the right angle, and it is always the longest. Decide whether the side you need is the hypotenuse or a leg, because the two calculations differ: addition for the hypotenuse, subtraction for a leg.
- Enter the two known sides against the correct labels. Swapping a leg for the hypotenuse is the commonest input error, and the checks below exist to catch it.
- Check the result for size. A hypotenuse must be longer than either leg but shorter than the two legs added together. A leg must be shorter than the hypotenuse. A result outside those bounds is wrong, however it was produced.
a² + b² = c²: Solving for the Hypotenuse and for a Leg
The theorem has three quantities, so it has three working forms, and fluency is mostly knowing which form a problem needs. To find the hypotenuse, the form is c = √(a² + b²): square both legs, add, and take the square root. To find a leg when the hypotenuse is known, the form is b = √(c² − a²): square the hypotenuse, subtract the square of the known leg, and take the square root. The pattern is worth stating plainly, because it is the point where most errors occur — finding the longest side adds, finding a shorter side subtracts. Mixing the two up produces the tell-tale impossible results the step checks guard against, such as a leg longer than the hypotenuse or a square root of a negative number.
A Pythagorean triple is a set of three whole numbers that fits the theorem exactly, with no rounding anywhere: 3² + 4² = 5², because 9 + 16 = 25. Triples earn their place in this guide for two practical reasons. First, they are self-checking anchors: a calculation whose inputs are near a triple and whose output lands near its third member is behaving as it should. Second, triples scale. Multiply every member of 3-4-5 by the same number and the result is still a triple, so 6-8-10 is the same triangle doubled, and 30-40-50 is the same triangle ten times over — which is why builders checking a corner for squareness measure 3 units along one edge and 4 along the other, then confirm the diagonal reads exactly 5. A corner that passes the 3-4-5 test is a true right angle, verified with nothing but a tape measure.
| Job | Formula | Worked check |
|---|---|---|
| Find the hypotenuse | c = √(a² + b²) | √(9 + 16) = 5 |
| Find a leg | b = √(c² − a²) | √(169 − 25) = 12 |
| Double a triple | Multiply all three sides by the same factor | 3-4-5 × 2 = 6-8-10 |
| Rectangle diagonal | d = √(width² + height²) | √(900 + 1600) = 50 |
| Check a right angle | Measure 3 and 4, expect diagonal 5 | 9 + 16 = 25 ✓ |
Worked Examples: Two Triples, a Missing Leg, and a Diagonal
Example 1 — the 3-4-5 triangle. Legs of 3 and 4: c = √(3² + 4²) = √(9 + 16) = √25 = 5. This is the smallest whole-number right triangle and the reference case for the whole topic. If a method, a calculator or a piece of working cannot reproduce 3-4-5 cleanly, it should not be trusted on anything larger.
Example 2 — the 6-8-10 triangle. Legs of 6 and 8: c = √(36 + 64) = √100 = 10. Compare with Example 1: every side has doubled, and the theorem still balances exactly, because doubling all sides multiplies each square by four and the equality is preserved. Recognising scaled triples on sight saves real time — 6-8-10, 9-12-15 and 30-40-50 are all the same triangle wearing different units.
Example 3 — finding a leg from the hypotenuse. A right triangle has a hypotenuse of 13 and one leg of 5. The other leg is b = √(13² − 5²) = √(169 − 25) = √144 = 12, completing the 5-12-13 triple. Note the subtraction: this example is the mirror image of the first two, and it is the form ladder, ramp and reach problems usually need, because in those problems the longest side — the ladder, the ramp surface — is the one you already have.
Example 4 — the diagonal of a 30 by 40 rectangle. A rectangle 30 units wide and 40 units tall has a diagonal of √(30² + 40²) = √(900 + 1600) = √2500 = 50. The rectangle's sides and diagonal form the 30-40-50 scaled triple, which is why the answer is exact. Every rectangular diagonal problem — a screen, a doorway clearance, a garden plot checked for squareness — is this example with different numbers.
Classic Pythagorean triples: the two legs and the hypotenuse — hover or tap each bar for details.
The chart lines up the hypotenuses from the worked examples, and the scaling story is written across the bars: 5, then exactly double at 10, then 13 from the leg-finding example, then 50 for the rectangle, which is the 3-4-5 hypotenuse scaled by ten. That regularity is a genuine working tool, not a curiosity. When a diagonal or hypotenuse comes out at a messy decimal for inputs that look like a scaled triple, recheck the inputs before accepting it — tidy inputs in this family usually have tidy outputs, and a mismatch often means a side was entered in the wrong field. The reverse also holds: inputs with no triple relationship, like legs of 2 and 3 giving √13 ≈ 3.61, honestly produce roots, and those should be left as roots or sensibly rounded decimals rather than forced into whole numbers.
Where the Pythagorean Theorem Shows Up
| Situation | The right triangle hiding in it | Watch for |
|---|---|---|
| TV and monitor sizing | Screen width, height and their diagonal | The quoted size is the diagonal, never the width |
| Ladders against walls | Wall, ground and ladder as hypotenuse | The theorem gives reach length; safe angle and footing are separate questions |
| Checking corners for square | The 3-4-5 layout test | Measure along both edges from the same corner point |
| Doorway and furniture clearance | The diagonal of the object against the opening | A tall item rotated through a doorway travels on its diagonal |
| Distance on a grid or map | East-west and north-south offsets as legs | The result is the straight-line distance, not the walking route |
Five Mistakes That Spoil Pythagorean Calculations
- Adding where a leg needs subtracting. The hypotenuse is found with a² + b²; a leg is found with c² − a². Using addition for a leg overstates it every time and can push it past the hypotenuse, which is geometrically impossible.
- Forgetting the square root. a² + b² gives c², not c. Legs of 3 and 4 produce 25 at the adding stage, and the answer is √25 = 5. Reporting 25 as the length is the classic half-finished calculation.
- Squaring the sum instead of summing the squares. (3 + 4)² is 49; 3² + 4² is 25. The theorem squares each side separately and then adds. Brackets are not a cosmetic detail here.
- Naming the wrong side as the hypotenuse. The hypotenuse is defined by position — opposite the right angle — not by which value happens to be largest in a list, although it will always be the largest. On a rotated diagram this misreading is easy and consequential.
- Using the theorem with no right angle. A triangle drawn roughly square-cornered is not evidence. Without a confirmed 90° angle the equality does not hold, and the general triangle route in the linked guide is the correct tool.
Conclusion: One Theorem, Three Forms, Constant Use
The Pythagorean theorem is a² + b² = c², rearranged as addition to find the hypotenuse and subtraction to find a leg, anchored by the triples 3-4-5, 6-8-10 and 5-12-13, and applied every time a ladder leans, a screen is measured, or a rectangle's diagonal is needed. Confirm the right angle, name the hypotenuse correctly, remember the square root, and the Pythagorean Calculator will return the third side in one pass. For the wider picture, the triangle calculator finds angles, area and perimeter as well as sides, and the circle calculator covers the round shapes that pair with these straight-edged ones. Background reading continues in our guide to calculating triangle sides and angles, which places this theorem among the other triangle rules, and our guide to calculating circle measurements, where diameters play the role hypotenuses play here.
Trades, furniture and interiors websites lose sales when a product’s stated dimensions cannot answer the question every buyer asks — will it fit through my door, diagonally? If your site sells screens, furniture or fitted goods described only by width and height, book a free consultation with Asad Webs and mention the pages involved; adding diagonal and clearance figures is a small fix that prevents returns.
Frequently Asked Questions
What is the Pythagorean theorem in one sentence?
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². The hypotenuse is the longest side, opposite the right angle. Every calculation in this guide is that one sentence rearranged.
How do I find a missing leg instead of the hypotenuse?
Rearrange the theorem: b = √(c² − a²). Subtract the square of the known leg from the square of the hypotenuse, then take the square root. With a hypotenuse of 13 and a leg of 5, that is √(169 − 25) = √144 = 12. The key difference from finding the hypotenuse is the subtraction — legs are found by taking away, the hypotenuse by adding.
What is a Pythagorean triple?
A Pythagorean triple is a set of three whole numbers that satisfy a² + b² = c² exactly, such as 3-4-5, 6-8-10 and 5-12-13. Triples are useful as quick checks and as mental anchors: if your calculated sides come out close to a known triple, the working is probably right, and scaled copies of 3-4-5 appear constantly in building and layout work.
Does the theorem work for triangles without a right angle?
No. The equality a² + b² = c² holds exactly when the angle opposite c is 90°. For other triangles the relationship becomes an inequality or needs the law of cosines. If a triangle has no right angle, applying Pythagoras anyway will produce a number, and that number will be wrong — which is why confirming the right angle is step one.
Why are television and monitor sizes quoted as diagonals?
Because a single diagonal number describes the size of a rectangular screen completely enough for comparison, and the diagonal is found with Pythagoras from the width and height. A screen’s advertised size, such as a 50-inch class panel, is that diagonal measurement, not its width — which is why a screen is always narrower in width than its headline size suggests.
How do I check a ladder will reach a window safely in principle?
Model the wall, the ground and the ladder as a right triangle: the ladder is the hypotenuse. If the foot of the ladder stands 5 units from the wall and the window is 12 units up, the ladder must be at least √(25 + 144) = 13 units long to reach. Real ladder safety also needs the correct angle, sound footing and manufacturer guidance — the theorem gives the length condition, not a safety approval.
Can the hypotenuse ever be shorter than a leg?
Never. The hypotenuse is opposite the largest angle in the triangle, the right angle, so it is always the longest side. If a calculation returns a hypotenuse smaller than one of the legs you entered, the arithmetic has gone wrong — most often a subtraction used where an addition belonged.

Be the first to share a useful question or thought.