This tangent calculator will help you find the tangent of any angle you want. Just enter the angle in degrees or radians (gradians work too), and the tangent will appear in no time. If you want to understand what a tangent is, and you're curious about the tangent definition or the tangent formula derivation, keep reading — the "sin over cos" story is waiting for you down there.
What Is Tangent? Tangent Definition, Tangent Formula
Tangent is one of the three most common trigonometric functions (along with sine and cosine). It may be defined as:
The ratio of the sides opposite and adjacent to an angle in a right-angled triangle.
tan(α) = opposite / adjacent = a / b
But there's also another geometric concept named tangent. It's a line or plane that touches a curve or curved surface at a point, but if extended, it doesn't cross it at that point. The word tangent comes from the Latin tangere, which means "to touch" — and our trigonometric function name comes from that meaning too!
Draw a unit circle. Let point C be the intersection of the line containing the radius and the vertical line x = 1. Then tan(α) is simply the y-coordinate of point C. That's why the tangent shoots off to infinity as the angle approaches 90° — the radius becomes parallel to the line x = 1 and they never meet.
Important properties of the tangent function:
- The range (codomain) of tangent is all real numbers — it is unbounded;
- The tangent period is equal to π (180°), so tan(α + 180°) = tan(α);
- It's an odd function, which means that tan(−α) = −tan(α); and
- Tangent is undefined at 90°, 270°, and every odd multiple of 90° — there the graph has a vertical asymptote.
Tangent — Sin over Cos
The tangent of an angle may also be defined as its sine divided by its cosine. But why is it so? Have a look at a unit circle and it should be clear:
tan(α) = sin(α) / cos(α)
Because the cosine appears in the denominator, the tangent is undefined wherever cos(α) = 0 — that's exactly at 90° and 270°. This is the famous "sin over cos" identity, and it's the fastest way to compute a tangent when you already know the sine and cosine of the angle.
Law of Tangents
The law of tangents relates the tangents of two angles of a triangle to the lengths of the opposite sides. For a triangle with sides a and b and opposite angles α and β:
(a − b) / (a + b) = tan[(α − β)/2] / tan[(α + β)/2]
It's less famous than the law of sines or the law of cosines, but it's handy when you know two sides and the included angle and want to solve the triangle.
Tangent Table (tan 0, tan 30 degrees, tan 45 degrees…)
The exact tangent value is easy to remember for certain standard angles — you probably learned that tan 0° = 0, tan 45° = 1, or that tan 90° is undefined. Other basic angles are shown in the table below.
| α (degrees) | α (radians) | tan(α) — exact | tan(α) — decimal |
|---|---|---|---|
| 0° | 0 | 0 | 0 |
| 15° | π/12 | 2 − √3 | 0.2679491924 |
| 30° | π/6 | √3/3 | 0.5773502692 |
| 45° | π/4 | 1 | 1 |
| 60° | π/3 | √3 | 1.7320508076 |
| 75° | 5π/12 | 2 + √3 | 3.7320508076 |
| 90° | π/2 | undefined | ±∞ |
| 120° | 2π/3 | −√3 | −1.7320508076 |
| 135° | 3π/4 | −1 | −1 |
| 150° | 5π/6 | −√3/3 | −0.5773502692 |
| 180° | π | 0 | 0 |
Remember the periodicity of the tangent function — tan(α + 180°) = tan(α) — if your angle is not shown in the table above.
Tangent Calculator — Example of Use
- Enter the angle in the input field. For example, type 45.
- Choose the angle unit — degrees, radians, or gradians. Keep it on degrees for this example.
- Click Calculate.
- The calculator instantly shows the tangent value: tan(45°) = 1.
- It also shows the same angle converted to every unit, the related trig values (sin, cos, cot), and the quadrant the angle lands in.
Use the quick-value buttons to jump straight to standard angles like 0°, 30°, 45°, 60°, 90°, 120°, 135°, 180°, 270°, and 360°.
FAQs
What is the tangent of 0, 30, 45, 60, and 90 degrees?
tan 0° = 0, tan 30° = √3/3 ≈ 0.5774, tan 45° = 1, tan 60° = √3 ≈ 1.7321, and tan 90° is undefined (the graph has a vertical asymptote there). These values are the most commonly used and worth memorizing.
Is tangent an even or odd function?
Tangent is an odd function, meaning tan(−α) = −tan(α). Its graph is symmetric about the origin. Cosine, by contrast, is an even function.
Why is tan 90° undefined?
Because tan(α) = sin(α)/cos(α) and cos(90°) = 0. Dividing by zero is undefined, so the tangent shoots off toward ±∞ as the angle approaches 90°. The same happens at 270° and every odd multiple of 90°.
What is the period of the tangent function?
The tangent repeats every π radians (180°), not 2π like sine and cosine: tan(α + 180°) = tan(α). That's why the tangent graph shows a new branch every 180°.
How do I convert between degrees, radians, and gradians?
A full circle is 360° = 2π rad = 400 grad. To convert degrees to radians, multiply by π/180; to convert degrees to gradians, multiply by 10/9. This calculator shows all three units automatically.