Cosine Calculator

cos(angle)—
sin(angle)—
tan(angle)—

How Cosine Calculator is calculated: cos(θ) = adjacent ÷ hypotenuse — in a right triangle, the cosine of an angle is the adjacent side over the hypotenuse

What is cosine?

Cosine is a ratio from a right triangle. Pick one of the acute angles, look at the side next to it — the one that is not the hypotenuse — and divide that side by the hypotenuse. That ratio is the cosine of the angle. Like sine, it has no unit, and it always lies between −1 and 1.

The cosine of 60 degrees is exactly 0.5. That means in any right triangle with a 60-degree angle, the side next to that angle is exactly half the hypotenuse. The cosine of 0 degrees is 1: the adjacent side has become the hypotenuse. The cosine of 90 degrees is 0: there is no adjacent side left at all.

This calculator takes an angle in degrees or radians and returns the cosine, the sine, and the tangent together. The three are shown as a set because they are almost always needed together, and because knowing all three lets you check your own work. Everything runs in your browser, so nothing is uploaded or stored.

How cosine is calculated from an angle

In a right triangle, cos(θ) = adjacent ÷ hypotenuse. For a 3-4-5 triangle, the angle next to the side of 4 has cosine 4 ÷ 5, which is 0.8, and the angle next to the side of 3 has cosine 3 ÷ 5, which is 0.6. The identity sin²(θ) + cos²(θ) = 1 holds for both: 0.8² + 0.6² is 0.64 + 0.36, which is exactly 1.

When the angle is given in degrees, it is first converted to radians, because the cosine function works in radians underneath: radians = degrees × π ÷ 180. So 60 degrees becomes 1.0472 radians, and cos(1.0472) is 0.5. If you type the angle in radians already, no conversion happens — the calculator uses your number as it is.

For angles beyond 90 degrees the cosine keeps working, falling to −1 at 180 degrees and coming back to 1 at 360. The calculator handles the full circle, and negative angles too: cos(−60°) is 0.5, the same as cos(60°), because cosine is symmetric. A scientific calculator gives the same cosine for a single angle if you want to cross-check.

Degrees or radians: pick the right unit

Degrees and radians are two ways of measuring the same angle, and mixing them up is the most common cosine mistake there is. 60 degrees is 1.0472 radians. Type 60 with the unit set to radians and you get cos(60 radians), which is −0.95 — a completely different answer for what looks like the same input.

Degrees are what people use in everyday life: a 90-degree corner, a 60-degree roof slope, a 45-degree cut. Radians are what mathematics and programming use, because they make the formulas simpler: a full circle is 2π radians, a half circle is π, and a right angle is π ÷ 2, which is about 1.5708.

The rule is simple: match the unit to the number you have. If your angle came from a protractor or a drawing, it is in degrees. If it came from a formula or a piece of code, it is probably in radians. The unit selector sits right under the angle box, so check it every time — it is the one setting that can silently turn a right answer wrong. A triangle calculator works in degrees throughout, if that is the unit you are thinking in.

A worked example: cos 60°

Type 60 with the unit set to degrees. The calculator converts 60 degrees to 1.0472 radians and returns cos 0.5, sin 0.87, and tan 1.73. The cosine is exact: in a right triangle with a 60-degree angle, the adjacent side is exactly half the hypotenuse, so cos 60° is 0.5 with no rounding involved.

The sine is 0.87, which is the square root of 3 divided by 2, or about 0.8660. Check the identity: 0.5² + 0.8660² is 0.25 + 0.75, which is 1, as it must be. The tangent is sin ÷ cos, which is 0.8660 ÷ 0.5, or 1.7321, shown as 1.73. Every value on the page comes from the same angle, so they must agree with each other — and they do.

Now try 0 degrees. Cos 0° is 1, sin 0° is 0, and tan 0° is 0. And at 180 degrees, cos is −1, sin is 0, and tan is 0 again. The cosine starts at 1, falls to 0 at 90 degrees, reaches −1 at 180, and comes back — one full wave per circle. That wave is the shape of alternating current and of sound.

Where cosine is used

Cosine turns an angle into a horizontal distance. A ladder 10 metres long leaning at 60 degrees to the ground reaches a horizontal distance of 10 × cos 60°, which is 5 metres from the wall. The same ladder's height is 10 × sin 60°, which is 8.66 metres. One angle, two projections — cosine for the horizontal, sine for the vertical.

