AlgebraBeginner

Slope-Intercept Form (y = mx + b)

Slope-intercept form is the most useful way to write a linear equation. The equation y = mx + b immediately tells you two things: the slope (how steep the line is) and where it crosses the y-axis. Most graphing and analysis starts here.

✔ Quick Answer

m is the slope (rise over run) and b is the y-intercept (where the line crosses the y-axis). In y = 2x + 3: the line rises 2 units for every 1 unit right, and crosses the y-axis at (0, 3).

1 What m and b Mean

In y = mx + b, every part has a specific geometric meaning that makes the equation immediately readable.

Breaking down y = mx + b
mSlope , how steep the line is. Rise over run: how many units up (or down) for every 1 unit right. Positive slope goes up left to right. Negative slope goes down. Zero slope is horizontal.
bY-intercept , where the line crosses the y-axis. The point (0, b) is always on the line. When x = 0, y = b.
Reading a line instantly

y = 3x − 4: slope is 3 (rises 3 units per unit right), y-intercept is −4 (crosses y-axis at (0,−4)). y = −x + 7: slope is −1 (falls 1 unit per unit right), y-intercept is 7. You can graph either line immediately from this information.

2 How to Graph from Slope-Intercept Form

Graphing y = mx + b takes two steps: plot the y-intercept, then use the slope to find a second point.

Graphing y = 2x + 1
Graph the line y = 2x + 1
1Step 1: Plot the y-intercept. b = 1, so plot the point (0, 1)
2Step 2: Use the slope. m = 2 = 2/1, meaning rise 2, run 1
3From (0, 1), move right 1 and up 2: plot point (1, 3)
4Draw a straight line through both points and extend in both directions
Answer: Line passing through (0, 1) and (1, 3) with slope 2
Slope is rise OVER run, not run over rise

m = 3 means go up 3 for every 1 right , not right 3 for every 1 up. If m = 3/4, you go up 3 and right 4. Getting this backwards gives you a completely different line.

Try the Slope Calculator

Find the slope and equation of any line from two points.

Open Calculator →

3 Writing the Equation from Two Points

Given two points, you can find the slope-intercept equation in two steps: calculate the slope, then find b.

Equation from Two Points
Find the equation of the line through (2, 5) and (4, 11)
1Calculate slope: m = (y₂ − y₁)/(x₂ − x₁) = (11 − 5)/(4 − 2) = 6/2 = 3
2Use y = mx + b with one point: 5 = 3(2) + b → 5 = 6 + b → b = −1
3Equation: y = 3x − 1
4Check with second point: y = 3(4) − 1 = 12 − 1 = 11 ✓
Answer: y = 3x − 1

4 Converting from Standard Form

Standard form (Ax + By = C) can be converted to slope-intercept form by solving for y.

Converting Standard to Slope-Intercept
Convert 3x + 2y = 8 to slope-intercept form
1Isolate y: subtract 3x from both sides: 2y = −3x + 8
2Divide everything by 2: y = −(3/2)x + 4
Answer: y = −(3/2)x + 4 , slope is −3/2, y-intercept is 4

5 Real-World Applications

Any situation where something changes at a constant rate can be modeled with slope-intercept form. A plumber who charges $50 per hour plus a $75 call-out fee: total cost y = 50x + 75, where x is hours. The slope (50) is the hourly rate, the y-intercept (75) is the fixed fee.

Cell phone data: if you start with 10GB and use 0.5GB per day, remaining data y = −0.5x + 10. The negative slope shows depletion, the y-intercept is the starting amount, and you can immediately solve for when you run out (y = 0 → x = 20 days).

Practice Problems

What is the slope and y-intercept of y = −4x + 7?
Slope m = −4 (falls 4 units per unit right). Y-intercept b = 7 (crosses y-axis at (0, 7)).
Find the equation of the line with slope 5 passing through (0, −2).
b = −2 (the y-intercept is given directly since x = 0). Equation: y = 5x − 2
Convert 4x − 2y = 10 to slope-intercept form.
−2y = −4x + 10 → y = 2x − 5. Slope = 2, y-intercept = −5
A taxi charges $3.50 per mile plus a $2 base fare. Write the equation and find the cost for 8 miles.
y = 3.50x + 2. At x = 8: y = 28 + 2 = $30

Sources & Further Reading

The explanations on this page draw on the following established sources. We link to primary and secondary sources so you can verify claims and go deeper on any topic.