Pythagoras Theorem Calculator

Published on: September 8, 2024
Final Answer: Free | Full Steps: Plus

This Pythagoras Theorem Calculator finds the hypotenuse of a right triangle from its two shorter sides, and shows the working line by line. The square drawn on the hypotenuse has the same area as the two squares on the shorter sides put together, so each shorter side is squared, the squares are added, and the square root of that total is the hypotenuse. Following the same pattern every time is what makes the theorem easy to check and repeat.

a b c

In the diagram, the shorter sides are \(a\) and \(b\), and the hypotenuse is \(c\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two shorter sides into the formula.
  4. Work out the hypotenuse.

Formula: Pythagoras' Theorem

This formula gives the longest side c of a right triangle. Square the shorter sides a and b, add them, then take the square root.

\(c = \sqrt{a^{2} + b^{2}}\)

Useful Tips to Remember

Pythagoras' theorem \(a^2 + b^2 = c^2\) only works in right-angled triangles. The hypotenuse \(c\) is always the longest side, opposite the right angle. To find the hypotenuse, add the squares; to find a shorter side, subtract the smaller square from the larger one. Take the square root at the end, and check that the hypotenuse is longer than both other sides.

Required knowledge

Where Is Pythagoras' Theorem Used?

Pythagoras' theorem finds a missing length whenever two directions meet at a right angle. Builders, designers and navigators use it to find a straight-line distance they cannot measure directly. Because right angles are everywhere, in walls, floors, screens, maps and roofs, the same pattern keeps coming up, where two known sides give the third. It is one of the most used results in all of mathematics, from laying a house's foundations to working out distances in computer graphics and GPS.

  • Checking a wall or floor is square with the 3-4-5 rule
  • Finding how long a ladder must be to reach a window at a given height
  • Working out a TV or phone screen size from its width and height
  • Finding the straight-line distance between two points on a map
  • Measuring the length of a roof slope from its height and width

Pythagoras' Theorem Practice Problems

Example 1 finds the hypotenuse when \(a = 9\) and \(b = 12\), and Example 2 uses \(a = 7\) and \(b = 24\). Try squaring, adding and square rooting yourself before opening each example. For two more free worked examples, check out the Pythagoras Theorem Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(a = 9, b = 12\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two shorter sides into the formula.
  4. Work out the hypotenuse.

Formula

Formula: Pythagoras' Theorem

This formula gives the longest side c of a right triangle. Square the shorter sides a and b, add them, then take the square root.

\(c = \sqrt{a^{2} + b^{2}}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the hypotenuse of a right triangle whose shorter sides are \(a = 9\) and \(b = 12\).

\(a = 9,\; b = 12\)
9 12 c

Step 2

Step 2 - Write the formula.

In this problem: In a right triangle the square drawn on the hypotenuse has the same area as the two squares on the shorter sides together, so the hypotenuse is the square root of their sum.

\(c = \sqrt{a^{2} + b^{2}}\)

Step 3

Step 3 - Substitute the two shorter sides into the formula.

In this problem: Replacing \(a\) with \(9\) and \(b\) with \(12\) in \(c = \sqrt{a^{2} + b^{2}}\) gives \(c = \sqrt{9^{2} + 12^{2}}\).

\(c = \sqrt{9^{2} + 12^{2}}\)

Step 4

Step 4 - Work out the hypotenuse.

In this problem: Squaring side \(a\) gives \(9^{2} = 81\). Squaring side \(b\) gives \(12^{2} = 144\). Adding the two squares gives \(81 + 144 = 225\). Taking the square root undoes the squaring and gives \(\sqrt{225} = 15\).

\(c = \sqrt{9^{2} + 12^{2}} = 15\)

Final Answer

\(c = 15\)
See Example 2 Hide Example 2

Problem

\(a = 7, b = 24\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two shorter sides into the formula.
  4. Work out the hypotenuse.

Formula

Formula: Pythagoras' Theorem

This formula gives the longest side c of a right triangle. Square the shorter sides a and b, add them, then take the square root.

\(c = \sqrt{a^{2} + b^{2}}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the hypotenuse of a right triangle whose shorter sides are \(a = 7\) and \(b = 24\).

\(a = 7,\; b = 24\)
7 24 c

Step 2

Step 2 - Write the formula.

In this problem: In a right triangle the square drawn on the hypotenuse has the same area as the two squares on the shorter sides together, so the hypotenuse is the square root of their sum.

\(c = \sqrt{a^{2} + b^{2}}\)

Step 3

Step 3 - Substitute the two shorter sides into the formula.

In this problem: Replacing \(a\) with \(7\) and \(b\) with \(24\) in \(c = \sqrt{a^{2} + b^{2}}\) gives \(c = \sqrt{7^{2} + 24^{2}}\).

\(c = \sqrt{7^{2} + 24^{2}}\)

Step 4

Step 4 - Work out the hypotenuse.

In this problem: Squaring side \(a\) gives \(7^{2} = 49\). Squaring side \(b\) gives \(24^{2} = 576\). Adding the two squares gives \(49 + 576 = 625\). Taking the square root undoes the squaring and gives \(\sqrt{625} = 25\).

\(c = \sqrt{7^{2} + 24^{2}} = 25\)

Final Answer

\(c = 25\)

Notes and Practice Mode

a b c

Example Problems

Click one to load it into the box and solve it.