Contact

COT Function (LibreOffice Calc)

Math Beginner LibreOffice Calc

Use LibreOffice COT with radians or converted degrees. Calculate reciprocal slopes, verify cotangent identities and recognize singularities and floating-point limits.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: COT calculates 1/TAN(angle), with the angle in radians. Convert degrees with RADIANS and exclude cotangent singularities.

Availability and version history

  • Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

The COT function in LibreOffice Calc is used for this task: Returns the cotangent of a number. Find the cotangent of a 45-degree angle.

This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.

Syntax and arguments

COT(number)
Argument Required? Meaning
Number Yes The angle in radians whose cotangent value is to be returned.

Calc formulas normally use semicolons (;) between arguments in common configurations; the displayed separator may depend on settings or locale.

Worked example

=COT(PI()/4)

Expected result: 1.

Why it works: Find the cotangent of a 45-degree angle.

How to use it in your own spreadsheet

  1. Identify the cells or inputs that correspond to the sample values above.
  2. Enter the formula in an empty cell, changing the references or literal values to match your sheet.
  3. Compare the output with a manual check on a small known example.
  4. Extend the formula to a larger dataset only after you understand the result.

Common problems and practical checks

  • Check the accepted numeric domain, units and array dimensions for the specific operation.
  • If an error appears, check that the function arguments are of the expected type.
  • A pasted formula may produce an error when it uses the other program’s argument separator or unsupported options.

Additional worked application and edge cases

Stepwise example: convert degree measurements

Enter angles 30, 45, 60 and -45 in A2:A5. In B2 enter =COT(RADIANS(A2)), then fill down. Number is the single required argument, and COT interprets it in radians; RADIANS supplies the conversion in this example.

Angle in degrees Independently expected cotangent
30 1.7320508076
45 1
60 0.5773502692
-45 -1

Entering =COT(45) instead would evaluate 45 radians, not 45 degrees. Formatting the cell to show a degree symbol does not perform the conversion. If an upstream formula already returns radians, pass that value directly instead of converting it a second time.

Second example: a geometric reciprocal slope

For a right triangle, cotangent of an acute angle is adjacent side divided by opposite side. If a diagram gives an opposite side of 4 in D2 and an angle of 30 degrees in E2, enter =D2*COT(RADIANS(E2)) in F2.

The independently expected adjacent side is approximately 6.9282032303, in the same length unit as D2. This is a geometric calculation for the stated right-triangle model. An angle near zero produces a very large adjacent side; a tiny angle-entry error can then change the answer substantially.

Advanced application: check a reciprocal transformation

For the nonsingular angles in the first table, compare =COT(RADIANS(A2)) with =1/TAN(RADIANS(A2)). They are mathematically equal. A useful check is =COT(RADIANS(A2))*TAN(RADIANS(A2)), which should be approximately one for those inputs.

Cotangent is odd: changing x to -x reverses the sign. It is periodic with period PI radians. Thus COT(PI()/4) and COT(PI()/4+PI()) have the same mathematical value one. Numerical agreement is limited by the floating-point representation and argument reduction; do not rely on an exact equality test for arbitrarily large angles.

Undefined points and misleading finite results

Cotangent is undefined at integer multiples of PI, including zero. Do not use such inputs as ordinary finite results. The versioned Calc implementation evaluates a reciprocal tangent. At an approximate PI, the computed tangent can be a tiny nonzero number, so a huge finite result can appear rather than an exact singularity error.

At PI()/2 the mathematical cotangent is zero; a tiny residual is possible because the angle is approximate. Distinguish a rounding residual near a mathematical zero from the instability near an undefined point. If a model excludes angles close to zero or PI, apply a tolerance based on that model’s units and measurement accuracy rather than blindly accepting every numeric output.

Troubleshooting and naming

A nonnumeric import or an upstream formula error needs attention before trigonometry. Do not hide a singularity by wrapping the calculation in IFERROR(…;0), because that substitutes a meaningful-looking zero for an undefined value.

COT is cotangent; COTH is hyperbolic cotangent, and ACOT is inverse cotangent. Similar spelling does not make them interchangeable. The existing lifecycle evidence establishes desktop Calc support without establishing its original introduction release or a last functioning release.

Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.

Documentation and verification

  • LibreOffice Calc Help
  • The standalone example was calculated using LibreOffice Calc 25.2.3.2 on October 9, 2026 and its computed result matched the expected value. This does not certify every option, version, or other example.

Detailed reference checked October 17, 2026