What Is the X and Y Intercept Calculator?
This tool finds the points where a straight line crosses the x-axis and the y-axis. Given a line written in general form \(ax + by + c = 0\), it returns the x-intercept (the point where \(y = 0\)) and the y-intercept (the point where \(x = 0\)). Intercepts are essential for graphing lines quickly and for understanding the behavior of linear equations.
How to Use It
Enter the three coefficients from your equation: a (the number multiplying x), b (the number multiplying y), and c (the constant term). Make sure your equation is arranged so everything is on one side equal to zero. For example, the equation \(2x + 3y = 6\) becomes \(2x + 3y - 6 = 0\), so \(a = 2\), \(b = 3\), and \(c = -6\).
The Formula Explained
To find the x-intercept, set \(y = 0\) in \(ax + by + c = 0\). This gives \(ax + c = 0\), so \(x = -c / a\). To find the y-intercept, set \(x = 0\), giving \(by + c = 0\), so \(y = -c / b\). The x-intercept is the point \((-c/a, 0)\) and the y-intercept is the point \((0, -c/b)\).
$$x_{\text{int}} = -\frac{c}{a}, \qquad y_{\text{int}} = -\frac{c}{b}$$
Worked Example
Take the line \(2x + 3y - 6 = 0\), so \(a = 2\), \(b = 3\), \(c = -6\). The x-intercept is
$$-\frac{-6}{2} = \frac{6}{2} = 3$$giving the point \((3, 0)\). The y-intercept is
$$-\frac{-6}{3} = \frac{6}{3} = 2$$giving the point \((0, 2)\). The line therefore crosses the x-axis at \(x = 3\) and the y-axis at \(y = 2\).
FAQ
What if a or b is zero? If \(a = 0\) the line is horizontal (parallel to the x-axis) and has no x-intercept; if \(b = 0\) the line is vertical and has no y-intercept. The calculator marks these undefined cases.
Can I use slope-intercept form? Yes — rewrite \(y = mx + k\) as \(mx - y + k = 0\), so \(a = m\), \(b = -1\), \(c = k\).
Why are intercepts useful? Plotting both intercepts gives two points that uniquely define and let you draw any non-vertical, non-horizontal line.