Skip to content
    Geometry

    Pythagorean Theorem Explained (With Examples)

    Builders check that a corner is truly square using nothing but a tape measure and one ancient formula. It works for ladders against walls, TV diagonals, and city blocks too. Here's how it works and how to use it.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • The Pythagorean theorem is c² = a² + b², for right triangles only.
    • a and b are the two legs; c is the hypotenuse, the longest side.
    • Take the square root at the end to get the actual length, not the squared value.
    • 3-4-5 and 5-12-13 are classic whole-number examples, called Pythagorean triples.
    In this guide
    1. 01What is the Pythagorean theorem?
    2. 02Why does the Pythagorean theorem matter?
    3. 03The formula
    4. 04How to find the hypotenuse step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is the Pythagorean theorem?

    In any right triangle (a triangle with one 90° corner), the two shorter sides are called legs, and the longest side, opposite the right angle, is called the hypotenuse. The Pythagorean theorem connects the three.

    Why does the Pythagorean theorem matter?

    It's one of the most useful formulas in everyday geometry: it tells you the length of a side you can't directly measure, as long as you know the other two.

    A ladder resting 3 m from a wall and reaching 4 m up needs to be exactly 5 m long: √(3² + 4²) = √25 = 5. That's the famous 3-4-5 triangle, and it's a genuine right angle every time.

    The formula

    c² = a² + b²
    SymbolWhat it meansExample
    aOne leg of the right triangle3 m
    bThe other leg4 m
    cThe hypotenuse: the longest side, opposite the right angle5 m

    How to find the hypotenuse step by step

    1. 1Identify the two legs. The two shorter sides that meet at the right angle.
    2. 2Square each leg. Multiply each one by itself.
    3. 3Add the two squared values together.
    4. 4Take the square root. This gives you the hypotenuse, c.

    Now try it yourself. Change the two legs in the calculator below and watch the hypotenuse update, with every step shown.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Geometry
    Middle School

    Pythagorean Theorem

    Find the hypotenuse of a right triangle

    c² = a² + b²

    a=3b=4c=5.0
    a² + b² = 25c = 5.00
    m
    120
    m
    120

    💡 Example

    Reference
    Inputs:a=3, b=4
    Result:5.00 m
    Open the full Pythagorean Theorem calculator

    Common mistakes to avoid

    • Solving for the wrong side. If you already know the hypotenuse and one leg, rearrange to b² = c² - a², not add.
    • Skipping the square root. c² is the squared hypotenuse; take the square root to get the actual length c.
    • Mixing up which side is the hypotenuse. It's always the longest side, directly opposite the right angle.

    Tips and tricks

    • To check if a corner is truly square on site, measure 3 units along one wall and 4 along the other; the diagonal between those points should be exactly 5 units.
    • The same idea, applied to coordinates on a graph, becomes the distance formula.

    Where you'll use it in real life

    • Construction: checking that a corner or foundation is a true right angle.
    • DIY: finding the right ladder length to reach a given height from a given distance.
    • Navigation: finding the straight-line distance between two points on a grid map.
    • Design: verifying screen or TV diagonal sizes from width and height.

    Quick summary

    To find the hypotenuse of a right triangle, square both legs, add them together, then take the square root. The theorem only applies to right triangles. Use the calculator above to check your own triangle with every step shown.

    Worked example

    A ladder's base sits 3 meters from a wall, and it needs to reach a point 4 meters up the wall. How long does the ladder need to be?

    1. 01c² = a² + b²
    2. 02c² = 3² + 4²
    3. 03c² = 9 + 16
    4. 04c² = 25
    5. 05c = 5

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    How do I find a missing leg instead of the hypotenuse?

    Rearrange the formula to a² = c² - b², then take the square root. Subtract the known leg squared from the hypotenuse squared before taking the root.

    Does the Pythagorean theorem work on any triangle?

    No, only on right triangles, ones with exactly one 90° angle. For other triangles, use the [law of cosines](/calculator/law-of-cosines) instead.

    What's a common example of Pythagorean triple numbers?

    3-4-5 and its multiples, like 6-8-10 or 9-12-15, are classic examples where all three sides are whole numbers.

    How is the Pythagorean theorem related to the distance formula?

    The [distance formula](/calculator/distance-formula) for two points on a graph is really the Pythagorean theorem applied to the horizontal and vertical gaps between the points.

    #Geometry#Middle School#Pythagorean Theorem
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX