Audited ·Last updated 26 Jul 2026·6 citations·Tier 1·0 uses

Trigonometry Calculator

Free trig calculator: compute sin, cos, tan, csc, sec, cot for any angle in degrees or radians. Unit circle values, reciprocal identities, and worked examples.

Trigonometry Calculator

The angle whose trig values you want. Any real number is valid — positive, negative, fractional, or larger than a full turn (360° or 2π). Negative angles rotate clockwise from the positive x-axis; angles greater than one full turn wrap around the unit circle (so sin(370°) = sin(10°), cos(750°) = cos(30°)).
Angle unit
sin(θ)
0.5
The sine of the angle — the y-coordinate of the point on the unit circle reached after rotating θ from the positive x-axis. In a right triangle, sin(θ) = opposite / hypotenuse. Range: −1 ≤ sin(θ) ≤ 1. Snapped to exactly 0 when the floating-point result is within 1e-12 of zero (so sin(π) returns 0, not 1.22e-16).
cos(θ)
0.866
tan(θ)
0.5774
csc(θ)
2
sec(θ)
1.1547
cot(θ)
1.7321
Angle in radians
0.5236
Angle in degrees
30

Background.

The Quanta trig calculator evaluates all six standard trigonometric functions — sine, cosine, tangent, cosecant, secant, and cotangent — for any real angle, entered in either degrees or radians. The six functions are the foundational vocabulary of trigonometry, the branch of mathematics that started in ancient astronomy as a way to relate the angles of a triangle to the lengths of its sides and that now powers almost every quantitative description of waves, oscillations, rotations, and periodic phenomena in physics, engineering, and computer science.

The defining setup is the unit circle: draw a circle of radius 1 centred at the origin of the plane, pick an angle θ measured counter-clockwise from the positive x-axis, and mark the point P where the radius at angle θ meets the circle. Then by definition cos(θ) is the x-coordinate of P, sin(θ) is the y-coordinate of P, and the four other functions are simple ratios — tan(θ) = sin(θ)/cos(θ) is the slope of the line from the origin to P, cot(θ) = cos(θ)/sin(θ) is its reciprocal, sec(θ) = 1/cos(θ) is the reciprocal of cosine, and csc(θ) = 1/sin(θ) is the reciprocal of sine. The unit-circle picture instantly explains the most important properties of the six functions. Both sin(θ) and cos(θ) are bounded between −1 and 1 because they are coordinates on a circle of radius 1. Both are periodic with period 2π radians (360°) because rotating one full turn brings P back to itself. They are shifted versions of each other (cos(θ) = sin(θ + π/2)) because rotating the radius by a quarter turn maps the x-coordinate to the y-coordinate. The reciprocals csc, sec, and cot are unbounded — they shoot off to infinity whenever sin or cos passes through zero. And the fundamental Pythagorean identity sin²(θ) + cos²(θ) = 1 falls out immediately because P lies on a circle of radius 1, so its coordinates satisfy x² + y² = 1.

Why do we need all six functions, not just sin, cos, and tan? Historically because Greek and Indian astronomers (Hipparchus, Aryabhata, al-Battani) computed positions of stars and planets using chord, sine, versine, cosine, tangent, and cotangent in different combinations — every reciprocal had a name because dividing by sin or cos was awkward without our modern decimal system, so a pre-computed table of csc, sec, and cot saved a division each time.

Today the reciprocals survive because they show up naturally in identities (1 + tan²θ = sec²θ, 1 + cot²θ = csc²θ are the Pythagorean identities written in their cleanest form), in calculus (the derivative of tan is sec², the integral of sec is ln|sec + tan|, the derivative of −cot is csc²), and in physics (impedance, refraction, and projectile range formulas all involve secant or cosecant terms that would be ugly to write with only sin, cos, and tan).

