X-Intercept Calculator: Find Where a Graph Crosses the X-Axis

Free x-intercept calculator: enter a linear or quadratic equation to find where it crosses the x-axis, with step-by-step working shown.

What an x-intercept is

The x-intercept of a graph is the point where it crosses the x-axis. Since every point on the x-axis has a y-coordinate of zero, finding x-intercepts always comes down to the same move: set y = 0 and solve for x. For the line y = 2x + 4, setting 0 = 2x + 4 gives x = −2, so the x-intercept is the point (−2, 0). A straight line has at most one x-intercept, while a parabola can have two, one, or none, depending on whether it crosses the axis twice, just touches it, or misses it entirely.

This calculator handles both cases. Choose linear and enter the slope m and y-intercept b for y = mx + b, or choose quadratic and enter the coefficients a, b, c for y = ax² + bx + c. It solves the resulting equation, shows each algebraic step, and verifies the answer by substituting it back. If there is no real intercept, it says so plainly instead of inventing one: a line like y = 5 never touches the x-axis, and a parabola like y = x² + 1 floats entirely above it.

How to use the x-intercept calculator

First pick the equation type from the dropdown. For a linear equation, enter m (the slope, how steep the line is) and b (where it crosses the y-axis), then press Calculate. For a quadratic, enter the three coefficients a, b, and c. The fields switch automatically when you change the equation type.

The calculator substitutes y = 0 and solves. Linear equations need a single division, x = −b ÷ m, with special handling when m = 0 (a horizontal line either never crosses or is the axis itself). Quadratics go through the quadratic formula, and the discriminant b² − 4ac decides the outcome before any root is computed: positive means two intercepts, zero means one (the vertex sits on the axis), negative means the graph never reaches the axis.

The algebra behind it

For a line, the derivation is one step. Starting from y = mx + b, set y = 0: 0 = mx + b, so mx = −b, and x = −b/m (as long as m ≠ 0). That is the entire theory, which is why the linear case is often taught as the first application of solving equations.

For a parabola, setting y = 0 gives ax² + bx + c = 0, an ordinary quadratic equation. Its solutions are the x-intercepts, found with the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. Geometrically, each real root is a crossing point. This also explains why quadratics can have zero intercepts while lines (except horizontal ones) always have exactly one: a line extends forever in both directions and must cross any horizontal line, but a parabola can open upward from above the axis and never come down.

Example: x-intercepts of y = x² − 5x + 6

Step 1: Set y = 0: 0 = x² − 5x + 6.

Step 2: Discriminant: b² − 4ac = 25 − 24 = 1, positive, so two real intercepts.

Step 3: Quadratic formula: x = (5 ± √1) / 2, giving x = 3 and x = 2.

Result: the x-intercepts are (3, 0) and (2, 0).

Check: 3² − 5(3) + 6 = 9 − 15 + 6 = 0. Correct.

More examples: y = 2x + 4 crosses at (−2, 0); y = x² − 2x + 1 touches at (1, 0); y = x² + 1 never touches the axis.

Common mistakes

  • Solving for y instead of x: the intercept is on the x-axis, so y = 0 is the starting point, not the answer. The answer is an x-value (or a point with y = 0).
  • Forgetting the intercept is a point: “x = 3” is the solution of the equation, but the intercept itself is the point (3, 0). Include both coordinates in your final answer.
  • Assuming every quadratic has two intercepts: the discriminant decides. A negative discriminant means no real intercepts, and the graph confirms it: the parabola sits entirely above or below the axis.
  • Dividing by zero slope: for y = mx + b with m = 0, there is no x = −b/m to compute. A horizontal line at y = 5 simply never crosses y = 0.

Where x-intercepts matter

X-intercepts are the “break-even points” of applied mathematics. In business, the x-intercept of a profit function is the break-even quantity. In physics, the x-intercept of a height-against-time graph is when a projectile lands. In chemistry, titration curves cross axes at equivalence points. Anywhere a quantity starts positive and is driven to zero, the intercept is the moment it arrives. To explore the full behavior of these functions, including their roots and turning points, see the quadratic formula calculator and the slope calculator.

Set y = 0 in y = mx + b and solve: x = −b ÷ m. For y = 2x + 4, x = −4 ÷ 2 = −2, so the intercept is (−2, 0). If m = 0 the line is horizontal and there is no intercept (unless it is the x-axis itself).

Yes. When the discriminant b² − 4ac is negative, the quadratic equation ax² + bx + c = 0 has no real solutions, so the parabola never touches the x-axis. For example, y = x² + 1 is always at least 1.

They are two views of the same number. A root (or zero) of a function is an x-value where f(x) = 0; the x-intercept is the point (root, 0) on the graph. The root is a number, the intercept is a point.

Two, one, or zero. The discriminant b² − 4ac tells you in advance: positive means two distinct intercepts, zero means one (the vertex touches the axis), negative means none.