A right triangle has one angle of exactly 90 degrees, and that single fact makes it far easier to solve than a general triangle. Give the two shorter sides, the legs, and the rest follows from the Pythagorean theorem and basic trigonometry. Our right triangle calculator finds the hypotenuse, both acute angles, the area and the perimeter. This guide explains each step so you can check the numbers yourself or show your working in class.
How to use the calculator
- Leg a: one of the two sides that meet at the right angle.
- Leg b: the other side at the right angle.
For legs 3 and 4, the calculator returns:
- Hypotenuse: 5
- Angle α (opposite leg a): 36.87°
- Angle β (opposite leg b): 53.13°
- Area: 6
- Perimeter: 12
The 3, 4, 5 triangle is the most famous right triangle, and builders have used it for thousands of years to set out square corners.
Finding the hypotenuse
The hypotenuse is the longest side, opposite the right angle. The Pythagorean theorem links it to the legs:
For legs 3 and 4: c = √(9 + 16) = √25 = 5. The Pythagorean theorem calculator solves for any missing side, including a leg when you know the hypotenuse.
Finding the angles with SOH CAH TOA
Trigonometry relates the angles to the ratios of the sides. The memory aid SOH CAH TOA stands for:
- Sine = Opposite ÷ Hypotenuse
- Cosine = Adjacent ÷ Hypotenuse
- Tangent = Opposite ÷ Adjacent
With both legs known, tangent is the most direct:
For a = 3 and b = 4: α = tan⁻¹(0.75) = 36.87°. Because the three angles add up to 180° and one of them is 90°, the other acute angle is β = 90° − 36.87° = 53.13°.
Area and perimeter
The two legs are at right angles, so one is the base and the other the height:
For 3 and 4: 3 × 4 ÷ 2 = 6. The perimeter is simply the sum of all three sides: 3 + 4 + 5 = 12.
Special right triangles
Two right triangles come up so often that it is worth knowing their ratios by heart.
| Triangle | Angles | Side ratio |
|---|---|---|
| Isosceles right | 45°, 45°, 90° | 1 : 1 : √2 |
| Half equilateral | 30°, 60°, 90° | 1 : √3 : 2 |
A square tile 30 cm across has a diagonal of 30 × √2 ≈ 42.43 cm. In a 30-60-90 triangle the side opposite 30° is always half the hypotenuse.
Pythagorean triples
Some right triangles have whole-number sides. These sets are called Pythagorean triples:
- 3, 4, 5 and its multiples (6, 8, 10 and 9, 12, 15)
- 5, 12, 13
- 8, 15, 17
- 7, 24, 25
They are handy for checking corners on site. Measure 3 m along one wall and 4 m along the other; if the diagonal is 5 m, the corner is square.
Practical uses
- Ladders: a 5 m ladder with its foot 1.5 m from the wall reaches about 4.77 m up the wall.
- Ramps and roofs: the rise and run are the legs, and the slope length is the hypotenuse. The roofing calculator and stair calculator use exactly this.
- Screens and TVs: the advertised size is the diagonal of the screen, the hypotenuse of its width and height.
- Navigation: walking 300 m east and 400 m north puts you 500 m from the start in a straight line. The distance calculator does this for coordinates.
Working out a leg instead
If you know the hypotenuse and one leg, rearrange the theorem: b = √(c² − a²). With a hypotenuse of 13 and a leg of 5, the other leg is √(169 − 25) = √144 = 12. For a triangle without a right angle, use the general triangle calculator, which relies on the law of cosines instead.
Frequently asked questions
Which side is the hypotenuse?
The side opposite the right angle. It is always the longest side of a right triangle.
Do I need the angles to use the calculator?
No. The two legs are enough. The calculator works out both acute angles from them using the inverse tangent.
Why do the two acute angles add up to 90 degrees?
All three angles of any triangle add up to 180 degrees. One is already 90, so the other two must share the remaining 90.
Can I use different units for the legs?
No. Convert both legs to the same unit first. The hypotenuse and perimeter come out in that unit, and the area in that unit squared.
Try it yourself
Run your own numbers with our free tool: Right triangle calculator. No sign-up, and it works on any device.