Law of Cotangents — Definition, Formula & Example
The Law of Cotangents is a triangle rule that gives the cotangent of half of each angle using only the three side lengths. To recover an angle, you take the inverse cotangent of that value and then double it.
In a triangle with sides , , opposite angles , , , semiperimeter , and inradius , each half-angle satisfies , and likewise for and . The reason is geometric. The incenter lies on the bisector of angle , and the two tangent segments from vertex to the inscribed circle each have length . This forms a right triangle with legs and and with angle at vertex .
Key Formula
Where:
- = Side lengths of the triangle
- = Angles opposite sides a, b, c
- = Semiperimeter, (a + b + c)/2
- = Inradius, the radius of the circle inscribed in the triangle
Worked Example
Problem: A triangular garden bed has sides a = 13 ft, b = 14 ft, and c = 15 ft. Use the Law of Cotangents to find all three angles.
Step 1: Find the semiperimeter, then the inradius.
Step 2: Divide each value of s minus a side by r. Each result is the cotangent of a half-angle, not the angle itself.
Step 3: Invert each cotangent and double the result. Because cot x = 1/tan x, you can use the inverse tangent of the reciprocal.
Answer: A ≈ 53.13°, B ≈ 59.49°, C ≈ 67.38°. As a check, the angles add up to 180.00°.
Why It Matters
When you know all three sides (SSS), the Law of Cotangents finds every angle from one square root, the inradius r. The Law of Cosines instead needs a separate calculation for each angle. In precalculus and in competition geometry, it also links a triangle's angles directly to its inscribed circle. That link is useful in problems about area, since area = rs.
Common Mistakes
Mistake: Treating (s − a)/r as the angle A, or taking the inverse cotangent and forgetting to double.
Correction: The quotient (s − a)/r equals cot(A/2). First apply the inverse cotangent to get A/2, then multiply by 2. If your three angles do not add to 180°, check this step first.
