Trig Triangle Calculator - Solve Any Right Triangle

Use this trig triangle calculator to find the missing sides, acute angles, and area of a right triangle from any side-containing pair of inputs using sin, cos, tan, and the Pythagorean theorem.

Updated: June 19, 2026 • Free Tool

Trig Triangle Calculator

Length of leg a, the side opposite the acute angle alpha. Enter 0 if unknown.

Length of leg b, the side opposite the acute angle beta. Enter 0 if unknown.

Length of the hypotenuse c, the longest side opposite the right angle. Enter 0 if unknown.

Acute angle alpha at the corner between leg b and the hypotenuse. Must be in [0, 90] degrees. Enter 0 if unknown.

Acute angle beta at the corner between leg a and the hypotenuse. Must be in [0, 90] degrees. Enter 0 if unknown.

Triangle area in square units. Enter 0 if unknown. Used with one leg to recover the full triangle.

Results

Leg a
0
Leg b 0
Hypotenuse c 0
Angle alpha 0degrees
Angle beta 0degrees
Area 0

What Is Trig Triangle Calculator?

A trig triangle calculator is a single tool that solves any right triangle from two values you already know, when the pair includes a side. Type two legs, a leg with the hypotenuse, a side with an acute angle, or the area with one leg, and the panel returns the rest at once using sin, cos, tan, and the Pythagorean theorem.

  • Find a missing side: Type the two legs you have and read the hypotenuse, or type the hypotenuse plus a leg to read the other leg.
  • Find an acute angle: Type two sides to get both acute angles in degrees, or one side with an acute angle for the complementary angle and remaining sides.
  • Recover a triangle from area and one side: If you know the area plus one leg, the tool recovers the missing leg, the hypotenuse, and both angles using area = a*b/2 plus the Pythagorean theorem.
  • Check a textbook answer: Compare your homework against a 3-4-5, 5-12-13, 30-60-90, or 45-45-90 triangle.

A right triangle has two legs (a and b) at the right angle, a hypotenuse (c) opposite it, and two acute angles (alpha and beta). The right angle fixes one corner and the triangle has five remaining quantities, so a side-containing pair is enough for the Pythagorean theorem and SOH-CAH-TOA to pin down the rest.

When the problem already gives the full right triangle and the user wants one missing value, Right Triangle Calculator handles the same leg-hypotenuse-angle workflow with a tighter form.

How Trig Triangle Calculator Works

The calculator reads all six inputs, treats any zero value as unknown, and then picks the formula branch matching whichever side-containing pair you supplied. After the branch runs, it derives the remaining angle from beta = 90 - alpha and the area from a*b/2.

Given pair -> branch: (a,b) c=sqrt(a^2+b^2); (a,c) b=sqrt(c^2-a^2); (b,c) a=sqrt(c^2-b^2); (a,alpha) b=a/tan(alpha), c=a/sin(alpha); (a,beta) b=a*tan(beta), c=a/cos(beta); (b,alpha) a=b*tan(alpha), c=b/cos(alpha); (b,beta) a=b/tan(beta), c=b/sin(beta); (c,alpha) a=c*sin(alpha), b=c*cos(alpha); (c,beta) a=c*cos(beta), b=c*sin(beta); (area,a) b=2*area/a; (area,b) a=2*area/b. Then beta = 90 - alpha and area = a*b/2.
  • sideA: Length of leg a, opposite angle alpha. Enter 0 if unknown.
  • sideB: Length of leg b, opposite angle beta. Enter 0 if unknown.
  • sideC: Length of hypotenuse c, the longest side. Enter 0 if unknown.
  • angleAlpha: Acute angle alpha in degrees, between leg b and the hypotenuse.
  • angleBeta: Acute angle beta in degrees, between leg a and the hypotenuse.
  • area: Triangle area in square units. Enter 0 unless you know it with exactly one leg.

Branch detection runs in source order, so a side-and-angle pair never triggers the two-side branch. Pairs with no side, such as two angles or area with an angle, return a clear error because two angles alone never set the size of a real triangle.

After any branch, the panel re-derives the missing angle using beta = 90 - alpha to prevent round-trip errors. The side-and-side branches rely on the Pythagorean theorem: in any right triangle a^2 + b^2 = c^2, so c = sqrt(a^2 + b^2) and a = sqrt(c^2 - b^2) when the other leg is known (Wikipedia: Pythagorean theorem).

Worked example: classic 3-4-5 right triangle from two legs

