🇺🇸 USC
Math & Conversion
📐

Trigonometry Calculator

Find sin, cos, tan & inverses, or solve a right triangle

✅

Last updated October 2026

Method: Ratios follow the unit-circle definitions (NIST DLMF §4.14). Angles in degrees and multiples of π are reduced exactly, so every multiple of 15° returns an exact value such as √3/2 and cos 90° is exactly 0; other angles use double-precision math. Decimal radians are reduced with π to 250 digits, so large inputs stay accurate. The right triangle is solved with the SOH-CAH-TOA ratios and the 180° angle sum.

Included: sin, cos, tan and the reciprocals csc, sec and cot with exact forms at multiples of 15°; arcsin, arccos and arctan with domain checks; degree and radian input, including entries such as π/6; coterminal and reference angles; and a right triangle solution with both acute angles, area and perimeter.

Not included: oblique (non-right) triangles, which need the law of sines or the law of cosines, complex-number arguments, and exact forms for angles that are not multiples of 15°. Decimal results are rounded for display.

Disclaimer: This is a free educational tool, not professional engineering, surveying or construction advice. Displayed values are rounded for display, so verify any safety-critical result independently before relying on it.

Mode
Angle unit

📐 sin of 30°

0.5= 1/2
cos
0.866025 = √3/2
tan
0.57735 = √3/3

🔺 Reciprocal ratios

csc = 1/sin
2
sec = 1/cos
1.154701 = 2√3/3
cot = cos/sin
1.732051 = √3

🔁 The same angle

Degrees
30°
Radians
π/6 ≈ 0.523599
Coterminal angle from 0° up to 360°
30°
Reference angle (to the x-axis)
30°
Angles in degrees, or multiples of π in radians, are reduced exactly, so multiples of 15° such as 30°, 45° or π/2 give exact values (cos 90° = 0, tan 90° undefined). Other results use double-precision math and are rounded for display.

Trigonometry calculator: everything you need to know

A trigonometry calculator (trig calculator) finds sin, cos, tan and their inverses for any angle and solves right triangles. Enter 30° and it returns sin 30° = 0.5 (exactly 1/2), cos 30° ≈ 0.8660 (√3/2) and tan 30° ≈ 0.5774 (√3/3). Switch to triangle mode and one angle plus one side gives every side, the second angle, the area and the perimeter.

Trigonometry answers questions about angles and lengths. If you know two sides of a right triangle and no angle, the Pythagorean Theorem Calculator is faster. For triangles without a right angle, use the Law of Sines or Law of Cosines calculators, and to bring a large or negative angle back into the range from 0° to 360°, the Coterminal Angle Calculator shows every step.

The three core ratios: SOH-CAH-TOA

In a right triangle, the three primary trig functions relate one acute angle to two of the three sides. Label the side opposite the angle, the side adjacent to it, and the hypotenuse (always the longest side, across from the 90° corner):

sin θ = opposite ÷ hypotenuse
cos θ = adjacent ÷ hypotenuse
tan θ = opposite ÷ adjacent

The mnemonic SOH-CAH-TOA packs all three into one phrase: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. Because the hypotenuse is the longest side, sine and cosine of an acute angle always fall between 0 and 1, while tangent can grow without bound as the angle approaches 90°.

The reciprocal ratios

Three more functions are simply the reciprocals of the first three. They appear constantly in calculus and physics identities, so the calculator reports them too:

csc θ = 1 ÷ sin θ
sec θ = 1 ÷ cos θ
cot θ = cos θ ÷ sin θ = 1 ÷ tan θ

Where a denominator hits zero (for example, cos 90° = 0 makes both tan and sec undefined), the calculator says undefined instead of showing a misleading huge number.

Degrees vs radians

The same physical angle can be written two ways. Degrees divide a circle into 360 parts; radians measure the angle by the arc it sweeps on a unit circle, so a full turn is 2π radians. Convert with:

radians = degrees × (π ÷ 180)  |  degrees = radians × (180 ÷ π)

That makes 180° = π ≈ 3.1416 radians, 90° = π/2 ≈ 1.5708, 60° = π/3 ≈ 1.0472, 45° = π/4 ≈ 0.7854 and 30° = π/6 ≈ 0.5236. Switching the unit at the top of the calculator converts the angle you typed, so 30 becomes π/6 and the ratios stay the same. In radian mode you can also type multiples of π directly, such as 2π/3 or 3pi/4.

