Omni Calculator logo

Cofunction Calculator

Created by Maciej Kowalski, PhD candidate
Reviewed by Steven Wooding
Last updated: Jan 18, 2024

Welcome to Omni's cofunction calculator, where we'll study the cofunction identities and how to use them. In essence, in trigonometry, there are six functions that fully describe the relations between the angles and sides of a triangle. As such, they are connected to one another, so we often think of them as pairs: sin and cos, tan and cot, sec, and csc. Today we'll look into those relations and learn how to go from one map to its pair, i.e., its cofunction.

So sit back, relax, and enjoy some good mathematics!

Trigonometric functions

Before we see what a cofunction is, we need to start with the basics. And in geometry, we can't go more basic than triangles: three sides, three vertices, three inside angles. In some sense, there can be no simpler polygon.

We, however, are most interested in a particular type of triangle: right triangles (you know, the ones that the Pythagorean theorem is all about). One of their angles is always 90°90\degree (hence, the name), so we already have some information about our shape even before we draw it.

Moreover, we can observe some other dependencies that make the triangle look the way it does. After all, if we increase one of the acute angles, we can easily see that the opposite side will have to get longer too. This observation is, more or less, the idea behind trigonometry: to somehow relate a triangle's inside angles to its sides. We focused on that topic in our trigonometry calculator.

We define trigonometric functions as ratios between a right triangle's sides. Below you can find a picture with the formulas for all six of them. (Note how in the cofunction calculator, there's one identity for each of them.)

Trigonometric functions in a right triangle.

🔎 Trigonometric functions (sin, cos, tan) are all ratios. Therefore, you can find the missing terms using nothing else than our ratio calculator!

For instance, we see that the sine is equal to the leg opposite the angle divided by the hypotenuse. Observe how we never mention how big the triangle is. In fact, that's where a crucial property of trigonometry lies: even if we scale the triangle to twice its size, if we keep the angles intact, the values of the trigonometric functions will not change.

However, the above formulas, with all their grace, have a major flaw. We've defined them using a right triangle, so the angle can only be between 00 and 9090 degrees (or 00 and π/2\pi/2 in radians). But don't sulk! Fortunately for us, for mathematics, and the whole world, there is a way to fix it! The only thing we need to do is translate the reasoning to a two-dimensional Euclidean space, i.e., the plane.

Let A=(x,y)A = (x,y) be a point on the plane, and define α\alpha to be the angle going counterclockwise from the positive half of the horizontal axis to the line segment whose endpoints are (0,0)(0,0) and AA. (Note how we said that α\alpha goes from one line to the other and not that it's just the angle between them. That's why we often call α\alpha a directed angle.)

Obviously, α\alpha can now be larger than 90°90\degree. In fact, it can even go beyond 360°360\degree. For such angles, we just consider the first 360°360\degree to be the first lap around (0,0)(0,0), and from that value, we continue with the second one (and, if need be, the third, fourth, etc.). In fact, it's even more than that - α\alpha can also be negative. After all, we said that it's a directed angle, so for negative values, we simply reverse the direction, i.e., go clockwise instead of counterclockwise.

Now that we understand angles of all sizes, we can define the trigonometric functions for them and the point A=(x,y)A = (x,y). The rule here is quite simple: we repeat the formulas from the figure above, but substitute bb for xx, aa for yy, and cc for x2+y2\sqrt{x^2 + y^2}, i.e., the distance from (0,0)(0,0) to AA. For example, the secant will now take the form:

sec(α)=x2+y2x\sec(\alpha) = \frac{\sqrt{x^2+y^2}}{x}

Alright, we got to know trigonometric functions from the point of their definitions, so we're ready to dig deeper. After all, the name "cofunction calculator" is what brought us here, and we still don't know how to find a cofunction. For that, the best means is through the functions' graphs.

The cofunction graphs: sin and cos, tan and cot, sec and csc

The six trigonometric functions are sine and cosine (denoted sin\sin and cos\cos), tangent and cotangent (tan\tan and cot\cot), and secant and cosecant (sec\sec and csc\csc).

You may already see why we paired them the way we did from the names alone. In each couple, we have the "basic" function and a map with the same name but with an additional prefix "co-". The resemblance to the word "cofunction" is far from coincidental. In each of the pairs, we say that one is the cofunction of the other.

"But what does it mean to be a cofunction?" Well, we're glad you asked! We'll see the cofunction identities in detail in the next section. First, however, let's try to motivate them by looking at the functions' graphs in pairs and spotting the similarities.

We begin with sine and cosine.

Plot of sin(x) in <-2π,2π> range.Plot of cos(x) in <-2π,2π> range.

