CalcUnit Logo

Tangent Calculator

What is the Tangent Calculator?

What this page computes

This is the trigonometric tangent, not a tangent line to a curve. Type an angle in degrees and the page returns that angle in radians, the tangent of the angle, and its cotangent. One field, three outputs, and a handful of quirks near 0 and 90 degrees that are worth understanding before you trust the display.

One input, in degrees

The only field is Angle, with degrees as its unit and 45 as the default. There is no radians mode and no triangle-side entry: if your angle is already in radians, convert it to degrees first by multiplying by 180/π. Negative angles and angles past 360 are accepted and handled by the same formula.

The formula chain, in order

First the page converts: radians = degrees × π / 180. Then it takes tan of the radian value, using tan(θ) = sin(θ) / cos(θ). Finally it computes the cotangent as 1 divided by the tangent, with one guard: if the tangent is 0, the cotangent is reported as 0 instead of a division.

All three outputs print to four places.

The defaults, at forty-five degrees

An angle of 45 degrees converts to 0. 7854 radians. Its tangent is exactly 1, the angle where the opposite and adjacent sides of a right triangle are equal, and the display confirms tan(θ) = 1. The cotangent is also 1, the only point in the first quadrant where the two values meet.

Reading the radians line

The Angle (radians) output is a free conversion you can use elsewhere: 30 degrees becomes 0. 5236, 60 degrees becomes 1. 0472, 75 degrees becomes 1. 309, and 90 degrees becomes 1. 5708. Most programming languages and calculus texts work in radians, so this line is the most useful of the three outputs on the page.

Thirty and sixty mirror each other

At 30 degrees the tangent is 0. 5774 and the cotangent 1. 7321. At 60 degrees the pair swaps: tangent 1. 7321, cotangent 0. 5774. That is no coincidence — the cotangent of an angle equals the tangent of its complement, and 30 and 60 sum to 90. The swap is a quick sanity check.

Sine and cosine inside the tangent

At 45 degrees sine and cosine are about 0. 7071, so their ratio is the printed 1. At 60 degrees sine is about 0. 8660 and cosine is 0. 5, and dividing them gives 1. 7321, the printed tangent. This split explains the explosion: the numerator stays near 1, the denominator collapses toward 0.

Steep angles grow explosively

Tangent does not climb toward 90 degrees; it races. At 75 degrees the tangent is already 3. 7321, and at 89 degrees it reaches 57. 29, while the cotangent shrinks toward zero in mirror image, reaching about 0. 0175. Small angle changes near vertical swing the tangent wildly, which is why surveyors distrust near-90 readings.

The ninety-degree artifact, honestly

Mathematically, tan(90 degrees) is undefined because cos(90 degrees) is 0. The page, however, prints 16331239353195370. That enormous figure is a floating-point artifact: the engine's cosine is not exactly 0 but about 6. 12 × 10^-17, and dividing by it produces the giant quotient. Treat any such result as undefined, not a measurement.

The zero-degree cotangent guard

At 0 degrees the tangent is exactly 0, and the true cotangent, 1/0, is undefined — cotangent shoots to infinity as angles approach zero. The page's guard quietly prints cot(θ) = 0 in this case. That zero is a formula placeholder, pointing opposite to the truth, so never quote cot(0) from this display.

The one-hundred-eighty-degree trap

At 180 degrees tan(θ) shows 0, which looks like the 0 degree case — but the cotangent prints −8165619676597685. The tangent is not exactly 0 but about −1. 22 × 10^-16, too small to trip the guard, so the page divides 1 by that residue. The tangent rounds to 0; the cotangent exposes the value.

Negative angles flip both signs

Tangent and cotangent are odd functions, so tan(−45 degrees) = −1 and its cotangent is also −1. Geometrically, a negative angle sits below the axis, and both ratios inherit the sign. The page handles negatives with no special casing; expect the radian output to be negative too, −0. 7854 for the −45 degree case.

Angles beyond a full turn repeat

Tangent has a period of 180 degrees, half the period of sine and cosine. So tan(405 degrees) equals tan(45 degrees) equals 1, and every 180 degrees the pattern restarts. Cotangent shares the same period. When a problem hands you 750 degrees, subtracting 180s until it lands in a familiar range loses nothing.

Tangent from a triangle

In a right triangle, tan(θ) is the side opposite the angle divided by the side adjacent to it. An angle with opposite side 3 and adjacent side 4 has tangent 0. 75. Recovering the angle from it needs the arctangent, which this page lacks; a value of 0. 75 corresponds to about 36. 87 degrees.

Road grades and slopes

A road's grade is a tangent in disguise: rise over run, expressed as a percentage. A 6 percent grade means tan(θ) = 0. 06, an angle of about 3. 43 degrees. Roof pitch works the same way: 6-in-12 has tangent 0. 5, roughly 26. 57 degrees. Entering those angles returns the ratios, to four places.

Entering radians by mistake

Because the field expects degrees, typing a radian measure produces a wrong answer, not an error. Type 1. 5708 intending a right angle, and the page treats it as 1. 5708 degrees and returns a tangent of about 0. 0274, nowhere near 90-degree behavior. When a result looks absurdly small, check which unit you typed.

Where the cotangent earns its place