How to use this trigonometry calculator

  1. Pick a mode: "Trig ratios" for all six ratios of an angle, "Inverse" to find the angle for a ratio such as 0.5 or √3/2, or "Right triangle" to find missing sides.
  2. Choose your unit: degrees or radians. In radians you can type π/6, 3π/4 or pi/4. The quick-pick chips load common angles for you.
  3. Enter the angle (ratios mode), or the acute angle plus one side (triangle mode), choosing whether that side is the hypotenuse, the opposite, or the adjacent side.
  4. Read the result: the large primary value updates as you type, with no submit button.
  5. Scan the supporting cards: reciprocal ratios, the angle in degrees and radians with its coterminal and reference angles, and (in triangle mode) the step-by-step SOH-CAH-TOA derivation with a Pythagorean cross-check.

Worked example 1: ratios of 30°

Enter 30 in degrees. The calculator returns sin 30° = 0.5 exactly, cos 30° ≈ 0.8660 (that is √3/2), and tan 30° ≈ 0.5774 (that is 1/√3 = √3/3). The reciprocals come out as csc 30° = 2, sec 30° ≈ 1.1547 (2√3/3) and cot 30° ≈ 1.7321 (√3). Switching to Inverse mode and entering 0.5 returns arcsin 0.5 = 30°, confirming the round trip. In radians the same angle reads as π/6 ≈ 0.5236, and all the ratios are identical because the angle itself has not changed, only its label.

Worked example 2: a ladder against a wall

A ladder leans against a wall at a 70° angle to the ground and its foot is 1.2 m from the wall. The 1.2 m is the side adjacent to the 70° angle, so switch to triangle mode, set the angle to 70°, choose "Adjacent" (side b), and enter 1.2. These are the calculator's default triangle values. The solver returns the ladder length (the hypotenuse) as c = b ÷ cos 70° ≈ 3.51 m, the height it reaches as a = b × tan 70° ≈ 3.30 m, and the second angle as 20°. This is a textbook CAH/TOA problem, solved without you having to rearrange a single formula by hand.

Worked example 3: roof rise from run and angle

A roof slopes at 25° and has a horizontal run of 16 ft from the eave to the ridge line. The run is the adjacent side, so the vertical rise is a = 16 × tan 25° ≈ 7.46 ft, and the rafter length (hypotenuse) is 16 ÷ cos 25° ≈ 17.65 ft. The area of that right-triangle cross-section is about 59.7 ft². Carpenters use exactly this calculation, often phrased as "rise over run", to cut rafters to length. Since 12 × tan 25° ≈ 5.6, the same roof has a pitch of about 5.6/12, and the Roof Pitch Calculator converts between angles and pitches. If instead you already know the rise and run and only need the rafter (hypotenuse) length, the Pythagorean Theorem Calculator gets there without any angle at all.

Reference table: exact values of common angles

These angles show up so often that their values are worth memorizing. The exact forms use the square roots √2 ≈ 1.4142 and √3 ≈ 1.7321:

Degrees Radians sin cos tan
0°0010
30°π/6 ≈ 0.52361/2 = 0.5√3/2 ≈ 0.86601/√3 ≈ 0.5774
45°π/4 ≈ 0.7854√2/2 ≈ 0.7071√2/2 ≈ 0.70711
60°π/3 ≈ 1.0472√3/2 ≈ 0.86601/2 = 0.5√3 ≈ 1.7321
90°π/2 ≈ 1.570810undefined
180°π ≈ 3.14160−10

sin, cos and tan table for every 5° from 0° to 90°

Looking up a single value like cos 25° or cos 70°? This decimal table lists all three primary ratios (plus the radian measure) for every 5° across the first quadrant, computed to four places. Read across the row for your angle.

Angle Radians sin cos tan
0°0.00000.00001.00000.0000
5°0.08730.08720.99620.0875
10°0.17450.17360.98480.1763
15°0.26180.25880.96590.2679
20°0.34910.34200.93970.3640
25°0.43630.42260.90630.4663
30°0.52360.50000.86600.5774
35°0.61090.57360.81920.7002
40°0.69810.64280.76600.8391
45°0.78540.70710.70711.0000
50°0.87270.76600.64281.1918
55°0.95990.81920.57361.4281
60°1.04720.86600.50001.7321
65°1.13450.90630.42262.1445
70°1.22170.93970.34202.7475
75°1.30900.96590.25883.7321
80°1.39630.98480.17365.6713
85°1.48350.99620.087211.4301
90°1.57081.00000.0000undefined

