Free Pythagorean theorem calculator: enter any two sides of a right triangle to find the third, with area and angles.

Pythagorean Theorem Calculator

Find any side of a right triangle from the other two — hypotenuse or leg — with the angles, area and a built-in a² + b² = c² check.

Free to use Solves any side Angles + area included Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for leg a.

First leg (perpendicular side).

Enter a valid value for leg b.

Second leg.

Enter a valid value for hypotenuse c.

Longest side, opposite the right angle.

Enter a valid value for solve for.

Which side to calculate; the other two must be given.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Pythagorean Theorem Calculator tinyexe.comFree online calculators

TinyExe · Pythagorean Theorem Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Leg a

—

Leg b

—

Hypotenuse c

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Pythagorean Theorem Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      In a right-angled triangle, a squared plus b squared equals c squared, where c is the hypotenuse opposite the right angle. Enter any two sides: the hypotenuse is the square root of a squared plus b squared, and a missing leg is the square root of c squared minus the other leg squared.

      • a² + b² = c², only for right-angled triangles
      • Hypotenuse c = √(a² + b²); leg a = √(c² − b²)
      • Famous triples: 3-4-5, 5-12-13, 8-15-17

      Common Pythagorean triples

      Reference values for this calculator.

      Leg aLeg bHypotenuse c
      345
      51213
      6810
      81517
      72425
      94041

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      a² + b² = c² — hypotenuse c = √(a² + b²); missing leg a = √(c² − b²); area = a × b ÷ 2

      Enhancement: solves for any of the three sides (not just the hypotenuse), then completes the triangle with both acute angles, area and perimeter, and verifies a² + b² = c² in the steps so rounding errors are visible.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      The classic 3-4-5 triangle

      a = 3, b = 4, c = 5, solveFor = hypotenuse

      CalculationSteps
      Pythagoras: a² + b² = c² for a right-angled triangle Working sides: a = 3, b = 4, c = 5 Check: 3² + 4² = 25 = 5² Area = a × b ÷ 2 = 6Side c = 5 — Sides a / b / c: 3 / 4 / 5; Area: 6 sq units; Perimeter: 12 units; Angles: 36.87° and 53.13° (plus 90°)

      Result

      Example 2

      Finding a leg on a 5-12-13 triangle

      a = 5, b = 12, c = 13, solveFor = legA

      CalculationSteps
      Pythagoras: a² + b² = c² for a right-angled triangle Working sides: a = 5, b = 12, c = 13 Check: 5² + 12² = 169 = 13² Area = a × b ÷ 2 = 30Side a = 5 — Sides a / b / c: 5 / 12 / 13; Area: 30 sq units; Perimeter: 30 units; Angles: 22.62° and 67.38° (plus 90°)

      Result

      Example 3

      Ladder reach (6-8-10)

      a = 6, b = 8, c = 10, solveFor = hypotenuse

      CalculationSteps
      Pythagoras: a² + b² = c² for a right-angled triangle Working sides: a = 6, b = 8, c = 10 Check: 6² + 8² = 100 = 10² Area = a × b ÷ 2 = 24Side c = 10 — Sides a / b / c: 6 / 8 / 10; Area: 24 sq units; Perimeter: 24 units; Angles: 36.87° and 53.13° (plus 90°)

      Result

      How to use this calculator

      Step 1

      Identify the right angle — the hypotenuse c is always the side opposite it.

      Step 2

      Enter the two sides you know and choose the side to solve for.

      Step 3

      For the hypotenuse, square both legs, add, then take the square root.

      Step 4

      For a missing leg, square the hypotenuse, subtract the known leg squared, then root.

      Step 5

      Check the answer: a² + b² must equal c², and c must be the longest side.

      In short: The Pythagorean theorem relates the three sides of a right-angled triangle: the square of the hypotenuse equals the sum of the squares of the two legs.

      Frequently asked questions

      What is the Pythagorean theorem?

      It states that in a right-angled triangle the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². It only applies to triangles containing one 90° angle.

      How do I find a missing leg, not the hypotenuse?

      Rearrange the formula: a = √(c² − b²). Square the hypotenuse, subtract the square of the known leg, and take the square root. The hypotenuse must be longer than either leg.

      What is a Pythagorean triple?

      A set of three whole numbers satisfying a² + b² = c², such as 3-4-5 or 5-12-13. Multiples of a triple (6-8-10) are also triples, which is why they appear so often in construction.

      Does the theorem work for non-right triangles?

      No. For oblique triangles use the law of cosines, c² = a² + b² − 2ab·cos(C), which reduces to Pythagoras when C = 90°.

      Why must the hypotenuse be the longest side?

      It faces the largest angle (90°), and side length grows with the opposite angle. If your calculated hypotenuse is not the longest side, the inputs were probably swapped.

      About this calculator

      The Pythagorean theorem relates the three sides of a right-angled triangle: the square of the hypotenuse equals the sum of the squares of the two legs. The Pythagorean theorem is the most used result in elementary geometry: in any triangle with one right angle, the side opposite that angle — the hypotenuse — satisfies c² = a² + b². Carpenters use it to square foundations (a 3-4-5 tape check), navigators use it for straight-line distance, and every distance formula in coordinate geometry is this theorem in disguise.

      The Pythagorean theorem is the most used result in elementary geometry: in any triangle with one right angle, the side opposite that angle — the hypotenuse — satisfies c² = a² + b². Carpenters use it to square foundations (a 3-4-5 tape check), navigators use it for straight-line distance, and every distance formula in coordinate geometry is this theorem in disguise.

      A common mistake is applying it to triangles that are not right-angled, or labelling a leg as the hypotenuse. The hypotenuse is always opposite the 90° angle and always the longest side; if a calculation makes another side longer, the labels were swapped. This calculator solves for any one side and then verifies the completed triangle by re-checking a² + b² = c².

      Find any side of a right triangle from the other two — hypotenuse or leg — with the angles, area and a built-in a² + b² = c² check. A common mistake is applying it to triangles that are not right-angled, or labelling a leg as the hypotenuse. The hypotenuse is always opposite the 90° angle and always the longest side; if a calculation makes another side longer, the labels were swapped. This calculator solves for any one side and then verifies the completed triangle by re-checking a² + b² = c².

      How to calculate it yourself

      Step 1

      Label the sides: c opposite the right angle, a and b the legs.

      Step 2

      Square the two known sides.

      Step 3

      Add the squares for the hypotenuse, or subtract for a missing leg.

      Step 4

      Take the square root to get the side length.

      Step 5

      Verify: a² + b² should equal c² exactly (within rounding).

      Real-life examples

      Squaring a deck foundation

      A builder marks 6 ft along one edge and 8 ft along the adjacent edge of a deck frame, then measures the diagonal to check the corner is square.

      Pythagoras: a² + b² = c² for a right-angled triangle Working sides: a = 6, b = 8, c = 10 Check: 6² + 8² = 100 = 10² Area = a × b ÷ 2 = 24

      Side c = 10. Solved with a² + b² = c²; angles and area shown from the completed triangle.

      TV size versus wall space

      A screen advertised as 55 inches is the diagonal. With a 48-inch width available, the viewer works out the screen height before buying.

      Pythagoras: a² + b² = c² for a right-angled triangle Working sides: a = 48, b = 26.8514, c = 55 Check: 48² + 26.8514² = 3,025 = 55² Area = a × b ÷ 2 = 644.4346

      Side b = 26.8514. Solved with a² + b² = c²; angles and area shown from the completed triangle.

      Ideas & use cases

      • Square any rectangle: measure both sides, compute the diagonal, and compare with the tape — equal diagonals both ways mean true right angles.
      • Plan a ladder safely: enter the wall height as one leg and the safe base distance as the other to get the ladder length you need.
      • Shortest-path checks: compare a straight-line (hypotenuse) route against walking both legs to see how much a shortcut actually saves.

      Limitations & sources

      • Applies only to right-angled triangles. For triangles without a 90° angle use the law of cosines or law of sines instead.

      Sources: Euclid, Elements Book I Proposition 47; standard right-triangle trigonometry references

      Pythagorean Theorem Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results