Smekys
Ad Space

Slope Intercept Form Calculator

Free slope intercept form calculator converts two points or standard form Ax+By=C into y=mx+b, with slope m, y-intercept b, x-intercept and line equation.

Enter Values

Choose whether to enter two points (x1,y1) and (x2,y2) or a standard form equation Ax + By = C.

units

Horizontal coordinate of the first point. Used when mode = two points.

units

Vertical coordinate of the first point. Used when mode = two points.

units

Horizontal coordinate of the second point. Used when mode = two points.

units

Vertical coordinate of the second point. Used when mode = two points.

units

Coefficient of x in Ax + By = C. Used when mode = standard form.

units

Coefficient of y in Ax + By = C. Used when mode = standard form; must not be 0.

units

Right-hand constant in Ax + By = C. Used when mode = standard form.

Result

Slope (m)
2
Y-Intercept (b)
-1
X-Intercept
0.5
Standard Form Equivalent
10

The slope-intercept form of a line, written as y = mx + b, is the single most useful way to describe a straight line on a graph. The letter m is the slope (how steep the line is), and the letter b is the y-intercept (where the line crosses the y-axis). Once you have a line in this form, you can plot it instantly, read off where it crosses each axis, and plug in any x to find the matching y.

This calculator does the algebra for you. Give it two points on the line, or give it a standard-form equation like 2x + 3y = 6, and it returns the slope m, the y-intercept b, the x-intercept, and the clean y = mx + b equation — along with the equivalent standard form so you can check your work.

How to Use

  1. Pick an Input Mode. Choose two points when you know two coordinates on the line (for example, from a graph or a word problem). Choose standard form when you are starting from an equation written as Ax + By = C and need to rearrange it.
  2. If you chose two points, enter x₁, y₁ for the first point and x₂, y₂ for the second. You can use decimals, negatives, and zero freely.
  3. If you chose standard form, enter the coefficients A, B, and C exactly as they appear in Ax + By = C. The calculator isolates y and rewrites the equation for you.
  4. Read the result card: the slope (m) tells you the rise over run, the y-intercept (b) is the point where x = 0, the x-intercept is where y = 0, and the slope-intercept equation is the final y = mx + b.
  5. Use the standard form equivalent line to confirm the reverse conversion: multiply through to clear decimals and you should recover the Ax + By = C you started from.

The slope m is a ratio: a slope of 2 means the line rises 2 units for every 1 unit it moves to the right. A negative slope, such as −0.667, means the line tilts downward from left to right. A slope of 0 is a flat horizontal line.

The Slope-Intercept Equation Explained

A line in slope-intercept form looks like this:

y = m x + b

Where:

  • m is the slope, calculated as the change in y divided by the change in x between any two points.
  • b is the y-intercept, the y-value where the line crosses the vertical axis (the point (0, b)).
  • x and y are the coordinates of any point on the line.

When you are given two points (x₁, y₁) and (x₂, y₂), the slope is:

m = (y₂ − y₁) / (x₂ − x₁)

Once m is known, the intercept is recovered by plugging either point back in:

b = y₁ − m · x₁

For example, on the line through (2, 3) and (4, 7), the slope is (7 − 3) / (4 − 2) = 4 / 2 = 2, and the intercept is b = 3 − 2 · 2 = −1. The equation is y = 2x − 1.

When you start from the standard form Ax + By = C, solve for y: subtract Ax from both sides, then divide by B:

By = −Ax + C → y = (−A/B) x + (C/B)

So m = −A/B and b = C/B. On 2x + 3y = 6, that gives m = −2/3 ≈ −0.667 and b = 6/3 = 2, or y = −⅔x + 2.

From Standard Form to Slope-Intercept (and Back)

Standard form Ax + By = C is convenient for finding intercepts directly (set y = 0 for the x-intercept, set x = 0 for the y-intercept), but it is poor for graphing by hand. Slope-intercept form is the opposite: you immediately know where to start (at (0, b)) and which way to move (rise m, run 1). Converting between them is just two steps: isolate y, then divide by B.

