Student calculator
Right Triangle Calculator
Enter two legs, a leg and the hypotenuse, or an acute angle and one side. The angle opposite the right angle is 90 degrees. The calculator identifies the acute angle you are describing and gives the ratios for that angle.
Triangle
Solve a right triangle
Result
Hypotenuse
5
Opposite leg
3
Adjacent leg
4
Hypotenuse
5
Sine
0.6
Cosine
0.8
Tangent
0.75
Angle, rounded
36.87°
The first leg is the opposite side for this angle. A degree value is rounded to two decimal places. The 3-4-5 starting values are an example.
How it works
The hypotenuse is the side opposite the right angle, and it is the longest side. For legs a and b, a² + b² = c². Sine of an acute angle is the opposite leg divided by the hypotenuse, cosine is the adjacent leg divided by the hypotenuse, and tangent is opposite divided by adjacent.
Name the angle before you decide which leg is opposite. In the two-leg mode, the first leg is treated as opposite the angle being described. The 3-4-5 values in the form are an example: the angle opposite 3 is about 36.87 degrees, and that degree measure is rounded. The ratios 3/5, 4/5, and 3/4 are exact.
Choose degrees or radians before reading an angle you type. An acute angle has to be greater than 0 and less than 90 degrees, or greater than 0 and less than π/2 radians. A hypotenuse that is not longer than a leg is rejected, and so are zero or negative sides.
Formulas
The Pythagorean relation gives the third side. The three ratios describe one acute angle.
- opposite² + adjacent² = hypotenuse²
- sin θ = opposite / hypotenuse
- cos θ = adjacent / hypotenuse
- tan θ = opposite / adjacent
Worked examples
Example: legs 3 and 4
The hypotenuse is 5. For the angle opposite the side of length 3, sin θ = 3/5, cos θ = 4/5, and tan θ = 3/4. That angle is about 36.87 degrees. These side lengths are an example, not a required triangle.
Example: a 30 degree angle and hypotenuse 2
The opposite side is 1 and the adjacent side is the square root of 3. The side lengths from an angle are rounded decimals, because sine and cosine of an arbitrary angle are not always fractions.
FAQ
Which side is opposite?
The opposite side is the leg across from the acute angle you are describing. The adjacent side is the other leg. The hypotenuse is opposite the right angle and is the longest side.
Are sine, cosine, and tangent exact?
They are exact fractions when the sides that make the ratio are exact rational numbers, as with 3-4-5. When a side is a square root that does not simplify, the page says so. A degree measure is a rounded decimal.
Can I use degrees and radians?
Yes. Choose the unit before you read the angle. A right triangle’s acute angles are greater than 0 and less than 90 degrees, or greater than 0 and less than π/2 radians.
What if the hypotenuse is shorter than a leg?
That cannot be a right triangle. The calculator rejects it, and it rejects a side that is zero or negative.