The complete guide to understanding and solving right triangles
Learn the essential rules of right triangles, from using the Pythagorean theorem to find missing sides to using basic trigonometry for angles. Discover how just a few measurements can unlock every dimension, area, and perimeter of this highly predictable shape.
Sep 13, 2026 6 min read
A right triangle is a triangle where one of the three inside angles measures exactly 90 degrees. That single right angle makes the shape highly predictable. Because of it, you only need a little bit of information to figure out everything else about the triangle.
The side directly opposite the 90-degree corner is the hypotenuse, which is always the longest side of the triangle. The other two sides that meet to form the right angle are simply called the legs. If you know any two measurements—either the lengths of two sides, or the length of one side and the measurement of one of the other angles—you have enough data to calculate every remaining dimension. This makes the right triangle incredibly useful for everything from basic math homework to framing a house.
The Pythagorean theorem
The most well-known rule for these shapes is the Pythagorean theorem. It states that if you square the length of the first leg and add it to the square of the second leg, the result equals the square of the hypotenuse. Written as a math formula, that is a² + b² = c², where a and b are the legs and c is the hypotenuse.
The geometry behind this is quite literal. Imagine drawing a physical square extending outward from leg a, and another square extending outward from leg b. If you calculated the area of those two smaller squares and added them together, the total would perfectly match the area of a giant square drawn outward from the hypotenuse.
This relationship lets you find a missing side whenever you know the other two. Say leg a is 3 and leg b is 4. You square them both to get 9 and 16. Add those together for a total of 25. The square root of 25 is 5, meaning the hypotenuse c is exactly 5.
That specific 3-4-5 ratio is called a Pythagorean triple. A Pythagorean triple is simply a set of whole numbers that works perfectly in the theorem without leaving any messy decimals. Carpenters and builders have used the 3-4-5 rule for centuries to verify their framing is perfectly square. By measuring 3 feet down one wall, 4 feet down the adjacent wall, and checking that the diagonal distance between those points is exactly 5 feet, they know the corner is exactly 90 degrees.
Here are a few common Pythagorean triples you might run into:
| Leg a | Leg b | Hypotenuse c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
Calculating missing angles
While the Pythagorean theorem handles the sides, trigonometry helps you find the angles. The two non-right angles in a right triangle are always acute, which means they each measure less than 90 degrees.
Every triangle’s interior angles add up to exactly 180 degrees. Since the right angle claims exactly 90 of those degrees, the two remaining acute angles will always add up to the remaining 90 degrees. This is incredibly handy. If you find out that one angle is 30 degrees, you immediately know the other is 60 degrees.
To find a specific angle when you only have side lengths, you use inverse trigonometric functions. The names sound intimidating, but they are just standardized ratios. For any given angle, the ratio of the opposite side to the hypotenuse is exactly the same, whether the triangle is the size of a postage stamp or a city block.
If you know the lengths of both legs (a and b), you can find Angle A using the arctangent function, calculated as arctan(a ÷ b). If you know a leg and the hypotenuse, you use the arcsine function instead, like arcsin(a ÷ c). Once you have that first acute angle, finding the second is just a matter of subtracting your result from 90.
How to solve from different starting points
The exact math depends entirely on what pieces of the puzzle you start with.
If you only know the two legs, the path is straightforward. You rely on a² + b² = c² to find the hypotenuse first. From there, use arctan(a ÷ b) to find one of the acute angles, and subtract that angle from 90 to get the final angle.
Things shift slightly if you start with one leg and the hypotenuse. In this case, you rearrange the Pythagorean theorem to solve for the missing leg. If you have hypotenuse c and leg a, the formula to find leg b is b = √(c² − a²). After finding that missing side, using arcsin(a ÷ c) gives you the angle opposite leg a.
Sometimes you start with one side and one angle. Let us say you know leg a and Angle A. Standard trigonometry functions will fill in the blanks. Leg b equals leg a divided by the tangent of Angle A. The hypotenuse c equals leg a divided by the sine of Angle A. And just like before, the missing angle is simply 90 minus Angle A.
Area and perimeter
Finding the physical space a right triangle takes up is straightforward once you know the side lengths.
The perimeter is the total distance around the outside boundary of the triangle. You calculate this by adding the three sides together: a + b + c. If you were building a fence around a triangular garden, the perimeter tells you exactly how much fencing you need.
Area is the amount of two-dimensional space inside the shape. Think of a right triangle as a standard rectangle cut perfectly in half from corner to corner along its diagonal. The area formula directly reflects this relationship. You multiply the two legs together—treating them as the base and height of that imaginary rectangle—and then multiply by one-half.
The formula is Area = ½ × a × b. Notice that the hypotenuse does not factor into the area calculation at all. You only need the two sides that form the right angle.
For a concrete example, consider a triangle where leg a is 5 and leg b is 12, which makes the hypotenuse 13. The perimeter is 5 + 12 + 13, equaling 30. The area is ½ × 5 × 12, which also equals 30. While the numerical values match exactly in this specific scenario, the units are completely different. Perimeter is measured in linear units like inches or meters, while area is measured in square units like square inches or square meters.
Ready to solve your own triangle without doing the manual math? Enter your known values into the Right Triangle Calculator.