The unit circle is the single most important diagram in trigonometry. It is a circle of radius 1 centred at the origin. For any angle θ, the terminal point on the circle has x-coordinate cos θ and y-coordinate sin θ — everything else in trigonometry follows from that one fact. This calculator makes the relationship interactive: type any angle and every trig value, related angle, quadrant, and diagram updates in real time, entirely in your browser.
How it works
Place a point at angle θ measured counter-clockwise from the positive x-axis. Drop a vertical line from that point to the x-axis (length = |sin θ|) and draw the horizontal leg from the origin to the foot of that line (length = |cos θ|). You have a right triangle with hypotenuse 1 (the radius). The Pythagorean theorem immediately gives:
sin²θ + cos²θ = 1
The other four functions are reciprocals or ratios of sin and cos:
| Function | Definition | Undefined when |
|---|---|---|
| tan θ | sin θ / cos θ | cos θ = 0 (90°, 270°) |
| csc θ | 1 / sin θ | sin θ = 0 (0°, 180°, 360°) |
| sec θ | 1 / cos θ | cos θ = 0 (90°, 270°) |
| cot θ | cos θ / sin θ | sin θ = 0 (0°, 180°, 360°) |
The calculator normalises every input to [0°, 360°) — so 450° and 90° give identical results. To find an angle from a known ratio, switch to “Enter sin value” or “Enter cos value” mode; the calculator runs the inverse function (arcsin or arccos) and returns the principal value in [0°, 360°).
Worked example
Problem: A ramp rises at 35° to the horizontal. What fraction of the ramp length is the vertical rise?
Using the unit circle, the vertical component of a unit-length ramp at 35° is sin 35°.
- Enter 35 in degrees mode.
- Read: sin 35° ≈ 0.573576 — so the vertical rise is about 57.4% of the ramp length.
- The horizontal run is cos 35° ≈ 0.819152 — about 81.9% of the ramp length.
- Sanity check: 0.573576² + 0.819152² ≈ 1 (Pythagorean identity confirms the calculation).
Notable exact values (the ones worth memorising):
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 1/2 | √3/2 | 1/√3 |
| 45° | √2/2 | √2/2 | 1 |
| 60° | √3/2 | 1/2 | √3 |
| 90° | 1 | 0 | undef |
Click any row in the notable-angles table inside the calculator to load it instantly.
Formula note
All six functions are defined from first principles at every angle the calculator accepts:
- sin θ and cos θ are read directly from the (x, y) coordinates on the unit circle.
- tan θ = sin θ / cos θ — geometrically, the length of the tangent segment from the point (1, 0) to where the extended radius meets the vertical tangent line at x = 1.
- csc, sec, cot are their respective reciprocals.
- Angles outside [0°, 360°) are reduced modulo 360° (modulo 2π for radians), exploiting the periodicity of all six functions.
- Inverse modes use JavaScript’s built-in
Math.asinandMath.acos, which return the principal value in [−π/2, π/2] and [0, π] respectively, then normalise to [0°, 360°).
The SVG diagram draws the unit circle at radius 90 px, the blue dashed horizontal leg (= |cos θ|), the red dashed vertical leg (= |sin θ|), and the purple radius arm, updating live as you type. The point coordinates shown on the diagram are the actual cos/sin values rounded to three decimal places.