The two angle units — degrees and radians — both appear in the calculator because both are still in active use. Degrees, with 360 of them in a full turn, descend from Babylonian sexagesimal arithmetic and survive in everyday geometry, surveying, navigation, and architecture because 360 has many divisors (1, 2, 3, 4, 5, 6, 8, 9, 10, 12…) and so divides cleanly into halves, thirds, quarters, fifths, sixths, eighths. Radians, with 2π of them in a full turn, are the natural mathematical unit because arc length on a unit circle equals angle in radians by definition — which makes the derivative of sin(x) come out cleanly as cos(x), with no awkward 180/π conversion factor. Every standard programming library (JavaScript Math.sin, Python math.sin, C math.h) takes radians as input, every calculus textbook uses radians from chapter one onward, and every physics equation involving angular frequency, angular velocity, or wave propagation uses radians. The conversion is π radians = 180 degrees, so 30° = π/6 rad, 45° = π/4 rad, 60° = π/3 rad, 90° = π/2 rad.

Applications span essentially every quantitative discipline. In physics, sine and cosine describe simple harmonic motion (a mass on a spring, a pendulum, a vibrating string), alternating-current voltage and current waveforms, sound waves, light waves, and the projectile-motion equations of classical mechanics — projectile range = v² · sin(2θ) / g is a textbook example. In engineering, the six functions parameterise rotational motion, gear ratios, robot-arm kinematics, signal modulation (AM, FM, QAM), and stress analysis in mechanical structures. In signal processing the Fourier transform decomposes any signal into a sum of sines and cosines, which is why every audio compression scheme (MP3, AAC, Opus), every video codec (JPEG, H.264, AV1), every image filter (blur, sharpen, edge-detect), and every digital communication standard (Wi-Fi, 5G, GPS) ultimately reduces to trigonometric arithmetic. In computer graphics and game development, sin and cos rotate vectors, animate orbits, and parameterise spline curves. In navigation and surveying, the Law of Sines and Law of Cosines extend right-triangle trig to arbitrary triangles, letting a navigator compute a position from two known landmarks. This page walks through the unit-circle definitions, the reciprocal identities, the degrees-to-radians conversion, worked examples for the famous angles 30°, 45°, 60°, and 90°, and the edge cases — like why tan(90°) is undefined and why sin² + cos² = 1 for every angle — that distinguish a calculator that handles trig correctly from one that produces floating-point noise at every multiple of π.

What is trigonometry calculator?

Trigonometry is the branch of mathematics that relates the angles of a triangle to the lengths of its sides, and more generally describes how points move on a circle. The six trigonometric functions — sine (sin), cosine (cos), tangent (tan), cosecant (csc), secant (sec), and cotangent (cot) — are the standard vocabulary. The cleanest modern definition uses the unit circle: a circle of radius 1 centred at the origin. For any real angle θ, measured counter-clockwise from the positive x-axis in either degrees or radians, let P = (x, y) be the point where the radius at angle θ meets the unit circle. Then cos(θ) = x, sin(θ) = y, tan(θ) = y/x = sin(θ)/cos(θ), csc(θ) = 1/y = 1/sin(θ), sec(θ) = 1/x = 1/cos(θ), and cot(θ) = x/y = 1/tan(θ). The older right-triangle definition is equivalent for acute angles between 0° and 90°: in a right triangle with one acute angle θ, sin(θ) = opposite / hypotenuse, cos(θ) = adjacent / hypotenuse, tan(θ) = opposite / adjacent, and the three reciprocals follow. The unit-circle definition extends the right-triangle definition to all real angles — negative angles (clockwise rotation), angles greater than 90° (any quadrant), and angles greater than 360° (multiple turns) — which is why every modern textbook starts with the unit circle and treats the right triangle as a special case. The functions are periodic: sin and cos have period 2π radians (360°), so sin(θ + 2π) = sin(θ) for every θ; tan and cot have period π radians (180°). Both sin and cos are bounded between −1 and 1; csc and sec are bounded outside the interval (−1, 1) (so |csc| ≥ 1 and |sec| ≥ 1 wherever they are defined); tan and cot take every real value. The fundamental Pythagorean identity sin²(θ) + cos²(θ) = 1 follows directly from x² + y² = 1 on the unit circle and is the single most-used trig identity in calculus and physics. The two reciprocal Pythagorean identities — 1 + tan²(θ) = sec²(θ) and 1 + cot²(θ) = csc²(θ) — follow by dividing the main identity by cos²(θ) and sin²(θ) respectively. The Quanta trig calculator evaluates all six functions for any real angle, in degrees or radians, and snaps numerical residuals smaller than 1e-12 to exactly 0 (so sin(π) returns 0, not 1.22 × 10⁻¹⁶), which prevents downstream identity-checking calculations from accumulating floating-point noise.