How to compute n × cos θ and n × sin θ

A search like "4 cos 30" or "20 cos 30" means "multiply the ratio by a number": evaluate the trig value first, then multiply. Below are worked answers to common multiples. Because cos 30° and sin 60° both equal √3/2 ≈ 0.866025, every row built on them is a multiple of that value; for example, 2 × cos 30° = √3 ≈ 1.7321.

Expression Ratio value Result
2 × cos 30°0.86601.7321
4 × cos 30°0.86603.4641
10 × cos 30°0.86608.6603
20 × cos 30°0.866017.3205
60 × cos 60°0.500030.0000
16 × sin 25°0.42266.7619
20 × cos 45°0.707114.1421
100 × sin 60°0.866086.6025

Worked step by step: 4 × cos 30°

Order of operations matters: evaluate the trig function before multiplying. Here is "4 cos 30" broken into steps:

Step Action Value
1Evaluate cos 30° (exact √3/2)0.866025
2Multiply by 44 × 0.866025
3Result (= 2√3)3.4641

Who this calculator is for

  • Students checking homework on the unit circle, trig ratios, or right-triangle problems.
  • DIY builders and trades figuring out rafter lengths, ramp angles, stair stringers and ladder reach.
  • Surveyors, drafters and makers converting between angles and distances on the fly.
  • Programmers and game developers sanity-checking sin/cos values before wiring them into code (remembering that most languages use radians).
  • Anyone who needs a quick degree-to-radian conversion or the exact value of a common angle.

Inverse trig functions explained

The inverse (or "arc") functions reverse the ratios: give arcsin a value and it returns the angle whose sine is that value. Because each ratio repeats endlessly around the circle, the inverses return only the principal value: arcsin lies from −90° to 90°, arccos from 0° to 180°, and arctan strictly between −90° and 90° (NIST DLMF §4.23). arcsin and arccos are defined only for values from −1 to 1, so arcsin 2 is undefined, while arctan accepts any real number. So arcsin(0.5) = 30°, arccos(0.5) = 60°, and arctan(1) = 45°. This is why entering an angle, reading its sine, and then taking arcsine may not return your starting angle if it was outside the principal range; the Inverse mode notes this under its results.

Key terms at a glance

  • Hypotenuse: the side opposite the right angle; always the longest side of a right triangle.
  • Opposite / adjacent: defined relative to the angle you are working with: the opposite side faces the angle, and the adjacent side touches it (other than the hypotenuse).
  • Unit circle: a circle of radius 1 used to define sin and cos for any angle as the y- and x-coordinates of a point on the circle.
  • Period: sin and cos repeat every 360° (2π); tan repeats every 180° (π). That periodicity is why large and negative angles are valid inputs.
  • Principal value: the single angle an inverse function returns from its restricted output range.
  • Reference angle: the acute angle between the terminal side and the x-axis, from 0° to 90°; the calculator shows it, along with the coterminal angle from 0° up to 360°, for every angle you enter.

Trig identities worth knowing

Beyond the raw ratios, a handful of identities tie the functions together and let you simplify expressions or check a result by a second route. The most fundamental is the Pythagorean identity, which falls straight out of the unit circle:

sin² θ + cos² θ = 1
1 + tan² θ = sec² θ
1 + cot² θ = csc² θ

Two more families show up constantly. The co-function identities say that a function of an angle equals the co-function of its complement: sin θ = cos(90° − θ), tan θ = cot(90° − θ), and so on, which is exactly why the two acute angles of a right triangle trade their sines and cosines. The even/odd identities describe symmetry: cosine is even, so cos(−θ) = cos θ, while sine and tangent are odd, so sin(−θ) = −sin θ and tan(−θ) = −tan θ. These are the reason a negative angle on this calculator flips the sign of the sine and tangent but leaves the cosine alone. If you ever doubt a value, plug it back into sin² θ + cos² θ and confirm it lands on 1.

The unit circle and the four quadrants

The cleanest way to extend trig past the 0° to 90° of a right triangle is the unit circle: a circle of radius 1 centered on the origin. For any angle measured counter-clockwise from the positive x-axis, the point where the angle's ray meets the circle has coordinates (cos θ, sin θ). Tangent is then the slope of that ray, sin θ ÷ cos θ. This single picture explains every sign rule you need:

  • Quadrant I (0° to 90°): x and y are both positive, so all six functions are positive.
  • Quadrant II (90° to 180°): x is negative and y positive, so only sine (and its reciprocal cosecant) stays positive.
  • Quadrant III (180° to 270°): both coordinates are negative, so only tangent (and cotangent) is positive.
  • Quadrant IV (270° to 360°): x is positive and y negative, so only cosine (and secant) is positive.

