Skip to content
Calcipedia

X Y Intercept Calculator

Find the x-intercept and y-intercept of a linear equation from standard form, slope-intercept form, or two points, with steps and graphing guidance.

Last updated

Standard form: Ax + By = C

Result

(4, 0)

X-intercept for standard form: ax + by = c.

Y-intercept
(0, 2)
Set x = 0; in y = mx + b, the y-intercept is b.
Slope (m)
-0.5
Line with slope -0.5 and y-intercept 2
Slope-intercept form
y = -0.5x + 2
Standard form
x + 2y = 4

Steps

  1. Start with x + 2y = 4.
  2. For the x-intercept, set y = 0: 1x = 4, so x = 4.
  3. For the y-intercept, set x = 0: 2y = 4, so y = 2.
  4. Solving for y gives y = -0.5x + 2, so the slope is -0.5.

Graphing check

Plot the x-intercept and y-intercept when both are single points. If one intercept says every point on an axis, the line lies directly on that axis.

← All Functions calculators

Algebra

X-intercept and y-intercept calculator for linear equations

The x and y intercept calculator finds where a linear equation crosses the coordinate axes. Use standard form, slope-intercept form, or two points on a line to get both intercept coordinates, the slope, equivalent equation forms, and the steps used to solve them.

What the calculator finds

The x-y intercept calculator finds where a line crosses the x-axis and y-axis. Enter equation coefficients or points on the line to get both intercepts and their coordinates, with special handling for horizontal lines, vertical lines, and lines that pass through the origin.

An x-intercept is a point where the line has y = 0, so its coordinate is written as (x, 0). A y-intercept is a point where the line has x = 0, so its coordinate is written as (0, y). These axis-crossing points are useful when graphing a line because two distinct points are enough to draw a straight line.

How intercepts are found from standard form

The y-intercept is the point where the line crosses the y-axis, found by setting x = 0 and solving for y. The x-intercept is the point where the line crosses the x-axis, found by setting y = 0 and solving for x.

For the equation Ax + By = C: the y-intercept is (0, C/B) and the x-intercept is (C/A, 0), provided the relevant coefficient is not zero. If A is zero, the line is horizontal; if B is zero, the line is vertical. The calculator reports those special cases instead of forcing a division-by-zero result.

x-intercept: (C/A, 0)

Set y = 0 in Ax + By = C, then solve Ax = C.

y-intercept: (0, C/B)

Set x = 0 in Ax + By = C, then solve By = C.

slope: m = -A/B

When B is not zero, rearrange Ax + By = C into y = (-A/B)x + C/B.

Using slope-intercept form and two points

Competitor intercept tools often require a single equation form, but real homework and graphing problems are written in several forms. This calculator accepts y = mx + b directly, where b is already the y-intercept and the x-intercept is found by solving 0 = mx + b.

When you know two points instead of an equation, the calculator first finds the slope m = (y2 - y1) / (x2 - x1), then substitutes one point into y = mx + b to find b. Once the line is written in slope-intercept form, the same x-intercept and y-intercept rules apply.

x = -b/m

For y = mx + b, set y = 0 and solve for x when m is not zero.

m = (y2 - y1) / (x2 - x1)

Slope from two points before finding the intercepts.

b = y1 - m*x1

The y-intercept after the slope and one point are known.

Worked example

Suppose the line is 2x + 3y = 12. To find the x-intercept, set y = 0: 2x + 3(0) = 12, so 2x = 12 and x = 6. The x-intercept is (6, 0).

To find the y-intercept, set x = 0: 2(0) + 3y = 12, so 3y = 12 and y = 4. The y-intercept is (0, 4). These two points let you sketch the line quickly, and rearranging gives y = -0.666667x + 4, so the line slopes downward from left to right.

  • Start with 2x + 3y = 12.
  • Set y = 0 to get the x-intercept (6, 0).
  • Set x = 0 to get the y-intercept (0, 4).
  • Use the two intercept points as graphing checkpoints.

Special cases and graphing interpretation

A horizontal line has a y-intercept but no single x-intercept unless the line is y = 0. When the line is y = 0, every point on the x-axis is an x-intercept. A vertical line has an x-intercept but no single y-intercept unless the line is x = 0. When the line is x = 0, every point on the y-axis is part of the line.

Lines through the origin have both intercepts at (0, 0). That does not mean there are two different crossing points; it means the line crosses both axes at the same coordinate. If A and B are both zero, the expression does not define a single line, so the calculator returns a warning rather than a false intercept.

When to use related line calculators

Use this intercept calculator when the goal is to find x-axis and y-axis crossings. Use a slope calculator when the main question is steepness from two points, and use an equation of a line calculator when you need to build the full line equation from points or transform between standard, point-slope, and slope-intercept forms.

For graphing, the intercept method is fastest when both intercepts are distinct and easy to plot. If the intercepts are fractional, very close together, or one intercept is missing, plotting a second point from the equation may produce a clearer sketch.

Frequently asked questions

How do you find the x-intercept?

Set y = 0 in the line equation and solve for x. In standard form Ax + By = C, this gives Ax = C, so the x-intercept is (C/A, 0) when A is not zero. In slope-intercept form y = mx + b, this gives x = -b/m when m is not zero.

How do you find the y-intercept?

Set x = 0 in the equation and solve for y. In standard form Ax + By = C, this gives By = C, so the y-intercept is (0, C/B) when B is not zero. In slope-intercept form y = mx + b, the y-intercept is simply (0, b).

Can a line have no x-intercept?

Yes. A horizontal line like y = 5 never crosses the x-axis, so it has no x-intercept. The exception is y = 0, which is the x-axis itself; in that case every point on the line is also on the x-axis.

Can a line have no y-intercept?

Yes. A vertical line like x = 5 never crosses the y-axis, so it has no y-intercept. The exception is x = 0, which is the y-axis itself; in that case every point on the line is also on the y-axis.

How many intercepts does a linear equation have?

A non-horizontal, non-vertical line usually has exactly one x-intercept and one y-intercept. Horizontal lines have a y-intercept and may have no x-intercept. Vertical lines have an x-intercept and may have no y-intercept. A line through the origin has both intercepts at the same point, (0, 0).

What if both intercepts are at the origin?

Lines passing through the origin, such as y = 2x or 2x - y = 0, have both their x-intercept and y-intercept at (0, 0). This is a single coordinate where the line crosses both axes.

What does C mean in Ax + By = C?

In standard form, C is the constant on the right side of the equation. It is not itself an intercept, but it helps determine both intercepts: the x-intercept uses C/A and the y-intercept uses C/B when those divisions are defined.

Is the y-intercept a number or a point?

In graphing, the y-intercept is best written as a point, such as (0, 4). In slope-intercept form y = mx + b, people often refer to b as the y-intercept because it is the y-coordinate of that point.

Can I graph a line using only the intercepts?

Yes, if the x-intercept and y-intercept are two distinct points. Plot both points, then draw the straight line through them. If both intercepts are the same point or one intercept is missing, use another point from the equation as a graphing checkpoint.

Why does the calculator warn when A and B are both zero?

If A and B are both zero, Ax + By = C does not describe one line. The equation is either impossible, such as 0 = 5, or true for every point, such as 0 = 0. Neither case has a single x-intercept or y-intercept to report.

Also in Functions

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.