Right Triangle Calculator
Solve a right triangle from any two known values: both legs, a leg and the hypotenuse, or one side and an angle. Get the missing sides, both acute angles, the area and the perimeter.
Last updated: October 2026
Result
5 units
Formula below · 2 sources (math.libretexts.org, mathworld.wolfram.com) · Updated Oct 2026
Compare with similar
About this calculator
A right triangle has one 90° angle. The two sides that form it are the legs, a and b; the side opposite it is the hypotenuse, c. Angle A is opposite leg a and angle B is opposite leg b, and A + B = 90°. Any two independent values (two sides, or one side and one acute angle) fix the whole triangle.
From two sides
The Pythagorean theorem links the sides: c² = a² + b². With both legs, c = √(a² + b²). With a leg and the hypotenuse, the other leg is √(c² − a²), so the hypotenuse must be the longest side. The angles follow from the inverse tangent: A = arctan(a ÷ b).
From a side and an angle
The trigonometric ratios (SOH-CAH-TOA) give the rest: sin A = a ÷ c, cos A = b ÷ c and tan A = a ÷ b. So with leg a and angle A, b = a ÷ tan A and c = a ÷ sin A; with the hypotenuse and angle A, a = c × sin A and b = c × cos A.
Area and perimeter
Because the legs are perpendicular, they serve as base and height: area = a × b ÷ 2. The perimeter is a + b + c. The result keeps whatever length unit you enter (feet, meters, inches), and the area is in that unit squared.
How to use
Choose what you know, fill in those boxes (leave the others as they are or blank) and pick the value to calculate. The default legs 3 and 4 give a hypotenuse of 5, an area of 6, a perimeter of 12 and angles of 36.87° and 53.13°. A ladder 10 ft long (hypotenuse) leaning at 75° to the ground (angle A) reaches 10 × sin 75° ≈ 9.66 ft up the wall with its foot 10 × cos 75° ≈ 2.59 ft out.
Frequently asked questions
How do I find the hypotenuse of a right triangle?
Square both legs, add them and take the square root: c = √(a² + b²). Legs of 5 and 12 give √169 = 13.
How do I find a missing side from an angle?
Use the ratio that connects what you know with what you want. With the hypotenuse c and angle A, the opposite leg is c × sin A and the adjacent leg is c × cos A. With the adjacent leg b, the opposite leg is b × tan A.
How do I find the angles from the sides?
Angle A = arctan(a ÷ b), and angle B = 90° − A. For legs 3 and 4, A = arctan(0.75) ≈ 36.87° and B ≈ 53.13°.
What is the 3-4-5 rule?
A triangle with sides 3, 4 and 5 (or any multiple, such as 6-8-10) is a right triangle because 3² + 4² = 5². Builders use it to check that a corner is square.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.