The classic mnemonic "All Students Take Calculus" names which function is positive in each quadrant: All, Sine, Tangent, Cosine. Because the circle repeats, adding or subtracting a full turn (360° or 2π) lands you on the same point. That periodicity is what lets this calculator accept an angle like 750° and treat it as 30°.

Related concepts and where to go next

Trigonometry connects to several other tools on this site. To find a missing side of a right triangle when you already know two sides (no angle needed), the Pythagorean Theorem Calculator applies a² + b² = c² directly. For triangles without a right angle, the Law of Sines and Law of Cosines calculators take over, and the Triangle Calculator handles general combinations of sides and angles. The Arc Length Calculator uses radians to turn an angle into a distance along a circle, and the Coterminal Angle Calculator reduces any angle to the range from 0° to 360°. For roots like √2 and √3 that appear in exact trig values, the Square Root Calculator helps, and for broader number crunching with built-in trig keys, try the Scientific Calculator.

Sources

⚠️ Common mistakes & edge cases

Calculator stuck in the wrong angle unit

A very common error: computing sin 30 in radian mode and getting ≈ −0.988 instead of 0.5. Always confirm whether you want degrees or radians; this calculator labels the active unit and converts the angle when you switch.

Mixing up opposite and adjacent

"Opposite" and "adjacent" are relative to the angle, not fixed labels. If you swap them you will use cos where you needed sin (or tan upside down). Identify which side faces your angle before choosing a ratio.

Expecting a finite tan at 90°

tan 90° and sec 90°, and csc and cot at 0° and 180°, are undefined because they divide by zero. A result of "infinity" or a giant number is a red flag: the value does not exist, which is why this calculator shows undefined.

Trusting an inverse to return your exact input

Inverse functions only output the principal value. arcsin(sin 150°) returns 30°, not 150°. When you need the original angle, account for the function's restricted range and the quadrant you started in.

Typing 3.14 instead of π

sin 3.14 is about 0.0016, not 0, because 3.14 is only close to π. In radian mode, type π or pi (for example π/2 or 3pi/4) to get exact values such as sin π = 0 and cos(π/2) = 0.

Note: Displayed decimals are rounded. At multiples of 15° the calculator also shows the exact form, such as √3/2 or 2 − √3, and the reference table above lists the most common ones.

❓ Frequently asked questions

How do I find sin, cos and tan of an angle?

Enter the angle, pick degrees or radians, and the calculator returns all six trig ratios as you type. Sine is the ratio of the opposite side to the hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent (the SOH-CAH-TOA memory aid). The reciprocal ratios cosecant, secant and cotangent are 1/sin, 1/cos and cos/sin. At every multiple of 15° the exact form is shown next to the decimal, for example sin 60° = 0.866025 = √3/2.

What is SOH-CAH-TOA?

SOH-CAH-TOA is a mnemonic for the three primary trig ratios in a right triangle: SOH means Sine = Opposite / Hypotenuse, CAH means Cosine = Adjacent / Hypotenuse, and TOA means Tangent = Opposite / Adjacent. 'Opposite' and 'adjacent' are relative to the angle you are looking at; the hypotenuse is always the longest side, across from the right angle.

What is the difference between degrees and radians?

Degrees split a full circle into 360 equal parts; radians measure the same angle by arc length, where a full circle is 2π radians. To convert, multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees. So 180° = π radians, 90° = π/2, and 45° = π/4. Switching the unit converts the angle you typed, so 30 becomes π/6 and the ratios stay the same.

Why is tan(90°) undefined?

Tangent equals sin divided by cos, and cos(90°) = 0. Dividing by zero is undefined, so tan(90°), tan(270°) and similar angles have no finite value. The calculator shows the word undefined at these angles instead of a huge number. The same applies to secant (1/cos) at 90° and to cosecant (1/sin) and cotangent (cos/sin) at 0° and 180°, where sin = 0.

What does the inverse trig function give me?

Inverse functions go the other way: given a ratio, they return an angle. In Inverse mode, arcsin (sin⁻¹), arccos (cos⁻¹) and arctan (tan⁻¹) answer 'what angle has this sine, cosine or tangent?'. Because each ratio repeats for infinitely many angles, they return only the principal value: arcsin from −90° to 90°, arccos from 0° to 180°, and arctan strictly between −90° and 90°. arcsin and arccos accept only values from −1 to 1; arctan accepts any real number.

