Sine, Cosine and Tangent Calculator

Quick answer

Sine, cosine and tangent are ratios of the sides of a right triangle. Sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent (SOH-CAH-TOA). So sin 30 degrees = 0.5, cos 60 degrees = 0.5 and tan 45 degrees = 1, while tan 90 degrees is undefined.

Updated 2026-09-26By Shakeel MuzaffarReviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Trigonometry
Pick an angle, or two sides of a right triangle.
deg
Any angle, including negative or over 360.
Check this first. Most wrong answers come from the wrong unit.
Result
--
----
----
----
----
----
----
----
----

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Calculator

  1. Choose From an angle or From a right triangle.
  2. For an angle, type the value and pick degrees or radians. You get all six ratios, the reference angle and the quadrant.
  3. For a triangle, fill in any two sides and leave the third blank. You get the angle, the missing side and the three ratios.
  4. Use Copy, Save or Print to keep the result.

The angle in triangle mode is the one between the adjacent side and the hypotenuse, across from the opposite side.

What Sine, Cosine and Tangent Are

In a right triangle, each trig function compares two sides as seen from one angle. The side across from the angle is the opposite side. The leg touching it is the adjacent side. The longest side is the hypotenuse.

SOH-CAH-TOA: sin(theta) = opposite / hypotenusecos(theta) = adjacent / hypotenusetan(theta) = opposite / adjacent

The other three functions are simply the flips of these. They show up in calculus and physics.

Reciprocals: csc = 1/sin, sec = 1/cos, cot = 1/tan

Because the ratios depend only on the angle, any two triangles with the same angles give the same sine, cosine and tangent.

The Unit Circle

Triangles only cover angles between 0 and 90 degrees. The unit circle extends trig to every angle. Draw a circle of radius 1 at the origin and turn by the angle from the positive x-axis. The point you land on gives cosine and sine.

(x, y) = (cos theta, sin theta), tan = sin / cossin^2 + cos^2 = 1

The signs change by quadrant. A handy phrase is "All Students Take Calculus": all ratios are positive in Quadrant I, only sine in II, only tangent in III and only cosine in IV.

QuadrantAnglesPositive ratios
I0 to 90 degAll six
II90 to 180 degsin, csc
III180 to 270 degtan, cot
IV270 to 360 degcos, sec

The reference angle is the acute angle to the nearest x-axis. It gives the size of each ratio, and the quadrant gives the sign.

Special Angles Table

These five angles have exact values that are worth knowing by heart. They come from the 30-60-90 and 45-45-90 triangles.

DegreesRadianssincostan
00010
30pi/61/2sqrt(3)/2sqrt(3)/3
45pi/4sqrt(2)/2sqrt(2)/21
60pi/3sqrt(3)/21/2sqrt(3)
90pi/210undefined

As decimals, sqrt(3)/2 is about 0.866025, sqrt(2)/2 is about 0.707107 and sqrt(3)/3 is about 0.57735.

Degrees vs Radians

A full turn is 360 degrees or 2 pi radians, so 180 degrees equals pi radians. The same number means very different angles in each unit. That is why this calculator asks for the unit next to the angle.

For conversions and a full explanation, use our degrees vs radians calculator.

Worked Example

Take a right triangle with an opposite side of 3 and an adjacent side of 4.

Step 1: The two known sides are opposite and adjacent, so use TOA. tan(theta) = 3 / 4 = 0.75.

Step 2: Undo the tangent with arctan.

theta = arctan(3/4) = 36.869898 deg

Step 3: The hypotenuse is sqrt(3 x 3 + 4 x 4) = 5. So sin(theta) = 0.6 and cos(theta) = 0.8. The other acute angle is 53.130102 degrees.

Common Mistakes

1. Using the Wrong DEG/RAD Mode

This is the most common error. sin(30) in radian mode is about -0.988, not 0.5. Always check the unit before you trust the answer.

2. Expecting a Number for tan 90 Degrees

Tangent is sine over cosine, and cos 90 degrees is 0. The value is undefined, not a huge number. The same goes for sec 90, cot 0 and csc 0 degrees.

3. Forgetting the Inverse Range

Inverse functions return only one angle. arcsin and arctan give answers from -90 to 90 degrees, and arccos gives 0 to 180. Another angle may share the same ratio.

4. Swapping Opposite and Adjacent

These names depend on which angle you use. The opposite side for one acute angle is the adjacent side for the other.

Accuracy and Limitations

Results use standard double precision math and show up to 6 decimal places. Values within 1e-10 of 0, 1 or -1 are snapped, so sin 180 degrees shows 0 rather than a tiny leftover.

What it does well

  • All six ratios for any angle
  • Undefined values shown as undefined
  • Right triangles from any two sides

What it does not do

  • Give exact forms like sqrt(3)/2
  • Solve triangles without a right angle
  • List every angle with a given ratio

How We Calculate

Method
Angle mode reduces the angle to one turn, then finds sine and cosine. The other four ratios come from them. Triangle mode uses arctan, arcsin or arccos, and the Pythagorean theorem for the missing side.
Inputs used
An angle and its unit, or two sides of a right triangle.
Definitions
Follow the NIST Digital Library of Mathematical Functions, section 4.14.
Assumptions
Triangle mode assumes a right angle between the two legs.
Rounding
Up to 6 decimal places; values within 1e-10 of 0, 1 or -1 are snapped.
Edge cases
Division by zero shows undefined. Sides must be positive, exactly two must be given, and the hypotenuse must be the longest side.
Last reviewed
2026-09-26.

Frequently Asked Questions

What is SOH-CAH-TOA?

SOH-CAH-TOA is a memory aid for right triangles. Sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent.

Why is tan 90 degrees undefined?

Tangent equals sine divided by cosine. At 90 degrees the cosine is 0, and you cannot divide by zero, so tan 90 degrees has no value. The calculator shows undefined instead of a huge number.

Why does my calculator give a strange answer for sin 30?

It is probably in radian mode. In radians, sin(30) is about -0.988, because 30 radians is a very different angle from 30 degrees. Switch to degrees and sin 30 gives 0.5.

What are csc, sec and cot?

They are the reciprocal functions. Cosecant is 1 divided by sine, secant is 1 divided by cosine, and cotangent is 1 divided by tangent, which is the same as cosine over sine.

How do I find an angle from two sides?

Use the inverse function that matches your two sides. With opposite and adjacent use arctan, with opposite and hypotenuse use arcsin, and with adjacent and hypotenuse use arccos. A 3-4-5 triangle gives about 36.87 degrees.

Can sine or cosine be greater than 1?

No, not for real angles. Sine and cosine are coordinates on a circle of radius 1, so they always fall between -1 and 1. Tangent can be any real number, while secant and cosecant are always at least 1 in size.

Is my information saved?

No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.

Sources

Related Guides

Related Calculators

Looking for more math tools?

Explore all math calculators

This calculator gives decimal values rounded to 6 places for learning and everyday work. For exact symbolic answers or critical engineering use, check results with a second method. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.