They look almost the same, don't they? The sine is just the cosine moved by 90°90\degree (or π/2\pi/2 in radians) to the right.

For our purposes, let's focus on the area from 0°0\degree to 90°90\degree and imagine that you're traveling this distance along the slopes of both curves but in different directions: the sine from 0°0\degree to 90°90\degree and the cosine from 90°90\degree to 0°0\degree. Can you see that the paths are then the same?

Speaking of slopes, the slope calculator can help you understand this concept and show how to find it. Be sure to check it if you're in need!

Let's try to do something similar for the tangent and cotangent graphs.

Plot of tan(x) in <-2π,2π> range.Plot of cot(x) in <-2π,2π> range.

Again, if we trace the tangent curve from 0°0\degree to 90°90\degree, and the cotangent from 90°90\degree to 0°0\degree, we'll notice that we're going along a similar path.

Lastly, we have the sec and csc functions.

Plot of sec(x) in <-2π, 2π> range.Plot of csc(x) in <-2π,2π> range.

As you might have guessed, the story repeats itself for the secant and cosecant.

In essence, this is what characterizes cofunctions. We could say that their graphs are mutual reflections if we put a mirror in the midpoint of the (0°,90°)(0\degree,90\degree) interval, i.e., at 45°45\degree. This, in turn, means that the value of a trigonometric function at xx should be the same as the cofunction's value at point 90°x90\degree - x. And this is precisely what the cofunction identities state.

Cofunction identities

As mentioned in the previous section, we divide trigonometric functions into pairs. In each, one is the cofunction of the other. This means that their graphs (and hence, values) are mutual reflections in the interval (0°,90°)(0\degree,90\degree). Therefore, the value of the first at point xx is the same as the other at 90°x90\degree - x for xx from the interval.

If you'd like to please a few big-headed scientists, we can write the above paragraph equivalently using mathematical notation. It'd look like so:

sin(90°x)=cosx,cos(90°x)=sinxtan(90°x)=cotx,cot(90°x)=tanxsec(90°x)=cscx,csc(90°x)=secx\scriptsize \sin ( 90 \degree\! -\! x ) = \cos x, \cos ( 90 \degree\! -\! x ) = \sin x \\ \tan ( 90 \degree\! -\! x ) = \cot x, \cot ( 90 \degree\! -\! x ) = \tan x \\ \sec ( 90 \degree\! -\! x ) = \csc x, \csc ( 90 \degree\! -\! x ) = \sec x

However, remember that they work only for angles between 0°0\degree and 90°90\degree. The above formulas rely on the fact that the angles to either side of the == sign are complementary, i.e., they sum up to 90°90\degree.

In fact, there is a way to consider other angles as well. It is, however, tricky. Here, we had the convenience that all the functions admit positive values in the interval (0°,90°)(0\degree,90\degree). Outside it, things can become negative. Also, there appears the issue of where to put "the mirror," which reflects the cofunctions.

Despite the obstacles, through hours of hard work, mathematicians were able to come up with formulas that generalize the cofunction identities. They are called the trigonometric reduction formulas (not the concept described in the power reducing calculator, mind you). Although we won't give them here, we happily encourage you to look them up and enjoy some extra mathematical knowledge. It certainly beats scrolling through social media if you ask us.

And with that, we declare the end of theory for today! Arguably, we've spent quite some time learning definitions and formulas. Why not take on some examples, and put the cofunction identities to good use?

Example: using the cofunction calculator

Say that you've decided to do some remodeling in your living room. After all, there's at least one silver lining to the coronavirus lockdown — you have a lot of time on your hands.

Your plan is to fix the flooring and maybe replace the tiles with wood. The problem is that you need the measurements, and the room is not a perfect rectangle; there are a couple of slant walls. Fortunately, you still remember a thing or two from college, and after some head-scratching, you realize that you'll need the cosine of 45°45\degree and the cotangent of 30°30\degree for further calculations.

There is an issue, though. It's been a few years since your last trigonometry lesson, and you can't recall the formulas for the cosine or cotangent. What you do remember are the sine and the tangent. Oh, how well the cofunction identities calculator fits into this scenario!

