Right Triangles
A right triangle has one angle of exactly 90 degrees, two legs that form it and a hypotenuse across from it. Resize the one below and watch the hypotenuse, kept exact, follow the legs.
Last updated
A right triangle has one angle of exactly 90°, marked with a small square. The two sides that form that angle are the legs. The side across from it is the hypotenuse, and it is always the longest. The three are tied together by the Pythagorean theorem:
a^2 + b^2 = c^2
Set the base and the height below, the two legs, each from 1 to 8. The hypotenuse is worked out exactly: a whole number when the legs allow it, a simplified square root otherwise. The switch between angle A and angle B relabels the legs as opposite and adjacent, the words trigonometry uses.
Switch the marked angle. The triangle does not move, but opposite and adjacent trade places - which is why those two words always need an angle attached.
The parts of a right triangle
| part | what it is | in the 3, 4, 5 triangle |
|---|---|---|
| legs | the two sides that form the right angle | 3 and 4 |
| hypotenuse | the side opposite the right angle, the longest | 5 |
| right angle | exactly 90° | where the legs meet |
| acute angles | the other two angles, adding up to 90° | about 36.87° and 53.13° |
The angles of any triangle add up to 180°. The right angle uses 90° of that, so the other two share the last 90° and both are smaller than 90°.
Finding a missing side with Pythagoras
To find the hypotenuse, add the squares of the legs and take the square root:
c = sqrt(a^2 + b^2)
Legs of 5 and 12 give c = sqrt(25 + 144) = sqrt(169) = 13.
To find a leg, subtract the square of the other leg from the square of the hypotenuse:
a = sqrt(c^2 - b^2)
A hypotenuse of 10 and a leg of 6 give sqrt(100 - 36) = sqrt(64) = 8.
Most answers are not whole numbers. Legs of 2 and 4 give sqrt(20) = 2*sqrt(5), about 4.47. Set the widget to 4 and 2 and it shows the same 2√5. Whole-number right triangles such as 3, 4, 5 and 5, 12, 13 are the Pythagorean triples, and the Pythagorean theorem calculator works out any missing side with the steps shown.
The theorem also works backwards. If the sides fit a^2 + b^2 = c^2, the triangle has a right angle. 5, 12 and 13 fit, since 25 + 144 = 169, so a triangle with those sides is a right triangle.
Area and perimeter
The legs meet at a right angle, so one leg is the base and the other is the height. The area is half their product:
A = 1/2*a*b
The perimeter is the three sides added, so a missing side has to be found first. Here are the formulas on a right triangle with legs of 6 and 8:
| to find | formula | legs 6 and 8 |
|---|---|---|
| hypotenuse | c = √(a² + b²) | 10 |
| area | A = ½ab | 24 |
| perimeter | P = a + b + c | 24 |
| height to the hypotenuse | h = ab/c | 48/10 = 24/5 = 4.8 |
The area and the perimeter both come to 24 here, but that is a coincidence of this triangle, and they are not the same kind of number: the area is 24 square units, the perimeter 24 units. There is more on each in area of a triangle and perimeter of a triangle.
The special right triangles
Two right triangles have side ratios worth knowing by heart, because their sides come out exact at any size:
| triangle | angles | sides |
|---|---|---|
| half a square | 45°, 45°, 90° | 1 : 1 : √2 |
| half an equilateral triangle | 30°, 60°, 90° | 1 : √3 : 2 |
Both are worked through on the 30-60-90 triangle.
Sides and angles together
Pythagoras links the three sides. To link a side to an angle, you need the ratios sine, cosine and tangent. Their readouts are under the widget, and the angle switch shows why "opposite" and "adjacent" depend on the angle you pick. SOHCAHTOA explains them from there.
Try one
A right triangle has legs of 3 and 6. How long is the hypotenuse? Give the exact value.
sqrt(9 + 36) = sqrt(45), and since 45 is 9 times 5, that is 3*sqrt(5), about 6.71. Set the widget to 6 and 3 and it shows 3√5.
Common mistakes
- Taking the wrong side as the hypotenuse. The hypotenuse is opposite the right angle, not just any long side in the picture.
- Forgetting the square root. a² + b² is c², not c. For legs 3 and 4 that is 25, while the hypotenuse is 5.
- Adding when finding a leg. For a leg, subtract: c² - b². Adding gives a number bigger than the hypotenuse, which is impossible for a leg.
- Using the hypotenuse in the area. The area is half the product of the two legs.
- Using Pythagoras without a right angle. In any other triangle, a² + b² and c² are not equal.
Common questions
What is a right triangle?
A triangle with one angle of exactly 90 degrees, a right angle. The two sides that form the right angle are the legs, and the side across from it is the hypotenuse. The other two angles always add up to 90 degrees. In British English it is often called a right-angled triangle.
Which side of a right triangle is the hypotenuse?
The side opposite the right angle. It is always the longest of the three sides, and it is the only side that does not touch the right angle. In a triangle with sides 3, 4 and 5, the hypotenuse is 5.
How do I find the missing side of a right triangle?
Use the Pythagorean theorem, a² + b² = c², where c is the hypotenuse. For the hypotenuse, add the squares of the legs and take the square root: legs of 5 and 12 give √169 = 13. For a leg, subtract instead: a hypotenuse of 10 and a leg of 6 give √(100 - 36) = 8.
How do I find the area of a right triangle?
Multiply the two legs and halve the result, A = ½ab. The legs meet at a right angle, so one is the base and the other is the height. A right triangle with legs of 6 and 8 has an area of 24 square units. The hypotenuse is not part of the area formula.
Can a right triangle have an obtuse angle?
No. The three angles of a triangle add up to 180 degrees, and the right angle takes 90 of them. That leaves 90 degrees for the other two together, so each of them is less than 90. A triangle cannot have two right angles either.
Want to run this on your own numbers?
Pythagorean Theorem Calculator Open the calculatorThis and every related formula, on one printable sheet:
Geometry Formulas