Formula and Method for the Unit Circle
The unit circle is a circle of radius 1 centered at the origin (0, 0) of the coordinate plane, satisfying the equation x² + y² = 1. Every angle θ, measured counterclockwise from the positive x-axis, points to a unique location on that circle: the coordinates of that point are exactly (cos θ, sin θ). This calculator takes an angle in degrees or radians and returns its coordinates, sine, cosine, tangent, quadrant, and reference angle.
How the calculation works
If the angle is given in degrees, it is first converted to radians using rad = deg × (π/180), since JavaScript's trigonometric functions (and most math libraries) expect radians. The calculator then evaluates x = cos θ and y = sin θ directly, and computes tan θ = sin θ / cos θ — except at 90° and 270° (and their coterminal equivalents), where cos θ = 0 and the tangent is undefined. The angle is also normalized into the 0°–360° range to determine its quadrant (I, II, III, or IV) and its reference angle — the acute angle formed with the x-axis, which shares the same sine/cosine magnitude as θ but with signs set by the quadrant (the "All Students Take Calculus" rule: all three functions positive in quadrant I, only sine in II, only tangent in III, only cosine in IV).
Common mistakes
- Mixing degrees and radians: entering 45 while the tool expects radians (or vice versa) gives a completely different point — always match the input to the selected unit.
- Forgetting sign changes by quadrant: cos θ and sin θ are not always positive — for example, at 150° (quadrant II), cos θ is negative while sin θ is still positive.
- Assuming tangent is always defined: at 90° and 270°, the terminal side is vertical (cos θ = 0), so tan θ is undefined rather than some large number.
Real-world applications
- Trigonometry and precalculus coursework uses the unit circle to define sine, cosine, and tangent for all real-number angles, not just acute angles in a right triangle.
- Physics uses unit-circle coordinates to decompose oscillations, waves, and circular motion into horizontal and vertical components.
- Engineering and signal processing rely on sine/cosine values from the unit circle for phase angles, AC waveforms, and rotational systems.
- Computer graphics and game development use unit-circle trigonometry to rotate points, compute directions, and animate circular motion.