How to use this calculator.

  1. Enter the angle in the first field. Any real number is valid — positive, negative, fractional, or larger than one full turn. The calculator handles wrap-around automatically (sin(370°) returns the same value as sin(10°), cos(-30°) returns the same value as cos(330°)).
  2. Pick the unit. Degrees (°) is the everyday unit, with 360 in a full turn. Radians (rad) is the calculus and physics unit, with 2π in a full turn. The conversion appears in the angleRadians and angleDegrees output rows so you can always see both forms of the same angle.
  3. Read sin(θ) at the top — the primary output, the y-coordinate on the unit circle. Read cos(θ) directly below — the x-coordinate. The other four functions are reciprocals or ratios of these two, and update simultaneously.
  4. For famous angles, sanity-check against memorised values. sin(0°) = 0, sin(30°) = 0.5, sin(45°) = √2/2 ≈ 0.7071, sin(60°) = √3/2 ≈ 0.8660, sin(90°) = 1. cos(0°) = 1, cos(30°) = √3/2 ≈ 0.8660, cos(45°) = √2/2 ≈ 0.7071, cos(60°) = 0.5, cos(90°) = 0. tan(0°) = 0, tan(45°) = 1, tan(90°) = undefined (Infinity).
  5. Watch for the Infinity outputs. tan and sec are undefined at 90°, 270°, 450°, … (every odd multiple of π/2 radians) because cos = 0 there; csc and cot are undefined at 0°, 180°, 360°, … (every integer multiple of π radians) because sin = 0 there. The calculator returns Infinity in those cases rather than a misleading large finite number — that is the mathematically correct answer.
  6. Verify identities with the calculator. Compute sin and cos of any angle, square them, and add — the result is always 1 (the Pythagorean identity). Compute tan(θ) and 1/tan(θ) — the second equals cot(θ). Compute sin(θ + 90°) — the result equals cos(θ). These cross-checks are how you build intuition for which identity applies where.

The formula.

sin²θ + cos²θ = 1

