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.