Skip to content
FiftyCalc Free calculators for all 50 states

Intercept Calculator

Test cases replayed : 6 of 6 match · Methodology · No outside source listed

Choose how you know the line, enter its values, and get where it crosses the x-axis and the y-axis.

Result

Sample figures

x-intercept (x where y = 0)—

Type of line —

  • y-intercept (y where x = 0)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Intercept Calculator

The line is given by: choose Two points, Standard form Ax + By = C or Slope-intercept form y = mx + b. Prefilled example: Two points.

First point x₁ (two points): enter a number. Prefilled example: 1.

First point y₁ (two points): enter a number. Prefilled example: 3.

Second point x₂ (two points): enter a number. Prefilled example: 3.

Second point y₂ (two points): enter a number. Prefilled example: 7.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. The line is given by: choose Two points, Standard form Ax + By = C or Slope-intercept form y = mx + b.
  2. First point x₁ (two points): enter a number.
  3. First point y₁ (two points): enter a number.
  4. Second point x₂ (two points): enter a number.
  5. Second point y₂ (two points): enter a number.
  6. A (standard form Ax + By = C): enter a number.
  7. B (standard form Ax + By = C): enter a number.
  8. C (standard form Ax + By = C): enter a number.
  9. Slope m (y = mx + b): enter a number.
  10. y-intercept b (y = mx + b): enter a number.
  11. Read the result: x-intercept (x where y = 0); the panel also shows Type of line and y-intercept (y where x = 0).

How this calculator works

Every line can be written Ax + By = C. Setting y = 0 gives the x-intercept x = C ÷ A; setting x = 0 gives the y-intercept y = C ÷ B. When A = 0 the line is horizontal and has no x-intercept (unless it is the x-axis); when B = 0 it is vertical and has no y-intercept (unless it is the y-axis).

From two points (x₁, y₁) and (x₂, y₂): A = y₂ − y₁, B = x₁ − x₂ and C = A·x₁ + B·y₁. From y = mx + b: A = −m, B = 1 and C = b.

The formula

  1. A={y2−y1if mp=1caif ms=1−motherwise
  2. C={(y2−y1)×x1+(x1−x2)×y1if mp=1ccif ms=1botherwise
  3. X={CAif A≠010otherwise
Symbols used in the formula
SymbolMeaning
x1First point x₁ (two points)
y1First point y₁ (two points)
x2Second point x₂ (two points)
y2Second point y₂ (two points)
caA (standard form Ax + By = C)
ccC (standard form Ax + By = C)
mSlope m (y = mx + b)
by-intercept b (y = mx + b)
mpOne if The line is given by is Two points, zero otherwise
msOne if The line is given by is Standard form Ax + By = C, zero otherwise
AResult of step 1
CResult of step 2
Xx-intercept (x where y = 0)

Worked example

The line is given byTwo points
First point x₁ (two points)1
First point y₁ (two points)3
Second point x₂ (two points)3
Second point y₂ (two points)7
Type of lineThe line crosses both axes once
y-intercept (y where x = 0)1
  1. A=7−3=4
  2. C=(7−3)×1+(1−3)×3=−2
  3. X=−24=−0.5

x-intercept (x where y = 0) -0.5

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What are the intercepts of 3x + 4y = 12?

x-intercept 4 (12 ÷ 3) and y-intercept 3 (12 ÷ 4), so the line crosses the axes at (4, 0) and (0, 3).

How do I find the x-intercept of y = 2x + 1?

Set y = 0 and solve 0 = 2x + 1, which gives x = −0.5.

Related calculators