Explore all tools
FREE ONLINE TOOLNo visitor account required

Right Triangle Calculator

Solve a right triangle from two legs, a leg and the hypotenuse, or a leg and an angle — with a to-scale diagram, trig ratios, area and perimeter.

—

Hypotenuse c

Leg a—
Leg b—
Angle A—
Angle B—
Area—
Perimeter—
Inradius—

Note: Side a is opposite angle A and side b is opposite angle B; the hypotenuse c is opposite the right angle. In leg + angle mode, the angle is A, opposite the leg you enter.

Report a problem with this tool

The Right Triangle, Solved Completely

A right triangle is defined by one 90° angle, which makes everything else follow from two facts. Give the calculator the two legs, a leg and the hypotenuse, or a leg and one acute angle, and it returns the missing side, both acute angles, the area and the perimeter. The engine is Pythagoras, a2 + b2 = c2, plus the three trig ratios: sin = opposite ÷ hypotenuse, cos = adjacent ÷ hypotenuse, tan = opposite ÷ adjacent. In the diagram, side a is opposite angle A, side b is opposite angle B, and the hypotenuse c always sits opposite the right angle at C.

c — hypotenuseabABC = 90°

Worked Example

Legs a = 3 and b = 4. The hypotenuse is √(32 + 42) = √25 = 5. Angle A = arctan(3 / 4) = 36.87°, angle B = arctan(4 / 3) = 53.13°, and the two sum to 90° as they must. The area is half the rectangle the legs span: 3 × 4 / 2 = 6, and the perimeter is 3 + 4 + 5 = 12. The 3-4-5 triangle is the smallest whole-number right triangle, which is why builders and surveyors have used a 3-4-5 rope to mark right angles for thousands of years.

Special Right Triangles Worth Knowing

Two families recur so often that they are worth memorising. The 45-45-90 triangle (half a square) has legs in the ratio 1 : 1 and a hypotenuse of leg × √2 ≈ 1.414. The 30-60-90 triangle (half an equilateral triangle) has sides in the ratio 1 : √3 : 2 — short leg, long leg, hypotenuse. Spotting either pattern lets you solve a triangle in your head: if the hypotenuse is 10 in a 30-60-90, the short leg is 5 and the long leg is 5√3 ≈ 8.66, no calculator required.

Frequently Asked Questions

How do I find the hypotenuse?

Square both legs, add them, and take the square root: c = sqrt(a squared + b squared). For legs 3 and 4 that is sqrt(25) = 5.

Which side is which?

The hypotenuse is always opposite the right angle and is the longest side. Side a is opposite angle A and side b is opposite angle B, the convention this calculator uses.

What are the trig ratios for angle A?

sin A = a / c, cos A = b / c and tan A = a / b. The result panel lists all three for your triangle.

What is a 3-4-5 triangle?

The smallest whole-number right triangle. Its multiples (6-8-10, 9-12-15) are also right triangles, which is why builders use a 3-4-5 measurement to check corners are square.