Skip to content
Other

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.

Your details

Choose whether angles are entered and displayed in degrees or radians.
The shorter leg (side opposite angle alpha). Leave blank if unknown.
The longer leg (side opposite angle beta). Leave blank if unknown.
The side opposite the right angle. Leave blank if unknown.
The acute angle opposite leg a. Leave blank if unknown.
deg
The acute angle opposite leg b. Leave blank if unknown.
deg
Half the product of the two legs. Leave blank if unknown.
sq units
Leg aValid right triangle
3

Side opposite angle alpha

Leg b4
Hypotenuse c5
Angle alpha36.869898
Angle beta53.130102
Altitude h2.4
Area6
Perimeter12
sin(alpha)0.6
cos(alpha)0.8
tan(alpha)0.75
Angle displaydeg

Triangle solved: area 6.0000 sq units, perimeter 12.0000 units.

  • The hypotenuse is 5.0000, and the two legs are 3.0000 and 4.0000.
  • The acute angles are 36.8699 deg (alpha) and 53.1301 deg (beta), which always sum to 90 deg.
  • The altitude from the right angle to the hypotenuse is 2.4000, which also equals the area times 2 divided by the hypotenuse.

Next stepUse the sin/cos/tan values below to set up any trigonometric ratio needed for your problem. For 3D or oblique triangles, apply the law of sines or law of cosines to the extended case.

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

TypeAngle setSide ratio (a : b : c)sin / cos / tan of smaller angle
45-45-9045 deg, 45 deg, 90 deg1 : 1 : sqrt(2)sin 45 = cos 45 = sqrt(2)/2 = 0.7071; tan 45 = 1
30-60-9030 deg, 60 deg, 90 deg1 : sqrt(3) : 2sin 30 = cos 60 = 0.5; tan 30 = 1/sqrt(3) = 0.5774
3-4-5 Pythagorean tripleapprox 36.87 deg, 53.13 deg, 90 deg3 : 4 : 5sin 36.87 approx 0.6; tan 36.87 = 0.75
5-12-13 Pythagorean tripleapprox 22.62 deg, 67.38 deg, 90 deg5 : 12 : 13sin 22.62 approx 0.3846; tan 22.62 approx 0.4167
8-15-17 Pythagorean tripleapprox 28.07 deg, 61.93 deg, 90 deg8 : 15 : 17sin 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.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…