How do I solve a right triangle from an angle and one side?

Switch to Right triangle mode, enter one acute angle and one side (the hypotenuse, the side opposite the angle, or the side adjacent to it). Using sin, cos and tan, the calculator finds the other two sides, the second acute angle (90° minus your angle), the area and the perimeter. This is the everyday use of trigonometry for ramps, roofs, ladders and surveying.

What are the exact values for common angles?

Several angles have clean exact values worth memorizing: sin 30° = 1/2, cos 30° = √3/2; sin 45° = cos 45° = √2/2 ≈ 0.7071; sin 60° = √3/2, cos 60° = 1/2; tan 45° = 1. At 0° sine is 0 and cosine is 1; at 90° sine is 1 and cosine is 0. Multiples of 15° have exact forms too, such as sin 15° = (√6 − √2)/4 and tan 75° = 2 + √3. The calculator shows these exact forms automatically, and the reference table on this page lists the common ones side by side.

Can this calculator handle negative or very large angles?

Yes. Trig functions are periodic, so an angle like 390° gives the same ratios as 30°, and −30° gives the negatives of the 30° sine and tangent. The calculator reduces the angle exactly, so even 3,600,030° returns exactly 1/2 for the sine, and it shows the coterminal angle between 0° and 360° and the reference angle. For the triangle solver, however, the angle must be strictly between 0° and 90° because the two angles that are not the right angle are always acute.

What are cosecant, secant and cotangent used for?

They are the reciprocal ratios: cosecant = 1/sin, secant = 1/cos, and cotangent = cos/sin (or 1/tan). They appear often in calculus, physics and engineering identities; for example, the derivative of tan is sec², and many integrals are written using sec and csc. For basic triangle work you rarely need them, which is why sin, cos and tan get top billing.

Can I type π in radian mode?

Yes. In radian mode, type multiples of π such as π/6, 2π/3, −3π/4 or 3pi/4 (the letters pi work too). They are converted to exact degrees, so sin(π/6) is exactly 1/2 and cos(π/2) is exactly 0. A decimal such as 3.14159 is evaluated as typed; it is close to π but not equal to it, so its sine is about 0.0000027 rather than 0.

What are coterminal and reference angles?

Coterminal angles share the same terminal side, so they differ by whole turns of 360° (2π): 390°, 30° and −330° are coterminal and have identical trig values. The reference angle is the acute angle between the terminal side and the x-axis, from 0° to 90°. For 150° it is 30°, which is why sin 150° = sin 30° = 1/2. The calculator shows both for any angle you enter.

Is this trig calculator free and does it work offline?

Yes, it is free with no sign-up, and all computation runs in your browser; nothing is sent to a server. Once the page has loaded it keeps working even if your connection drops, which makes it handy for homework and fieldwork.

What is cos 90°?

cos 90° = 0 exactly. On the unit circle, a 90° angle points straight up, so its x-coordinate (which is the cosine) is zero. This is also why tan 90° and sec 90° are undefined: both divide by cos 90° = 0. By contrast sin 90° = 1. In radians, 90° is π/2 ≈ 1.5708.

How do I calculate something like 4 cos 30° or 20 cos 30°?

Evaluate the trig function first, then multiply; order of operations puts cos before the multiplication. Since cos 30° = √3/2 ≈ 0.866025, you get 4 × cos 30° ≈ 3.4641 (exactly 2√3), 20 × cos 30° ≈ 17.3205, and 2 × cos 30° ≈ 1.7321. The table above lists the most common multiples worked out.

💡 Good to know

Programming languages use radians

JavaScript, Python, C and most others expect radians in Math.sin and friends. If you are coding and getting strange results, convert your degrees with degrees × π/180 first. Because π itself is rounded in code, Math.cos(Math.PI / 2) returns about 6.1 × 10⁻¹⁷ instead of 0; this calculator reduces degree inputs exactly first, which is why it shows cos 90° = 0.

sin and cos always live between −1 and 1

If a sine or cosine result lands outside the range from −1 to 1, something has gone wrong in the calculation. Only tangent and the reciprocal functions can exceed that range or become undefined.

Pythagoras is your free cross-check

After solving a right triangle, verify that a² + b² = c². The triangle mode shows this check automatically, so you can trust the sides before cutting wood or pouring concrete.

Related Calculators