Understanding the Cotangent Function
Cotangent is one of the six basic trigonometric ratios. For an angle θ, it is defined as the ratio of the cosine to the sine of that angle, or equivalently the adjacent side divided by the opposite side in a right triangle. This calculator evaluates cot(θ) directly from an angle you enter in degrees or radians.
The formula
Cotangent has three equivalent definitions that all give the same result:
- Ratio form: cot(θ) = cos(θ) / sin(θ)
- Reciprocal form: cot(θ) = 1 / tan(θ)
- Right-triangle form: cot(θ) = adjacent / opposite, for an acute angle θ in a right triangle
Common reference values
- cot(30°) = √3 ≈ 1.732
- cot(45°) = 1
- cot(60°) = 1/√3 ≈ 0.577
- cot(90°) = 0
- cot(0°) and cot(180°) are undefined
Why cotangent is sometimes undefined
Because cot(θ) = cos(θ) / sin(θ), the function is undefined wherever sin(θ) = 0 — that is, at θ = 0°, 180°, 360°, and every multiple of 180° (0, π, 2π, ... radians). Near those angles cot(θ) grows without bound (its graph has a vertical asymptote), and this calculator reports "Undefined" instead of a number when you enter one of those angles.
Reading the quadrant
The sign of cot(θ) depends on which quadrant the angle falls in: positive in Quadrant I and Quadrant III (where sine and cosine share the same sign), and negative in Quadrant II and Quadrant IV (where they have opposite signs). The calculator reports the quadrant alongside the value so you can quickly check whether the sign makes sense.