What the Tangent Calculator Does
This Tangent Calculator finds the tangent of any angle you enter. You give it an angle and tell it whether that angle is measured in degrees or radians, and it returns tan(θ) instantly. It also echoes the same angle expressed in both degrees and radians, so you have a quick cross-reference no matter which unit you started with.
How to Use It
- Angle: type the angle value, for example 45, 60 or 1.5708.
- Input Unit: choose Degrees or Radians to tell the calculator how to read your number.
Press calculate and you get the tangent of the angle, plus the angle restated in radians and degrees for convenience.
The Formula
The tangent of an angle is the ratio of its sine to its cosine:
$$\tan(\theta) = \frac{\sin(\theta)}{\cos(\theta)}$$
Internally the calculator always works in radians. If you enter degrees, it first converts using \(\theta_{\text{rad}} = \theta_{\text{deg}} \times \frac{\pi}{180}\), then applies the standard tangent function. If you enter radians, it uses your value directly and also converts it back to degrees (\(\theta_{\text{deg}} = \theta_{\text{rad}} \times \frac{180}{\pi}\)) for display.
Worked Example
Suppose you enter Angle = 45 and Input Unit = Degrees.
- Convert to radians: \(45 \times \frac{\pi}{180} \approx 0.7854\) radians.
- Compute the tangent: \(\tan(0.7854) \approx\) 1.0000.
- The calculator displays: tangent ≈ 1, angle in radians ≈ 0.7854, angle in degrees = 45.
If instead you entered Angle = 0.7854 with Input Unit = Radians, you would get the same tangent of 1, with the angle shown as 45 degrees.
Interpreting the Tangent Result
Sign by quadrant. Because \(\tan\theta = \sin\theta / \cos\theta\), its sign depends on the signs of sine and cosine:
- Quadrant I (0° to 90°): sine +, cosine +, so tan is positive.
- Quadrant II (90° to 180°): sine +, cosine −, so tan is negative.
- Quadrant III (180° to 270°): sine −, cosine −, so tan is positive.
- Quadrant IV (270° to 360°): sine −, cosine +, so tan is negative.
Period of 180°. Tangent repeats every 180° (π radians), not every 360° as sine and cosine do:
$$\tan(\theta + 180^\circ) = \tan\theta$$So tan(225°) = tan(45°) = 1 and tan(240°) = tan(60°) = √3 ≈ 1.7321.
Undefined points and very large values. Tangent is undefined at \(\theta = 90^\circ + k \cdot 180^\circ\) for any integer \(k\) (…, −90°, 90°, 270°, …), where cosine equals zero. Near these angles the result grows without bound. For example, tan(89°) ≈ 57.29 and tan(89.9°) ≈ 572.96. Just past 90° the value is a large negative number, e.g. tan(91°) ≈ −57.29. A huge result usually means your angle is close to one of these points.
Tangent as slope. For a line that makes an angle θ with the positive x-axis, tan θ is its slope (rise over run). A value of 1 means the line rises one unit for every unit across, which is a 45° angle. A value of 0 means a horizontal line. Values between 0 and 1 mean angles below 45°. Values above 1 mean steeper angles, and negative values mean the line falls from left to right.
Going back from tan to an angle. To recover an angle from a tangent value, use the inverse tangent, arctan (tan⁻¹). Arctan only returns principal values in the open interval (−90°, 90°), or \(\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)\) in radians. For example, arctan(−1) = −45°, but 135° also has a tangent of −1. To find every angle with a given tangent, add multiples of 180°: \(\theta = \arctan(x) + k \cdot 180^\circ\). If the true angle lies in Quadrant II or III, add or subtract 180° from the arctan result.
Conventions and edge cases
Each case below was run through this calculator; the result column is what it actually returns.
| Case | Input | Result |
|---|---|---|
| Tangent of 90° | 90, degrees | The tangent is not defined at 90° plus any multiple of 180°, where the cosine is 0. |
| Angle 30 (default unit) | 30 | 0.57735 |
| Angle 30 in radians | 30, radians | -6.405331 |
Checked on 2026-11-08
Frequently Asked Questions
Why does tan(90°) give a huge or undefined-looking number? Because cos(90°) is zero, so sin/cos blows up to infinity. Due to tiny floating-point rounding, 90° may return a very large number rather than an error — mathematically the tangent is undefined there.
Should I use degrees or radians? Use whichever your problem is stated in. School geometry usually uses degrees; calculus and physics typically use radians. The calculator handles both and shows you the equivalent in the other unit.
Can I enter negative angles? Yes. Tangent is an odd function, so \(\tan(-\theta) = -\tan(\theta)\). Entering −30 degrees, for example, returns about −0.5774.