Pythagoras Theorem Calculator
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.
In the diagram, the shorter sides are \(a\) and \(b\), and the hypotenuse is \(c\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the two shorter sides into the formula.
- 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.
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
- How to square a number, covered in the Multiplication of Small Numbers Calculator.
- How to add the two squares, covered in the Addition of Small Numbers Calculator.
- How to take a square root like √34, covered in the Simplifying Radicals Calculator.
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
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the two shorter sides into the formula.
- 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.
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\).
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.
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}}\).
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\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the two shorter sides into the formula.
- 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.
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\).
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.
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}}\).
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\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Pythagoras Theorem Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Pythagoras Theorem Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.