Right Triangle Calculator
This Right Triangle Calculator finds a missing side of a right triangle from two values that are already known, and shows the working line by line. Two legs point to the square-root relationship between the sides, while an angle and the side beside it point to the tangent instead, so what is given decides which formula is written down. The rest is substituting and working through the arithmetic. Following the same pattern every time keeps the two cases apart.
In this diagram, \(a\) and \(b\) are the two shorter sides and \(c\) is the hypotenuse, the longest side, facing the right angle. This is the triangle for two sides given.
In this diagram, \(\theta\) is the angle, the adjacent side runs next to it, the opposite side faces it, and the hypotenuse faces the right angle. This is the triangle for an angle and the adjacent side given.
Step-by-step method
- Set up the problem.
- Write the formula for the pair that is given.
- Substitute the given values into the formula.
- Work out the missing side.
Formula: Pythagoras' Theorem
This formula gives the hypotenuse c from the two shorter sides a and b. Square them, add them, then take the square root.
Formula: Opposite Side from the Tangent
This formula gives the side opposite θ from the side next to it, using the tangent of θ.
Useful Tips to Remember
Label the sides from the angle you are using: the hypotenuse is opposite the right angle, the opposite side faces the angle, and the adjacent side sits next to it. SOH CAH TOA helps you pick the right ratio. Use Pythagoras' theorem for a missing side when two sides are known. The two acute angles always add up to \(90^\circ\).
Required knowledge
- How to square two sides, add them and take the square root, covered in the Pythagoras' Theorem Calculator.
- What sine, cosine and tangent mean and how to find them, covered in the Trigonometric Ratio Calculator.
Where Is Solving Right Triangles Used?
Solving a right triangle finds all of its missing sides and angles from just a few known values, using Pythagoras' theorem and the trigonometric ratios. Right triangles appear whenever something vertical meets something horizontal, so this is one of the most practical skills in maths. Builders use it for roofs, ramps and stairs, surveyors use it to find heights and distances, and electricians and plumbers use it to bend pipes and cables around corners. It is also how heights of trees and buildings are measured from the ground.
- Designing roofs, ramps and staircases
- Finding the height of a tree or building from an angle and a distance
- Working out ladder positions and safe angles
- Bending pipes and conduit around obstacles
- Calculating heights and distances in surveying
Right Triangle Practice Problems
Example 1 solves a right triangle from the two legs 6 and 8, and Example 2 solves one from a \(45^\circ\) angle and an adjacent side of 10. Try each one yourself before checking. For two more free worked examples, check out the Right Triangle 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 for the pair that is given.
- Substitute the given values into the formula.
- Work out the missing side.
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: The two legs of the right triangle are \(a = 6\) and \(b = 8\), and the hypotenuse \(c\) is missing.
Step 2
Step 2 - Write the formula for the pair that is given.
In this problem: Two legs are given, so the hypotenuse comes from \(c = \sqrt{a^{2} + b^{2}}\).
Step 3
Step 3 - Substitute the given values into the formula.
In this problem: Replacing \(a\) with \(6\) and \(b\) with \(8\) gives \(c = \sqrt{6^{2} + 8^{2}}\).
Step 4
Step 4 - Work out the missing side.
In this problem: Squaring each leg and adding gives \(6^{2} + 8^{2} = 100\), and taking the square root gives \(10\).
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 = 6\) and \(b = 8\).
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 \(6\) and \(b\) with \(8\) in \(c = \sqrt{a^{2} + b^{2}}\) gives \(c = \sqrt{6^{2} + 8^{2}}\).
Step 4
Step 4 - Work out the hypotenuse.
In this problem: Squaring side \(a\) gives \(6^{2} = 36\). Squaring side \(b\) gives \(8^{2} = 64\). Adding the two squares gives \(36 + 64 = 100\). Taking the square root undoes the squaring and gives \(\sqrt{100} = 10\).
Final Answer
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula for the pair that is given.
- Substitute the given values into the formula.
- Work out the missing side.
Formula
Formula: Opposite Side from the Tangent
This formula gives the side opposite θ from the side next to it, using the tangent of θ.
Step 1
Step 1 - Set up the problem.
In this problem: The angle and the side beside it are \(\theta = 45^{\circ}\) and \(\text{adjacent} = 10\), and the opposite side is missing.
Step 2
Step 2 - Write the formula for the pair that is given.
In this problem: An angle and its adjacent side are given, so the opposite side comes from \(\text{opposite} = \text{adjacent} \times \tan(\theta)\).
Step 3
Step 3 - Substitute the given values into the formula.
In this problem: Replacing \(\text{adjacent}\) with \(10\) and \(\theta\) with \(45^{\circ}\) gives \(\text{opposite} = 10 \times \tan(45^{\circ})\).
Step 4
Step 4 - Work out the missing side.
In this problem: The tangent of \(45^{\circ}\) is \(1\), and multiplying it by \(10\) gives \(10\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Right Triangle 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, Right Triangle 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.