How to Find Asymptotes of a Rational Function Step by Step
Find vertical, horizontal and slant asymptotes and holes of rational functions with clear rules, worked examples and a graph that shows each line.

How to Find Asymptotes of a Rational Function Step by Step
A rational function is a fraction of two polynomials, such as (2x² + 1)/(x² − 4). Its graph often has lines it approaches but never settles on: asymptotes. Finding them is one of the first steps in sketching the graph, and a standard question in algebra and precalculus exams. This guide sets out the rules in order and shows how the free asymptote finder explains each step and draws the graph.
Step 1: factor and look for holes
Find where the denominator is zero. For each such x-value, check the numerator. If the numerator is also zero, both share a factor, which cancels. The graph then has a hole, a single missing point, rather than an asymptote.
Example: (x² − 1)/(x − 1). The denominator is zero at x = 1, and so is the numerator. Cancel (x − 1) to get x + 1. The graph is the line y = x + 1 with a hole at (1, 2).
Step 2: vertical asymptotes
After cancelling, every remaining zero of the denominator is a vertical asymptote. Near it, the function shoots up or down without bound.
Example: (2x² + 1)/(x² − 4). The denominator is zero at x = −2 and x = 2, and the numerator is 9 at both, so these are vertical asymptotes x = −2 and x = 2.
Step 3: compare degrees for the end behaviour
Let n be the degree of the numerator and d the degree of the denominator.
- n < d: horizontal asymptote y = 0.
- n = d: horizontal asymptote y = leading coefficient of the numerator ÷ leading coefficient of the denominator. For (2x² + 1)/(x² − 4) that is y = 2.
- n = d + 1: no horizontal asymptote, but a slant asymptote. Divide the polynomials; the quotient (ignoring the remainder) is the line.
- n > d + 1: no horizontal or slant asymptote. The graph behaves like the polynomial quotient.
Example: (x² + 3x + 1)/(x − 1). Dividing gives x + 4 with remainder 5, so the slant asymptote is y = x + 4, and there is a vertical asymptote at x = 1.
Using the asymptote finder
Type the numerator and denominator. Polynomials can be written in expanded form like 2x^2 - 3x + 1 or as factors like (x-1)(x+2). The summary cards list vertical, horizontal and slant asymptotes and holes, and the steps explain each decision in the order above. The finder also gives the x- and y-intercepts.
The graph draws the function separately on each interval between vertical asymptotes, so branches are not joined across a gap. Asymptotes appear as dashed lines with labels, holes as red dots and intercepts as green dots. Adjust the x and y ranges, zoom in near an asymptote to see the curve take off, or zoom out to see the end behaviour. Export the graph as SVG for notes.
Common misconceptions
Graphs can cross horizontal and slant asymptotes. These describe behaviour for very large x, not a barrier. Graphs never cross vertical asymptotes, because the function is undefined there. And not every zero of the denominator is an asymptote: holes come first.
Practice
The Practice tab generates rational functions and asks for a vertical asymptote, a horizontal asymptote or the slope of a slant asymptote, with the same worked steps after each answer. Save tricky homework problems to the saved list and reopen them later.
Limits
A full example from start to finish
Take (x³ − 8)/(x² − 4). The denominator is zero at x = 2 and x = −2. At x = 2 the numerator is also zero, so (x − 2) cancels, leaving (x² + 2x + 4)/(x + 2) with a hole at x = 2, where the simplified function equals 12 ÷ 4 = 3. At x = −2 only the denominator is zero, so x = −2 is a vertical asymptote. The simplified numerator has degree 2 and the denominator degree 1, so divide: the quotient is x with remainder 4, giving the slant asymptote y = x. Type it into the finder and every one of these steps appears in order.
Limits
The finder works with polynomials up to degree 12 and finds real zeros numerically, so irrational zeros appear as decimals. Functions with radicals, logarithms or trigonometry are not supported.


