MyInternships.in

Free online graphing tool

Tangent Graph Calculator (y = tan x)

The tangent graph looks nothing like sine or cosine. Because tan x = sin x / cos x, the curve shoots off to infinity wherever cos x = 0 — producing a vertical asymptote at every odd multiple of π/2.

Between two consecutive asymptotes the curve rises continuously from −∞ to +∞, then repeats. That repeat happens every π radians, not 2π, so tangent has half the period of sine and cosine.

Key points of y = a tan(b x) inside the visible window (-6.283 ≤ x ≤ 6.283). Pan or zoom to search a different range.

Roots (x-intercepts)

  • x = -3.14159
  • x = 0
  • x = 3.14159

y-intercept

  • y = 0

Turning points

  • Max (-4.7124, 6.06e11)
  • Min (-4.7124, -6.06e11)
  • Max (-1.5708, 2.57e12)
  • Min (-1.5708, -2.57e12)
  • Max (1.5708, 2.56e12)
  • Min (1.5708, -2.57e12)
  • Max (4.7124, 6.06e11)
  • Min (4.7124, -6.06e11)

Intersections

No crossing with another curve

Enter a value of x

What is a tangent graph calculator?

A tangent graph calculator plots y = tan(x) = sin(x)/cos(x). The curve has period π, passes through zero at every multiple of π, and has a vertical asymptote wherever cos x = 0 — that is at ±π/2, ±3π/2 and so on. Tangent has no amplitude because its range is all real numbers.

Key facts at a glance

Definitiontan x = sin x / cos x
Periodπ (not 2π)
Vertical asymptotesx = π/2 + nπ, where cos x = 0
Zerosx = 0, ±π, ±2π … (every multiple of π)
AmplitudeNone — the range is all real numbers
Symmetrytan(−x) = −tan(x) — an odd function
Value at 45°tan(π/4) = 1
Gradient at the origin1, so y = x is the tangent line there

How to plot tangent graphs — step by step

  1. 1

    Plot the tangent curve

    Type y = tan(x). Notice the curve breaks at each asymptote instead of joining up.

  2. 2

    Find the asymptotes

    They sit at π/2, 3π/2 and so on. Turn on the π-axis labels (already on here) to identify them at a glance.

  3. 3

    Change the period

    Drag the b slider. y = tan(2x) repeats every π/2, so the asymptotes crowd together.

  4. 4

    Check the zeros

    The Key points tab lists the roots — every multiple of π. The asymptotes are correctly excluded, because a break is not a root.

Tangent examples you can plot right now

Copy any equation into the calculator above, or open it in the full calculator with one click.

The basic tangent

y = tan(x)

Period π, asymptotes at ±π/2, ±3π/2.

Plot this →

Compressed tangent

y = tan(2x)

Period π/2 — twice as many branches in the same width.

Plot this →

Stretched vertically

y = 3tan(x)

Steeper branches, but the asymptotes and zeros stay put.

Plot this →

Cotangent

y = cot(x)

The reciprocal: asymptotes at multiples of π and zeros at odd multiples of π/2.

Plot this →

Why the breaks happen

y = cos(x)

Plot this alongside tan x — every zero of cosine lines up with an asymptote of tangent.

Plot this →

Understanding the tangent graph

Why the pen lifts at an asymptote
The function is undefined there, so no point exists on the graph. Drawing a vertical line would falsely suggest tan(π/2) has a value; this calculator detects the jump and breaks the curve instead.
Period π, not 2π
Both sine and cosine change sign after π, so their ratio returns to the same value — tangent therefore completes a full cycle in half the distance.
Tangent as gradient
The tangent of an angle equals the gradient of a line at that angle to the horizontal. A 45° line has gradient 1, matching tan(π/4) = 1.

Tangent graph — frequently asked questions

How do I graph tan x online?

Type y = tan(x) into the calculator above. The vertical asymptotes appear as breaks in the curve, which is mathematically correct — the function has no value there.

Why does the tangent graph have gaps?

Because tan x = sin x / cos x is undefined wherever cos x = 0. At those x-values the curve has a vertical asymptote, so the calculator lifts the pen rather than drawing a false vertical line.

What is the period of the tangent function?

π radians, or 180°. That is half the period of sine and cosine. For y = tan(bx) the period becomes π/|b|.

Where are the asymptotes of y = tan x?

At x = π/2 + nπ for every integer n — so ±π/2, ±3π/2, ±5π/2 and so on. For y = tan(bx) they occur at x = (π/2 + nπ)/b.

Does the tangent graph have an amplitude?

No. Amplitude only makes sense for a bounded wave, and tangent takes every real value between its asymptotes. Multiplying by a makes the branches steeper but sets no maximum.

How do I plot cot, sec and cosec?

Type y = cot(x), y = sec(x) or y = csc(x) — all three are built in, each with its own pattern of asymptotes.

Every graph type

Hiring engineering or analytics talent in India?

MyInternships.in connects 1,20,000+ students and freshers — from IITs, NITs, IIITs and every major engineering and commerce college in India — with 5,000+ companies. Post an internship or fresher role in minutes, screen candidates by skill, campus and graduation year, and hire without any commission.

Free to use, no signup. Part of the MyInternships.in free tools for students.