Formula and Method for Sine, Cosine, and Tangent
Sine, cosine, and tangent are the three basic trigonometric functions that relate an angle to the ratios of a right triangle's sides — and, more generally, to the coordinates of a point on the unit circle. For an angle θ: sin θ = opposite / hypotenuse, cos θ = adjacent / hypotenuse, and tan θ = opposite / adjacent = sin θ / cos θ. This calculator takes an angle in either degrees or radians and returns all three ratios, along with the angle converted to the other unit.
The unit circle definition
The right-triangle definitions only work cleanly for angles between 0° and 90°. To handle any angle — negative, obtuse, or larger than a full turn — trigonometry uses the unit circle: a circle of radius 1 centered at the origin. For an angle θ measured counterclockwise from the positive x-axis, the point where the angle's ray crosses the circle has coordinates (cos θ, sin θ). Tangent is then the slope of that ray, tan θ = sin θ / cos θ = y / x. This calculator uses the unit circle definition internally, so it works for any real angle, not just those inside a triangle.
Degrees, radians, and undefined tangent values
Angles can be measured in degrees (a full circle = 360°) or radians (a full circle = 2π ≈ 6.2832 rad). Convert with radians = degrees × π/180 and degrees = radians × 180/π. Tangent is undefined wherever cos θ = 0 — that is, at 90°, 270°, and every 180° step from those points (θ = 90° + n·180°) — because dividing by zero has no defined value; the calculator reports "Undefined" rather than a number at those angles.
Common applications
- Finding missing sides or angles in right triangles (surveying, construction, navigation)
- Modeling periodic phenomena: sound waves, AC current, tides, and mechanical vibration all follow sinusoidal patterns based on sine and cosine
- Rotational and circular motion in physics and engineering, where position, velocity, and force components are resolved using sin θ and cos θ
- Computer graphics and animation, where sine and cosine generate smooth circular or wave-like motion