Trigonometry Calculator

sin(angle)—
cos(angle)—
tan(angle)—
Angle in radians—

How Trigonometry Calculator is calculated: sin(θ) = opposite ÷ hypotenuse · cos(θ) = adjacent ÷ hypotenuse · tan(θ) = opposite ÷ adjacent

What is trigonometry?

Trigonometry is the study of triangles — specifically, the relationships between their angles and their sides. The whole subject rests on three ratios: sine, cosine, and tangent. Give a right triangle one angle, and these ratios tell you how its sides relate. Give it two sides, and they tell you the angle.

The ratios come from a simple fact: all right triangles with the same angles have the same shape, just at different sizes. So the ratio of opposite to hypotenuse is the same for every triangle with a 30-degree angle — always 0.5. That is what makes trigonometry a tool rather than a curiosity: one angle determines the ratios, whatever the size of the triangle.

This calculator takes one angle, in degrees or radians, and returns all three ratios plus the angle converted to radians. It is the quick reference for students, builders, engineers, and anyone who needs sin, cos, and tan together. Everything runs in your browser, so nothing is uploaded or stored.

The three ratios, and how they fit together

In a right triangle, pick an acute angle θ. The side across from it is the opposite, the side next to it is the adjacent, and the longest side is the hypotenuse. Sine is opposite ÷ hypotenuse, cosine is adjacent ÷ hypotenuse, and tangent is opposite ÷ adjacent. For the default angle of 30 degrees, sin is 0.5, cos is 0.87, and tan is 0.58.

The three are not independent. Tangent is sine divided by cosine: 0.5 ÷ 0.87 is 0.58, which matches the tangent directly. And sine and cosine obey the identity sin²(θ) + cos²(θ) = 1: 0.25 + 0.75 is 1. Those two checks — tan = sin ÷ cos, and the squares adding to 1 — are the fastest way to confirm a set of trig values is consistent.

The angle in radians is shown as a fourth result because so much of mathematics works in radians. 30 degrees is 0.52 radians, 90 degrees is 1.57, and 180 degrees is 3.14. The conversion is radians = degrees × π ÷ 180, and it runs in both directions: degrees = radians × 180 ÷ π.

Degrees or radians: pick the right unit

Degrees and radians measure the same angle in different units, and mixing them up is the most common trigonometry mistake there is. 30 degrees is 0.5236 radians. Type 30 with the unit set to radians and you get sin(30 radians), which is −0.99 — a completely different answer for what looks like the same input.

Degrees are what people use in everyday life: a 90-degree corner, a 30-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: the trigonometry of 30°

Type 30 with the unit set to degrees. The calculator converts 30 degrees to 0.5236 radians and returns sin 0.5, cos 0.87, tan 0.58, and the angle in radians as 0.52. The sine is exact: in a right triangle with a 30-degree angle, the opposite side is exactly half the hypotenuse.

Check the values against each other. The cosine, 0.87, is √3 ÷ 2, or about 0.8660. The identity holds: 0.5² + 0.8660² is 0.25 + 0.75, which is 1. The tangent, 0.58, is 0.5 ÷ 0.8660, which is 0.5774. Every number on the page comes from the same angle, so they must agree — and they do.

Now try 180 degrees. Sin 180° is 0, cos 180° is −1, tan 180° is 0, and the angle in radians is 3.14. And at 45 degrees: sin 0.71, cos 0.71, tan 1, radians 0.79. The 45-degree case is the symmetric one — sine and cosine equal, tangent exactly 1 — and it is the easiest to remember of all the common angles.

The angles worth memorising

A few angles come up so often that they are worth knowing by heart. At 0 degrees, sin is 0, cos is 1, tan is 0. At 30 degrees, sin is 0.5, cos is 0.87, tan is 0.58. At 45 degrees, sin is 0.71, cos is 0.71, tan is 1. At 60 degrees, sin is 0.87, cos is 0.5, tan is 1.73. At 90 degrees, sin is 1, cos is 0, and tan is undefined.

Notice the pattern: the sine column at 0, 30, 45, 60, 90 is 0, 0.5, 0.71, 0.87, 1 — rising steadily — and the cosine column is the same numbers in reverse. That is no accident: cos(θ) equals sin(90° − θ), so the cosine of 30 is the sine of 60. Learn one column and you have the other for free.

The tangent column has no such neat symmetry, because it is a ratio of the two: 0, 0.58, 1, 1.73, and then undefined. At 90 degrees the cosine is zero, so the tangent does not exist — the calculator shows a dash, which is the honest answer. A scientific calculator gives the same values for any angle, including ones that are not on this short list.

Where trigonometry is used

Trigonometry is the maths of heights and distances. A surveyor who knows the angle to the top of a building and the distance to its base finds the height with one multiplication: height = distance × tan(angle). A navigator splits a course into north and east components with sine and cosine. A builder finds the length of a roof slope from the rise and the angle. When the triangle is not right-angled, the area needs a different approach, and a triangle area calculator handles that case from base and height or three sides.

In physics, trigonometry resolves forces into components. A force pulling at an angle does part of its work horizontally and part vertically, and sine and cosine split it exactly. Waves — sound, light, alternating current — are described with sines and cosines, and the whole of signal processing is built on them.

Astronomers have used trigonometry since antiquity to measure distances they could never walk. The distance to the Moon was first worked out from the angle it subtends and a known baseline on Earth, and the same triangulation still measures the distance to nearby stars. On a smaller scale, a phone camera uses the same triangles to judge depth, turning the angle between two lenses into a distance in metres.

In computer graphics and games, trigonometry positions everything on circles and rotates every object on the screen. A point at angle θ on a circle of radius r sits at (r cos θ, r sin θ). A slope calculator covers the gradient side of the same idea, turning a rise and a run into the angle whose tangent they are.

Common trigonometry mistakes

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

The third mistake is reading tan 90° as zero or as infinity. It is undefined — the calculator shows a dash, which is correct. The fourth mistake is rounding too early: using 0.87 for cos 30° 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 trig functions repeat. Sin 150° is 0.5, the same as sin 30°, because the two angles are mirror images. If an answer looks right but the angle feels wrong, the angle may be the supplement of the one you wanted. Sketch the triangle before trusting the number.

How to use this trigonometry calculator

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

Read the sine as the headline result, with cosine, tangent, and the radian value underneath. Check the set against itself: tan should equal sin ÷ cos, and sin² + cos² should be 1. 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 ratio on its own, the sine, cosine, and tangent calculators each put that ratio first — this page is for when you want all three at once, plus the radian conversion. One angle in, four answers out, all checked against each other.

Frequently Asked Questions

Sin 30° is 0.5, cos 30° is 0.87 and tan 30° is 0.58. The angle is 0.52 radians. The values check out: 0.5 ÷ 0.87 is 0.58, and 0.5² + 0.87² is very nearly 1.

30 degrees is 0.5236 radians, shown as 0.52. The conversion is radians = degrees × π ÷ 180. A full circle is 2π radians, a half circle is π, and a right angle is π ÷ 2, about 1.5708 radians.

Because tan(θ) = sin(θ) ÷ cos(θ), and cos 90° is 0. Dividing by zero is not allowed, so tan 90° has no value. This calculator shows a dash for it. Near 90° the tangent is very large — tan 89° is 57.29 — but at 90° itself it does not exist.

It is always exactly 1, for any angle. For 30°, sin² is 0.25 and cos² is 0.75, which add to 1. This identity is a good way to check your work: if the squares of the sine and cosine do not add to 1, something is wrong.

More free tools

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