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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- The line is given by: choose Two points, Standard form Ax + By = C or Slope-intercept form y = mx + b.
- First point x₁ (two points): enter a number.
- First point y₁ (two points): enter a number.
- Second point x₂ (two points): enter a number.
- Second point y₂ (two points): enter a number.
- A (standard form Ax + By = C): enter a number.
- B (standard form Ax + By = C): enter a number.
- C (standard form Ax + By = C): enter a number.
- Slope m (y = mx + b): enter a number.
- y-intercept b (y = mx + b): enter a number.
- 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
| Symbol | Meaning |
|---|---|
| First point x₁ (two points) | |
| First point y₁ (two points) | |
| Second point x₂ (two points) | |
| Second point y₂ (two points) | |
| A (standard form Ax + By = C) | |
| C (standard form Ax + By = C) | |
| Slope m (y = mx + b) | |
| y-intercept b (y = mx + b) | |
| One if The line is given by is Two points, zero otherwise | |
| One if The line is given by is Standard form Ax + By = C, zero otherwise | |
| Result of step 1 | |
| Result of step 2 | |
| x-intercept (x where y = 0) |
Worked example
| The line is given by | Two 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 line | The line crosses both axes once |
|---|---|
| y-intercept (y where x = 0) | 1 |
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.