Right Triangle Trigonometry Calculator
Enter any two known values of a right triangle and this calculator solves for everything else: all three sides, both acute angles, the altitude to the hypotenuse, the area, and the perimeter. You can mix sides, angles, or area freely. The "show your work" panel displays every trigonometric step with your actual numbers, so you can follow or check each formula.
What this calculator solves
A right triangle has one 90-degree angle, two acute angles (alpha and beta), two legs (a and b) and a hypotenuse (c). Any two independent measurements are enough to determine the whole triangle. Enter two values in the fields above, the tool solves for the remaining sides, angles, altitude, area, and perimeter automatically. You can mix sides and angles freely. If you know the area and one side, the calculator derives the other leg from Area = (1/2) x a x b and then proceeds as normal.
Trigonometric ratios of a right triangle
For angle alpha (opposite leg a, adjacent leg b, hypotenuse c): sin(alpha) = a / c (opposite over hypotenuse) cos(alpha) = b / c (adjacent over hypotenuse) tan(alpha) = a / b (opposite over adjacent) csc(alpha) = c / a (hypotenuse over opposite) sec(alpha) = c / b (hypotenuse over adjacent) cot(alpha) = b / a (adjacent over opposite) The complementary angle beta satisfies: sin(beta) = cos(alpha), cos(beta) = sin(alpha), tan(beta) = cot(alpha). The two acute angles always sum to exactly 90 degrees (or pi/2 radians). This calculator displays sin, cos, and tan for alpha; the reciprocal ratios and beta values follow directly.
Pythagorean theorem and the altitude to the hypotenuse
The Pythagorean theorem states a^2 + b^2 = c^2 for any right triangle. When you know two sides the third is immediate. When you know the altitude h from the right-angle vertex to the hypotenuse, it is related to the sides by h = (a x b) / c, and also by the geometric mean: h^2 = p x q, where p and q are the two segments the altitude cuts from the hypotenuse (p + q = c). The calculator outputs h directly alongside the other results, because it is frequently needed in geometry proofs and construction problems.
Special right triangles and Pythagorean triples
The 45-45-90 triangle (isosceles right triangle) has legs of equal length and a hypotenuse equal to the leg times sqrt(2). The 30-60-90 triangle has a 1:sqrt(3):2 side ratio, so the shorter leg is always exactly half the hypotenuse. These two appear in standardized tests so often that recognizing them saves significant time. Pythagorean triples are integer side sets satisfying a^2 + b^2 = c^2. The smallest is 3-4-5 (verified: 9 + 16 = 25). Multiples work too: 6-8-10, 9-12-15, and so on. Other primitive triples include 5-12-13, 8-15-17, 7-24-25, and 20-21-29. The reference table above lists the most common ones with their exact trig ratios.
Special right triangles
| Type | Angle set | Side ratio (a : b : c) | sin / cos / tan of smaller angle |
|---|---|---|---|
| 45-45-90 | 45 deg, 45 deg, 90 deg | 1 : 1 : sqrt(2) | sin 45 = cos 45 = sqrt(2)/2 = 0.7071; tan 45 = 1 |
| 30-60-90 | 30 deg, 60 deg, 90 deg | 1 : sqrt(3) : 2 | sin 30 = cos 60 = 0.5; tan 30 = 1/sqrt(3) = 0.5774 |
| 3-4-5 Pythagorean triple | approx 36.87 deg, 53.13 deg, 90 deg | 3 : 4 : 5 | sin 36.87 approx 0.6; tan 36.87 = 0.75 |
| 5-12-13 Pythagorean triple | approx 22.62 deg, 67.38 deg, 90 deg | 5 : 12 : 13 | sin 22.62 approx 0.3846; tan 22.62 approx 0.4167 |
| 8-15-17 Pythagorean triple | approx 28.07 deg, 61.93 deg, 90 deg | 8 : 15 : 17 | sin 28.07 approx 0.4706; tan 28.07 approx 0.5333 |
These two triangle families appear constantly in geometry and trigonometry. Recognizing them lets you skip a calculator step.
Frequently asked questions
How many values do I need to enter?
Exactly two independent values. Any combination of sides, acute angles, and area works, as long as they are not redundant. For example, entering both acute angles alone gives only shape, not size, so you need at least one side or the area to get actual lengths.
What is the altitude to the hypotenuse?
It is the perpendicular segment from the right-angle vertex (the 90-degree corner) to the hypotenuse. Its length is h = (a x b) / c, where a and b are the legs and c is the hypotenuse. It also equals twice the area divided by c. In a 3-4-5 triangle the altitude is (3 x 4) / 5 = 12/5 = 2.4.
Can I enter angles in radians?
Yes. Switch the "Angle unit" selector to Radians. All angle outputs will then appear in radians as well. One full right angle is pi/2 radians (approximately 1.5708). The two acute angles always sum to pi/2 radians when working in radian mode.
What is a Pythagorean triple?
A set of three positive integers (a, b, c) satisfying a^2 + b^2 = c^2. The most famous is 3-4-5 (9+16=25). Any multiple of a triple is also a triple, so 6-8-10, 9-12-15, and 5-12-13 all qualify. Triples are popular in problems because they avoid irrational numbers.
How do I find a side when I know one side and one angle?
Use the appropriate trig ratio. If you know the hypotenuse c and angle alpha, then the opposite leg a = c x sin(alpha) and the adjacent leg b = c x cos(alpha). If you know leg a and angle alpha, the hypotenuse c = a / sin(alpha) and leg b = a / tan(alpha). Enter those two known values here and the calculator fills in the rest.
What is the difference between the two acute angles?
Angle alpha is opposite leg a, and angle beta is opposite leg b. They always add up to 90 degrees. Swapping alpha and beta just relabels which leg is "opposite" and which is "adjacent," so sin(alpha) = cos(beta) and tan(alpha) = cot(beta). The larger angle is always opposite the longer leg.