sideA = 3, sideB = 4, sideC = 0, angleAlpha = 0, angleBeta = 0, area = 0

Apply the two-leg branch: c = sqrt(3^2 + 4^2) = sqrt(25) = 5. Then alpha = atan(3/4) in degrees, beta = 90 - alpha, and area = 3*4/2 = 6.

sideA = 3, sideB = 4, sideC = 5, alpha = 36.87 deg, beta = 53.13 deg, area = 6.

The result is the classic 3-4-5 Pythagorean triple, with alpha and beta in degrees so the user can read them straight off the panel.

Worked example: 30-60-90 reference from a side and an angle

sideA = 6, sideB = 0, sideC = 0, angleAlpha = 30, angleBeta = 0, area = 0

Apply the side-and-alpha branch with a = 6 and alpha = 30 deg: b = 6 / tan(30 deg) = 10.3923, c = 6 / sin(30 deg) = 12, beta = 90 - 30 = 60 deg, area = 6 * 10.3923 / 2 = 31.1769.

sideA = 6, sideB = 10.3923, sideC = 12, alpha = 30 deg, beta = 60 deg, area = 31.1769.

This recovers a 30-60-90 triangle in the 1 : sqrt(3) : 2 ratio scaled by 6, which is the standard reference case used in textbooks and tests.

If the next step is to evaluate the six trig functions of one of the resulting angles, Trigonometry Calculator returns sin, cos, tan, csc, sec, and cot together with the unit-circle quadrant and reference angle.

Key Concepts Explained

Four ideas make the result panel read correctly for any pair of known values.

Legs, hypotenuse, and the right angle

Legs a and b are the two sides that meet at the 90-degree corner. The hypotenuse c is the side opposite the right angle and is always the longest side. The two acute angles alpha and beta live at the other two corners.

SOH-CAH-TOA ratios

For the acute angle alpha, sin(alpha) = a/c, cos(alpha) = b/c, and tan(alpha) = a/b. These three ratios are what carry the angle information through to the side lengths in the angle-plus-side branches.

Pythagorean theorem

In any right triangle, a^2 + b^2 = c^2. This is the equation that recovers the missing leg from the other leg and the hypotenuse, and it is the final step of every side-plus-side branch.

Angles sum to 90

Because the three interior angles of any triangle sum to 180 degrees and one of them is 90, the two acute angles alpha and beta must sum to 90. That is why the panel re-derives one from the other after every branch.

Reciprocal trig functions are not needed here because every quantity in the panel comes from the three primary ratios plus the Pythagorean theorem, and the area only needs a*b/2.

When the workflow needs the three primary ratios sin, cos, and tan of one of the angles in the triangle, Sin Cosine Tangent Calculator returns them side by side in one panel.

How to Use This Calculator

Six short steps give a complete right triangle from the two values you already have.

  1. 1 Pick the two known quantities: Look at the sides, the two acute angles, and the area you know. You need a side-containing pair (two sides, a side with an acute angle, or area with one leg) to solve the triangle.
  2. 2 Type the known values: Enter the two known numbers in their matching fields. Leave every other field at 0 so the tool knows those are unknown.
  3. 3 Match the unit of the inputs: Use the same length unit for all three sides. Angles must be in degrees; area in matching square units.
  4. 4 Watch for a clear error if the input is impossible: A hypotenuse shorter than a leg, or an angle reaching 90 degrees, returns an explicit error explaining what to change.
  5. 5 Read all five unknowns at once: The result panel shows leg a, leg b, hypotenuse c, alpha, beta, and area, each rounded to fixed decimal places.
  6. 6 Switch one input to a different branch: Change the known pair from two sides to a side and an angle and the tool picks a different branch automatically.

Type sideA = 5 and sideB = 12, leave the rest at 0. The panel shows sideC = 13, alpha = 22.62 deg, beta = 67.38 deg, area = 30, the classic 5-12-13 right triangle.

If the task is the inverse and the user already has all three sides and just wants the area, Triangle Area Calculator returns the same a*b/2 result for a right triangle and the Heron form for any triangle.

Benefits of Using This Calculator