In physics, cosine is how work is calculated: work equals force times distance times the cosine of the angle between them. Push straight along the direction of motion and cos 0° is 1, so all the force counts. Push at 90 degrees and cos 90° is 0, so none of it counts. In navigation, cosine splits a bearing into its north component, just as sine gives the east one.

Roofers and carpenters use cosine for the horizontal run of a slope. A rafter 6 metres long at 30 degrees to the horizontal spans 6 × cos 30°, which is 5.20 metres across the building, while its vertical rise is 6 × sin 30°, which is 3 metres. One angle and one length give both dimensions of the roof, which is why a single cosine is often all a cutting list needs.

In computer graphics, cosine positions things on circles alongside sine, and the dot product — the core of lighting, shading, and collision — is built on cosine. A slope calculator covers the related question of gradient, which is the tangent of the same angle the cosine describes.

Cosine vs sine and tangent

Cosine, sine, and tangent are three views of the same triangle. Cosine is adjacent over hypotenuse, sine is opposite over hypotenuse, and tangent is opposite over adjacent — the same as sine divided by cosine. For 60 degrees, cosine is 0.5, sine is 0.87, and tangent is 1.73, and 0.87 ÷ 0.5 is indeed 1.73.

Cosine is sine shifted by 90 degrees: cos(θ) equals sin(90° − θ). So cos 60° is the same as sin 30°, which is 0.5. That shift is why the two are always shown together — knowing one at an angle tells you the other at the complementary angle, and the two add to the identity sin² + cos² = 1.

Tangent is the odd one out because it can be undefined. Where sine and cosine stay between −1 and 1, the tangent runs from minus infinity to plus infinity, blowing up wherever the cosine is zero. At 90 degrees the tangent is undefined, and near 90 degrees it is enormous — tan 89° is 57.29. A Desmos scientific calculator plots all three curves if you want to see the shapes.

Common cosine mistakes

The first mistake is the unit: typing degrees while the calculator is set to radians, or the reverse. Cos 60 in radians is −0.95, not 0.5. Always check the unit selector before reading the answer. The second mistake is confusing adjacent with opposite — cosine uses the side next to the angle, sine uses the side across from it. Swap them and you get the complementary angle's value.

The third mistake is reading cos 90° as 1. It is 0: at 90 degrees the adjacent side has shrunk to nothing. Cos 0° is the one that equals 1. The fourth mistake is rounding too early: using 0.87 for sin 60° inside a longer calculation instead of the full 0.8660, which can shift the final answer by more than the rounding looks like it should.

The fifth mistake is forgetting that cosine is symmetric: cos(−60°) equals cos(60°), but cos(120°) is −0.5, not 0.5. Past 90 degrees the cosine goes negative, and that sign matters in physics — a negative cosine means the force is working against the motion, not with it.

How to use this cosine calculator

Type the angle, then set the unit to degrees or radians to match the number you typed. The default is 60 degrees, which gives cos 0.5, sin 0.87, and tan 1.73. The results update live as you type, so you can sweep through angles and watch the values move.

Read the cosine as the headline result. The sine and tangent sit underneath for checking: sin² + cos² should be 1, and tan should equal sin ÷ cos. If those checks fail, the unit is probably wrong.

Everything runs in your browser. No account, no sign-up, no data sent anywhere. For a single quick cosine, the numbers here are the same as any scientific calculator — the advantage of this page is that all three ratios are shown together, with the unit made explicit. A quick check against the identity sin² + cos² = 1 confirms the set.

Frequently Asked Questions

Cos 60° is 0.5. In a right triangle with a 60-degree angle, the side next to the angle is exactly half the hypotenuse. Sin 60° is 0.87 and tan 60° is 1.73.

Cos 90° is 0. At 90 degrees the adjacent side has shrunk to nothing, so the ratio is 0. Sin 90° is 1, and tan 90° is undefined because it would mean dividing by zero.

In a right triangle, sine is the opposite side over the hypotenuse and cosine is the adjacent side over the hypotenuse. They are the same function shifted by 90 degrees: cos(θ) = sin(90° − θ). For 60°, cos is 0.5 and sin is 0.87.

Use whichever unit your angle is already in. Angles from drawings and construction are in degrees; angles from formulas and code are usually in radians. The two are related by radians = degrees × π ÷ 180, so 60° is 1.0472 radians. Mixing them up gives a wrong answer.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.