ThisCalculator

Everyday

Intercept Calculator: Find X & Y Intercepts

Updated · Standard formula, shown below

Y-intercept (y = c/b) 2.00
X-intercept (x = -c/a)
-3.00
Result
Slope (m = -a/b)
-0.67
Result
Coefficient of x (m or A)
2
You entered

Intercept Calculator: Find X & Y Intercepts

This calculator finds the x-intercept and y-intercept of a straight line from its equation. You enter the coefficients of the line in slope-intercept form (y = mx + b) or standard form (Ax + By = C), and the calculator returns both intercepts as coordinate points, along with the slope. The x-intercept is where the line crosses the horizontal axis, and the y-intercept is where it crosses the vertical axis.

Formula

For a line in standard form Ax + By = C, the intercepts are found by setting one variable to zero:

  • Y-intercept: Set x = 0, then y = C / B. The point is (0, C/B).
  • X-intercept: Set y = 0, then x = C / A. The point is (C/A, 0).
  • Slope: m = -A / B (when B ≠ 0).

If your equation is already in slope-intercept form y = mx + b, then the y-intercept is simply (0, b) and the x-intercept is found by solving 0 = mx + b, giving x = -b/m.

Worked Example

Using the default values from the calculator: A = 2, B = 3, C = 6. The equation is 2x + 3y = 6.

  1. Y-intercept: Set x = 0 → 2(0) + 3y = 6 → 3y = 6 → y = 2. Point: (0, 2).
  2. X-intercept: Set y = 0 → 2x + 3(0) = 6 → 2x = 6 → x = 3. Point: (3, 0).
  3. Slope: m = -A/B = -2/3 ≈ -0.67.

The calculator shows y-intercept = 2, x-intercept = 3, and slope = -0.67, matching the manual calculation.

How to Use the Intercept Calculator

Enter the coefficients for your line. The calculator accepts both standard form (Ax + By = C) and slope-intercept form (y = mx + b). For slope-intercept form, enter m as the coefficient of x (a), 1 as the coefficient of y (b), and the constant b as c. For example, y = 2x + 5 would be a=2, b=1, c=5. The calculator then computes both intercepts and the slope. If you only need one intercept, you can still get both—they are always shown together.

Why Intercepts Matter

Intercepts are fundamental in graphing linear equations. The y-intercept tells you where the line starts on the vertical axis when x = 0, often representing an initial value in real-world problems (like starting balance). The x-intercept tells you where the line crosses the horizontal axis, often representing a break-even point or a root of the equation. Together with the slope, they fully define a straight line.

Common Mistakes and How to Avoid Them

  • Mixing up A and B: Remember the standard form is Ax + By = C. A is the coefficient of x, B is the coefficient of y. Swapping them gives wrong intercepts.
  • Forgetting the negative sign: The x-intercept formula is -C/A, not C/A. The same for slope: -A/B. A common error is dropping the minus sign.
  • Dividing by zero: If B = 0, the line is vertical and has no y-intercept (unless it’s the y-axis itself). If A = 0, the line is horizontal and has no x-intercept. The calculator will show an error or undefined in those cases.
  • Unit confusion: Intercepts are points, not lengths. They carry the same units as the axes. If your axes are in dollars and months, the y-intercept is in dollars, the x-intercept in months.

Limitations of the Formula

This calculator works only for straight lines. It cannot handle curves, parabolas, or circles. For a vertical line (x = k), there is no y-intercept, and the slope is undefined. For a horizontal line (y = k), there is no x-intercept (unless k = 0, in which case the line is the x-axis itself). Also, if the line passes through the origin, both intercepts are (0,0), which is a single point.

Frequently Asked Questions

What if my equation is in slope-intercept form (y = mx + b)?

Enter m as the coefficient of x (a), 1 as the coefficient of y (b), and b as the constant (c). For example, y = 3x – 2 becomes a=3, b=1, c=-2. The calculator will then give y-intercept = -2 and x-intercept = 2/3 ≈ 0.67.

Can I use this for horizontal or vertical lines?

Yes, but with limitations. For a horizontal line (y = k), enter a=0, b=1, c=k. The y-intercept is k, but the x-intercept is undefined because the line never crosses the x-axis (unless k=0). For a vertical line (x = k), enter a=1, b=0, c=k. The x-intercept is k, but the y-intercept is undefined.

What do the intercepts mean in a real-world graph?

The y-intercept represents the value of y when x is zero—often an initial amount, starting cost, or baseline. The x-intercept represents the value of x when y is zero—often a break-even point, a root, or a time when a quantity becomes zero. For example, in a cost-revenue graph, the x-intercept of the profit line shows the break-even quantity.

Why is the slope negative in the example?

Because the coefficient of x (A) is positive and the coefficient of y (B) is positive, the slope -A/B is negative. A negative slope means the line descends from left to right. If either A or B were negative, the slope would be positive.

Can I find intercepts from two points instead of an equation?

Yes, but you first need to find the equation of the line from the two points. Compute the slope m = (y2 – y1) / (x2 – x1), then use point-slope form to get the equation, then enter the coefficients into this calculator.

Related

Formula used
in a | Coefficient of x (m or A) | - | 2 | 0
in b | Coefficient of y (B) | - | 3 | 0
in c | Constant (b or C) | - | 6 | 0
out y_int | Y-intercept (y = c/b) | - | c / b | 2
out x_int | X-intercept (x = -c/a) | - | -c / a | 2
out slope | Slope (m = -a/b) | - | -a / b | 2

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.