Combining all four input families into one form removes the need to switch tools when the known pair changes. The trig triangle calculator fits textbook, exam, and quick use.

  • Side-containing pairs solve the triangle: Type two sides, a side with an acute angle, or the area with one leg, and the panel returns the rest at once.
  • Pythagorean theorem built in: Side-and-side and area-plus-leg branches apply the Pythagorean theorem internally.
  • SOH-CAH-TOA in one place: Side-plus-angle branches use sin, cos, and tan directly.
  • Internal-consistency check: After any branch the panel re-derives beta = 90 - alpha and area = a*b/2.
  • Friendly error messages: Impossible inputs return a specific message that tells the user which input to fix.

The result panel keeps all five unknowns visible at once, so a quick scan tells the user whether the answer matches a textbook ratio such as 1 : sqrt(3) : 2 or 1 : 1 : sqrt(2).

When the answer is supposed to match a 30-60-90 or 45-45-90 ratio, Special Right Triangles Calculator returns the exact side and angle values of those two reference triangles without recomputing them from scratch.

Factors That Affect Your Results

Four factors determine the result and two mark the edge of validity. Knowing them keeps this trig triangle calculator accurate on every branch.

Which two values are known

The known pair selects the formula branch. Two sides use the Pythagorean theorem; one side plus one angle uses SOH-CAH-TOA; area plus one leg uses a*b/2 followed by the Pythagorean theorem.

Unit consistency on the sides

Mixing units on a, b, and c (cm with m, for example) silently distorts the result. Pick a single length unit for all three sides before reading the hypotenuse or the area.

Hypotenuse must be the longest side

If c is shorter than a or b, no real right triangle exists and the panel returns a specific error rather than a complex or negative value.

Angle limits at 0 and 90 degrees

An acute angle of 0 collapses the triangle to a line and an angle of 90 would mean no triangle at all. Both branches reject these inputs with an explicit error.

  • The calculator handles right triangles only. Oblique triangles need the law of sines and law of cosines instead of SOH-CAH-TOA.
  • All arithmetic uses double-precision floating point, so inputs above about 1e6 lose precision in the final decimal places.

The Pythagorean theorem and SOH-CAH-TOA are stable pure-math identities, so the result does not depend on a current rate or external standard. The side-and-angle branches use the right-triangle definition of sin, cos, and tan as opposite over hypotenuse, adjacent over hypotenuse, and opposite over adjacent (Wikipedia: Trigonometric functions).

If the triangle turns out to be a 30-60-90 reference case, 30-60-90 Triangle Calculator confirms the side ratio 1 : sqrt(3) : 2 and the angle values 30, 60, and 90 directly.

Trig triangle calculator with side a, side b, side c, angle alpha, angle beta, and area inputs and a result panel showing computed sides, angles, and area.
Trig triangle calculator with side a, side b, side c, angle alpha, angle beta, and area inputs and a result panel showing computed sides, angles, and area.

Frequently Asked Questions

Q: What is a trig triangle calculator?

A: A trig triangle calculator solves any right triangle from two values you know, when the pair includes a side. Type two legs, a leg with the hypotenuse, a side with an acute angle, or the area with one leg, and the result panel returns the rest using the Pythagorean theorem and the SOH-CAH-TOA ratios sin, cos, and tan.

Q: How do you find the missing side of a right triangle using trigonometry?

A: Pick the branch that matches your known pair. From two legs, c = sqrt(a^2 + b^2). From one leg and the hypotenuse, the other leg = sqrt(c^2 - known_leg^2). From one leg and one acute angle, use sin, cos, or tan to recover the missing sides.

Q: What formulas relate the sides and angles of a right triangle?

A: For the acute angle alpha, sin(alpha) = a/c, cos(alpha) = b/c, and tan(alpha) = a/b. The Pythagorean theorem gives a^2 + b^2 = c^2. The two acute angles satisfy alpha + beta = 90 degrees, and the area equals a*b/2.

Q: How do you find the angles of a right triangle when you know two sides?

A: If you know legs a and b, alpha = atan(a/b) and beta = atan(b/a), both in degrees. If you know a leg and the hypotenuse, alpha = asin(a/c) or acos(b/c) and beta is 90 - alpha.

Q: Can you find a right triangle when you only know the area and one side?

A: Yes. If you know area A and leg a, then leg b = 2A/a, hypotenuse c = sqrt(a^2 + b^2), and the angles follow from the two-leg branch. The same works if you know A and leg b instead.

Q: What is the difference between a leg and the hypotenuse?

A: A leg is one of the two sides that meet at the right angle, and they are called a and b. The hypotenuse is the side opposite the right angle and is always the longest side. In the formulas, c refers to the hypotenuse and a or b to a leg.