(Alright, we admit that the details are a little far-fetched, but please, give us a break. The imagination of Omni's content developers can only stretch so far.)

First of all, let's see how easy the task is when we have the cofunction calculator at hand. There, we begin by choosing the function that we have. Firstly, we choose the cosine, i.e., cos(x)\cos(x), from the list. Once we have that, we move to the variable field below, which contains the angle. We input 45°45\degree from our problem, and the moment we do that, the cofunction calculator will spit out the answer underneath: the cofunction along with the value. Similarly, for the second case, we choose the cotangent (cot(x)\cot(x)) from the list and input 30°30\degree.

Observe how each time the tool gives us a precise value (i.e., in the form of a fraction with square roots) apart from the rounded-up one. We will explain why it is so in a second. Also, although the cofunction calculator strives for precision, you might want to reduce the number of significant figures in the answer for any further calculations.

Now, let's leave Omni's tool aside and see how to find the answer ourselves. We will follow the steps below:

  1. Draw a right triangle with the angle given;
  2. Use cofunction identities to transform the function we're seeking into its cofunction; and
  3. Calculate the value of the cofunction by taking the ratios of the triangle's sides.

We begin with the45°45\degree angle.

Special right triangle: 45-45-90

Observe that it's an example of quite a special triangle in which we know the relations between the sides, i.e., we know that if the leg is of length xx, then the hypotenuse must be x2x\sqrt{2}. This is because our shape is, in fact, half of a square, where the long side is the square's diagonal. The special right triangles calculator can tell you more about this type of triangle.

Now, we recall the cofunction identities from the previous section and use them to transform cos(45°)\cos(45\degree) into a sine:

cos(45°)=sin(90°45°)=sin(45°)\cos(45\degree) = \sin(90\degree - 45\degree) = \sin(45\degree)

This way, we can use the sine formula to find the answer. In the first section, we said that it's the leg opposite the angle divided by the hypotenuse. That gives:

cos(45°)=sin(45°)=xx2=12=22\begin{split} \cos(45\degree) &= \sin(45\degree) =\frac{x}{x\sqrt{2}}\\ &= \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2} \end{split}

We move on to the 30°30\degree case. Again, we start with a drawing.

Special right triangle: 30-60-90

As before, we're fortunate enough to know the relations between the sides. This time, it's because our shape is, in fact, half of an equilateral triangle.

We use the cofunction identities to transform cot(30°)\cot(30°) into a tangent:

cot(30°)=tan(90°30°)=tan(60°)\cot(30\degree) = \tan(90\degree - 30\degree) = \tan(60\degree)

Note that although the angle in question changed, we can still use the same picture. This will always be the case with cofunction identities since we're always dealing with complementary angles, that is, ones that form the acute angles of the same right triangle.

Lastly, we recall the tangent formula from the first section: the function returns the leg opposite the angle divided by the other one. In our case, this is:

cot(30°)=tan(60°)=x3x=3\begin{split} \cot(30\degree) &= \tan(60\degree) = \frac{x\sqrt{3}}{x} \\ &= \sqrt{3} \end{split}

Done! We found the trigonometric functions we needed; we're ready to take care of these tiles and upgrade the living room. Surely, it will be so much cozier once you install plywood. And when you're done, why not go further and figure something out for the bedroom?


How do I use the cofunction identities?

Cofunction identities allow you to determine the value of a trigonometric function given the value of the cofunction (of your function) at the angle that is complementary to your angle. For instance, you can easily find cos(20°) if you know sin(70°) because sine and cosine are cofunctions and 70° + 20° = 90°.

What is x for which sin(x) = cos(15°) holds?

The answer is x = 75°. We know that sine and cosine are cofunctions, i.e., their values agree on complementary angles. So, x and 15° must be complementary: x + 15° = 90°. Hence, x = 75°, as claimed.

How do I find sine with cosine?

To determine sin(x) given cos(x), follow these steps:

  1. Compute the square of cos(x).
  2. Subtract cos²(x) from 1.
  3. Take the square root of the result from Step 2. Remember, there are two possible results: one positive and one negative.
  4. What you've got are the two possible values of sin(x). If you know, e.g., that your angle x is acute, then its sine is positive.
  5. The full form of the formula we've applied is sin²(x) + cos²(x) = 1.

How do I find sine with cosine and tangent?

To determine the sine of an angle given its cosine and tangent, you need to multiply cosine by tangent. The formula you need is:

sin(α) = tan(α) × cos(α)

Maciej Kowalski, PhD candidate
Related calculators
The cofunction identities.
Angle (x)
For visual comparison of cofunctions, be sure to check out their graphs in the article.
Check out 21 similar trigonometry calculators 📐
ArccosArcsinArctan… 18 more
People also viewed…


The antilog calculator determines the value of an antilogarithm with an arbitrary base.

Cyclomatic complexity

With our cyclomatic complexity calculator, you will quickly determine if your program is too intricate!

Ideal egg boiling

Quantum physicist's take on boiling the perfect egg. Includes times for quarter and half-boiled eggs.


The perfect snowman calculator uses math & science rules to help you design the snowman of your dreams!
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service