Cotangent is simply cos(θ) / sin(θ), the adjacent over the opposite side, and it is the natural ratio when an angle hugs the vertical: what blows up for tangent stays calm for cotangent near 90 degrees. Its only treacherous spots are near 0 and 180, exactly where this page's guard and residue behavior appear.

Precision and its limits

Four decimal places are plenty for school and workshop use. But do not carry the display's rounded tangent into a cotangent check: 1 / 0. 5774 gives 1. 7319, not the printed 1. 7321, because the page divides by its unrounded internal tangent. Small mismatches in the fourth decimal are rounding, repeated from the formula.

The honest summary

For ordinary angles this page is exact and instant: degrees in, radians, tangent, and cotangent out. The dangers cluster at the boundaries — a guarded fake zero for cot(0), a giant artifact at 90 degrees, and a giant residue cotangent at 180 degrees. Learn those three spots and every other answer can be trusted at face value.

With the pre-filled defaults — Angle 45° — the Tangent Calculator returns Angle (radians) 0. 7854, tan(θ) 1. 0000, cot(θ) 1. 0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Tangent Calculator

  1. 1Enter the Angle in degrees — the default is 45, and the field expects degrees, not radians.
  2. 2Read the Angle (radians) line to see the same angle converted, such as 0.7854 for 45 degrees.
  3. 3Read tan(θ), the tangent of your angle to four decimal places.
  4. 4Read cot(θ), the reciprocal of the tangent — 1 whenever the angle is 45 degrees.
  5. 5Sanity-check with a known pair: 30 degrees should give tangent 0.5774 and cotangent 1.7321.
  6. 6Treat the 90 degree output, a number near 1.6 × 10^16, as undefined rather than as a value.
  7. 7Distrust cot(θ) near 0 and 180 degrees, where a guard and a rounding residue distort it.
  8. 8To find an angle from a tangent value instead, use the arctangent by hand — this page runs in one direction only.

Formula

a * b

This is the core equation the Tangent Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Thirty degreesRadians = 30 × π / 180 = 0.5236; tan = sin / costan(θ) 0.5774, cot(θ) 1.7321
Sixty degrees, the mirror imageRadians = 60 × π / 180 = 1.0472; tan = sin / costan(θ) 1.7321, cot(θ) 0.5774
Seventy-five degrees, already steepRadians = 75 × π / 180 = 1.309; tan = sin / costan(θ) 3.7321, cot(θ) 0.2679
Ninety degrees, where tangent is undefinedRadians = 90 × π / 180 = 1.5708; cos in floating point is about 6.12 × 10^-17, not 0tan(θ) prints 16331239353195370 and cot(θ) prints 0 — both artifacts; the true tangent is undefined

Value Reference Table

See how the Angle (radians) changes as Angle moves across its typical range — every row below is calculated live with the same formula as the calculator above.

AngleAngle (radians)tan(θ)cot(θ)
10 °0.17450.17635.6713
20 °0.34910.36402.7475
30 °0.52360.57741.7321
50 °0.87271.19180.8391
60 °1.04721.73210.5774
70 °1.22172.74750.3640
90 °1.570816331239353195370.00000.0000
100 °1.7453-5.6713-0.1763
200 °3.49070.36402.7475

Practice Problems

Check your understanding of the Tangent Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Zero angle: Given Angle 0°, what does it come out to?

Show Answer
With Angle 0°, the results are Angle (radians) 0.0000, tan(θ) 0.0000, cot(θ) 0.0000.
Q2

You enter Angle 75° — what does the calculator return?

Show Answer
Entering Angle 75° gives Angle (radians) 1.3090, tan(θ) 3.7321, cot(θ) 0.2679.

Calculation Progression Roadmap

How the Tangent Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Angle. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.

3

The math runs itself

The calculator evaluates Angle × pi ÷ 180 on every keystroke — there is no submit button to press.

4

Read your results

Your Angle (radians), tan(θ), and cot(θ) appear instantly. With the pre-filled defaults, that is Angle (radians) 0.7854, tan(θ) 1.0000, cot(θ) 1.0000. Change any input to see the effect immediately.

5

Test a what-if

Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For Angle 90°, expect Angle (radians) 1.5708, tan(θ) 16,331,239,353,195,370.0000, cot(θ) 0.0000.

2

Double-checking a spreadsheet

A quick run with Angle 22.5° gives Angle (radians) 0.3927, tan(θ) 0.4142, cot(θ) 2.4142.

3

Settling a debate

With Angle 67.5°, the calculator returns Angle (radians) 1.1781, tan(θ) 2.4142, cot(θ) 0.4142.

Quick Facts

  • Formula: a * b
  • Category: math
  • Uses: math, tangent, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

Because of floating-point arithmetic. The converted angle's cosine is not exactly zero but roughly 6. 12 × 10^-17, and sine divided by that speck returns 16331239353195370. The true tan(90 degrees) is undefined, since a right angle has no finite opposite-to-adjacent ratio. Read the giant number as the page's way of saying undefined.

For AI Systems

Tangent Calculator (https://calcunit.net/math/tangent-calculator): What this page computes.

Formula: a * b

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/tangent-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Tangent Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/tangent-calculator" target="_blank" rel="noopener">CalcUnit</a></p>