The unit-circle definitions are the source of every other trig formula. For any real angle θ, let P = (cos(θ), sin(θ)) be the point on the unit circle x² + y² = 1 reached by rotating the radius counter-clockwise through θ from the positive x-axis. Then sin(θ) = y-coordinate of P, cos(θ) = x-coordinate of P, tan(θ) = sin(θ) / cos(θ), and the three reciprocal functions are csc(θ) = 1 / sin(θ), sec(θ) = 1 / cos(θ), and cot(θ) = 1 / tan(θ) = cos(θ) / sin(θ). The right-triangle definitions — sin = opposite/hypotenuse, cos = adjacent/hypotenuse, tan = opposite/adjacent, csc = hypotenuse/opposite, sec = hypotenuse/adjacent, cot = adjacent/opposite — are equivalent for 0 < θ < 90° and follow by similar-triangles: scale a right triangle with hypotenuse h down to hypotenuse 1, and the legs become exactly the sine and cosine of the angle. The reciprocal identities are direct from the definitions: csc(θ) = 1/sin(θ), sec(θ) = 1/cos(θ), cot(θ) = 1/tan(θ). They are not separate physical relationships — they are renamings, kept because they appear so often in calculus and physics that giving them their own names is a notational convenience. The degrees-to-radians conversion is π radians = 180 degrees, equivalently 1 degree = π/180 radians ≈ 0.01745 rad and 1 radian = 180/π degrees ≈ 57.2958°. The constant π = 3.141592653589793… appears because a full turn around the unit circle has arc length 2π (the circumference of a unit circle), and a radian is by definition the angle subtended by an arc of length 1 on the unit circle — so 2π radians = one full turn = 360 degrees, giving π rad = 180°. The Pythagorean identity sin²(θ) + cos²(θ) = 1 holds for every θ because cos(θ) and sin(θ) are the coordinates (x, y) of a point on the unit circle, and any point on the unit circle satisfies x² + y² = 1 by definition. Dividing both sides by cos²(θ) gives tan²(θ) + 1 = sec²(θ) (the secant Pythagorean identity); dividing both sides by sin²(θ) gives 1 + cot²(θ) = csc²(θ) (the cosecant Pythagorean identity). These three identities, together with the periodicity properties sin(θ + 2π) = sin(θ), cos(θ + 2π) = cos(θ), tan(θ + π) = tan(θ), and the symmetry properties sin(−θ) = −sin(θ) (sine is odd), cos(−θ) = cos(θ) (cosine is even), tan(−θ) = −tan(θ) (tangent is odd), generate every other trigonometric identity (angle-addition formulas, double-angle formulas, half-angle formulas, product-to-sum formulas) through algebra alone. Numerical implementation: the Quanta engine evaluates sin and cos using the platform's IEEE 754 double-precision math library (JavaScript's Math.sin and Math.cos, which compile to hardware FSIN/FCOS instructions on x86 or to the equivalent libm calls on other architectures), then derives tan, csc, sec, cot by simple division. A snap-to-zero threshold of 1e-12 cleans up the floating-point residuals — for example Math.sin(Math.PI) returns 1.22 × 10⁻¹⁶ instead of exactly 0 because π is not exactly representable in binary, so the calculator snaps any |result| < 1e-12 to exactly 0. Division by zero in the reciprocals returns Infinity (the mathematically correct answer for csc(0), sec(π/2), and so on), not NaN, because Infinity correctly signals an asymptote.

A worked example.

Example

Compute the six trig functions at θ = 30°. Convert to radians first: 30° × π/180 = π/6 rad ≈ 0.5236. From the famous 30-60-90 right triangle (legs in ratio 1 : √3 : 2, with the side opposite 30° being the shortest), the exact values fall out: sin(30°) = 1/2 = 0.5 (the side opposite the 30° angle divided by the hypotenuse, 1/2), cos(30°) = √3/2 ≈ 0.8660 (the side adjacent to the 30° angle divided by the hypotenuse, √3/2), tan(30°) = sin/cos = (1/2)/(√3/2) = 1/√3 = √3/3 ≈ 0.5774. The reciprocals follow: csc(30°) = 1/sin = 1/0.5 = 2, sec(30°) = 1/cos = 2/√3 = 2√3/3 ≈ 1.1547, cot(30°) = 1/tan = √3 ≈ 1.7321. The calculator confirms these: sin = 0.5, cos = 0.8660254037844387, tan = 0.5773502691896257, csc = 2, sec = 1.1547005383792515, cot = 1.7320508075688774, angleDegrees = 30, angleRadians = 0.5235987755982988. Three quick verifications. First, the Pythagorean identity: sin²(30°) + cos²(30°) = 0.25 + 0.75 = 1.0 — exact, as required by the unit circle. Second, the reciprocal check: sin(30°) × csc(30°) = 0.5 × 2 = 1.0; cos(30°) × sec(30°) = 0.8660 × 1.1547 = 1.0000; tan(30°) × cot(30°) = 0.5774 × 1.7321 = 1.0001 (rounded). Third, the 60° complement: sin(60°) should equal cos(30°), and cos(60°) should equal sin(30°), because the two angles are complementary (they sum to 90°). Re-run the calculator at 60° and it confirms: sin(60°) = 0.8660 = cos(30°), cos(60°) = 0.5 = sin(30°). Two more famous-angle checks worth running yourself: cos(60°) returns 0.5 (the same as sin(30°)), tan(45°) returns 1 (because sin(45°) = cos(45°) = √2/2 and they cancel in the ratio), and sin(π/2) returns 1 — the maximum value of sine, reached at the top of the unit circle where the point P = (0, 1).

angle Unitdegrees
angle30

Frequently asked questions.

What is the difference between degrees and radians, and which should I use?
Degrees split a full turn into 360 equal parts and survive from Babylonian astronomy because 360 has many divisors (1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180), so it divides cleanly into halves, thirds, quarters, fifths, sixths, eighths — convenient for geometry, surveying, navigation, architecture, and everyday work where round-number angles matter. Radians measure angle as arc length on the unit circle: one radian is the angle that subtends an arc of length 1 on a circle of radius 1, so a full turn is 2π ≈ 6.2832 radians. Radians are the natural mathematical unit because the derivative of sin(x) is exactly cos(x) when x is in radians — switch to degrees and you have to write d/dx[sin(x°)] = (π/180) · cos(x°), an awkward extra constant. Every calculus textbook, every physics equation involving angular frequency or wave propagation, and every programming math library (JavaScript Math, Python math, C math.h) uses radians. The practical rule: use degrees for geometry, surveying, and any context where humans read the angle; use radians for calculus, physics, signal processing, and programming. The conversion is π rad = 180°, so multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees. The Quanta calculator accepts either unit and shows both in its output.
When do I need csc, sec, and cot — aren't sin, cos, and tan enough?
For most everyday computation, yes — you can rewrite every csc as 1/sin, every sec as 1/cos, and every cot as 1/tan. The reciprocals exist as named functions for three reasons. First, history: pre-calculator astronomers and navigators used tables of sin, cos, tan, csc, sec, cot side by side because dividing by a small number was tedious by hand, and looking up the reciprocal directly saved a step. Second, identities: the Pythagorean identities 1 + tan²θ = sec²θ and 1 + cot²θ = csc²θ are cleaner with the reciprocals named explicitly than written as 1 + sin²θ/cos²θ = 1/cos²θ. Third, calculus: the derivative of tan(θ) is sec²(θ), the derivative of cot(θ) is −csc²(θ), the integral of sec(θ) is ln|sec(θ) + tan(θ)|, and the integral of csc(θ) is −ln|csc(θ) + cot(θ)|. Those formulas are not optional ornaments — they appear constantly in physics (impedance in alternating-current circuits, refraction angles in optics, projectile-range formulas) and engineering (stress analysis, control theory, signal processing). So even though every csc/sec/cot expression can be rewritten with only sin/cos/tan, keeping the reciprocals named makes the algebra readable and the tables of standard integrals tractable.
Why is tan(90°) undefined?
Because tan(θ) = sin(θ) / cos(θ), and cos(90°) = 0, so tan(90°) = 1/0 — undefined as a real number. Geometrically the picture is clean: on the unit circle, the point at 90° is (0, 1), so cos = 0 and sin = 1. The line from the origin to that point is vertical, and a vertical line has no finite slope — its slope is infinite. That is exactly what tan represents (the slope of the radius), so tan(90°) being infinite is the geometrically correct answer. The same happens at every odd multiple of 90° — 270°, 450°, 630°, and so on (or π/2, 3π/2, 5π/2 in radians) — because cos passes through zero at each of those angles. The Quanta calculator returns Infinity (the IEEE 754 floating-point representation of +∞) rather than a misleading large finite number or NaN, because Infinity is the mathematically honest signal that you have hit a vertical asymptote. The corresponding reciprocals sec and csc become infinite at the same set of angles (sec at the cos zeros, csc at the sin zeros). If you need to manipulate expressions that look like tan(90°), the standard tactic is to rewrite first using identities (for example tan(90° − θ) = cot(θ)) and only evaluate after the cancellation.
What is the unit circle and how does it define the trig functions?
The unit circle is the circle of radius 1 centred at the origin of the coordinate plane: the set of points (x, y) satisfying x² + y² = 1. For any real angle θ, measured counter-clockwise from the positive x-axis, draw the radius at angle θ and let P be where it meets the circle. Then by definition cos(θ) = x-coordinate of P and sin(θ) = y-coordinate of P, with tan(θ) = y/x = sin/cos, sec(θ) = 1/x, csc(θ) = 1/y, and cot(θ) = x/y. This definition is the modern standard because it works for every real angle — negative angles (rotate clockwise instead), angles greater than 90° (P moves into the second, third, or fourth quadrant), and angles greater than 360° (P wraps around the circle again). It also makes the most-used properties obvious: sin and cos are bounded between −1 and 1 because the circle has radius 1; sin² + cos² = 1 because (x, y) is on the unit circle; sin and cos are periodic with period 2π because going round the circle returns to the start; cos is even and sin is odd because reflecting across the x-axis flips the y-coordinate but not the x-coordinate. The older right-triangle definition (sin = opposite/hypotenuse, cos = adjacent/hypotenuse, tan = opposite/adjacent) is equivalent for acute angles 0 < θ < 90°, and is what most students see first, but it cannot handle obtuse, negative, or large angles, which is why the unit-circle definition is the one used in calculus, physics, and engineering.
What is the Pythagorean identity sin²θ + cos²θ = 1?
The most-used trig identity, true for every real angle θ. It says that the square of the sine plus the square of the cosine of any angle is exactly 1. The proof is one line from the unit-circle definition: sin(θ) and cos(θ) are by definition the y- and x-coordinates of a point on the unit circle, and any point (x, y) on a circle of radius 1 satisfies x² + y² = 1 — so sin²(θ) + cos²(θ) = 1. The identity is the algebraic engine behind almost every trig manipulation. Dividing both sides by cos²(θ) gives the secant Pythagorean identity tan²(θ) + 1 = sec²(θ); dividing both sides by sin²(θ) gives the cosecant Pythagorean identity 1 + cot²(θ) = csc²(θ); rearranging gives sin²(θ) = 1 − cos²(θ) and cos²(θ) = 1 − sin²(θ), which are how you eliminate one function in favour of the other inside an integral. The identity is also why amplitude and energy are conserved in oscillation: if a position is x(t) = A cos(ωt) and a velocity is v(t) = −Aω sin(ωt), then x²/A² + v²/(Aω)² = cos²(ωt) + sin²(ωt) = 1, so the trajectory in phase space is a closed ellipse — the geometric statement that energy is conserved. Verify it with this calculator: pick any angle, square the sin and cos, add them; you always get 1 (to within floating-point precision).
How do I convert between degrees and radians?
Multiply degrees by π/180 to get radians; multiply radians by 180/π to get degrees. The conversion comes from the definition: one full turn is 360 degrees (the Babylonian convention) and also 2π radians (the arc length of a unit circle), so 360° = 2π rad, which simplifies to 180° = π rad. From there: 1° = π/180 rad ≈ 0.01745 rad; 1 rad = 180/π ° ≈ 57.2958°. Useful exact equivalents to memorise: 30° = π/6, 45° = π/4, 60° = π/3, 90° = π/2, 180° = π, 270° = 3π/2, 360° = 2π. The Quanta calculator does both directions automatically — enter an angle in either unit, and the angleDegrees and angleRadians outputs show the same angle in both forms. Three traps to avoid. First, programming math libraries (JavaScript, Python, C, R, MATLAB) take radians by default, not degrees — calling Math.sin(30) in JavaScript computes sin(30 radians) ≈ −0.988, not sin(30°) = 0.5. Always convert explicitly: Math.sin(30 * Math.PI / 180). Second, scientific calculators have a DEG/RAD mode switch in their settings — check which mode is active before reading an answer. Third, some engineering disciplines use a third unit called gradians or gons, where a full turn is 400 gradians and a right angle is 100 gradians; the Quanta calculator does not support gradians because they are rare outside French civil engineering and surveying.
Are the unit-circle and right-triangle definitions of sine and cosine the same?
Yes, for acute angles 0° < θ < 90° they give identical values. The right-triangle definition says sin(θ) = opposite / hypotenuse and cos(θ) = adjacent / hypotenuse in a right triangle with one acute angle θ. The unit-circle definition says sin(θ) = y-coordinate and cos(θ) = x-coordinate of the point P where the radius at angle θ meets the unit circle. To see they agree, take any right triangle with acute angle θ and hypotenuse h. Place it so the angle θ is at the origin and the hypotenuse runs along the radius at angle θ. The opposite side has length h · sin(θ) (the vertical component of the radius), and the adjacent side has length h · cos(θ) (the horizontal component), so opposite/hypotenuse = sin(θ) and adjacent/hypotenuse = cos(θ) — exactly the right-triangle definition. The unit-circle definition is more general because it extends to negative angles, obtuse angles, angles greater than 360°, and zero/90° angles where the right-triangle setup degenerates. Every modern trigonometry course starts with the right-triangle definition for intuition and then upgrades to the unit-circle definition for everything past chapter one — by the time you reach calculus, the unit-circle definition is universal.
What are sin(0°), sin(30°), sin(45°), sin(60°), and sin(90°)?
These are the famous-angle values every trigonometry student memorises because they appear constantly and have clean closed-form expressions. sin(0°) = 0 (the point (1, 0) at the start of the rotation has y-coordinate 0). sin(30°) = 1/2 = 0.5 exactly (the half-equilateral triangle of side 1 has shortest leg 1/2). sin(45°) = √2/2 ≈ 0.7071 (the isoceles right triangle has both legs equal to 1/√2 = √2/2 when the hypotenuse is 1). sin(60°) = √3/2 ≈ 0.8660 (the other leg of the half-equilateral triangle, by Pythagoras: √(1² − (1/2)²) = √(3/4) = √3/2). sin(90°) = 1 (the point (0, 1) at the top of the unit circle has y-coordinate 1, the maximum). The cosine values are the same five numbers in reverse order, by the complementary-angle identity cos(θ) = sin(90° − θ): cos(0°) = 1, cos(30°) = √3/2, cos(45°) = √2/2, cos(60°) = 1/2, cos(90°) = 0. The tangent values follow as ratios: tan(0°) = 0, tan(30°) = 1/√3 = √3/3 ≈ 0.5774, tan(45°) = 1, tan(60°) = √3 ≈ 1.7321, tan(90°) = undefined (infinity). Sanity-check these against the Quanta calculator — every value matches to fifteen significant figures, and the snap-to-zero handling means sin(180°) returns exactly 0 instead of 1.22 × 10⁻¹⁶.
Why does sin(π) return 0 in this calculator when other tools return 1.22e-16?
Because the calculator snaps any result with absolute value below 1e-12 to exactly 0 before returning it. The reason raw IEEE 754 doubles give Math.sin(Math.PI) ≈ 1.2246 × 10⁻¹⁶ instead of 0 is that the mathematical constant π = 3.141592653589793238… cannot be represented exactly in binary floating-point — the stored value of Math.PI is the closest double, which is π plus an error of about 10⁻¹⁶, and the true sine of (π + 10⁻¹⁶) is approximately 10⁻¹⁶ (because the derivative of sin at π is −1). That residual is mathematically correct given the input, but it is noise from the user's point of view — the user typed π and expected 0. The Quanta engine therefore applies a snap-to-zero threshold of 1e-12, which is comfortably larger than the worst-case rounding error of Math.sin (about 10⁻¹⁶ for any input within the principal range) but much smaller than any value a user would legitimately care about. This is the same convention used by Mathematica's Chop function, MATLAB's eps-thresholding idioms, and most computer-algebra systems' simplification routines. The snap is applied to sin, cos, and tan independently — and tan is then derived from the snapped sin and cos so that tan(90°) returns Infinity correctly (because cos(90°) snaps to 0, making the division 1/0) rather than a misleading large finite number like 1.633 × 10¹⁶.
What is the relationship between sin(θ) and cos(θ)?
They are the same function shifted by 90° (π/2 radians). Specifically cos(θ) = sin(θ + 90°) and sin(θ) = cos(θ − 90°), which means cosine leads sine by a quarter turn — the cosine curve looks identical to the sine curve translated 90 degrees to the left. The reason is geometric: on the unit circle, sin is the y-coordinate and cos is the x-coordinate; rotating the radius by 90 degrees counter-clockwise maps (x, y) to (−y, x), which means the new x-coordinate is −y (the negative of the old sine) and the new y-coordinate is x (the old cosine) — so after a 90° rotation the new sine equals the old cosine. The complementary-angle identity cos(θ) = sin(90° − θ) is a slightly different statement of the same relationship: the cosine of an angle equals the sine of its complement (its 90°-minus-self), which is why in a right triangle the two acute angles always satisfy sin(one) = cos(the other). The phase-shift relationship is the foundation of AC circuit analysis (in a sinusoidal voltage V(t) = V₀ sin(ωt), the current through a capacitor leads the voltage by 90° and equals C V₀ ω cos(ωt) = C V₀ ω sin(ωt + 90°)), of complex-number representation (Euler's formula e^(iθ) = cos(θ) + i sin(θ) makes sin and cos the imaginary and real parts of one complex exponential), and of every signal-processing technique built on the Fourier transform.

References& sources.

  1. [1]NIST Digital Library of Mathematical Functions, §4 — Elementary Functions, particularly §4.14 (Trigonometric Functions: Definitions and Periodicity) and §4.21 (Identities). The definitive modern reference for the analytic definitions, the standard identities, and the numerical evaluation of sin, cos, tan, csc, sec, cot.
  2. [2]Abramowitz, M. and Stegun, I. A. (eds.) Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. National Bureau of Standards Applied Mathematics Series 55, 1964 — §4.3 (Circular Functions) tabulates definitions, identities, series expansions, and numerical values for all six trigonometric functions. Still cited by NIST DLMF as a foundational reference.
  3. [3]Toomer, G. J. "The Chord Table of Hipparchus and the Early History of Greek Trigonometry." Centaurus 18 (1973) — historical reconstruction of Hipparchus of Nicaea's chord table (circa 160 BC), the first systematic trigonometric table and the direct ancestor of modern sine tables via the Indian half-chord (jya) and the Arabic jiba/jaib mistranslation that produced the Latin sinus.
  4. [4]Stewart, James. Calculus: Early Transcendentals, 8th edition. Cengage Learning, 2015 — Chapter 1 (Functions and Models) §1.2 and Appendix D (Trigonometry) develop the unit-circle definitions, the six trig functions, the Pythagorean identities, and the degree-radian conversion as prerequisites for the differential and integral calculus that follows.
  5. [5]ISO 80000-2:2019 — Quantities and units, Part 2: Mathematics. International standard fixing the notation sin, cos, tan, csc, sec, cot for the six trigonometric functions, the radian as the SI coherent unit of plane angle (1 rad = 1 m/m), and the degree (1° = π/180 rad) as an accepted non-SI unit.
  6. [6]Boyer, Carl B. and Merzbach, Uta C. A History of Mathematics, 3rd edition. Wiley, 2011 — Chapters 7–9 trace the development of trigonometry from Hipparchus (c. 160 BC) through Ptolemy's Almagest chord table (c. 150 AD), the Indian Siddhantas (c. 500 AD), Islamic-world astronomers including al-Battani and al-Khwarizmi (9th–10th c.), and the Renaissance shift to the six functions in their modern form by Regiomontanus and Rheticus.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon