Equation of a Straight Line: y = mx + b and Point-Slope Form
How to read slope and intercept from , how to graph a line from its equation, and how to write the equation of a line from a point and a slope or from two points, including parallel and perpendicular lines.
A straight line is fixed by two facts: how steep it is, and where it is. The equation stores exactly those two facts.
is the slope. is the -intercept: the line passes through . In the UK this is often written .
Move the sliders and watch how each number controls the line.
Changing swings the line around its intercept. Changing slides the whole line up or down without changing its steepness.
Graphing from the equation
Plot . Then step run 1, rise to find more points, and join them up.
Graph .
- 1
Start at the intercept, .
Rearranging into this form
Equations are not always given as . Solve for and the slope and intercept appear.
Find the slope and -intercept.
Writing the equation of a line
If you know the slope and any one point on the line, point-slope form gives the equation straight away.
Find the line through and .
- 1
Slope.
Check by substituting the other point: ✓.
Parallel and perpendicular lines
Same slope: parallel. Slopes and : at right angles.
Vertical lines cannot be written as , because their slope is undefined. Their equations look like .
Common questions
- What do m and b stand for in y = mx + b?
is the slope (rise over run) and is the -intercept, the -value where the line crosses the -axis.
- Is y = mx + c the same as y = mx + b?
Yes. The UK usually writes for the intercept and the US writes . The meaning is identical.
The Slope-Intercept Form lesson has worked examples and unlimited practice that adapts to you.