The reverse conversion — from y = mx + b back to Ax + By = C — is equally quick. Multiply through by the denominator of m to clear fractions, move the x term to the left side, and you are done. For y = 2x − 1, subtract 2x: −2x + y = −1, then multiply by −1 for a clean leading coefficient: 2x − y = 1. This calculator shows that equivalent standard form on every result card.

Real-World Examples

Slope-intercept form is not just textbook algebra — it shows up whenever one quantity changes steadily with another. A phone plan that costs a $30 fixed fee plus $10 per gigabyte has a monthly cost of y = 10x + 30, where x is gigabytes used. Here m = 10 is the marginal cost and b = 30 is the base fee. A worker earning a $150 daily travel stipend plus a 12% commission on sales has daily pay y = 0.12x + 150. Reading off m and b tells you instantly what is fixed and what is variable.

Examples

Example 1 — Two points on a grid. A line passes through (2, 3) and (4, 7). The slope is (7 − 3)/(4 − 2) = 2, and the y-intercept is 3 − 2·2 = −1. The equation is y = 2x − 1, the y-intercept is (0, −1), and the x-intercept is (0.5, 0).

Example 2 — A line through the origin. A line passes through (0, 0) and (3, 6). The slope is 6/3 = 2, and the intercept b = 0 − 2·0 = 0. The equation is simply y = 2x. Both intercepts coincide at the origin.

Example 3 — Converting standard form. Given 2x + 3y = 6, solve for y: 3y = −2x + 6, so y = −⅔x + 2. The slope is −0.667, the y-intercept is (0, 2), and the x-intercept is (3, 0). A negative slope means the line falls as you move to the right.

Example 4 — Large coordinates. A line passes through (1,000,000, 2,000,000) and (2,000,000, 4,000,000). The slope is (4,000,000 − 2,000,000)/(2,000,000 − 1,000,000) = 2, and the intercept is 2,000,000 − 2·1,000,000 = 0. The equation is y = 2x, regardless of the large scale.

Example 5 — A negative-slope business model. A café spends $400 a day fixed and sells each latte for $4. Profit after x lattes sold is y = 4x − 400. The slope m = 4 is the revenue per latte, and the break-even point (x-intercept) is x = 100 lattes. Below 100, the café loses money; above 100, it makes $4 per latte.

FAQ

How do I find slope-intercept form from two points?

Compute the slope m = (y₂ − y₁) / (x₂ − x₁), then plug the first point back into y = mx + b and solve: b = y₁ − m·x₁. The final equation is y = mx + b. Entering your two points above does this automatically.

How do I convert standard form Ax + By = C to slope-intercept?

Isolate y: subtract Ax from both sides to get By = −Ax + C, then divide every term by B. The slope is m = −A/B and the y-intercept is b = C/B. This assumes B is not zero; if B = 0 the equation is a vertical line and slope-intercept form does not apply.

What if the slope is zero?

A slope of zero means the line is horizontal: y = 0·x + b, or simply y = b. The line never crosses the x-axis (unless b = 0, in which case it is the x-axis itself). The x-intercept is undefined in the usual sense.

What if two points have the same x-coordinate?

If x₁ = x₂, the run is zero and the slope is undefined. The line is vertical (x = constant) and cannot be written in y = mx + b form, because a vertical line has no single y for a given x. The calculator flags this as an error rather than returning a nonsense value.

How do I find the x-intercept from y = mx + b?

Set y = 0 and solve for x: 0 = mx + b, so x = −b/m. This works as long as the slope m is not zero. For y = 2x − 1, the x-intercept is −(−1)/2 = 0.5, the point (0.5, 0).

What does a negative slope mean?

A negative slope means the line decreases from left to right: as x grows, y shrinks. On 2x + 3y = 6 the slope is −2/3, so every +1 increase in x lowers y by about 0.667. Graphs with negative slopes model depreciating values, declining temperatures over distance, and costs that fall as production scales.

Disclaimer

This slope intercept form calculator is provided for informational purposes only and does not constitute mathematical, engineering, or educational advice. Results are computed directly from the linear formulas m = (y₂ − y₁)/(x₂ − x₁) and b = y₁ − m·x₁ (or m = −A/B, b = C/B for standard form). Always double-check critical calculations by hand or with a trusted textbook, and confirm that your inputs correspond to a non-vertical, non-degenerate line before relying on the output.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.