Use this free right triangle calculator to solve any right triangle. Enter any two known values (two sides, or one side and one angle), and the calculator finds the missing sides, the two acute angles, the area, the perimeter, and more. It shows the Pythagorean theorem and SOH CAH TOA steps. No signup needed.
Enter any two known values. At least one value must be a side length.
Enter exactly two values. Angles must be between 0° and 90°.
Label the triangle like this:
You only need two values, as long as at least one is a side. The right angle is already known. If you know one acute angle, the other is 90° minus it.
A right triangle has one angle of exactly 90°. The other two angles are acute (less than 90°) and add up to 90°.
| Part | Description |
|---|---|
| Hypotenuse (c) | The longest side, across from the right angle |
| Legs (a and b) | The two shorter sides that meet at the right angle |
| Opposite | The side across from the angle you are looking at |
| Adjacent | The leg next to the angle you are looking at (not the hypotenuse) |
The hypotenuse is always longer than either leg.
a² + b² = c²
The theorem works only for right triangles.
| Ratio | Formula | Memory aid |
|---|---|---|
| sin A | Opposite ÷ Hypotenuse = a ÷ c | SOH |
| cos A | Adjacent ÷ Hypotenuse = b ÷ c | CAH |
| tan A | Opposite ÷ Adjacent = a ÷ b | TOA |
To find an angle, use the inverse functions:
| Angle | sin | cos | tan |
|---|---|---|---|
| 30° | 0.5 | 0.8660 | 0.5774 |
| 45° | 0.7071 | 0.7071 | 1 |
| 60° | 0.8660 | 0.5 | 1.7321 |
Area: ½ × a × b
Perimeter: a + b + c
Altitude to the hypotenuse: h = ab ÷ c
Inradius (inscribed circle): r = (a + b − c) ÷ 2
Circumradius (circumscribed circle): R = c ÷ 2 (the hypotenuse is a diameter of that circle)
All answers are rounded for display.
Leg a = 7 is opposite angle A = 35°.
Hypotenuse c = 20 and angle A = 30°.
A 4 m ladder has its foot 1.2 m from the wall. How high does it reach?
For real ladders, follow the ladder’s label and local safety guidance. A rule of thumb you may see is an angle of about 75°.
A ramp rises 0.5 m at an angle of 5°.
A 55-inch TV has a 16:9 shape, and 55 inches is the diagonal (the hypotenuse).
The shadow is 12 m long, and the sun is 40° above the horizon.
A roof has a horizontal run of 6 m and a rise of 2.5 m.
The points (1, 2) and (7, 10) form a right triangle with legs 6 and 8.
The two legs are equal, and the hypotenuse is leg × √2.
The sides are in the ratio 1 : √3 : 2. The short leg is opposite 30°, the long leg is opposite 60°, and the hypotenuse is twice the short leg.
A Pythagorean triple is a set of three whole numbers (a, b, c) with a² + b² = c². Multiples of a triple are also triples.
| Triple | Check |
|---|---|
| 3, 4, 5 | 9 + 16 = 25 |
| 5, 12, 13 | 25 + 144 = 169 |
| 8, 15, 17 | 64 + 225 = 289 |
| 7, 24, 25 | 49 + 576 = 625 |
| 20, 21, 29 | 400 + 441 = 841 |
| 9, 40, 41 | 81 + 1,600 = 1,681 |
| 6, 8, 10 | Double of 3, 4, 5 |
| You know | Use |
|---|---|
| Two legs | Pythagorean theorem for c, and tan⁻¹ for the angles |
| A leg and the hypotenuse | Pythagorean theorem for the other leg, and sin⁻¹ or cos⁻¹ for the angles |
| A leg and an angle | tan, sin, or cos, and B = 90° − A |
| The hypotenuse and an angle | sin and cos |
| Only the angles | Not enough. Many sizes have the same angles. |
Use the Pythagorean theorem: c = √(a² + b²). For legs 6 and 8, c = √100 = 10.
Use a = √(c² − b²). For a hypotenuse of 13 and a leg of 5, the other leg is √(169 − 25) = 12.
In a right triangle, a² + b² = c², where c is the hypotenuse and a and b are the legs.
Use the inverse trig functions. For legs 6 and 8, A = tan⁻¹(6 ÷ 8) ≈ 36.87°, and B = 90° − A ≈ 53.13°.
It is a memory aid: sine = opposite ÷ hypotenuse, cosine = adjacent ÷ hypotenuse, and tangent = opposite ÷ adjacent.
Half the product of the two legs: ½ × a × b. For legs 6 and 8, the area is 24.
No. You need one more value, such as another side or an acute angle. The right angle is already known.
No. Many triangles of different sizes have the same angles, so you need at least one side.
A set of three whole numbers where a² + b² = c², such as 3-4-5 or 5-12-13.
A right triangle with angles of 30°, 60°, and 90°. Its sides are in the ratio 1 : √3 : 2.
It is the line from the right angle to the hypotenuse, at 90° to it. Its length is ab ÷ c.
Yes. It is free, with no registration and no limits.
It uses standard formulas and the numbers you enter. Results are rounded for display.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Results are rounded for display and assume a perfect right triangle. For construction, ladders, ramps, roofs, surveying, or any work that affects safety, measure carefully, follow local rules and safety guidance, and consult a qualified professional. Follow your teacher’s rules on the form of the answer.