The slope formula gives the slope of a line from two points:
Use it when you know two points on the same line and want the line's steepness, or rate of change. In plain language, slope is rise over run: change in divided by change in .
This works only when . If the two points have the same -value, the line is vertical, so the denominator is and the slope is undefined.
If , the line rises from left to right. If , it falls. If , the line is horizontal.
What the slope formula means
The numerator is the vertical change, also called the rise. The denominator is the horizontal change, also called the run.
That is why the slope formula and rise over run are the same idea. The formula is just the coordinate version of that ratio.
Worked example: find slope from two points
Find the slope of the line through and . Label the first point as and the second as .
Start with the formula:
Substitute the coordinates in the same order:
So the slope is . That means whenever increases by , increases by .
You can see the same result as rise over run. From to , the rise is and the run is , so
From slope formula to slope-intercept form
Once you know the slope, you can use slope-intercept form
to write the equation of the line, as long as the line is not vertical.
Using the example above, . Substitute one point, such as :
So the line is
The connection is practical: the slope formula gives you , and slope-intercept form uses that slope to write the full equation.
Common mistakes with the slope formula
One common mistake is subtracting the -values in one order and the -values in the opposite order. If you use , you must also use .
Another mistake is saying a vertical line has slope . A horizontal line has slope . A vertical line has undefined slope because the denominator becomes .
A third mistake is ignoring the sign. A negative slope means the line goes down as increases.
When to use the slope formula
Use the slope formula when you know two points on a line and want its rate of change. This comes up in algebra, coordinate geometry, graphing, and any linear relationship where equal changes in produce a constant change in .
If the graph is not a straight line, the slope between two points is only the slope of the secant line between those points. It is not one constant slope for the whole graph.
Try a similar problem
Try your own version with the points and . Find the slope first, then use one point to write the equation in slope-intercept form. If you want another case right after this, continue with How To Find Slope or Slope Intercept Form.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →