Maximum decimal places: 4; Nearest, ties away from zero
Leg a
3cm
Leg b
4cm
Hypotenuse c
5cm
Angle α
36.8699°
Angle β
53.1301°
Perimeter
12cm
Height onto the hypotenuse
2.4cm
Inradius
1cm
Circumradius
2.5cm
Legs of 3 and 4 cm meet at the right angle; the hypotenuse is 5 cm, the acute angles are 36.8699° and 53.1301°, and the triangle encloses 6 cm².
Right triangle, to scale
How it's calculated S
Hypotenuse (Pythagoras)
c=a2+b2=32+42=5cm
Angle α
α=arctanba=arctan43=36.869898∘
Area and perimeter
A=21ab=21×3×4=6cm2,P=a+b+c=12cm
Height onto the hypotenuse, inradius, circumradius
h=cab=2.4cm,r=2a+b−c=1cm,R=2c=2.5cm
The circumcentre of a right triangle is the midpoint of its hypotenuse.
About the right triangle calculator
A right triangle is fixed by any two of its parts as long as one of them is a side. With both legs known, Pythagoras' theorem gives the hypotenuse c = √(a² + b²). With a side and an acute angle, the rest follows from sin α = a/c, cos α = b/c and tan α = a/b, and the two acute angles always add up to 90°.
The default legs of 3 cm and 4 cm make the 3-4-5 triangle: hypotenuse 5 cm, area 6 cm², perimeter 12 cm and angles of 36.8699° and 53.1301°. Builders use that ratio to square a corner, since marks 3 m and 4 m from it along two walls should be exactly 5 m apart. The results also include the height onto the hypotenuse (ab/c), the inradius ((a + b − c)/2) and the circumradius (c/2).
Angle α is opposite leg a and β is opposite leg b. Angles can be typed in degrees, radians, gradians or turns and must lie strictly between 0° and 90°.
Pythagorean theorem formula
In a right triangle, the legs a and b and the hypotenuse c (the side opposite the right angle) satisfy a² + b² = c². Legs of 4 m and 7 m give c = √(16 + 49) = √65 ≈ 8.062 m. The rule holds only when the angle between a and b is exactly 90°.
Pythagorean triples
Whole numbers that satisfy a² + b² = c² are called Pythagorean triples. They make easy checks because the hypotenuse comes out exact.
Leg a, cm
Leg b, cm
Hypotenuse c, cm
Area, cm²
Perimeter, cm
3
4
5
6
12
5
12
13
30
30
6
8
10
24
24
8
15
17
60
40
7
24
25
84
56
For 8 and 15, c² = 64 + 225 = 289, so c = 17. Scaling a triple keeps its angles: 6-8-10 has the same shape as 3-4-5, with sides twice as long and four times the area.
The theorem also works backwards. If the three sides satisfy a² + b² = c², the angle opposite c is a right angle, which is why marks 3 and 4 units from a corner should sit exactly 5 apart.
How to find a missing leg
Subtract instead of adding: b = √(c² − a²). A 5 m ladder whose foot stands 1.5 m from a wall reaches √(25 − 2.25) = √22.75 ≈ 4.770 m up the wall.
The hypotenuse is always the longest side, so a leg of 5 with a "hypotenuse" of 4 describes no right triangle.
Area of a right triangle
The two legs are a base and its perpendicular height, so the area is ½ab. Legs of 3 cm and 4 cm enclose ½ × 3 × 4 = 6 cm², and the 4 m by 7 m triangle encloses 14 m².
The height from the right angle to the hypotenuse is ab/c: 3 × 4/5 = 2.4 cm for the 3-4-5 triangle. Half the hypotenuse times that height gives the same 6 cm².
The inscribed circle has radius (a + b − c)/2, and the circle through the three corners has radius c/2 because the hypotenuse is its diameter: 1 cm and 2.5 cm for the 3-4-5 triangle.
Sides and angles with sine, cosine and tangent
When one side and an acute angle are known, the trig ratios give the rest. For the angle α opposite leg a:
sin α = a/c, opposite over hypotenuse
cos α = b/c, adjacent over hypotenuse
tan α = a/b, opposite over adjacent
A hypotenuse of 10 cm at α = 30° gives a = 10 sin 30° = 5 cm and b = 10 cos 30° ≈ 8.660254 cm. The other acute angle is always 90° − α, here 60°.
Going the other way, α = arctan(a/b). For the 3-4-5 triangle, α = arctan(3/4) ≈ 36.869898° and β ≈ 53.130102°. The ladder above meets the ground at arccos(1.5/5) ≈ 72.54°.
Common mistakes
Adding squares to find a leg. With c = 13 and a = 5, √(169 + 25) ≈ 13.93 is a longer hypotenuse; the leg is √(169 − 25) = 12.
Forgetting the square root. 3² + 4² = 25 is c², so the hypotenuse is 5.
Using Pythagoras on any triangle. Without a 90° angle, use the law of cosines in the triangle solver.
Swapping the angle labels. α faces leg a and β faces leg b; mixing them swaps the sine and cosine.
Converting area like a length. A 6 in by 8 in right triangle has a 10 in hypotenuse, exactly 25.4 cm, and 24 in² of area, exactly 154.8384 cm², because area uses 2.54².
Which two values solve a right triangle
Any two values, at least one a side: both legs, a leg and the hypotenuse, or one side with one acute angle.
Angles between 0° and 90°, in degrees, radians, gradians or turns; pi/6 radians is the same angle as 30°.
Units: each side can carry its own unit, and area comes out in the square of the result unit.
Checked against: 3-4-5 triple; h = 3·4/5; r = (3 + 4 − 5)/2
Leg 5 and hypotenuse 13
I know
Leg a and hypotenuse c
Leg a (opposite α)
5 cm
Hypotenuse c
13 cm
Show results in
Centimetres (cm)
Leg b
12 cm
Area
30 cm²
Perimeter
30 cm
Angle α
22.619865 °
Checked against: Independent calculation
30-60-90 from hypotenuse 10 and α = 30°
I know
Hypotenuse c and angle α
Hypotenuse c
10 cm
Angle α
30 °
Show results in
Centimetres (cm)
Leg a
5 cm
Leg b
8.660254 cm
Angle β
60 °
Area
21.650635 cm²
Checked against: Side opposite 30° is half the hypotenuse
45° angle gives equal legs (edge case)
I know
Leg a and angle α
Leg a (opposite α)
7 cm
Angle α
45 °
Show results in
Centimetres (cm)
Leg b
7 cm
Hypotenuse c
9.899495 cm
Area
24.5 cm²
Angle β
45 °
Checked against: tan 45° = 1 so b = a
Questions
How do you find the hypotenuse of a right triangle?
Square both legs, add them and take the square root: c = √(a² + b²). Legs of 3 and 4 give √25 = 5, and legs of 6 in and 8 in give 10 in. If you know one leg and the angle opposite it instead, divide by the sine: c = a / sin α, so a 5 cm leg opposite 30° means a 10 cm hypotenuse.
How do you find a missing side of a right triangle?
For a missing leg, subtract the squares: b = √(c² − a²). A hypotenuse of 13 and a leg of 5 give √(169 − 25) = 12. The hypotenuse must be longer than either leg, or no right triangle exists. With one side and an angle, use SOHCAHTOA: opposite = hypotenuse × sin α and adjacent = hypotenuse × cos α.
What are the side ratios of a 30-60-90 and a 45-45-90 triangle?
A 30-60-90 triangle has sides in the ratio 1 : √3 : 2, so the side opposite 30° is half the hypotenuse; a hypotenuse of 10 gives legs of 5 and 8.6603. A 45-45-90 triangle has equal legs and a hypotenuse √2 ≈ 1.4142 times a leg, so legs of 7 give a hypotenuse of 9.8995.
What does SOHCAHTOA mean?
It is a memory aid for the three trigonometric ratios in a right triangle: sine = opposite/hypotenuse, cosine = adjacent/hypotenuse, tangent = opposite/adjacent. In the 3-4-5 triangle, the angle opposite the side of 3 has sin = 0.6, cos = 0.8 and tan = 0.75, and each inverse function returns the same 36.87°.
How do you check a corner is square with the 3-4-5 rule?
Mark 3 units along one side and 4 along the other, measured from the corner; the diagonal between the marks is exactly 5 when the angle is 90°. A longer diagonal means the angle is too wide: 5.05 m on 3 m and 4 m legs is 91.2°, and 4.95 m is 88.8°. Multiples such as 6-8-10 or 9-12-15 give a more precise check on large slabs.
This calculator includes 6 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.
Put this calculator on your site
Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.