Plotline

Tangent graph

Loading…

Graph of y = tan(x)

The tangent graph repeats every π, passes through the origin, and has vertical asymptotes at x = π/2 + πn where cos(x) = 0 and tan(x) is undefined.

Graph of y = tan x with repeating rising branches separated by vertical asymptotes at x = ±π/2.
y = tan x: period π, asymptotes at x = π/2 + kπ.

At a glance

What it isGraph y = tan(x) online. Period π, zeros at πn and vertical asymptotes at π/2 + πn. See every branch of the tangent graph. Free.
TypeInteractive guide with a calculator
LevelHigh school and college
PriceFree, with no account or sign-up
Works offlineYes, after the first visit; installs as an app
Made byAalok (aalok.builds@gmail.com)
Last updated1 November 2026

Key facts

Periodπ (180°)
Zerosx = πn
Vertical asymptotesx = π/2 + πn
RangeAll real numbers
Definitiontan(x) = sin(x) ÷ cos(x)

Why does tangent have asymptotes?

tan(x) = sin(x) ÷ cos(x), so wherever cos(x) = 0 the value blows up to +∞ or −∞. Plotline breaks the curve at each asymptote instead of drawing false vertical lines.

How to use it in Plotline

  1. The graph of y = tan(x) is already loaded above. Edit the equation in the list to change it.
  2. Drag the graph to move around, scroll or pinch to zoom, and tap the crosshair to reset the view.
  3. Hover over or tap the curve to read the coordinates of any point.
  4. Press Enter to add another equation and compare graphs in different colors.

Frequently asked questions

What is the period of tan(x)?

π, or 180°, which is half the period of sine and cosine. The graph repeats every π units, with a vertical asymptote at x = π/2 and then at every π after that.

Is it free?

Yes. The graphing calculator is free with no account and no sign-up: plot as many equations as you like, use sliders, save graphs in your browser and share them by link. It installs as an app and keeps working offline.

Learn more

Related

Free calculators

Plotline is an independent project and is not affiliated with Desmos, Texas Instruments or Casio.