Pythagorean Theorem Calculator

Find a missing side, check whether three lengths form a right triangle or calculate a distance between two points. Follow the working and see the triangle drawn to scale.

Right-angled drafting set square and calculator on a maths study desk

Calculate a side or check a triangle

Side lengths

Decimal places and diagram settings
Common Pythagorean triples

Choose an integer triple to load its two legs into the calculator.

Calculation history

No calculations yet

    Pythagorean Theorem Explained

    Learn the theorem with an area proof, worked right-triangle problems and practice questions.

    What is the Pythagorean Theorem?

    The Pythagorean Theorem states that in a right‑angled triangle, the square of the length of the hypotenuse (c) is equal to the sum of the squares of the other two sides (a and b):

    a2+b2=c2

    This relationship only holds for right triangles (one 90‑degree angle).

    A quick visual proof

    Arrange four copies of a right triangle around the corners of a square. Its four hypotenuses form the sides of the central square. Adjacent acute angles of the original triangles add to a right angle, so the center has four right angles.

    Four equal right triangles fill the corners of a larger square. Their hypotenuses form the four sides of a smaller tilted square.
    Four congruent triangles and one central square fill the large square.

    The area of the large square equals the areas of the four triangles plus the central square.

    (a+b)2=4×ab2+c2

    Expand the square and cancel the area of the four triangles.

    a2+b2=c2

    How to find the hypotenuse

    When both legs are known, add their squares and take the positive square root.

    c=a2+b2

    A right triangle has legs 5 cm and 12 cm. Find the hypotenuse.

    c=52+122=13 cm

    How to find a missing leg

    When the hypotenuse and one leg are known, subtract the known leg squared from the hypotenuse squared.

    b=c2−a2

    The hypotenuse is 10 m and the known leg is 6 m. Find the other leg.

    b=102−62=8 m

    Converse of the Pythagorean Theorem

    For three valid triangle lengths, compare the square of the longest side with the sum of the other two squares. Equality identifies a right triangle. For example, the sides 7, 24 and 25 form a right triangle.

    72+242=49+576=625=252

    A larger sum gives an acute triangle. A smaller sum gives an obtuse triangle. First verify that the two shorter sides add to more than the longest.

    Real‑life applications

    • Construction & carpentry – ensuring walls are square.
    • Navigation and maps — finding straight-line distance on suitable flat coordinate grids.
    • Computer graphics – distance between pixels/points.

    Distance on a coordinate plane

    Use the horizontal and vertical coordinate differences as perpendicular components.

    d=(x2−x1)2+(y2−y1)2

    For points at (−1, 2) and (2, 6), the coordinate changes are 3 and 4. The straight-line distance is 5 units.

    d=32+42=5 units

    Worked examples

    Example 1 – Ladder against wall

    A ladder 15 ft long reaches a wall at 12 ft above the ground. How far is the base from the wall?

    b=152−122=9 ft

    Example 2 – Roof truss

    A roof truss forms a right triangle with a 20‑ft base and a 25‑ft hypotenuse. How tall is the truss?

    b=252−202=15 ft

    Practice questions

    Click to reveal answers.

    1. Find the hypotenuse of a right triangle with legs 9 cm and 40 cm. c=92+402=41 cm
    2. A triangle has sides 8 m, 15 m, 17 m. Is it a right triangle?

    Yes, the two shorter sides satisfy the converse.

    82+152=64+225=289=172
    3. The diagonal of a rectangle is 26 cm and one side is 10 cm. Find the other side. b=262−102=24 cm

    Need extra help with geometry?

    Book personalised lessons with our expert maths tutors – in‑person at our Dubai centre or online worldwide.

    Master Geometry Concepts

    Frequently Asked Questions

    Does the theorem work for obtuse or acute triangles?

    The theorem applies to right triangles, with an angle of 90 degrees.

    Can side lengths be decimals?

    Yes. Side lengths can be any positive real numbers, including decimals and irrational numbers.

    Who discovered the theorem?

    The theorem is named after the ancient Greek mathematician Pythagoras. Babylonian tablets show that related numerical knowledge predates him. The origin of the first proof is uncertain.

    What is the Pythagorean Theorem (and its formula)?

    The square of the hypotenuse equals the sum of the squares of the two legs.

    a2+b2=c2
    How do you do or use the Pythagorean Theorem?

    Locate the right angle. The hypotenuse is the side across from it. Add the squared legs to find the hypotenuse.

    c=a2+b2

    For a missing leg, subtract the known leg squared from the hypotenuse squared. Take the positive square root.

    b=c2−a2
    Does the Pythagorean Theorem apply to all triangles?

    The equality holds for triangles with a right angle. Acute and obtuse triangles give inequalities when you compare the squared lengths.

    Why are the side lengths squared in the Pythagorean Theorem?

    A square built on a side has area equal to that side length squared. The two squares built on the legs have the same total area as the one built on the hypotenuse.

    a2+b2=c2
    What is a Pythagorean triple (or triad/triplet)?

    A triple is three positive integers that satisfy the equation, such as (3, 4, 5) and (5, 12, 13).

    a2+b2=c2
    What is the Converse of the Pythagorean Theorem?

    When the two shorter sides form a valid triangle and the sum of their squares equals the square of the longest side, the triangle has a right angle opposite the longest side.

    a2+b2=c2
    Who was Pythagoras, and who discovered the theorem?

    Pythagoras was a Greek philosopher and mathematician who lived around the sixth century BCE. The theorem bears his name, but the attribution of a first proof is uncertain. Babylonian sources record related calculations earlier. Claims about how ancient Egyptians used such relationships are harder to establish.

    What is the Pythagorean relationship?

    It is the relationship among the two legs and hypotenuse of a right triangle.

    a2+b2=c2
    When and how is the Pythagorean Theorem used in real life?

    The Pythagorean Theorem is widely used in various real-world applications:

    • **Construction & Carpentry:** To ensure structures are square (e.g., walls, foundations), calculate diagonal braces, or determine ladder lengths.
    • **Navigation & GPS:** To calculate the straight-line distance between two points (as the crow flies).
    • **Computer Graphics:** Determining distances between points or rendering perspectives.
    • **Art & Design:** For layout, perspective, and ensuring right angles.
    • **Sports:** Calculating distances in fields or courts.

    Can side lengths in the Pythagorean Theorem be decimals?

    Yes. The rule works for positive whole numbers, decimals and irrational lengths.

    How do you pronounce "Pythagorean Theorem"?

    It is pronounced "Pih-THAG-uh-REE-un THEE-uh-rum".

    Why is the Pythagorean Theorem called a "theorem" and not a "law"?

    A theorem is a mathematical statement established by proof. This relationship follows from geometry, as the area proof above shows. Scientific laws usually describe observed regularities.

    Geometry Regents paper practice

    Use question 16 from June 2026 for an isosceles right triangle and question 20 from August 2026 for a right triangle with an altitude to its hypotenuse.

    References