X and Y Intercept Calculator
Intercepts of a line or a quadratic, with the full steps
Last updated September 6, 2026
Method: The x-intercept is found by setting y = 0 and the y-intercept by setting x = 0. Lines use x = −b ÷ m (or C ÷ A in standard form); quadratics use the discriminant b² − 4ac and the quadratic formula. These are exact algebraic identities, not estimates.
Included: Four input forms (slope-intercept, standard form, two points, quadratic), both intercepts as ordered pairs, slope, standard form, vertex and axis of symmetry for parabolas, the discriminant, sum and product of roots, and a numbered step-by-step solution.
Not included: Cubic and higher polynomials, exponential or trigonometric functions, complex (non-real) roots as intercepts, and graph plotting. This tool covers straight lines and second-degree parabolas in the flat coordinate plane.
✖️ Choose the form you have
Every form gives the same two answers: where the graph crosses the x-axis and where it crosses the y-axis.
✅ X-intercept (where y = 0)
📍 Intercept points
📝 Step by step
- 1. Start from the equationy = 2x - 6
- 2. Y-intercept: set x = 0y = 2(0) - 6 = -6 , the point (0, -6)
- 3. X-intercept: set y = 00 = 2x - 6 , x = 6 / 2 = 3
Intercepts are found by setting y = 0 (x-intercept) and x = 0 (y-intercept). Values are exact when the inputs are whole numbers or simple fractions, and rounded to six decimals otherwise.
X and y intercepts: the complete guide
To find the x-intercept, set y = 0 and solve for x. To find the y-intercept, set x = 0 and solve for y. For the line 3x + 4y = 24 that gives an x-intercept at (8, 0) and a y-intercept at (0, 6). This calculator handles slope-intercept form, standard form, two points and quadratics, and shows every step below.
What an intercept actually is
An intercept is a point where a graph meets one of the two axes. Because the axes are defined by a coordinate being zero, every intercept question reduces to the same trick: substitute zero for one variable and solve for the other. On the x-axis the height is zero, so every point on it has the form (x, 0). On the y-axis the horizontal position is zero, so every point on it has the form (0, y). There is nothing more to the concept than that, which is why the two formulas fit on one line:
x-intercept: set y = 0, solve for x · y-intercept: set x = 0, solve for y Students lose points on this topic far more often through bookkeeping than through misunderstanding. They solve for x correctly and then write the answer as (0, 3) instead of (3, 0), or they find the y-intercept and label it the x-intercept. Saying the rule out loud each time helps: the x-intercept is the one where y is zero.
The x-intercept formula for a straight line
When a line is written in slope-intercept form, y = mx + b, substituting y = 0 gives 0 = mx + b, and one rearrangement finishes the job:
x = −b ÷ m (slope-intercept form, m ≠ 0) The y-intercept needs no work at all in this form. Substituting x = 0 leaves y = b, so the constant term is the y-intercept. That is exactly why the form carries its name.
Standard form, Ax + By = C, is even friendlier, because each substitution deletes an entire term:
x-intercept = C ÷ A · y-intercept = C ÷ B This symmetry makes standard form the fastest way to sketch a line by hand: plot the two intercepts, lay a ruler across them, and you are done in about fifteen seconds. It is also why textbooks ask you to convert to standard form before graphing.
Worked example 1: a line in standard form
Take 3x + 4y = 24. Set y = 0 and the y term vanishes: 3x = 24, so x = 8 and the x-intercept is (8, 0). Now set x = 0 and the x term vanishes: 4y = 24, so y = 6 and the y-intercept is (0, 6). To check, convert to slope-intercept form by solving for y: 4y = −3x + 24, so y = −(3/4)x + 6. The constant 6 confirms the y-intercept, and the formula x = −b ÷ m gives −6 ÷ (−3/4) = 8, matching the first answer exactly.
Worked example 2: intercepts from two points
Suppose a line passes through (1, −4) and (5, 4). Start with the slope: m = (4 − (−4)) ÷ (5 − 1) = 8 ÷ 4 = 2. Next the y-intercept, using b = y₁ − m·x₁: b = −4 − 2(1) = −6. The line is therefore y = 2x − 6. Finally the x-intercept: x = −(−6) ÷ 2 = 3. So the graph crosses at (3, 0) and (0, −6). A quick sanity check: substituting x = 3 into y = 2x − 6 returns 6 − 6 = 0, exactly as it should.
Quadratic intercepts and the discriminant
A parabola y = ax² + bx + c has exactly one y-intercept, and it is the easiest number on the page: substituting x = 0 leaves y = c. The x-intercepts are the interesting part. Setting y = 0 gives the quadratic equation 0 = ax² + bx + c, solved by the quadratic formula:
x = (−b ± √(b² − 4ac)) ÷ (2a) The quantity under the radical, D = b² − 4ac, is the discriminant, and its sign alone decides how many times the parabola meets the x-axis before you compute anything else:
- D greater than 0: two distinct real x-intercepts. The parabola cuts clean through the axis.
- D equal to 0: one repeated real x-intercept, sitting exactly at the vertex. The parabola is tangent to the axis.
- D less than 0: no real x-intercept. The whole parabola sits above or below the axis and never reaches it.
Notice that the y-intercept never disappears. A vertical parabola always has one, because every input has an output, including x = 0.
Worked example 3: a quadratic with two roots
Take y = x² − 3x − 4, so a = 1, b = −3 and c = −4. The y-intercept is c, giving (0, −4). The discriminant is D = (−3)² − 4(1)(−4) = 9 + 16 = 25, a positive perfect square, so expect two tidy answers. The quadratic formula gives x = (3 ± 5) ÷ 2, which is x = 4 and x = −1. The x-intercepts are therefore (−1, 0) and (4, 0). The vertex sits halfway between them at x = 1.5, where y = −6.25, confirming that the parabola dips below the axis between its two crossings.
Worked example 4: irrational x-intercepts
Not every discriminant is a perfect square. For y = 2x² + 4x − 3 the discriminant is D = 4² − 4(2)(−3) = 16 + 24 = 40. Since 40 is positive there are still two real x-intercepts, but they are irrational: x = (−4 ± √40) ÷ 4, which simplifies to (−2 ± √10) ÷ 2, or about 0.5811 and −2.5811. Two quick checks confirm the arithmetic: the roots should sum to −b ÷ a = −2, and they do, and their product should equal c ÷ a = −1.5, which it does. The y-intercept is simply (0, −3).
How to use this calculator
- Pick the form you were given. The four cards at the top switch between y = mx + b, Ax + By = C, two points, and a quadratic. Choosing the form that matches your problem avoids any conversion mistakes.
- Type the numbers. Negatives, decimals and zeros are all accepted. Everything recalculates as you type, so there is no button to press.
- Read the headline. The large value at the top of the colored card is the x-intercept (or intercepts). The label underneath states how many crossings the graph has.
- Check both ordered pairs. The intercept panel lists the results as (x, 0) and (0, y) so you can copy them straight onto a graph or an answer sheet.
- Follow the steps. The numbered solution shows the substitution, the rearrangement and the final division, which is what most teachers want to see next to the answer.
Results are shown as exact fractions whenever the inputs are whole numbers or simple fractions, and rounded to six decimals otherwise.
Who this calculator is for
- Algebra 1 and Algebra 2 students checking homework on graphing lines and factoring quadratics.
- Pre-calculus students identifying the zeros of a polynomial before sketching its shape.
- Teachers and tutors who need a worked example with correct signs in a hurry.
- Test takers preparing for placement exams, where intercept questions appear constantly because they are quick to grade.
- Anyone modeling a real quantity who needs the starting value (the y-intercept) or the break-even point (the x-intercept) of a linear trend.
Key terms explained
- X-intercept: the point (x, 0) where the graph crosses the x-axis. Also called a root or a zero.
- Y-intercept: the point (0, y) where the graph crosses the y-axis. In y = mx + b it is the constant b.
- Slope-intercept form: y = mx + b, where m is the slope and b the y-intercept.
- Standard form: Ax + By = C, the form that makes both intercepts a single division.
- Discriminant: D = b² − 4ac, the part of the quadratic formula under the square root, which counts the real x-intercepts.
- Double root: the single x-intercept of a parabola whose discriminant is 0, where the curve touches the axis without crossing it.
- Vertex: the turning point of a parabola, at x = −b ÷ (2a). It sits exactly midway between two x-intercepts when they exist.
Intercepts of lines in slope-intercept form
Each row applies x = −b ÷ m to a line written as y = mx + b. The y-intercept is read straight off the equation as the constant term, so no arithmetic is needed for that column.
| Equation | Slope m | X-intercept | Y-intercept |
|---|---|---|---|
| y = 2x − 6 | 2 | (3, 0) | (0, −6) |
| y = −3x + 9 | −3 | (3, 0) | (0, 9) |
| y = (1/2)x − 4 | 1/2 | (8, 0) | (0, −4) |
| y = (3/4)x + 3 | 3/4 | (−4, 0) | (0, 3) |
| y = 5x | 5 | (0, 0) | (0, 0) |
| y = −x + 7 | −1 | (7, 0) | (0, 7) |
| y = (−2/3)x + 8 | −2/3 | (12, 0) | (0, 8) |
| y = 4x − 10 | 4 | (5/2, 0) | (0, −10) |
The fifth row is worth a second look. When b = 0 the line passes through the origin, so both intercepts land on the same point, (0, 0). That is the only situation in which a line's two intercepts coincide.
Intercepts of lines in standard form
Here every x-intercept is C ÷ A and every y-intercept is C ÷ B. The last two rows show what happens when a coefficient is zero and the line turns vertical or horizontal.
| Equation | X-intercept (C/A) | Y-intercept (C/B) | Shape |
|---|---|---|---|
| 2x + 3y = 12 | (6, 0) | (0, 4) | Falling line |
| 4x − 2y = 8 | (2, 0) | (0, −4) | Rising line |
| x + 5y = −10 | (−10, 0) | (0, −2) | Falling line |
| 3x + 7y = 21 | (7, 0) | (0, 3) | Falling line |
| −5x + 2y = 20 | (−4, 0) | (0, 10) | Rising line |
| 9x + 3y = −27 | (−3, 0) | (0, −9) | Falling line |
| 6x = 18 | (3, 0) | – | Vertical, x = 3 |
| 4y = 9 | – | (0, 9/4) | Horizontal, y = 2.25 |
Quadratic intercepts by discriminant
Every row below is a parabola run through D = b² − 4ac and then the quadratic formula. The y-intercept column is always the constant c, which is why it never fails even when the x-intercepts do not exist.
| Quadratic | D | X-intercepts | Y-intercept |
|---|---|---|---|
| y = x² − 3x − 4 | 25 | (−1, 0) and (4, 0) | (0, −4) |
| y = x² + 5x + 6 | 1 | (−3, 0) and (−2, 0) | (0, 6) |
| y = x² − 9 | 36 | (−3, 0) and (3, 0) | (0, −9) |
| y = −x² + 4x | 16 | (0, 0) and (4, 0) | (0, 0) |
| y = 2x² + 4x − 3 | 40 | (−2.5811, 0) and (0.5811, 0) | (0, −3) |
| y = x² − 6x + 9 | 0 | (3, 0) only, double root | (0, 9) |
| y = 3x² − 12x + 12 | 0 | (2, 0) only, double root | (0, 12) |
| y = x² + 2x + 5 | −16 | None (no real root) | (0, 5) |
Intercepts from two points
These rows chain the three formulas together: slope from the two points, then b = y₁ − m·x₁, then x = −b ÷ m. The final two rows are the special cases that break the pattern.
| Two points | Slope m | Equation | X-intercept | Y-intercept |
|---|---|---|---|---|
| (1, −4), (5, 4) | 2 | y = 2x − 6 | (3, 0) | (0, −6) |
| (0, 3), (6, 0) | −1/2 | y = −(1/2)x + 3 | (6, 0) | (0, 3) |
| (−2, 5), (4, −7) | −2 | y = −2x + 1 | (1/2, 0) | (0, 1) |
| (2, 2), (8, 6) | 2/3 | y = (2/3)x + 2/3 | (−1, 0) | (0, 2/3) |
| (−3, −1), (1, 7) | 2 | y = 2x + 5 | (−5/2, 0) | (0, 5) |
| (0, −5), (2, −5) | 0 | y = −5 | – | (0, −5) |
| (4, 1), (4, 9) | undefined | x = 4 | (4, 0) | – |
What changes the intercepts
- The constant term. Changing b in y = mx + b slides the whole line vertically, which moves both intercepts. Changing c in a quadratic raises or lowers the parabola and can wipe out its x-intercepts entirely.
- The slope. Steepening a line pulls the x-intercept toward the origin while leaving the y-intercept fixed, because the line is pivoting around the point (0, b).
- The leading coefficient a. A larger absolute value narrows a parabola; a sign flip turns it upside down, which can move it from two x-intercepts to none without touching the y-intercept.
- The sign of the discriminant. Everything about the count of x-intercepts is decided by D. Adjusting a, b or c so that D crosses zero is the moment a parabola gains or loses its crossings.
- Rewriting the equation. Converting between forms never changes the intercepts. If your answer changes after a conversion, the conversion contains an arithmetic error.
Practical tips
- Graph with intercepts, not a table. For a line in standard form, plotting (C/A, 0) and (0, C/B) is far faster than building a table of values.
- Check the discriminant first. A single subtraction tells you whether the quadratic formula will produce two answers, one, or none, before you commit to the arithmetic.
- Try factoring before the formula. If a quadratic factors as (x + 1)(x − 4), the x-intercepts are visible immediately at x = −1 and x = 4, and the sign flip is the classic place to slip.
- Use the vertex as a mirror. Two real x-intercepts are always the same distance from x = −b ÷ (2a). If yours are not symmetric about the vertex, something is wrong.
- Substitute your answer back. Plugging the x-intercept into the original equation must return exactly 0. This one check catches nearly every sign error.
Where intercepts show up outside class
The y-intercept is the value of a model when its input is zero, which usually makes it a starting amount: a fixed monthly fee before any usage, the initial balance of an account, the setup cost of a print run. The x-intercept is where the modeled quantity reaches zero, which is why it answers so many practical questions. In a depreciation model it is the moment book value hits zero; in a loan model it is the payoff date; in a profit model it is the break-even quantity, where revenue and cost finally meet. In physics, the x-intercept of a height-versus-time parabola is the instant a projectile hits the ground, which is exactly the quadratic case handled above.
One caution carries across all of these: an intercept can be mathematically correct and physically meaningless. If a trend line fitted to data between x = 20 and x = 60 has an x-intercept at x = −5, that answer sits far outside the range where the model was ever valid. The algebra is right; the extrapolation is not.
Limitations of this tool
This calculator handles first-degree and second-degree equations. Cubics, quartics and other higher polynomials can have several x-intercepts and generally need factoring or a numerical method. When a quadratic has a negative discriminant, its two roots are complex conjugates; those roots exist algebraically but are not intercepts, because a complex number is not a point on the real x-axis, so this page reports no real x-intercept rather than listing them. The tool also does not draw graphs, and it assumes the equation you enter is exactly the one you meant, so a mistyped sign will yield a confident but wrong answer. Values are displayed as exact fractions when possible and otherwise rounded to six decimal places.
Which calculator to use next
Intercepts are one piece of a larger toolkit for lines and parabolas. Use the Slope Calculator when you want the steepness, angle and equation of a line through two points rather than its crossings. Use the Quadratic Formula Calculator when you need the roots of a quadratic including the complex ones this page leaves out. Use the Vertex Calculator for the turning point and vertex form of a parabola, the Point-Slope Form Calculator to build an equation from one point and a slope, and the Factoring Calculator when factoring would reveal the roots faster than the formula. For coordinate geometry around the same two points, the Distance Calculator and Midpoint Calculator give the segment length and its center, while the Linear Equation Calculator solves a single equation for one unknown.
Intercepts are computed with exact algebraic identities, so the results are correct for the values you enter. This calculator is a free educational tool for learning and checking your work; for graded assignments, confirm the figures independently. It does not constitute professional advice.
💡 Good to know
In y = mx + b the y-intercept is free
You never have to calculate it. Substituting x = 0 leaves y = b, so the constant term already is the y-intercept. Only the x-intercept needs the division x = −b ÷ m.
Standard form is the fast way to sketch a line
With Ax + By = C both intercepts are single divisions, C ÷ A and C ÷ B. Plot those two points, connect them, and the line is drawn without a table of values.
The discriminant answers the question before you solve
One subtraction, D = b² − 4ac, tells you whether a parabola has two x-intercepts, one, or none. On a multiple-choice test that is often the entire answer.
⚠️ Common mistakes & edge cases
Swapping the two rules
Setting x = 0 to find the x-intercept is the single most frequent error on this topic. The x-intercept is where y is zero; the y-intercept is where x is zero. Each rule zeroes the variable it is not named after.
Writing the ordered pair backwards
An x-intercept of 3 is the point (3, 0), never (0, 3). Graders routinely deduct for this even when the number itself is right, because (0, 3) names a completely different point on the y-axis.
Dropping the minus sign in x = −b ÷ m
For y = 2x − 6 the intercept is −(−6) ÷ 2 = 3, not −3. Two negatives are in play, and forgetting either one reflects the answer to the wrong side of the origin.
Assuming every graph has an x-intercept
A horizontal line such as y = 5 has none, and neither does a parabola with a negative discriminant. Reporting "no x-intercept" is a complete and correct answer, not a sign that you failed to find one.
Calling complex roots x-intercepts
When D is negative the quadratic still has two roots, but they involve the square root of a negative number. They are not points on the real coordinate plane, so the graph has no x-intercepts even though the equation has solutions.
Forgetting that a vertical line has no y-intercept
x = 4 crosses the x-axis at (4, 0) and never meets the y-axis at all. Writing a y-intercept for it, or an x-intercept for a horizontal line, invents a point that does not exist.
❓ Frequently asked questions
What is the x-intercept?
The x-intercept is the point where a graph crosses the x-axis. At that point the height of the graph is zero, so the y-coordinate is 0 and the point is written (x, 0). To find it algebraically you set y = 0 in the equation and solve for x. For y = 2x - 6, setting y = 0 gives 0 = 2x - 6, so x = 3 and the x-intercept is the point (3, 0).
How do you find the x-intercept of a line?
Set y equal to 0 and solve the remaining equation for x. In slope-intercept form y = mx + b the answer is always x = -b / m, provided m is not zero. In standard form Ax + By = C the y term disappears when y = 0, so the x-intercept is simply x = C / A. For 3x + 4y = 24 that is x = 24 / 3 = 8, so the graph crosses the x-axis at (8, 0).
How do you find the y-intercept?
Set x equal to 0 and solve for y. In slope-intercept form the y-intercept is already sitting in front of you: it is the constant b, because y = m(0) + b = b. In standard form Ax + By = C it is y = C / B. For 3x + 4y = 24 the y-intercept is 24 / 4 = 6, giving the point (0, 6).
What is the x-intercept formula?
For a straight line written as y = mx + b, the x-intercept formula is x = -b / m. For a line in standard form Ax + By = C it is x = C / A. For a quadratic y = ax² + bx + c the x-intercepts come from the quadratic formula, x = (-b ± the square root of (b² - 4ac)) / (2a), which can give two answers, one answer, or none.
Can a line have no x-intercept?
Yes. A horizontal line with a non-zero constant, such as y = 5, never touches the x-axis, so it has no x-intercept at all. Its slope is 0 and the formula x = -b / m would require dividing by zero. The only horizontal line with an x-intercept is y = 0, which is the x-axis itself and therefore crosses at every point.
Can a graph have more than one x-intercept?
A straight line has at most one. A parabola can have two, one or none, depending on the sign of the discriminant b² - 4ac. Higher-degree polynomials can have more: a cubic can cross the x-axis up to three times. A graph can still have only one y-intercept, though, because a function returns a single y value for x = 0.
What is the discriminant and how does it decide the x-intercepts?
The discriminant is D = b² - 4ac, the quantity under the square-root sign in the quadratic formula. If D is positive the parabola crosses the x-axis at two distinct points. If D is exactly 0 the parabola touches the axis once, at its vertex, which is called a double root. If D is negative there is no real square root, so the parabola never reaches the x-axis and there are no real x-intercepts.
How do I find the intercepts from two points?
First find the slope with m = (y₂ - y₁) / (x₂ - x₁), then the y-intercept with b = y₁ - m·x₁, then the x-intercept with x = -b / m. For the points (1, -4) and (5, 4) the slope is 8 / 4 = 2 and b = -4 - 2(1) = -6, so the line is y = 2x - 6 and the intercepts are (3, 0) and (0, -6).
Are x-intercepts the same as roots and zeros?
For a function y = f(x) they are three names for the same idea. A root or zero is a value of x that makes f(x) = 0, and the x-intercept is the point on the graph where that happens. The zero is the number, such as x = 3, while the x-intercept is usually written as the ordered pair (3, 0). Teachers often use zero when talking about algebra and x-intercept when talking about a graph.
Why does a vertical line have no y-intercept?
A vertical line such as x = 4 has the same x-value everywhere, so it can only meet the y-axis if that value happens to be 0. Since 4 is not 0, the line runs parallel to the y-axis and never touches it. Its x-intercept is (4, 0). The only vertical line with a y-intercept is x = 0, which is the y-axis itself.
How do I convert standard form to slope-intercept form to check my work?
Solve Ax + By = C for y: subtract Ax from both sides to get By = -Ax + C, then divide by B, giving y = (-A/B)x + C/B. The slope is -A/B and the y-intercept is C/B. For 3x + 4y = 24 this gives y = -(3/4)x + 6, which confirms a y-intercept of 6 and an x-intercept of 8.
What does a y-intercept mean in a word problem?
It is the starting value, the amount present when the input variable is zero. In a cost equation such as total = 45x + 120, the 120 is a fixed setup fee charged before any units are made. The x-intercept in the same model is where the quantity reaches zero, which is why break-even and payoff questions almost always come down to solving for an x-intercept.
📚 Sources & method
Everything on this page is deterministic algebra, so there is no external data to cite and no figure that can go out of date. The results follow from definitions and identities that are true by construction:
- Definition of the axes. Every point on the x-axis has y = 0 and every point on the y-axis has x = 0. Both intercept rules are restatements of this definition.
- Linear rearrangement. x = −b ÷ m and x = C ÷ A follow from solving y = mx + b and Ax + By = C after the substitution y = 0. No approximation is involved.
- The quadratic formula. x = (−b ± √(b² − 4ac)) ÷ (2a) is derived by completing the square on ax² + bx + c = 0 and is exact for every real a, b and c with a not equal to 0.
- Vieta's relations. The sum of the roots equals −b ÷ a and their product equals c ÷ a. The calculator reports both so you can verify its own output.
Numbers in the worked examples and tables above were computed rather than estimated, and each one can be checked by substituting it back into its equation. Where a value is irrational, such as the roots of 2x² + 4x − 3, the exact radical form is given alongside the four-decimal approximation.