Slope-Intercept Form
Slope-intercept form is the equation , and it's the most useful way to write a line because both numbers in it mean something you can see. The is the slope — how steep the line is. The is the -intercept — where the line crosses the -axis.
Once you can read and off an equation, you can graph any line in about ten seconds, and you can reverse the process to write the equation of any line you're shown. Both directions show up constantly in Algebra 1.
What m and b tell you
In , the coefficient of is the slope . In , the slope is . In , the slope is , because means . If the slope came from two points, it's the value .
The constant term is the -intercept — the -value where the line crosses the -axis, at the point . In , the line crosses at . If there is no constant written, as in , then and the line passes through the origin.
The graph below shows two lines with the same -intercept, : the black line is and the blue line is . Both cross the -axis at the same point, but the slopes send them in different directions — positive slope climbs to the right, negative slope falls.
Graphing a line from y = mx + b
Step 1: plot the -intercept. Put a point at on the -axis. That's the one point you get for free.
Step 2: use the slope to find a second point. Write as a fraction — the top is the vertical change, the bottom is the horizontal change. For , move up and right from the intercept and plot a second point. For a negative slope like , move down and right .
Step 3: draw the line through the two points. Two points determine the line — extend it in both directions with a straightedge.
Writing the equation from a graph
Go in reverse. First read : find where the line crosses the -axis. Then find : pick two points where the line passes exactly through grid corners and compute . Finally, drop both numbers into .
If the equation you're given isn't in slope-intercept form — something like — solve it for first. Subtracting from both sides gives , and now the slope and intercept are visible.
Worked examples
Example 1: read m and b from an equation
Identify the slope and -intercept of .
Answer: slope , -intercept — the line crosses the -axis at
Example 2: graph a line from its equation
Graph .
Answer: the line through and
Example 3: write the equation from a slope and intercept
A line has slope and crosses the -axis at . Write its equation.
Answer:
Example 4: rearrange into slope-intercept form
Write in slope-intercept form and identify and .
Answer: , with slope and -intercept
Try one yourself
Common questions
What if the equation isn't written as y = mx + b?
Solve it for first. Move the -term to the other side, then divide everything by the coefficient of if there is one. For example, becomes , so and .
What does the line look like when m is negative? When m is 0?
A negative slope falls from left to right — the bigger is, the steeper the drop. A slope of gives , a horizontal line. A vertical line can't be written in slope-intercept form at all, because its slope is undefined.
Is the -intercept a point or a number?
Both usages are common. The -intercept is a number, and the line crosses the -axis at the point . If a question asks for the -intercept of , answering or describes the same crossing.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.