Using a² + b² = c²
This Pythagorean theorem calculator finds the missing side of a right-angled triangle when you know the other two. Choose whether you are solving for the hypotenuse (c) or for Leg a or Leg b, type in the two known lengths, and it returns the third side with the full substitution shown step by step, plus a labelled diagram of your triangle. Students checking geometry homework, carpenters squaring a deck frame, and designers working out a screen's diagonal all use the same theorem — this page simply removes the square-root arithmetic.
In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. It is one of the oldest and most useful facts in mathematics — builders use the 3-4-5 triangle to square up foundations, and GPS systems solve millions of triangle problems per second.
Solving for Each Side
- Hypotenuse: c = √(a² + b²) — square, add, square-root.
- A leg: a = √(c² − b²) — subtract first, then square-root. The hypotenuse must be the longest side.
What each symbol names: a and b are the legs — the two sides that meet at the right angle — and c is the hypotenuse, opposite the right angle and always the longest side. The small squares, as in a², mean “multiply the length by itself”, so a² behaves like an area, not a length; that is why the last step takes a square root, √, to turn the total back into a length in your original units. Swapping a and b changes nothing, but c is fixed: it is defined by its position, not by its size in your diagram.
How to Use the Pythagorean Calculator
- Pick the side you are missing with the Solve for tabs: Hypotenuse (c), Leg a, or Leg b.
- Enter the two sides you know in the labelled boxes — Leg a and Leg b when solving for the hypotenuse, or one leg plus Hypotenuse c when solving for a leg.
- Read the missing length in the result panel, and follow the substitution steps printed underneath to see exactly how it was found.
- Glance at the labelled triangle diagram to confirm the answer sits in the right place — c must lie opposite the right-angle corner.
Worked Example 1: The Diagonal Brace
A garden gate opening is 6 feet wide and 8 feet tall, and the carpenter wants the diagonal brace length. The diagonal is the hypotenuse, so Step 1: square both legs — 6² = 36 and 8² = 64. Step 2: add the squares, 36 + 64 = 100. Step 3: take the square root, √100 = 10. The brace must be 10 feet long. Notice this is the famous 3-4-5 triple doubled (6-8-10), which is why the answer comes out a whole number. The calculator shows the same three lines of working: c = √(6² + 8²) = √100 = 10, and the diagram updates to a 6-by-8 triangle with the diagonal marked 10. Cut the timber slightly long and trim it to fit on site, as careful carpenters always do.
Worked Example 2: How High Does the Ladder Reach?
A 13-foot ladder leans against a wall with its foot 5 feet from the base. How high up the wall does it reach? The ladder itself is the hypotenuse, the wall height is the unknown leg, so this time we subtract. Step 1: square the hypotenuse, 13² = 169. Step 2: square the known leg, 5² = 25. Step 3: subtract, 169 − 25 = 144. Step 4: square-root, √144 = 12. The ladder reaches 12 feet up the wall. In the calculator, choose Solve for Leg a, enter Hypotenuse c as 13 and Leg b as 5, and the steps show a = √(13² − 5²) = 12. This is the 5-12-13 triple in disguise. The same subtraction pattern solves any problem where the slanted side is known and one straight side is missing.
When the Theorem Earns Its Keep
Use the theorem any time a right angle hides inside a practical problem. A buyer comparing televisions converts the 55-inch diagonal and the screen's width into its height before checking a cabinet fit. A builder squares a deck frame by measuring both diagonals of the rectangle — equal diagonals mean true right angles. A hiker cuts across a rectangular field 300 metres by 400 metres and walks the 500-metre diagonal instead of 700 metres around. A phone's location services quietly solve the same equation with signal distances thousands of times a day.
Three Mistakes to Avoid
- Using the theorem on a triangle with no right angle: the equation a² + b² = c² is only true when the angle opposite c is 90° — for other triangles you need the cosine rule instead.
- Putting a leg in the c slot: c is always the hypotenuse: the longest side, opposite the right angle. Enter a leg as c and the leg calculation tries to subtract a bigger square from a smaller one.
- Forgetting the final square root: finding c² = 100 is not the answer — c = √100 = 10. Answers left as c² are the most common lost mark in exam questions on this topic.
Famous Triples
Some integer sets fit perfectly: (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). Spotting a multiple of one of these triples lets you answer without a calculator — a favorite trick in timed exams.
Need all sides and angles? Try our triangle calculator.