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.
- Leg a (given)
- 3
- Leg b (given)
- 4
- Hypotenuse c
- 5
- α (opposite a)
- 36.8699° · 0.6435 rad
- β (opposite b)
- 53.1301° · 0.9273 rad
- Right angle
- 90° · π/2 rad
- Area
- 6
- Perimeter
- 12
- Altitude to hypotenuse h
- 2.4
- Inradius r
- 1
- Circumradius R
- 2.5
From a and b: the legs are 3 and 4, the hypotenuse is 5, and the acute angles are 36.87° and 53.13°.
The working
4 stepsFind the hypotenuse with Pythagoras
In a right triangle the square on the hypotenuse equals the sum of the squares on the two legs: a² + b² = c².
c = √(a² + b²) = √(3² + 4²) = √25 = 5Find the angles with inverse tangent
TOA: tan α = opposite ÷ adjacent = a ÷ b. The other acute angle is whatever is left of 90°.
α = tan⁻¹(3 ÷ 4) = 36.8699°β = 90° − α = 53.1301°Area and perimeter
A = ½ × 3 × 4 = 6P = 3 + 4 + 5 = 12Altitude, inradius and circumradius
The altitude h drops from the right angle to the hypotenuse. The inscribed circle touches all three sides; the circumscribed circle has the hypotenuse as its diameter.
- h = ab ÷ c
- 3 × 4 ÷ 5 = 2.4
- r = (a + b − c) ÷ 2
- (3 + 4 − 5) ÷ 2 = 1
- R = c ÷ 2
- 5 ÷ 2 = 2.5
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.
| Given | Sides a, b, c | Angles α, β | Area |
|---|---|---|---|
| a = 3, b = 4 | 3, 4, 5 | 36.87°, 53.13° | 6 |
| a = 5, c = 13 | 5, 12, 13 | 22.62°, 67.38° | 30 |
| b = 15, c = 17 | 8, 15, 17 | 28.07°, 61.93° | 60 |
| c = 10, α = 30° | 5, 8.6603, 10 | 30°, 60° | 21.6506 |
| a = 1, α = 45° | 1, 1, 1.4142 | 45°, 45° | 0.5 |
| b = 12, β = 60° | 6.9282, 12, 13.8564 | 30°, 60° | 41.5692 |
| b = 8, A = 24 | 6, 8, 10 | 36.87°, 53.13° | 24 |
| c = 10, A = 24 | 6, 8, 10 | 36.87°, 53.13° | 24 |
| α = 30°, A = 50 | 7.5984, 13.1607, 15.1967 | 30°, 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.