Asymptote Finder
Type the numerator and denominator polynomials to get every asymptote and hole with the reasoning, plus a graph that shows the curve and its asymptotes.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Type the numerator
Enter P(x), for example 2x^2 + 1.
- 2Type the denominator
Enter Q(x), for example x^2 - 4.
- 3Read the summary
See vertical, horizontal or slant asymptotes and holes.
- 4Follow the steps
Read why each asymptote exists.
- 5Explore the graph
Zoom and pan the graph and export it as SVG.
- 6Practise
Solve generated problems with worked solutions.
About this tool
Asymptotes are the lines a graph approaches but never settles on, and finding them is a standard step when sketching rational functions in algebra, precalculus and calculus. The rules are short but easy to mix up: vertical asymptotes come from zeros of the denominator, except where the numerator is also zero, which gives a hole instead; horizontal asymptotes depend on comparing degrees; and a slant asymptote appears when the numerator's degree is exactly one more than the denominator's. This tool applies those rules in order and explains each step. Type the numerator and the denominator as polynomials, such as 2x^2 + 1 or (x-1)(x+2). It finds the real zeros numerically, cancels common factors and reports holes with their coordinates, lists vertical asymptotes, decides on a horizontal or slant asymptote by polynomial division and gives the x- and y-intercepts. A graph draws the curve in pieces between vertical asymptotes, with dashed asymptote lines and marked holes and intercepts, and it can be zoomed and exported as SVG. Practice mode generates questions with the same worked steps.
Step 1: holes and vertical asymptotes
Find the real zeros of the denominator. For each one, check the numerator: if it is also zero there, the factor (x − a) cancels and the graph has a hole at that x, with a y-value found from the simplified function. Any denominator zero left after cancelling is a vertical asymptote, where the function grows without bound.
Step 2: horizontal or slant asymptote
Compare the degrees of the simplified numerator (n) and denominator (d). If n < d, the horizontal asymptote is y = 0. If n = d, it is the ratio of the leading coefficients. If n = d + 1, divide the polynomials: the quotient is a line, the slant (oblique) asymptote. If n is larger still, there is no horizontal or slant asymptote; the graph follows the polynomial quotient for large x.
Reading the graph
The curve is drawn separately on each interval between vertical asymptotes so the plot does not join the branches across a gap. Vertical and horizontal asymptotes are dashed lines with labels, a slant asymptote is a dashed line through the graph, holes are red dots and intercepts green dots. Change the x and y ranges or zoom in and out to see behaviour near an asymptote or far away.
Worked example
f(x) = (2x² + 1) / (x² − 4). The denominator is zero at x = −2 and x = 2, and the numerator is not zero there, so both are vertical asymptotes. The degrees are equal (2), so the horizontal asymptote is y = 2 ÷ 1 = 2. For g(x) = (x² + 3x + 1) / (x − 1), the vertical asymptote is x = 1 and dividing gives x + 4 with remainder 5, so the slant asymptote is y = x + 4.
Limits
The tool handles polynomials up to degree 12 with numeric coefficients and finds real zeros numerically, so irrational zeros are shown as decimals. It does not handle radicals, trigonometric terms or piecewise definitions, and it does not discuss asymptotes that a graph crosses in the middle, which is allowed for horizontal and slant asymptotes.
Worked example
(2x² + 1)/(x² − 4): x = −2, x = 2, y = 2. (x² + 3x + 1)/(x − 1): x = 1, slant y = x + 4.
Quick facts
- Category: Study & Education
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenStax College Algebra 2e, section 5.6: Rational Functions
Frequently asked questions
How do I find vertical asymptotes?
Set the denominator to zero and solve. Each solution that does not also make the numerator zero is a vertical asymptote.
What is a hole in a graph?
A point where both numerator and denominator are zero, so a common factor cancels. The graph looks normal but has a single missing point.
How do I find the horizontal asymptote?
Compare degrees. Numerator lower: y = 0. Equal: ratio of leading coefficients. Numerator higher: no horizontal asymptote.
When is there a slant asymptote?
When the numerator's degree is exactly one more than the denominator's. Divide the polynomials; the quotient is the slant asymptote.
Can a graph cross a horizontal asymptote?
Yes. Horizontal and slant asymptotes describe the behaviour for very large |x|; the curve may cross them nearby. Vertical asymptotes are never crossed.
How do I type the polynomials?
Use x and ^ for powers, like 3x^2 - 2x + 5, or write factors like (x-1)(x+2) or 2(x+1)^2.
