Trigonometry Calculator: Complete Guide to Sin, Cos, Tan, the Unit Circle, Identities, and Real-World Applications
Trigonometry is the branch of mathematics that studies relationships between the sides and angles of triangles. The six trigonometric functions — sine, cosine, tangent, cosecant, secant, and cotangent — are among the most important functions in all of mathematics, with applications spanning physics, engineering, computer graphics, music, architecture, astronomy, and navigation. This calculator computes all six functions for any angle, displays an interactive unit circle visualization, verifies the Pythagorean identity, and provides a comprehensive reference table.
SOHCAHTOA: The Foundation
In a right triangle, the three primary trig functions relate an acute angle to the ratios of two sides: SOH — Sine = Opposite / Hypotenuse, CAH — Cosine = Adjacent / Hypotenuse, TOA — Tangent = Opposite / Adjacent. For a 30-60-90 triangle with hypotenuse 2: the side opposite 30° is 1 and adjacent is √3, giving sin(30°) = 1/2, cos(30°) = √3/2, tan(30°) = 1/√3. These ratios remain constant regardless of triangle size, which is what makes trigonometry so powerful.
sin(θ) = Opposite / Hypotenuse
cos(θ) = Adjacent / Hypotenuse
tan(θ) = Opposite / Adjacent
Reciprocals:
csc(θ) = 1/sin(θ) = H/O
sec(θ) = 1/cos(θ) = H/A
cot(θ) = 1/tan(θ) = A/O
Pythagorean Identity:
sin²(θ) + cos²(θ) = 1
The Unit Circle
The unit circle extends trigonometry beyond right triangles to all angles. It is a circle of radius 1 centered at the origin. For any angle θ measured counterclockwise from the positive x-axis, the point where the terminal ray intersects the circle has coordinates (cosθ, sinθ). This means cosθ is the horizontal projection and sinθ is the vertical projection of the radius. The tangent is the slope of the radius line: tanθ = sinθ/cosθ. Our interactive canvas displays the unit circle with color-coded projections: blue for cosine (horizontal), red for sine (vertical), green for tangent.
Key Angle Values
Every math student should memorize these special values: 0°: sin=0, cos=1, tan=0. 30°: sin=1/2, cos=√3/2, tan=√3/3. 45°: sin=√2/2, cos=√2/2, tan=1. 60°: sin=√3/2, cos=1/2, tan=√3. 90°: sin=1, cos=0, tan=undefined (∞). Quadrant signs follow the pattern "All Students Take Calculus": All positive in Q1, only Sin in Q2, only Tan in Q3, only Cos in Q4. Understanding these patterns makes it possible to evaluate trig functions mentally for any standard angle.
Trigonometric Identities
The fundamental identity is sin²θ + cos²θ = 1, derived directly from the Pythagorean theorem on the unit circle. From this follow: 1 + tan²θ = sec²θ and 1 + cot²θ = csc²θ. Double angle: sin(2θ) = 2sinθcosθ, cos(2θ) = cos²θ − sin²θ. Sum formulas: sin(A+B) = sinAcosB + cosAsinB, cos(A+B) = cosAcosB − sinAsinB. Half angle: sin(θ/2) = ±√((1−cosθ)/2). Euler’s formula: e^(iθ) = cosθ + i·sinθ, connecting trigonometry to complex numbers and forming the basis of signal processing.
Applications in Physics and Engineering
Trigonometry is indispensable in physics: projectile motion uses sinθ and cosθ to decompose velocity into components. Simple harmonic motion (pendulums, springs) is described by x = A·sin(ωt + φ). Electromagnetic waves are sinusoidal: E = E₀sin(ωt − kx). AC electricity: voltage V = V₀sin(2πft). In structural engineering, force resolution on angled beams uses sin and cos. GPS navigation uses spherical trigonometry. Fourier analysis decomposes any periodic signal into sums of sine and cosine waves, enabling audio compression (MP3), image compression (JPEG), and signal processing.
Trigonometry in Computer Graphics
Every 2D and 3D graphics application relies on trigonometry. Rotation matrices use sin and cos: a point (x,y) rotated by θ becomes (x·cosθ − y·sinθ, x·sinθ + y·cosθ). Game physics engines compute trajectories, reflections, and lighting angles using trig functions continuously. 3D rendering: vertex shading, normal mapping, and camera projections all depend on trigonometric calculations. Audio synthesis generates waveforms using sin() functions. CSS and SVG transforms use rotation angles internally converted to sin/cos. Understanding trigonometry is a prerequisite for any career in graphics programming, game development, or visual effects.
Inverse Trigonometric Functions
Inverse functions find angles from ratios: arcsin (sin⁻¹), arccos (cos⁻¹), arctan (tan⁻¹). If sinθ = 0.5, then θ = arcsin(0.5) = 30°. Ranges: arcsin and arctan return [−90°, 90°], arccos returns [0°, 180°]. The two-argument function atan2(y, x) returns the correct angle in all four quadrants, making it essential in programming. In JavaScript: Math.atan2(y, x) returns radians from −π to π. These inverse functions are crucial for converting between Cartesian and polar coordinates.
Trigonometry in Music and Sound
Sound itself is fundamentally trigonometric. Pure musical tones are sine waves at specific frequencies: middle C is a sine wave at 261.63 Hz. Complex sounds (instruments, voices) are combinations of sine waves at different frequencies and amplitudes, described by Fourier series. Digital audio relies on sampling sine waves: CD quality samples 44,100 times per second. Audio equalizers, reverb effects, and noise cancellation all use trigonometric transformations. The Fast Fourier Transform (FFT), which converts time-domain signals to frequency-domain, is one of the most important algorithms in computing and is built entirely on sin and cos. Music theory itself uses the circle of fifths, a geometric arrangement of pitch classes related to trigonometric intervals.
Spherical Trigonometry and Navigation
On the surface of a sphere (like Earth), flat-plane trigonometry no longer applies. Spherical trigonometry uses modified formulas: the spherical law of cosines, cos(c) = cos(a)cos(b) + sin(a)sin(b)cos(C), relates sides and angles of spherical triangles. Great-circle distance between two GPS coordinates uses the Haversine formula, which combines sin² and cos functions to compute the shortest path on Earth’s surface. Aircraft navigation, satellite orbits, and astronomical coordinate systems all rely on spherical trig. Celestial navigation, used for millennia before GPS, computed position from star altitudes using trigonometric reductions — a practice still taught as backup navigation for ocean-going vessels.
How to Use This Calculator
Select degrees or radians, enter your angle, and click calculate. The unit circle canvas shows the angle with blue cosine projection, red sine projection, green tangent line, and a complete legend of all six function values. Three live output fields show sin, cos, tan as you type. The function cards display all six values with 8-decimal precision. The step-by-step section shows each computation and verifies sin²+cos²=1. The reference table lists all standard angles from 0° to 360° with your input highlighted.