Theta Calculator

Enter any two sides of a right triangle to find the unknown angle theta (θ) using arctan, arcsin, or arccos, plus the missing side and complementary angle.

Quick Facts

SOH-CAH-TOA
sin θ = opp/hyp, cos θ = adj/hyp, tan θ = opp/adj
Pick the identity that matches the two sides you know.
Most common case
θ = arctan(opposite / adjacent)
Used whenever both legs of the right triangle are known.
Radians ↔ degrees
radians = degrees × π/180
π radians = 180°, so π/4 rad = 45°.

Your Results

Calculated
Theta (degrees)
-
The unknown angle θ
Theta (radians)
-
θ × π/180
Missing side
-
Solved via Pythagorean theorem
Complementary angle
-
90° − θ

Ready

Enter any two side lengths (leave the third blank), then press Calculate.

Formula and Method for Finding Angle Theta (θ)

Theta (θ) is the standard symbol for an unknown angle, most often the angle you are solving for in a right triangle. In a right triangle, the side opposite θ, the side adjacent to θ, and the hypotenuse (the side opposite the 90° angle) are related by the three basic trigonometric ratios: sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse, and tan θ = opposite/adjacent. This calculator takes whichever two side lengths you know and applies the matching inverse trig function to solve for θ, then fills in the third side and the complementary angle.

Formula and method

The calculator checks which two of the three sides you entered and picks the appropriate identity: if you know the opposite and adjacent sides, θ = arctan(opposite / adjacent); if you know the opposite side and hypotenuse, θ = arcsin(opposite / hypotenuse); if you know the adjacent side and hypotenuse, θ = arccos(adjacent / hypotenuse). The result is computed in radians first (the native unit for JavaScript's Math.atan, Math.asin, and Math.acos) and then converted to degrees by multiplying by 180/π. The missing side is recovered from the Pythagorean theorem, a² + b² = c², and the complementary angle is simply 90° − θ, since the two acute angles of a right triangle always sum to 90°.

Common sources of error

  • Mixing up opposite and adjacent: which leg is "opposite" and which is "adjacent" depends on which angle you are calling θ — swapping them gives the complementary angle instead.
  • Hypotenuse shorter than a leg: the hypotenuse must be the longest side of a right triangle; if opposite/hypotenuse or adjacent/hypotenuse exceeds 1, arcsin or arccos has no real solution.
  • Degrees vs. radians: most calculators and spreadsheets default to radians for trig functions — double-check which unit you need before using θ in another formula.

Checking your result

Two quick sanity checks: first, θ plus the complementary angle should always equal exactly 90°. Second, once you have θ and any one side, you can recompute the other two sides with sin, cos, and tan and confirm they match your original inputs (allowing for rounding). If the missing side computed here does not satisfy a² + b² = c² with your original two sides, recheck which fields you filled in.

Applications

Finding theta from two known sides is a core step in roof pitch and stair rise/run calculations, in resolving force or velocity vectors into components in physics, in surveying and navigation bearings, and in CAD/CNC work where a cut or slope angle must be derived from measured lengths rather than read directly off a protractor.

Frequently Asked Questions

What is theta (θ) in trigonometry?
Theta (θ) is the symbol conventionally used for an unknown angle, especially the angle you are solving for in a right triangle. Once you know any two of the triangle's three sides (opposite, adjacent, hypotenuse), you can find θ using an inverse trigonometric function.
How do I find theta if I know two sides of a right triangle?
Use the pair of sides you know: θ = arctan(opposite / adjacent) when you know both legs, θ = arcsin(opposite / hypotenuse) when you know the opposite side and hypotenuse, or θ = arccos(adjacent / hypotenuse) when you know the adjacent side and hypotenuse.
How do I convert theta between radians and degrees?
Multiply radians by 180/π to get degrees, or multiply degrees by π/180 to get radians. For example, π/4 radians equals 45°, and 60° equals π/3 radians (about 1.0472 radians).
Why must the hypotenuse be the longest side when calculating theta?
In any right triangle the hypotenuse is opposite the 90° angle and is always the longest side. Because arcsin and arccos only accept ratios between -1 and 1, entering an opposite or adjacent side longer than the hypotenuse produces an invalid, undefined result.