Cotangent Calculator: cot θ = cos θ / sin θ with Exact Values
By FindMySum · Last reviewed
A cotangent calculator gives cot θ, the cosine of an angle divided by its sine, which is the same as 1 divided by its tangent. Enter an angle in degrees, radians, multiples of π or gradians and the calculator returns the exact value for the special angles (cot 45° = 1, cot 30° = √3, cot 60° = √3/3), a 12-significant-figure decimal for anything else, the angle on the unit circle and a cot table from 0° to 360°.
Defining cotangent
cot θ = cos θ / sin θ = 1 / tan θ
In a right triangle, tangent is opposite ÷ adjacent, so cotangent is adjacent ÷ opposite. If a ramp rises 1 m and the angle of the slope is 5°, the ramp's horizontal run is 1 × cot 5° ≈ 11.43 m. Engineers use the same idea when they describe a slope as "1 in 12": that 12 is the cotangent of the slope angle.
The cos/sin form is the safer definition. It gives the right answer at 90°, where tan θ is undefined but cot θ = 0/1 = 0. Writing cot θ as 1/tan θ would break down there.
The default example: cot 60°
The calculator opens at 60°, where the unit-circle point is (1/2, √3/2). So cot 60° = (1/2) ÷ (√3/2) = 1/√3 = √3/3, about 0.57735026919. The cofunction line shows tan 30° has the same value, since cot θ = tan(90° − θ).
Exact cotangent values
| θ | 0° | 30° | 45° | 60° | 90° | 120° | 135° | 150° | 180° |
|---|---|---|---|---|---|---|---|---|---|
| tan θ | 0 | √3/3 | 1 | √3 | undefined | −√3 | −1 | −√3/3 | 0 |
| cot θ | undefined | √3 | 1 | √3/3 | 0 | −√3/3 | −1 | −√3 | undefined |
Cotangent runs through the tangent values in reverse order between 0° and 90°: as the angle opens up, the adjacent side shrinks relative to the opposite side. The table on the calculator page carries on to 360° with decimals beside each exact value.
Undefined at 0° and 180°
cot θ divides by sin θ, so it does not exist where sin θ = 0: at 0°, 180°, 360° and all multiples of 180° (kπ radians). Those are the vertical asymptotes of its graph. Between two asymptotes the graph falls steadily from +∞ to −∞, crossing zero at 90°, 270° and so on, which is the mirror image of how tangent rises.
Period, range and signs
Unlike sine, cosine, secant and cosecant, cotangent repeats every 180° (π radians), the same as tangent: turning the ray halfway round flips the sign of both sine and cosine, so their ratio is unchanged. cot 225° = cot 45° = 1.
Cotangent can be any real number, positive, negative or zero. It is positive in quadrants I and III, where sine and cosine have the same sign, and negative in quadrants II and IV.
Calculating cot without a cot key
On a scientific calculator, find tan θ and press 1/x, except at 90°, 270° and other angles where tan is undefined: there the cotangent is simply 0. For cot 20° in degree mode: tan 20° ≈ 0.36397, and 1 ÷ 0.36397 ≈ 2.74748. In a spreadsheet use =COS(RADIANS(20))/SIN(RADIANS(20)), which also handles 90° correctly.
Identities worth knowing
Three identities cover most cotangent work. The reciprocal identity is cot θ = 1/tan θ wherever both exist. The cofunction identity is cot θ = tan(90° − θ), so cot 20° equals tan 70°. The Pythagorean identity is 1 + cot² θ = csc² θ: check it at 45°, where 1 + 1 = 2 and csc² 45° = (√2)² = 2. To solve cot θ = k, take θ = arctan(1/k) for k ≠ 0, then add multiples of 180°; for k = 0 the answers are 90° and 270°.
Where cotangent appears
- Slopes and ramps: run = rise × cot(angle). Accessibility ramp rules quoted as a 1:12 slope are a cotangent of 12, an angle of about 4.76°.
- Calculus: d/dx cot x = −csc² x, and ∫cot x dx = ln|sin x| + C.
- Complex analysis and series: π cot(πz) has a famous partial-fraction expansion used to sum series such as 1 + 1/4 + 1/9 + … = π²/6.
- Surveying: with two sightings of a tower's top from points a known distance apart, cotangents of the two elevation angles give its height.
Related calculators
The tangent calculator gives the function cotangent inverts, and the cosecant and secant calculators cover the other reciprocals. For all six functions at once, plus arccot, use the trigonometry calculator.
More questions
What is cot 30°?
√3, about 1.73205080757. tan 30° = √3/3, and its reciprocal is 3/√3 = √3.
What is cot 135°?
−1. At 135° cosine is −√2/2 and sine is √2/2, so their ratio is −1. Cotangent is negative in quadrants II and IV.
Is cot the same as tan⁻¹?
No. cot θ = 1/tan θ is the reciprocal. tan⁻¹ x (arctan) is the inverse function, an angle. cot 45° = 1, while tan⁻¹(1) = 45°.
Is cotangent odd or even?
Odd: cot(−θ) = −cot θ, because it is the ratio of an even function (cosine) to an odd one (sine). cot(−60°) = −√3/3.
What is the derivative of cot x?
−csc² x, with x in radians. The integral of cot x is ln|sin x| + C.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.