X and Y Intercept Calculator

Find where any line crosses the x-axis and y-axis from standard form Ax + By = C or slope-intercept form y = mx + b. View exact fractions, step-by-step arithmetic, and coordinate graphs.

Accepts integers, decimals, and fractions (e.g. 3/4).

Try:
Intercepts: (3, 0) and (0, 2)
Slope (m)
−2/3
Line Equation
2x + 3y = 6
Show the work (step-by-step)

Intercept Graph

Visualizing where the line crosses both axes

x y −5 5 3 −3 (3, 0) (0, 2)
x-intercept: (3, 0) | y-intercept: (0, 2)
  • Line
  • x-intercept (a, 0)
  • y-intercept (0, b)

What intercepts are

In coordinate geometry, an intercept marks the precise location where a geometric line or curve crosses one of the reference axes on a coordinate grid. Because a standard two-dimensional grid consists of a horizontal x-axis and a vertical y-axis, lines typically possess two distinct intercepts: an x-intercept and a y-intercept.

Intercepts are among the most practical landmarks of any linear equation. They establish where a relationship begins or crosses zero. In business and economics, the x-intercept frequently represents a break-even threshold where profit equals zero, while the y-intercept indicates fixed startup expenses before any products are manufactured. In physical sciences, intercepts reveal initial velocities, freezing points, and ground impacts.

Graphing a straight line requires only two points. Finding both coordinate intercepts gives you the two quickest and most convenient points to plot on graph paper.

Finding the x-intercept

The horizontal axis represents every location where vertical elevation equals zero. Consequently, every single point lying on the x-axis has a y-coordinate of 0.

To find the x-intercept of any line:

  1. Substitute y = 0 into the line equation.
  2. Solve the remaining algebraic equation for the single variable x.
  3. State the resulting answer as an ordered pair: (x, 0).

For an equation in standard form Ax + By = C, setting y = 0 eliminates the By term completely:

A x + B(0) = C &implies; x = C A

For instance, in the equation 2x + 3y = 6, substituting y = 0 yields 2x = 6, which reduces to x = 3. The line crosses the horizontal axis at the coordinate (3, 0).

Finding the y-intercept

The vertical axis represents every position where horizontal distance equals zero. Therefore, every point located on the y-axis has an x-coordinate of 0.

To calculate the y-intercept of any line:

  1. Substitute x = 0 into the line equation.
  2. Solve the remaining algebraic equation for the single variable y.
  3. Express the final solution as an ordered coordinate pair: (0, y).

In slope-intercept form y = mx + b, setting x = 0 leaves y = m(0) + b = b. This is why the constant b is directly termed the y-intercept. In standard form Ax + By = C, setting x = 0 drops the Ax term:

A(0) + B y = C &implies; y = C B

Using our previous equation 2x + 3y = 6, setting x = 0 yields 3y = 6, which simplifies to y = 2. The line crosses the vertical axis at (0, 2).

Graphing a line from its intercepts

Plotting a line from its axis intercepts is often called the intercept method of graphing. It avoids complicated fraction tables and requires only three simple actions:

  • Plot the x-intercept: Mark the point (x, 0) directly on the horizontal axis.
  • Plot the y-intercept: Mark the point (0, y) directly on the vertical axis.
  • Draw the line: Lay a straightedge across both marked points and draw a continuous line extending across the grid in both directions.

Once plotted, the geometric slope of the line is readily visible. Moving from the y-intercept (0, y) to the x-intercept (x, 0), the vertical change is −y while the horizontal change is x. The slope is m = −y / x = −A / B. If you want to check intermediate points along the segment, you can find the halfway point first or calculate the straight-line distance between the two intercept coordinates.

Lines with one or no intercept

While oblique lines cross both axes, special horizontal and vertical lines interact with the coordinate axes in unique ways:

  • Horizontal lines (y = k where k ≠ 0): These lines run parallel to the x-axis. Because the height remains fixed at k forever, the line never touches the horizontal axis. It possesses a y-intercept at (0, k), but has no x-intercept.
  • Vertical lines (x = h where h ≠ 0): These lines run parallel to the vertical y-axis. The horizontal coordinate remains fixed at h, so the line never crosses the y-axis. It has an x-intercept at (h, 0), but no y-intercept.
  • Lines crossing the origin (y = mx or Ax + By = 0): When C = 0 in standard form, both intercepts occur at the origin (0, 0). Because one point alone cannot fix a line's direction, a second reference point must be calculated using the line's slope.
  • The coordinate axes themselves: The equation y = 0 represents the x-axis itself, touching every real number along the horizontal axis, so it has infinitely many x-intercepts. Similarly, x = 0 represents the y-axis and has infinitely many y-intercepts.

Worked example

Problem: Determine the exact x-intercept and y-intercept for the linear equation 3x + 4y = 24. Then calculate the slope of the line.

Step 1: Find the x-intercept by substituting y = 0.

3x + 4(0) = 24 &implies; 3x = 24 &implies; x = 24 / 3 = 8

The line crosses the horizontal axis at the coordinate point (8, 0).

Step 2: Find the y-intercept by substituting x = 0.

3(0) + 4y = 24 &implies; 4y = 24 &implies; y = 24 / 4 = 6

