X-Intercept Calculator: Find Where a Graph Crosses the x-Axis
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
The x-intercept calculator finds the point where a line or other graph crosses the x-axis. Enter the equation in the form y = mx + b using its slope and y-intercept; the calculator returns the x-coordinate and the intercept point.
Formula
For a straight line written as y = mx + b, set y equal to zero because every point on the x-axis has a y-coordinate of zero. Then solve for x:
0 = mx + b
x = −b / m
- x is the x-coordinate of the x-intercept, measured in the graph’s horizontal units.
- y is the y-coordinate; at an x-intercept it is always 0, in the graph’s vertical units.
- m is the slope, the change in y divided by the change in x. Its units are vertical units per horizontal unit.
- b is the y-intercept, the value of y when x = 0, in vertical units.
The calculator accepts any numerical slope and y-intercept, including negative values. Its default example uses m = 2 and b = 6, so the line is y = 2x + 6. The displayed result is rounded to two decimal places for x and to a whole-number zero for y.
Worked Example
Using the calculator’s default values, m = 2 and b = 6:
- Start with the line equation: y = 2x + 6.
- At the x-axis, y = 0, so substitute zero: 0 = 2x + 6.
- Subtract 6 from both sides: −6 = 2x.
- Divide by 2: x = −3.
The x-intercept is −3, and the full intercept point is (−3, 0). The calculator reports x = −3.00 and y = 0.
What an X-Intercept Means
An intercept is a point where a graph meets one of the coordinate axes. The x-intercept lies on the horizontal axis, whose points all have a y-coordinate of zero. For instance, if a graph crosses the x-axis at x = 4, its x-intercept is the point (4, 0). The number 4 is the x-coordinate; writing only “4” can be useful, but the ordered pair makes the point unambiguous.
A graph can cross the x-axis more than once, touch it without crossing, or never meet it. A straight line with a nonzero slope has exactly one x-intercept. Curves such as parabolas may have two, one, or no real x-intercepts. So the calculation depends on the type of equation: the simple formula above applies to a line, not to every graph.
How to Find an Intercept from an Equation
For a line, first arrange its equation so y is alone on one side and the coefficient and constant are clear. Then set y to zero and solve. For example, with 3x + 2y = 12, rearrange to y = −1.5x + 6. Setting y = 0 gives 0 = −1.5x + 6, so x = 4. The x-intercept is (4, 0).
You can also work directly from the original equation: substitute y = 0, then solve for x. With 3x + 2y = 12, that produces 3x = 12 and x = 4. This approach avoids rearranging, as long as the equation represents a line and you isolate x correctly.
If you have two points instead of an equation, calculate the slope and use either point to determine b. For points (x₁, y₁) and (x₂, y₂), the slope is (y₂ − y₁) / (x₂ − x₁), provided x₂ ≠ x₁. Substitute that slope and one point into y = mx + b, then use x = −b/m. A graphing tool can also estimate an intercept visually, but reading a graph may be less precise than solving its equation.
When the Formula Does Not Apply Directly
The calculator uses x = −b/m, which requires a nonzero slope and a line in slope-intercept form. If m = 0, the equation is y = b, a horizontal line. When b is not zero, it never reaches y = 0, so there is no x-intercept. When b is also zero, the graph is the x-axis itself: every point on it is an x-intercept, rather than there being one unique intercept.
A vertical line has an equation such as x = 3, not y = mx + b. It crosses the x-axis at (3, 0), but the slope-intercept formula cannot represent it because its slope is undefined. For a general equation, set y = 0 and solve the resulting equation for x. If that equation is nonlinear, it may have multiple solutions or none among the real numbers.
For example, y = x² − 9 has x-intercepts where 0 = x² − 9, so x = −3 or x = 3. Its graph meets the axis at (−3, 0) and (3, 0). By contrast, y = x² + 1 has no real x-intercept because x² + 1 cannot equal zero for real x. Complex solutions are not points where the real-coordinate graph crosses the ordinary x-axis.
Reading Results and Avoiding Mistakes
- Use the correct intercept: b is the y-intercept, not the x-intercept. For a line, the x-intercept is found by dividing −b by m.
- Keep the sign: a negative result means the intercept is to the left of the origin; a positive result means it is to the right.
- Check the point: substitute the calculated x back into the equation. Its y-value should be zero, apart from any small rounding difference.
- Keep units consistent: if x is measured in seconds and y in metres, then slope has units of metres per second and b has units of metres. The resulting x-coordinate is in seconds.
- Do not round too early: retain the full values of m and b during the calculation, then round the final coordinate to the precision appropriate for the problem.
In applied graphs, an intercept can represent a meaningful threshold, such as the horizontal-axis value at which a measured quantity reaches zero. That interpretation depends on what the variables represent. The mathematical result alone does not establish whether extrapolating a measured trend beyond observed data is appropriate.
Frequently Asked Questions
What is the x-intercept of a line?
It is the point where the line meets the x-axis. Its y-coordinate is zero, so it is written as (x, 0).
How do you find the x-intercept from y = mx + b?
Set y = 0 and solve: 0 = mx + b, so x = −b/m, provided m is not zero.
Is the x-intercept the same as the y-intercept?
No. The x-intercept occurs where y = 0; the y-intercept occurs where x = 0. In y = mx + b, the y-intercept is (0, b).
Can a graph have more than one x-intercept?
Yes. A curve can meet the x-axis multiple times. A nonvertical straight line has one intercept unless it lies on or is parallel to the x-axis, in which case the special cases described above apply.
What if the slope is zero?
The line is horizontal. If its y-value is nonzero, it has no x-intercept; if its y-value is zero, every point on the line lies on the x-axis.
Can I find an x-intercept from a graph?
Yes. Read the horizontal coordinate where the graph meets the x-axis. This gives an estimate when the graph is drawn to scale; solving the equation generally gives a more precise value.
Related
Formula used
in m | Slope | - | 2 | in b | y-intercept | - | 6 | out x | x-intercept | x-units | -b / m | 2 out y | y-coordinate | y-units | 0 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.