Slope Intercept Form Calculator

Convert any linear equation to y = mx + b with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
Convert 3x + 2y = 6 to slope-intercept form
Find y = mx + b for the line through (2, 5) and (4, 11)
Line with slope -3 passing through (0, 4)
Slope and y-intercept of 4x - 2y = 8

What is Slope-Intercept Form?

The slope-intercept form of a linear equation in two variables is:

y=mx+by = mx + b

where:

  • mm is the slope — how steeply the line rises or falls. Slope =riserun= \dfrac{\text{rise}}{\text{run}}.
  • bb is the y-intercept — the yy-value where the line crosses the y-axis (the point (0,b)(0, b)).

Why this form is special: it reads off two pieces of geometric information at a glance — the slope and the y-intercept — without any computation. By contrast, standard form Ax+By=CAx + By = C obscures both.

Slope-intercept is the working form of choice for graphing lines, comparing parallel/perpendicular relationships, and writing equations from a description.

How to Find Slope-Intercept Form

Case 1: From an Equation in Standard Form

Given Ax+By=CAx + By = C, solve for yy:

By=Ax+Cy=ABx+CBBy = -Ax + C \quad \Rightarrow \quad y = -\frac{A}{B}x + \frac{C}{B}

So m=A/Bm = -A/B and b=C/Bb = C/B.

Case 2: From Two Points

Given (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Then use one of the points to solve for bb:

b=y1mx1b = y_1 - m x_1

Case 3: From Slope and One Point

Given slope mm and a point (x0,y0)(x_0, y_0):

b=y0mx0b = y_0 - m x_0

Case 4: From a Graph

Read the y-intercept directly from where the line crosses the y-axis. Pick another lattice point and count rise/run\text{rise} / \text{run} to find mm.

Special Cases

  • Horizontal line y=cy = c: slope m=0m = 0, y-intercept b=cb = c.
  • Vertical line x=cx = c: slope is undefined. Cannot be written as y=mx+by = mx + b.

Parallel and Perpendicular Lines

Two lines y=m1x+b1y = m_1 x + b_1 and y=m2x+b2y = m_2 x + b_2 are:

  • Parallel iff m1=m2m_1 = m_2 (same slope, different intercepts)
  • Perpendicular iff m1m2=1m_1 m_2 = -1 (negative reciprocal slopes)

Common Mistakes to Avoid

  • Slope sign errors: m=(y2y1)/(x2x1)m = (y_2 - y_1)/(x_2 - x_1). Subtract yy's in the same order as xx's. Reversing one but not the other flips the sign.
  • Dividing by zero: If x1=x2x_1 = x_2, the line is vertical — slope undefined, no slope-intercept form exists.
  • Confusing y-intercept with x-intercept: bb is the y-intercept. The x-intercept is found by setting y=0y = 0 and solving for xx.
  • Forgetting to divide by BB: When converting Ax+By=CAx + By = C to slope-intercept, you must divide every term by BB, not just the yy term.
  • Wrong perpendicular slope: Perpendicular means m1m2=1m_1 m_2 = -1, so m2=1/m1m_2 = -1/m_1. Just flipping the sign or just reciprocating is not enough.

Examples

Step 1: Isolate yy: 2y=3x+62y = -3x + 6
Step 2: Divide every term by 2: y=32x+3y = -\frac{3}{2}x + 3
Step 3: Identify: m=3/2m = -3/2, b=3b = 3
Answer: y=32x+3y = -\dfrac{3}{2}x + 3

Step 1: Slope: m=(82)/(31)=6/2=3m = (8 - 2)/(3 - 1) = 6/2 = 3
Step 2: Use point (1,2)(1, 2): b=231=1b = 2 - 3 \cdot 1 = -1
Step 3: Final equation: y=3x1y = 3x - 1
Step 4: Verify with (3,8)(3, 8): 331=83 \cdot 3 - 1 = 8
Answer: y=3x1y = 3x - 1

Step 1: Use b=y0mx0=1(2)(4)=1+8=9b = y_0 - m x_0 = 1 - (-2)(4) = 1 + 8 = 9
Step 2: Equation: y=2x+9y = -2x + 9
Answer: y=2x+9y = -2x + 9

Frequently Asked Questions

m is the slope (rise over run), b is the y-intercept (the y-value where the line crosses the y-axis), x is the input, and y is the output for that input.

Every non-vertical line can. Vertical lines x = c have undefined slope and cannot be written as y = mx + b — use the standard form x = c instead.

Point-slope form y - y₀ = m(x - x₀) emphasizes a specific point on the line. Slope-intercept form y = mx + b emphasizes the y-intercept. Both describe the same line — slope-intercept is the simplified version where the 'point' is (0, b).

Compare slopes. Same slope = parallel (and they don't intersect unless they're identical). Slopes that multiply to -1 = perpendicular. Otherwise the lines intersect at exactly one point.

Related Solvers

Linear Equation CalculatorSystem of Equations SolverEquation Solver
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving