Sin Cos Tan Calculator
Compute all six trigonometric ratios — sine, cosine, tangent, cosecant, secant and cotangent — for any angle.
Angle unit
sin of the angle
- 1
Convert degrees to radians
30 × π ÷ 180 = 0.523599 - 2
sin(θ)
sin(0.523599 rad) = 0.500000
How does this calculator work?
Enter an angle in degrees or radians and this calculator returns all six trig ratios. Degrees are converted to radians (×π/180), then sin, cos and tan are computed directly, with csc, sec and cot as their reciprocals. Ratios whose denominator is zero are shown as undefined.
Formula
How this is calculated
Enter an angle and choose whether it is measured in degrees or radians. JavaScript trigonometric functions work in radians, so a degree value is first converted with θ_rad = θ_deg × π / 180. Radian inputs are used as-is.
The primary ratios are then evaluated directly: sin θ = Math.sin(θ), cos θ = Math.cos(θ) and tan θ = Math.tan(θ). The three reciprocal ratios follow as csc θ = 1/sin θ, sec θ = 1/cos θ and cot θ = 1/tan θ.
Reciprocal ratios are undefined where their base ratio is zero — for example sec and tan blow up near 90°, while csc and cot are undefined at multiples of 180°. In those cases the calculator reports "undefined" instead of an enormous floating-point artifact. Because of binary rounding, results at exact special angles may show tiny residuals (e.g. cos 90° as about 6e-17 rather than exactly 0).
Frequently asked questions
Use whichever your problem states. Select the matching unit and the calculator converts internally; both give identical ratios for the same physical angle.
Tangent is sin/cos, and cos 90° is zero, so tan is mathematically undefined there. Floating-point may produce a very large value, which we report as undefined.
They are the reciprocals of sin, cos and tan respectively: csc = 1/sin, sec = 1/cos, cot = 1/tan.
Also known as
TG we-Calculate Editorial Team. (2026). Sin Cos Tan Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/sine-cosine-tangent-calculator
TG we-Calculate Editorial Team. "Sin Cos Tan Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/sine-cosine-tangent-calculator.
TG we-Calculate Editorial Team, "Sin Cos Tan Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/sine-cosine-tangent-calculator
@misc{wecalculate_sine_cosine_tangent_calculator, title = {Sin Cos Tan Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/sine-cosine-tangent-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
