Skip to content

Right Triangle Calculator

Type any two values of a right triangle, at least one a side…

Type any two values of a right triangle, at least one a side, to get the other sides and angles, worked out with SOH CAH TOA and drawn to scale.

°
°

Angle C

90° (the right angle)

Legs a and b meet at the right angle; c, the hypotenuse, is opposite it.

More optionsNo length unit

Length unit

A label for the answers; the maths is the same in any unit.

ExampleSide a

5

A 30°-60°-90° triangle, one of the two special right triangles.

Type your own values, or drag a corner.

a 5b 8.66c 10A30°B60°C

Drag the handle on B to change leg a, or on A to change leg b; the right angle stays at C.

Keep fixed while dragging
Every side and angle of the triangle
SideOpposite angle
a = 5A = 30°given
b = 8.6603exactly 5√3B = 60°exactly 60° = π/3 rad
c = 10givenC = 90°exactly 90° = π/2 rad

Area 25√3/2 ≈ 21.6506Perimeter 15 + 5√3 ≈ 23.6603

Area, perimeter, heights and circlesEvery other measurement of this triangle
More measurements of the triangle
Area25√3/2 ≈ 21.6506 square units
Perimeter15 + 5√3 ≈ 23.6603
Height to side a8.6603
Height to side b5
Height to side c4.3301
Inradius (inscribed circle)1.8301
Circumradius (circle through the corners)5
Angles in radiansA 0.5236, B 1.0472, C 1.5708
How this works: 6 sources,

How this works

Method

A right triangle has one 90° angle, so two more values (at least one of them a length) fix everything else. Call the legs a and b, the sides that meet at the right angle, and the hypotenuse c, the long side across from it. Angle A is opposite leg a, and the two acute angles always add up to 90°. Full method

How it’s tested

3 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.

Every change on What’s new

How we make toolsReport a mistake

How to solve a right triangle

A right triangle has one 90° angle, so two more values (at least one of them a length) fix everything else. Call the legs a and b, the sides that meet at the right angle, and the hypotenuse c, the long side across from it. Angle A is opposite leg a, and the two acute angles always add up to 90°.

With two sides, Pythagoras finds the third: c² = a² + b². With a side and an angle, the trigonometric ratios do the work, remembered as SOH CAH TOA: sin A = opposite ÷ hypotenuse, cos A = adjacent ÷ hypotenuse, tan A = opposite ÷ adjacent. A 4 m ladder leaning at 75° to the ground reaches 4 × sin 75° ≈ 3.864 m up the wall, and its foot stands 4 × cos 75° ≈ 1.035 m out.

Some angles have exact ratios, which is why 30°, 45° and 60° turn up in every textbook. A 30°-60°-90° triangle has sides in the ratio 1 : √3 : 2, and a 45°-45°-90° triangle 1 : 1 : √2. The ladder’s 75° is one of them too: its height is exactly √6 + √2 metres, and the calculator keeps forms like that next to the decimals.

sin A = a/c · cos A = b/c · tan A = a/b · a² + b² = c²

Right triangles with a hypotenuse of 10

The two legs of a right triangle with hypotenuse 10 for each angle A from 5° to 85°, exact where the angle allows it.

The two legs of a right triangle with hypotenuse 10 for each angle A from 5° to 85°, exact where the angle allows it.
Angle AAngle BLeg a (opposite A)Leg b (next to A)Exact legs
5°85°0.87169.9619—
10°80°1.73659.8481—
15°75°2.58829.6593(5√6 − 5√2)/2 and (5√2 + 5√6)/2
20°70°3.42029.3969—
25°65°4.22629.0631—
30°60°58.66035 and 5√3
35°55°5.73588.1915—
40°50°6.42797.6604—
45°45°7.07117.07115√2 and 5√2
50°40°7.66046.4279—
Show all 17 rows
55°35°8.19155.7358—
60°30°8.660355√3 and 5
65°25°9.06314.2262—
70°20°9.39693.4202—
75°15°9.65932.5882(5√2 + 5√6)/2 and (5√6 − 5√2)/2
80°10°9.84811.7365—
85°5°9.96190.8716—

Common questions

Which side is the hypotenuse?

The side opposite the right angle. It is always the longest side, so a leg longer than the hypotenuse means a typo: the calculator says so instead of giving a wrong answer.

Can I solve a right triangle from two angles?

No. Two angles fix the shape but not the size: a 30°-60°-90° triangle can have a hypotenuse of 2 cm or 2 km. You need at least one length.

How do I find an angle from two sides?

Use the inverse ratio for the two sides you have. With the opposite leg and the hypotenuse, A = arcsin(a ÷ c); with both legs, A = arctan(a ÷ b). For legs 5 and 12 that is arctan(5/12) ≈ 22.62°, and the other angle is 90° − 22.62° = 67.38°.

What does “exactly 5√3” mean next to 8.6603?

It is the same length written without rounding: 5 times the square root of 3. Teachers often want answers in this form, and it shows why a 30°-60°-90° triangle comes out so neatly.