Compute the cosecant of any angle (in degrees or radians). Cosecant is the reciprocal of sine, defined for all angles except where sinθ = 0 (θ = 0°, 180°, 360°, … or 0, π, 2π, … rad).
Graph shown for x in degrees: [-360°, 360°] (two periods). Dashed lines at asymptotes: multiples of 180°.
The cotangent function, denoted cot(θ), is one of the six fundamental trigonometric functions. It can be defined as the reciprocal of tangent: cot(θ) = 1/tan(θ), or equivalently as the ratio of cosine to sine: cot(θ) = cos(θ)/sin(θ). Geometrically, in a right triangle, cotangent is the ratio of the adjacent side to the opposite side. On the unit circle, cot(θ) corresponds to the x-coordinate divided by the y-coordinate.
cot(θ) = \frac{1}{\tan(θ)} = \frac{\cos(θ)}{\sin(θ)} = \frac{\text{adjacent}}{\text{opposite}}
Derivative: d/dθ cot(θ) = −csc²(θ) | Integral: ∫ cot(θ) dθ = ln| sin(θ) | + C
The cotangent function, together with secant and cosecant, was developed by Islamic mathematicians in the 9th century and later incorporated into European trigonometry. The name “cotangent” comes from “complementi tangens” (tangent of the complement), since cot(θ) = tan(90° − θ). Cotangent appears prominently in integral calculus (the integral of cot is logarithmic), in the formulation of the law of cotangents for triangle solving, and in various physics and engineering contexts.
The law of cotangents is used in solving triangles when three sides are known. Cotangent also appears in the formula for the distance to the horizon and in celestial navigation calculations.
Cotangent appears in the analysis of alternating current circuits (phase angles), in the description of damped harmonic oscillators, and in the design of antenna radiation patterns.
Used in inverse kinematics to compute joint angles from end‑effector positions, and in 3D projection algorithms where the field of view is expressed in terms of cot(half‑angle).
Our calculator uses double‑precision floating‑point arithmetic. Due to rounding, sin(180°) may be a very small number (e.g., 1.22e-16), resulting in a very large cot value; we treat any |sinθ| < 1e-12 as undefined.