How the Cofunction Calculator works
Cofunction identities relate a trigonometric function of an angle to a different function evaluated at that angle's complement. Two angles are complementary when they add up to 90° (or π/2 radians). The three cofunction pairs are sine/cosine, tangent/cotangent, and secant/cosecant.
The formulas
For any angle θ:
- sin(θ) = cos(90° − θ) and cos(θ) = sin(90° − θ)
- tan(θ) = cot(90° − θ) and cot(θ) = tan(90° − θ)
- sec(θ) = csc(90° − θ) and csc(θ) = sec(90° − θ)
This calculator takes the angle and function you choose, computes the function's value directly, finds the complementary angle (90° − θ, or π/2 − θ in radians), and evaluates the cofunction at that complementary angle to show that both sides of the identity agree.
Why the identities hold
In a right triangle, the two non-right angles always sum to 90°. The side that is "opposite" one of those angles is "adjacent" to the other. Since sine is opposite over hypotenuse and cosine is adjacent over hypotenuse, viewing the triangle from the complementary angle swaps which side is opposite and which is adjacent — turning a sine into a cosine, and vice versa. The same reasoning, applied to the other side ratios, gives the tan/cot and sec/csc pairs.
Where the functions are undefined
Tangent and secant divide by cosine, so they are undefined wherever cos(θ) = 0 — at 90°, 270°, and every 180° after that. Cotangent and cosecant divide by sine, so they are undefined wherever sin(θ) = 0 — at 0°, 180°, 360°, and so on. The calculator checks for these cases and flags them instead of returning an infinite result.
Reading the output
The "Function Value" and "Cofunction Value" results should always match (within floating-point rounding), because that agreement is exactly what the identity states. If you change the angle unit to radians, the calculator converts internally so the same identities still hold using π/2 in place of 90°.