Cotangent Calculator
Calculate cotangent (cot) of any angle in degrees or radians. Includes the reciprocal tangent
What Is the Cotangent Function?
Cotangent (cot) is a trigonometric function defined as the reciprocal of tangent: cot(x) = 1/tan(x) = cos(x)/sin(x). In a right triangle, cotangent equals the adjacent side divided by the opposite side, the inverse ratio of tangent. Cotangent is undefined wherever sine equals zero (at 0, 180, 360 degrees), creating vertical asymptotes at these points. Enter any angle in the calculator above to find its cotangent value in degrees or radians.
Common Cotangent Values
cot(0) = undefined (tan(0) = 0). cot(30) = 1/tan(30) = 1.7321 (square root of 3). cot(45) = 1/tan(45) = 1 (adjacent and opposite are equal). cot(60) = 1/tan(60) = 0.5774 (1 divided by square root of 3). cot(90) = 1/tan(90) = 0 (since tan(90) approaches infinity). cot(135) = -1. cot(180) = undefined. These values are the reciprocals of the corresponding tangent values. Where tangent is large, cotangent is small, and vice versa. Where tangent is zero (at 90 degrees), cotangent is zero. Where tangent is undefined (at 0 and 180), cotangent is also undefined because of the division by zero in sin(x).
How to Calculate Cotangent?
Most calculators lack a dedicated COT button. Three equivalent methods: (1) Calculate tan(angle) and take the reciprocal: 1/tan(x). (2) Calculate cos(angle) divided by sin(angle): cos(x)/sin(x). (3) In programming: Math.cos(x) / Math.sin(x) or 1 / Math.tan(x). Method 2 avoids the infinity issue at 90 degrees where tan is undefined but cot is exactly 0. In spreadsheets: =COS(RADIANS(angle))/SIN(RADIANS(angle)) or =1/TAN(RADIANS(angle)). Always check whether your tool expects degrees or radians as input.
The Cotangent Graph
Unlike the continuous S-curves of the tangent graph, cotangent curves descend from positive infinity through zero to negative infinity between each pair of vertical asymptotes. The period is 180 degrees (pi radians), same as tangent. Cotangent is a decreasing function within each period, while tangent is increasing. The cotangent graph is essentially the tangent graph reflected and shifted by 90 degrees: cot(x) = tan(90 - x). Asymptotes occur at 0, 180, 360 degrees (multiples of pi), compared to tangent's asymptotes at 90, 270 degrees. Understanding this graph helps in solving trigonometric equations and analyzing periodic phenomena.
Cotangent in Calculus
The derivative of cotangent is -csc²(x), the negative of cosecant squared. This means cotangent is always decreasing within each period of its graph. The integral of cotangent is ln|sin(x)| + C. The Pythagorean identity for cotangent states 1 + cot²(x) = csc²(x), which is derived by dividing the fundamental identity sin² + cos² = 1 by sin². These formulas appear frequently in integration problems involving trigonometric substitution, differential equations modeling oscillatory systems, and the analysis of damped vibrations in physics and engineering.
Cotangent in Surveying and Construction
While tangent converts angles to slopes (rise/run), cotangent provides the inverse: the horizontal distance per unit of vertical rise. A hillside with a 30-degree slope has cot(30) = 1.732, meaning for every 1 meter of elevation gain, you travel 1.732 meters horizontally. This is particularly useful in road design where engineers need to know horizontal distances for given elevation changes, in staircase design where the horizontal run per step (tread depth) relates to the step height by cotangent, and in drainage engineering where pipe slopes are specified as horizontal-to-vertical ratios that correspond directly to cotangent values.
Inverse Cotangent (Arccot)
The inverse cotangent function, arccot or cot⁻¹, returns the angle whose cotangent is a given value. arccot(1) = 45 degrees because cot(45) = 1. arccot(0) = 90 degrees because cot(90) = 0. The principal range of arccot is 0 to 180 degrees (0 to pi radians). Since most calculators lack an arccot function, use the identity: arccot(x) = arctan(1/x) for positive x, or arccot(x) = pi + arctan(1/x) for negative x. In programming, the atan2 function can compute arccot more robustly by handling edge cases and quadrant selection automatically.
Cotangent vs Tangent: Choosing the Right Function
Tangent and cotangent provide the same information from different perspectives. Tangent gives rise per unit of run (slope). Cotangent gives run per unit of rise (inverse slope). In most modern applications, tangent is preferred because calculators have a TAN button and because slope is more intuitive than its inverse. However, cotangent appears naturally in certain mathematical contexts: the cotangent bundle in differential geometry, the cotangent space in physics, Fourier series involving cot terms, and complex analysis where cot(z) has particularly elegant properties around its poles. Understanding both functions and their relationship lets you choose whichever simplifies your specific calculation.
Frequently asked questions
What is cot(45)?
How do I calculate cotangent?
Why is cot(0) undefined?
What is the derivative of cot(x)?
What is the Pythagorean identity for cotangent?
What is inverse cotangent?
Rate This Calculator
Your feedback helps us improve our tools