Trigonometry
Intermediate

Cotangent

Reciprocal of tangent.

Formula

cot⁡θ=1tan⁡θ=cos⁡θsin⁡θ\cot\theta = \frac{1}{\tan\theta} = \frac{\cos\theta}{\sin\theta}

Variables

\thetaAngle

Example

cot 45° = 1

How it works

Cotangent tells you the ratio of the adjacent side to the opposite side in a right triangle, so it measures how steep an angle is from a side-length point of view. Because tangent is opposite divided by adjacent, its reciprocal flips that ratio, giving cot\theta = adjacent/opposite = cos\theta/sin\theta. This is why cotangent becomes very large when the angle is small and close to 0°, and undefined when sin\theta = 0.

When to use it

Use cotangent when a problem gives you an angle and the ratio of adjacent to opposite sides, or when you already know sine and cosine and want to convert between them. It also appears often in trigonometric identities, calculus, and solving right-triangle and coordinate-geometry problems.

Worked example, step by step

Find cot 30°. Use the exact trig values: sin 30° = 1/2 and cos 30° = \u221a3/2. Apply the formula: cot\theta = cos\theta / sin\theta. So, cot 30° = (\u221a3/2) / (1/2). Divide by a fraction: (\u221a3/2) \u00d7 (2/1) = \u221a3. Final answer: cot 30° = \u221a3.

Common mistakes to avoid

  • Reversing the ratio and using opposite/adjacent instead of adjacent/opposite
  • Forgetting that cotangent is undefined when sin\theta = 0
  • Mixing up cotangent with the tangent reciprocal but plugging in degrees/radians incorrectly

Did You Know?

Ancient sundial makers effectively used the cotangent to relate a gnomon's height to its shadow length.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026