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.
At a glance
| What it is | Graph y = tan(x) online. Period π, zeros at πn and vertical asymptotes at π/2 + πn. See every branch of the tangent graph. Free. |
|---|---|
| Type | Interactive guide with a calculator |
| Level | High school and college |
| Price | Free, with no account or sign-up |
| Works offline | Yes, after the first visit; installs as an app |
| Made by | Aalok (aalok.builds@gmail.com) |
| Last updated | 1 November 2026 |
Key facts
| Period | π (180°) |
|---|---|
| Zeros | x = πn |
| Vertical asymptotes | x = π/2 + πn |
| Range | All real numbers |
| Definition | tan(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
- The graph of y = tan(x) is already loaded above. Edit the equation in the list to change it.
- Drag the graph to move around, scroll or pinch to zoom, and tap the crosshair to reset the view.
- Hover over or tap the curve to read the coordinates of any point.
- 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
- Sine graph – Graph y = sin(x) online.
- Cosine graph – Graph y = cos(x) online and compare it with sin(x).
- Reciprocal function (1/x) – Graph y = 1/x online and see its two branches and asymptotes at x = 0 and y = 0.
Free calculators
- Graphing Calculator – Graph functions, circles, inequalities, polar and parametric equations instantly.
- Scientific Calculator – Free online scientific calculator with sin, cos, tan, inverse trig, logs, powers, roots, factorials, degrees and radians.
- Basic Calculator – A simple, free online calculator for add, subtract, multiply, divide, percent, square and square root.
- Matrix Calculator – Free matrix calculator: determinant, inverse, multiplication, transpose, RREF, rank, trace and powers, with exact fractions.
Plotline is an independent project and is not affiliated with Desmos, Texas Instruments or Casio.