About this calculator
Trigonometry links angles and lengths. In a right triangle, “SOH CAH TOA” gives sin = opposite ÷ hypotenuse, cos = adjacent ÷ hypotenuse and tan = opposite ÷ adjacent. On the unit circle the same functions are defined for any angle. This calculator gives all six functions of an angle, the angle for a given sine, cosine or tangent (with every solution from 0° to 360°), and solves a right triangle from two known values — useful for slopes, roof pitches, ramps, taper angles and setting-out.
Formula
Functions of an angle
sin θ = y, cos θ = x on the unit circle tan θ = sin θ ÷ cos θ
csc θ = 1/sin θ sec θ = 1/cos θ cot θ = 1/tan θ sin² θ + cos² θ = 1
Inverse (angle from value)
θ = arcsin v (−90° … 90°) θ = arccos v (0° … 180°) θ = arctan v (−90° … 90°)
Other solutions: sin θ = sin(180° − θ); cos θ = cos(360° − θ); tan θ = tan(θ + 180°).
Right-triangle solver
c² = a² + b² sin A = a/c cos A = b/c tan A = a/b A + B = 90°
Angle C is the right angle; leg a is opposite angle A and leg b is next to it. A leg from the hypotenuse is computed as √((c − a)(c + a)) to avoid rounding loss.
Worked example
- θ = 30°: sin = 0.5, cos = 0.866025403784, tan = 0.57735026919
- sin θ = 0.5 → θ = 30°; all solutions 30° and 150°
- Legs a = 3 and b = 4: c = √(9 + 16) = 5, A = arctan(3/4) = 36.8699°, B = 53.1301°, area 6, perimeter 12
Assumptions and limitations
- Angles can be entered and shown in degrees, radians, gradians or turns (the unit menus).
- At exact multiples of 90° the calculator returns exact values (sin 180° = 0, cos 90° = 0) and reports tan, sec, csc or cot as undefined where they are.
- The triangle solver is for right triangles only (C = 90°). Lengths are in any one unit; the area is in that unit squared.
References
- Abramowitz, M. & Stegun, I. A. Handbook of Mathematical Functions, 4.3 (circular functions).
- Kreyszig, E. Advanced Engineering Mathematics — trigonometric identities.