The line crosses the vertical axis at the coordinate point (0, 6).

Step 3: Calculate the slope between both intercepts.

m = (y₂ − y₁) / (x₂ − x₁) = (0 − 6) / (8 − 0) = −6 / 8 = −3/4

Both intercepts are now identified: the x-intercept is (8, 0), the y-intercept is (0, 6), and the resulting downward slope is m = −3/4.

The intercept form of a linear equation

Algebra offers multiple ways to represent a line. When both axis intercepts are known and non-zero, the intercept form provides the most direct algebraic expression:

x a + y b = 1

You can derive this format directly from standard form Ax + By = C by dividing every term by C:

Ax / C + By / C = 1 &implies; x / (C / A) + y / (C / B) = 1

The x-intercept equals C / A and the y-intercept equals C / B. Substituting a = C / A and b = C / B produces the intercept equation.

This formulation makes graphing rapid. You plot point a on the horizontal axis and point b on the vertical axis, then connect them with a straightedge.

The intercept format has specific boundaries:

  • Lines passing through the origin: If a line crosses (0, 0), both intercepts equal zero. Division by zero is undefined, so origin lines cannot use this form.
  • Horizontal lines: A line y = k has no x-intercept, making the parameter a undefined.
  • Vertical lines: A line x = h has no y-intercept, making the parameter b undefined.

Real-world meaning of intercepts across applied sciences

Intercepts are not merely geometric coordinates on a grid. In applied science and quantitative analysis, each intercept represents a critical boundary condition where one variable drops to zero.

Consumer Economics

Consider a consumer budget line Pₓx + Pᵧy = I. The x-intercept represents the maximum quantity of good x affordable with zero good y purchase. The y-intercept represents maximum good y consumption when spending nothing on good x.

Kinematics & Physics

On a velocity-time graph v(t) = at + v₀, the vertical intercept v₀ marks initial velocity at time zero. The horizontal time intercept t = −v₀ / a identifies the exact stopping moment when velocity reaches zero.

Corporate Finance

In profit models P(x) = mx − F, the vertical intercept −F denotes fixed overhead expenses incurred before selling any merchandise. The horizontal intercept x = F / m represents the break-even volume required to transition into profitability.

Common mistakes with intercepts

Review these common errors to ensure accurate calculations every time:

  • Swapping x and y zeros: Setting x = 0 finds the y-intercept, while setting y = 0 finds the x-intercept. Swapping them mixes up both axes.
  • Writing intercepts as standalone numbers: In algebra classes, teachers often require intercepts written as full coordinate pairs, such as (3, 0) and (0, 2), rather than bare numbers like 3 or 2.
  • Losing negative signs during division: In an equation like 2x − 3y = 6, setting x = 0 leaves −3y = 6. Dividing by −3 gives y = −2, not positive 2.
  • Assuming every line has two intercepts: Remember that horizontal lines lack an x-intercept and vertical lines lack a y-intercept unless they coincide with the axes.

Reference table: Intercept patterns by equation type

Equation Form Example Equation X-Intercept Y-Intercept Slope (m)
Standard Form 2x + 3y = 6 (3, 0) (0, 2) −2/3
Slope-Intercept Form y = −2x + 4 (2, 0) (0, 4) −2
Vertical Line x = 5 (5, 0) None Undefined
Horizontal Line y = 3 None (0, 3) 0
Passes Through Origin y = 2x (0, 0) (0, 0) 2

Once you determine your line intercepts, you can write it in slope-intercept form to highlight steepness, convert to standard form for clean integer coefficients, or evaluate the average rate of change across specific intervals. You can also test any coordinate pair in our primary slope calculator to see the rise and run.

For verified textbook lessons on graphing with intercepts, consult OpenStax Intermediate Algebra 2e section on graphing linear equations in two variables .

Maintained by the SlopeCalculator.cc Editorial Team · Updated

X and y intercept FAQs

What is an x-intercept?

An x-intercept is the coordinate point where a graph crosses the horizontal x-axis. Because every point on the x-axis has a height of zero, the y-value is always 0, giving the coordinate format (x, 0).

What is a y-intercept?

A y-intercept is the coordinate point where a graph crosses the vertical y-axis. Because every point on the y-axis has a horizontal position of zero, the x-value is always 0, giving the coordinate format (0, y).

How do you find the x-intercept from an equation?

Substitute y = 0 into your linear equation and solve the remaining algebraic equation for x. In standard form Ax + By = C, setting y = 0 leaves Ax = C, so x = C / A.

How do you find the y-intercept from an equation?

Substitute x = 0 into your linear equation and solve for y. In slope-intercept form y = mx + b, setting x = 0 leaves y = b. In standard form Ax + By = C, setting x = 0 leaves By = C, so y = C / B.

Can a straight line have no x-intercept or no y-intercept?

Yes. A horizontal line such as y = 3 runs parallel to the x-axis and never crosses it, meaning it has no x-intercept. A vertical line such as x = 5 runs parallel to the y-axis and has no y-intercept.

Can both intercepts be the same point?

Yes. When a line passes directly through the origin (0, 0), such as y = 2x, both the x-intercept and y-intercept occur at the single point (0, 0).