MyInternships.in

Free online graphing tool

Rational Function Graph Calculator (Asymptotes)

A rational function is one polynomial divided by another. Wherever the denominator hits zero the function is undefined, and the graph shoots away to infinity — a vertical asymptote.

Rational graphs are the clearest way to understand asymptotic behaviour, which is why they appear in every calculus course. This calculator breaks the curve at each asymptote instead of joining the branches with a false vertical line.

Key points of y = 1/x inside the visible window (-8 ≤ x ≤ 8). Pan or zoom to search a different range.

Roots (x-intercepts)

No root in this window

y-intercept

x = 0 is outside the window

Turning points

No maximum or minimum here

Intersections

No crossing with another curve

Enter a value of x

This curve is undefined somewhere in the window — gaps in the line are intentional.

What is a rational function graph calculator?

A rational function graph calculator plots y = P(x)/Q(x). Vertical asymptotes occur where the denominator is zero. The horizontal asymptote depends on the degrees: y = 0 if the numerator has the lower degree, the ratio of leading coefficients if the degrees match, and none (a slant asymptote instead) if the numerator degree is exactly one higher.

Key facts at a glance

General formy = P(x) / Q(x), polynomials P and Q
Vertical asymptoteWherever Q(x) = 0 and P(x) ≠ 0
Horizontal asymptote (deg P < deg Q)y = 0
Horizontal asymptote (deg P = deg Q)y = ratio of the leading coefficients
Slant asymptote (deg P = deg Q + 1)Found by polynomial division
Hole in the graphWhere a factor cancels top and bottom
Reciprocal functiony = 1/x — asymptotes at x = 0 and y = 0
DomainAll real x except the zeros of the denominator

How to plot rational function graphs — step by step

  1. 1

    Plot the reciprocal

    Type y = 1/x. The two branches never meet, because the function is undefined at x = 0.

  2. 2

    Find the vertical asymptote

    Set the denominator to zero. For y = (x + 1)/(x - 2) that gives x = 2 — the break you can see on the graph.

  3. 3

    Find the horizontal asymptote

    Zoom out. The curve flattens towards y = 1 here, because the numerator and denominator have equal degree and matching leading coefficients.

  4. 4

    Check for a slant asymptote

    Plot y = (x^2 + 1)/x together with y = x — the curve hugs that straight line at both extremes.

Rational function examples you can plot right now

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

The reciprocal

y = 1/x

Asymptotes at x = 0 and y = 0; two branches in opposite quadrants.

Plot this →

Shifted asymptote

y = 1/(x - 2)

The vertical asymptote moves to x = 2.

Plot this →

Equal degrees

y = (x + 1)/(x - 2)

Horizontal asymptote at y = 1, vertical at x = 2.

Plot this →

Slant asymptote

y = (x^2 + 1)/x

Behaves like y = x for large |x| — plot both to see it.

Plot this →

Two vertical asymptotes

y = 1/(x^2 - 4)

Breaks at both x = 2 and x = −2.

Plot this →

Inverse square

y = 1/x^2

Both branches stay positive — the shape behind inverse-square laws.

Plot this →

Understanding the rational function graph

Vertical asymptote vs hole
If a factor cancels between numerator and denominator you get a hole — a single missing point — rather than an asymptote. A graph cannot show the difference at a glance, so always factorise first.
Why the branches are drawn separately
The function has no value at the asymptote, so the two branches are not connected. Joining them would imply a value that does not exist, which is why the pen lifts there.
End behaviour
For very large |x| only the highest powers matter, so the curve settles onto the horizontal or slant asymptote. Zoom out to watch it happen.

Rational function graph — frequently asked questions

How do I find vertical asymptotes from a graph?

Look for the x-values where the curve breaks and races towards ±∞. Algebraically they are the zeros of the denominator — set it to zero and solve.

How do I find the horizontal asymptote?

Compare degrees. If the numerator degree is lower, the asymptote is y = 0. If the degrees are equal, it is the ratio of the leading coefficients. If the numerator degree is higher by one, there is a slant asymptote instead.

Why is my rational graph drawn in two separate pieces?

Because the function is undefined at the vertical asymptote, the branches genuinely are separate. This calculator detects the jump and breaks the line, rather than drawing a misleading vertical stroke.

Can a graph cross its horizontal asymptote?

Yes. A horizontal asymptote describes behaviour only as x becomes very large or very negative — in the middle of the graph the curve is free to cross it.

How do I plot 1/x on this calculator?

Type y = 1/x. Use brackets whenever the denominator is more than a single term: y = 1/(x - 2), not y = 1/x - 2, which means something completely different.

What is a hole in a rational graph?

A single point removed from the curve, caused by a factor that cancels top and bottom — as in y = (x² − 1)/(x − 1), which is the line y = x + 1 with the point at x = 1 missing.

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.