Graph of y = tan x

Trigonometric functions · Updated 2026-11-26

Quick answer

The graph of y = tan x is a trigonometric function. Its domain is x ≠ π/2 + kπ and its range is all real numbers. It crosses the x-axis at (−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0) and the y-axis at (0, 0). Asymptotes: Vertical at x = π/2 + kπ.

−8−6−4−22468−5−4−3−2−112345
  • y=tan(x)
Open in graphing calculator

Click the curve to show intercepts and turning points.

Key features

Domainx ≠ π/2 + kπ
RangeAll real numbers
x-intercepts(−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0) (shown for −2π ≤ x ≤ 2π; the pattern repeats)
y-intercept(0, 0)
Turning pointsNone
Symmetryodd (symmetric about the origin)
Periodπ
AsymptotesVertical at x = π/2 + kπ
End behaviorAs x → −∞, y oscillates; as x → ∞, y oscillates
Derivativey′ = sec²(x)
Second derivativey″ = 2sec(x)(sec(x)·tan(x))

Tangent equals sin x / cos x, so it blows up wherever cos x = 0.

Table of values

x0π/6π/4π/3π/2π3π/22π
y00.5773511.732051.63312×10^1605.44375×10^150

How to graph y = tan x

  1. Open the graphing calculator and type y = tan(x).
  2. Plot the y-intercept (0, 0).
  3. Plot the x-intercepts: (−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0), (6.28319, 0).
  4. Draw the asymptotes as dashed lines: Vertical at x = π/2 + kπ.
  5. Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.

About trigonometric functions

Trigonometric functions are periodic: the graph repeats after a fixed horizontal distance called the period. Angles are in radians.

Frequently asked questions

What is the domain and range of y = tan x?

Domain: x ≠ π/2 + kπ. Range: All real numbers.

What are the x-intercepts of y = tan x?

(−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0).

What is the derivative of tan x?

sec²(x). Graph it by defining f(x) = tan(x) and typing f'(x).

Is tan x even, odd or neither?

It is odd (symmetric about the origin).