Slope-Intercept Form: y = mx + b
Read the slope and y-intercept straight from y = mx + b, graph a line in seconds, rewrite equations into this form, and write a line from a point and slope.
Welcome back!
Step 1 of 13Learn
The most useful equation in algebra
A gym charges a $30 sign-up fee plus $20 per month. The total cost y after x months is
y = 20x + 30
This is slope-intercept form, y = mx + b:
- m is the slope, the rate of change. Here, $20 per month.
- b is the y-intercept, the value of y when x = 0. Here, the $30 you pay before any months pass. On the graph, the line crosses the y-axis at (0, b).
That is why the form is so popular: both key facts about the line sit in plain sight. In y = −3x + 7, the slope is −3 and the line crosses the y-axis at 7. In y = 0.5x, the slope is 0.5 and b = 0, so the line passes through the origin.
Order does not matter in addition, so y = 5 − 2x is the same as y = −2x + 5. The slope is the coefficient of x, including its sign: here −2, not 5. Misreading the first number as the slope is a common trap.
Use the explorer to see how m tilts the line and b slides it up and down.
Step 2 of 13Practice · Chart
Gym cost: y = 20x + 30
The line starts at $30 (the sign-up fee) and climbs $20 for every month.
Tap the point that shows the y-intercept b.
Tap the point that answers the question, then press Check.
| Months | Total cost |
|---|---|
| 0 mo | $30 |
| 1 mo | $50 |
| 2 mo | $70 |
| 3 mo | $90 |
| 4 mo | $110 |
| 5 mo | $130 |
| 6 mo | $150 |
Step 3 of 13Explore
Explore y = mx + b
Change the slope and the y-intercept. Notice that changing b never changes the steepness, and changing m always keeps the line pinned at (0, b).
- y-intercept point (0, b): y =
- 1
- x-intercept (where y = 0): x =
- -0.5
- y when x = 3
- 7
Step 4 of 13Practice · Choose one
What are the slope and y-intercept of y = 5 − 2x?
Step 5 of 13Learn
Graphing in two moves
With slope-intercept form you can graph a line without a table:
- Plot the y-intercept (0, b).
- Use the slope as rise over run to find a second point, then draw the line through both.
Graph y = (2/3)x − 1. Start at (0, −1). The slope 2/3 means up 2, right 3, landing on (3, 1). Draw the line. For a third point, repeat: (6, 3).
For a negative slope, like y = −3x + 4, write −3 as −3/1: from (0, 4) go down 3 and right 1 to (1, 1). An integer slope always has a run of 1.
If an equation is not in this form, solve for y first. For 4x + 2y = 10: subtract 4x to get 2y = −4x + 10, then divide every term by 2 to get y = −2x + 5. Dividing only some of the terms by 2 is the mistake to watch for.
Once the line is drawn, you can read solutions directly from it: every point on it satisfies the equation.
Step 6 of 13Diagram
Graphing y = (2/3)x − 1 in two moves
Tap a shape with to see more.
- Plot (0, −1)
b = −1 is where the line crosses the y-axis.
- Up 2
The top of the slope 2/3 is the rise.
- Right 3
The bottom of the slope is the run.
- Land on (3, 1)
Check: (2/3)(3) − 1 = 1.
- Draw the line
Two points fix one line. Extend it in both directions.
Step 7 of 13Practice · Put in order
Put the steps for graphing 3x + y = 2 in order.
Drag the items, or use the arrow buttons, to put them in order.
- Plot the y-intercept (0, 2)
- From (0, 2), go down 3 and right 1 to (1, −1)
- Check another point, such as (2, −4), in the original equation
- Draw a straight line through the two points
- Solve for y: y = −3x + 2
Step 8 of 13Practice · Work it out
Rewrite 6x − 3y = 9 in slope-intercept form. What is the y-intercept b?
Step 9 of 13Learn
Writing the equation of a line
Often you know facts about a line and need its equation.
Slope and a point. A line has slope 3 and passes through (2, 5). Start with y = 3x + b and substitute the point: 5 = 3(2) + b, so b = −1. The line is y = 3x − 1.
Two points. A line passes through (1, 4) and (3, 10). First find the slope: (10 − 4)/(3 − 1) = 3. Then substitute either point: 4 = 3(1) + b, so b = 1. The line is y = 3x + 1. Check the other point: 3(3) + 1 = 10. True.
From a graph. Read b where the line crosses the y-axis, then count rise and run between two clear grid points to get m.
From a story. Find the starting amount (b) and the rate (m). A tank holds 40 liters and leaks 2 liters per hour: y = −2x + 40.
The check at the end, substituting a point you did not use, takes ten seconds and catches nearly every arithmetic slip.
Step 10 of 13Try the calculator
Find b from a slope and a point
Substituting the point into y = mx + b and solving gives b = y − m·x. Try slope 3 through (2, 5) from the text.
- y-intercept b
- -1
- Equation: y = m·x + b, with b =
- -1
- x-intercept
- 0.333
Step 11 of 13Practice · Work it out
A line has slope −2 and passes through (3, 4). What is its y-intercept b?
Step 12 of 13Note
Step 13 of 13Practice · True or false
The line y = 4 is written in slope-intercept form with a slope of 4.
Lesson complete!