Tangent Function : Graph, Period, Asymptotes & Properties

#Trigonometry
TL;DR
The tangent function, $\tan\theta = \dfrac{\sin\theta}{\cos\theta}$, gives the slope of the line from the origin to a point on the unit circle. This article covers its definition, the tangent graph with vertical asymptotes, why the period is $\pi$ (not $2\pi$), its domain, range, odd symmetry, and worked examples.
BT
Bhanzu TeamLast updated on August 15, 202610 min read

The Function That Turns An Angle Into A Slope

A road sign that reads "12% grade" is a tangent value in disguise: for every 100 metres travelled forward, the road climbs 12. That single number, rise over run, is exactly what the tangent function computes for any angle. Point your eye at a hilltop, measure the angle, and the tangent of that angle is the steepness you would feel underfoot.

That is why tangent sits at the centre of anything involving slope, gradient, or line of sight — surveying a building's height, aiming a telescope, setting the pitch of a roof. Get the tangent wrong and the height you calculate for a distant tower is wrong by the same ratio.

What Is The Tangent Function?

The tangent function, written $\tan\theta$, is one of the three primary trigonometric functions. It has two equivalent definitions, and a student needs both.

  • Right-triangle definition. For an acute angle $\theta$ in a right triangle, $\tan\theta = \dfrac{\text{opposite}}{\text{adjacent}}$. This is the SOH-CAH-TOA "TOA" - Tangent, Opposite, Adjacent.

  • Ratio definition (unit circle). For any angle $\theta$, tangent is the ratio of sine to cosine: $\tan\theta = \dfrac{\sin\theta}{\cos\theta}$. On the unit circle - a circle of radius 1 centred at the origin - the terminal ray meets the circle at $(\cos\theta, \sin\theta)$, so tangent is the $y$-coordinate divided by the $x$-coordinate. Geometrically, that ratio is the slope of the ray.

The triangle definition handles angles between $0^\circ$ and $90^\circ$. The ratio definition extends tangent to every angle, and it is the more powerful one — it tells you immediately that tangent breaks wherever $\cos\theta = 0$. Tangent belongs to the wider family of trigonometric functions, and it is the quotient of the sine and cosine values you already know.

Reading Tangent Straight Off The Ratio

Take $\theta = 60^\circ$. You already know $\sin 60^\circ = \dfrac{\sqrt{3}}{2}$ and $\cos 60^\circ = \dfrac{1}{2}$. So:

$$\tan 60^\circ = \dfrac{\sin 60^\circ}{\cos 60^\circ} = \dfrac{\frac{\sqrt{3}}{2}}{\frac{1}{2}} = \sqrt{3}$$

The tangent of $60^\circ$ is about $1.732$ — a steep slope, which matches a $60^\circ$ ramp being far steeper than a gentle one. A step-by-step view of how tangent is read directly from angle positions lives in the unit circle with tangent walkthrough.

What Are The Properties Of The Tangent Function?

The behaviour of $\tan\theta$ is fixed by a handful of properties, most of them readable straight off the graph above. Before the list, one term: a quadrant is one of the four regions the two axes cut the plane into, numbered I to IV anticlockwise from the top right.

  • Domain: all real numbers except $\theta = \dfrac{\pi}{2} + k\pi$ for every integer $k$ - the angles where $\cos\theta = 0$ and the ratio has no value.

  • Range: all real numbers. Unlike sine and cosine, tangent has no ceiling or floor; it runs from $-\infty$ to $+\infty$.

  • Period: $\pi$ (or $180^\circ$), not $2\pi$. The whole curve repeats every half-turn: $\tan(\theta + \pi) = \tan\theta$.

  • Odd function: $\tan(-\theta) = -\tan\theta$. The graph has rotational symmetry about the origin.

  • No amplitude. Because the curve is unbounded, "amplitude" simply does not apply to tangent - a common point of confusion.

  • Vertical asymptotes at $\theta = \dfrac{\pi}{2} + k\pi$: the curve races toward $\pm\infty$ without ever touching these lines.

  • Zeros at $\theta = k\pi$ (where $\sin\theta = 0$): the curve crosses the axis at $0, \pm\pi, \pm 2\pi, \dots$

Why Is The Period Of Tangent Equal To $\pi$?

This is the question students ask most, and the ratio answers it. Sine and cosine each repeat every $2\pi$. But move an angle by exactly $\pi$ (half a turn) and both $\sin\theta$ and $\cos\theta$ flip sign:

