Geometry
Any two of six

Right Triangle Calculator

Type any two values (two sides, a side and an angle, or a side and the area) and the rest of the right triangle is solved in front of you, with a diagram drawn to scale and every Pythagoras and SOH-CAH-TOA step shown.

Your numbers
Enter any two values
Angle unit
90°

Solving from a and b. The green boxes are worked out for you.

Try

Works instantly in your browser — nothing is uploaded, and the URL keeps your numbers so you can share the exact worked example.

Right triangles, solved

Each row comes from the same solver as the calculator above.

Right triangles, solved
GivenSides a, b, cAngles α, βArea
a = 3, b = 43, 4, 536.87°, 53.13°6
a = 5, c = 135, 12, 1322.62°, 67.38°30
b = 15, c = 178, 15, 1728.07°, 61.93°60
c = 10, α = 30°5, 8.6603, 1030°, 60°21.6506
a = 1, α = 45°1, 1, 1.414245°, 45°0.5
b = 12, β = 60°6.9282, 12, 13.856430°, 60°41.5692
b = 8, A = 246, 8, 1036.87°, 53.13°24
c = 10, A = 246, 8, 1036.87°, 53.13°24
α = 30°, A = 507.5984, 13.1607, 15.196730°, 60°50

Values are rounded to 4 decimal places; angles to 2.

Which two values do you need?

A right triangle already has one angle fixed at 90°, so two more measures pin it down, as long as at least one of them is a length (a side or the area). Two legs, a leg and the hypotenuse, any side with either acute angle, any side with the area, or one acute angle with the area all work. Two angles alone do not: they set the shape, not the size.

Pythagoras and SOH-CAH-TOA in one place

With two sides, Pythagoras (a² + b² = c²) gives the third, and inverse tangent or sine gives the angles. With a side and an angle, the trig ratios give the other sides: sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, tangent is opposite over adjacent. Here α is the angle opposite leg a, so a is its opposite side and b its adjacent side.

Practical checks

Builders use the 3-4-5 rule to square a corner: mark 3 units along one wall and 4 along the other, and the diagonal between the marks should be exactly 5. A ladder 13 feet long with its foot 5 feet from the wall reaches 12 feet up. For roof pitch or ramp slope, the rise is leg a, the run is leg b, and α is the angle of the slope.

Frequently asked questions