Slope and the Equation of a Line
After this page you can calculate the slope between two points and use it with a point to write the line's equation in slope-intercept form.
Rise over run
Slope compares vertical change with horizontal change. For points (x₁, y₁) and (x₂, y₂), use m = (y₂ − y₁)/(x₂ − x₁), keeping the coordinates in the same order in both differences.
find the slope and line through A=(-2,1) and B=(4,13)The board finds the run and rise first, then divides to obtain the slope. It substitutes the first point into y = mx + b to find the intercept, so the finished equation passes through both given points.
Negative and fractional slopes
A negative slope means that y decreases as x increases. Keep the signs with each coordinate when subtracting, and leave a slope as a simplified fraction when the rise does not divide evenly by the run.
find the slope and line through A=(-3,5) and B=(5,-1)Watch how the negative vertical change determines the sign. The same slope appears in the equation, while the intercept is calculated separately rather than copied from either coordinate.
A horizontal line
When two distinct points have the same y-coordinate, their rise is zero. A nonzero run then gives slope zero, and every point on the line has that same y-coordinate.
find the slope and line through A=(-4,3) and B=(2,3)The slope-intercept equation has no visible x-term because multiplying x by zero removes it. This is different from a vertical line, whose zero run makes its slope undefined.
Practice
Practice: problems like this one, made and checked in your browser.
Recap
- Slope is the change in y divided by the corresponding change in x.
- Use y = mx + b and one known point to determine the intercept.
- A horizontal line has slope zero; a vertical line has undefined slope.