$$\tan(\theta + \pi) = \dfrac{\sin(\theta + \pi)}{\cos(\theta + \pi)} = \dfrac{-\sin\theta}{-\cos\theta} = \dfrac{\sin\theta}{\cos\theta} = \tan\theta$$

The two minus signs cancel, so the ratio is back to where it started after only half a turn. Tangent finishes its full cycle in $\pi$, twice as fast as sine or cosine.

Tangent Signs By Quadrant

Because tangent is $\dfrac{\sin\theta}{\cos\theta}$, its sign is positive exactly when sine and cosine share a sign.

Quadrant

Angle range

Sign of $\tan\theta$

I

$0^\circ$ to $90^\circ$

Positive

II

$90^\circ$ to $180^\circ$

Negative

III

$180^\circ$ to $270^\circ$

Positive

IV

$270^\circ$ to $360^\circ$

Negative

Tangent is positive in Quadrants I and III - the two quadrants where the slope of the terminal ray points the same way.

Key Tangent Values

These special-angle values recur throughout trigonometry and feed the trigonometric table.

$\theta$

$0^\circ$

$30^\circ$

$45^\circ$

$60^\circ$

$90^\circ$

$\tan\theta$

$0$

$\dfrac{1}{\sqrt{3}}$

$1$

$\sqrt{3}$

undefined

At $90^\circ$ the value is undefined, not infinite and not zero - cosine is zero there, so the ratio simply has no number.

Examples Of The Tangent Function

Example 1

A right triangle has an opposite side of 4 and an adjacent side of 3. Find $\tan\theta$.

$$\tan\theta = \dfrac{\text{opposite}}{\text{adjacent}} = \dfrac{4}{3}$$

Final answer: $\tan\theta = \dfrac{4}{3}$.

Example 2

Evaluate $\tan 135^\circ$. First instinct, then the correct route.

The tempting move is to treat $135^\circ$ like $45^\circ$ and write $\tan 135^\circ = 1$, since $135^\circ$ has a reference angle of $45^\circ$.

Check it against the quadrant. $135^\circ$ lands in Quadrant II, where tangent is negative. A positive answer contradicts the sign table, so the instinct is wrong on the sign.

The rescue is to take the reference-angle value and then apply the quadrant sign as a separate step. The reference angle is $180^\circ - 135^\circ = 45^\circ$, so the size is $\tan 45^\circ = 1$, and the Quadrant II sign is negative:

$$\tan 135^\circ = -\tan 45^\circ = -1$$

Final answer: $\tan 135^\circ = -1$.

Example 3

Find the period of $y = \tan(3x)$.

The period of $\tan(bx)$ is $\dfrac{\pi}{|b|}$. Here $b = 3$:

$$\text{Period} = \dfrac{\pi}{3}$$

Final answer: period $= \dfrac{\pi}{3}$.

Example 4

Where are the vertical asymptotes of $y = \tan x$ between $0$ and $2\pi$?

Asymptotes occur where $\cos x = 0$. Between $0$ and $2\pi$, cosine is zero at $\dfrac{\pi}{2}$ and $\dfrac{3\pi}{2}$.

Final answer: asymptotes at $x = \dfrac{\pi}{2}$ and $x = \dfrac{3\pi}{2}$.

Example 5

A surveyor stands 50 m from the base of a tower and measures the angle to the top as $40^\circ$. How tall is the tower?

The height is the opposite side, the 50 m is the adjacent side, so $\tan 40^\circ = \dfrac{h}{50}$.

$$h = 50 \times \tan 40^\circ \approx 50 \times 0.839 = 41.95 \text{ m}$$

Final answer: the tower is about $42$ m tall.

Example 6

Verify the identity $\tan\theta = \dfrac{\sin\theta}{\cos\theta}$ at $\theta = 30^\circ$.

Use the known values $\sin 30^\circ = \dfrac{1}{2}$ and $\cos 30^\circ = \dfrac{\sqrt{3}}{2}$:

$$\dfrac{\sin 30^\circ}{\cos 30^\circ} = \dfrac{\frac{1}{2}}{\frac{\sqrt{3}}{2}} = \dfrac{1}{\sqrt{3}} = \tan 30^\circ \ \checkmark$$

Final answer: the identity holds; $\tan 30^\circ = \dfrac{1}{\sqrt{3}}$.

The first-instinct error students reach for across these is treating a reference angle as the whole answer — the reference angle fixes the size of the value, but the quadrant decides the sign, and skipping that second step is exactly where $\tan 135^\circ$ comes out positive by mistake.

Why The Tangent Function Matters - "An angle becomes a slope"

Tangent exists to do one thing cleanly: convert an angle of inclination into a slope, and a slope back into an angle. That is its fundamental utility, and it is why the function turns up wherever direction and steepness meet.

  • Line of sight and height. Measure the angle to the top of something and its horizontal distance, and tangent hands you the height - the whole basis of surveying and heights-and-distances problems.

  • Gradient and design. The steepness of a wheelchair ramp, a rail track, or a roof pitch is a tangent value; the 12% road grade on a mountain sign is $\tan\theta$ written as a percentage.

  • The inverse direction. Reading a slope back into an angle uses the inverse tangent, $\arctan$, which is how a screen or a joystick turns two coordinates into a heading.

What competitor explainers usually skip is why tangent, alone among the three, has asymptotes: sine and cosine are bounded because they are coordinates on a circle of radius 1, but tangent is a ratio of those coordinates, and dividing by a shrinking cosine sends the value out of bounds. The asymptote is not a flaw in the graph - it is the slope of a ray that has turned fully vertical.

Common Mistakes With The Tangent Function

Mistake 1: Assuming the period is $2\pi$

Where it slips in: Any time a student carries the sine/cosine period straight over to tangent.

Don't do this: Writing that $y = \tan x$ repeats every $2\pi$ and drawing one long cycle.

The correct way: Tangent repeats every $\pi$. The half-turn sign-flip in both sine and cosine cancels in the ratio, so the curve is already back to its start after $\pi$.

The memorizer who learned "trig functions have period $2\pi$" as a single fact applies it to all three and draws tangent with half the asymptotes it should have.

Mistake 2: Confusing zeros with asymptotes

Where it slips in: Sketching the graph or listing where the curve breaks.

Don't do this: Putting the vertical asymptotes at $0, \pi, 2\pi$ and the crossings at $\dfrac{\pi}{2}, \dfrac{3\pi}{2}$.

The correct way: Tangent is zero where $\sin\theta = 0$ (at $0, \pi, 2\pi$) and undefined where $\cos\theta = 0$ (at $\dfrac{\pi}{2}, \dfrac{3\pi}{2}$). Sine controls the crossings; cosine controls the breaks.

Mistake 3: Claiming tangent has an amplitude

Where it slips in: Copying the $y = a\sin(bx)$ template onto $y = a\tan(bx)$.

Don't do this: Saying $y = 3\tan x$ has "amplitude 3."

The correct way: Tangent is unbounded, so it has no maximum or minimum and no amplitude. The coefficient $3$ is a vertical stretch, but the curve still runs to $\pm\infty$.

Key Takeaways

  • The tangent function is $\dfrac{\text{opposite}}{\text{adjacent}}$ in a triangle and $\dfrac{\sin\theta}{\cos\theta}$ — the slope of the terminal ray — on the unit circle.

  • Its period is $\pi$, not $2\pi$, because the half-turn sign-flip in sine and cosine cancels.

  • The range is all real numbers; tangent has no amplitude and no maximum.

  • Vertical asymptotes sit where $\cos\theta = 0$; zeros sit where $\sin\theta = 0$.

  • Tangent is odd: $\tan(-\theta) = -\tan\theta$.

To go deeper into the tangent function with a teacher, explore Bhanzu's trigonometry tutor sessions, a high school math tutor for graphing practice, or live math classes online with peers from 20+ countries.

A Practical Next Step

Practice these to solidify your understanding: sketch $y = \tan x$ from $-\pi$ to $\pi$ from memory, marking the asymptotes first and the zeros second, then find the period of $y = \tan(4x)$. If you get stuck, come back to the properties list above. Want a live Bhanzu trainer to graph these with you? Book a free demo class.

Read More

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is the tangent function even or odd?
Odd. $\tan(-\theta) = -\tan\theta$, so the graph has rotational symmetry about the origin.
What is the range of the tangent function?
All real numbers. Tangent has no upper or lower bound, which is why it has no amplitude.
Why is tan called tangent?
Because its value equals the length of a line segment tangent to the unit circle — the segment on the vertical line $x = 1$ cut off by the extended terminal ray.
Where is the tangent function undefined?
At every angle where cosine is zero: $\theta = \dfrac{\pi}{2} + k\pi$. The ratio $\dfrac{\sin\theta}{\cos\theta}$ has no value when the denominator is zero.
How do you find the $x$-intercepts of the tangent graph?
Set $\tan\theta = 0$, which means $\sin\theta = 0$. That happens at $\theta = k\pi$ — the integer multiples of $\pi$.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →