The slope formula turns two points on a line into a single number for its steepness, or rate of change. Use it whenever you know two points on the same line and want to know how fast changes relative to .
The Formula And Its Symbols
The slope of a line through two points and is
The numerator is the vertical change, also called the rise. The denominator is the horizontal change, also called the run. So is simply rise over run, written in coordinates.
This works only when . If the two points have the same -value, the line is vertical, the denominator is , and the slope is undefined.
The sign of tells you the direction: if , the line rises from left to right; if , it falls; if , the line is horizontal.
Why It Equals Rise Over Run
The slope formula and "rise over run" are the same idea, not two separate rules. Rise is how far you move vertically between the points, and run is how far you move horizontally. Dividing one by the other measures how steep the path is. The formula just reads those two changes straight off the coordinates, so the coordinate version and the verbal version always agree.
Worked Example: Find Slope From Two Points
Find the slope of the line through and . Label the first point as and the second as , then substitute in the same order:
So the slope is , meaning whenever increases by , increases by . As rise over run, the rise from to is and the run is , so
Once you know the slope, you can write the full line using slope-intercept form . With and the point :
So the line is .
Practice: Build The Equation Yourself
Use the points and . First apply the slope formula, keeping the -differences and -differences in the same order, then substitute the slope and one point into to solve for .
Check your result: the slope should come out to , and the equation should be . If your slope is right but the equation is off, recheck the value of you substituted.
Calculation Pitfalls
The most common slip is subtracting the -values in one order and the -values in the opposite order. If you use , you must also use .
A second trap is saying a vertical line has slope . A horizontal line has slope ; a vertical line has undefined slope because the denominator becomes .
A third is ignoring the sign. A negative slope means the line goes down as increases.
One more limit: if the graph is not a straight line, the slope between two points is only the slope of the secant line between them, not a single constant slope for the whole graph.
When To Use The Slope Formula
Reach for the slope formula when you know two points on a line and want its rate of change. It appears throughout algebra, coordinate geometry, graphing, and any linear relationship where equal changes in produce a constant change in .
Frequently Asked Questions
- What is the slope formula?
- The slope of a line through two points equals the difference of the y-values divided by the difference of the x-values, often described as rise over run. It measures the line's steepness or rate of change, and it requires the two points to have different x-values.
- Why is slope called rise over run?
- The numerator is the vertical change between the points, called the rise, and the denominator is the horizontal change, called the run. The slope formula is just the coordinate version of that ratio, so the formula and the phrase describe exactly the same idea.
- When is the slope of a line undefined?
- When the two points share the same x-value, the line is vertical and the denominator of the slope formula becomes zero, so the slope is undefined. A horizontal line, by contrast, has a slope of exactly zero. Confusing these two cases is a common mistake.
- How do you find the equation of a line after using the slope formula?
- Once you know the slope m, substitute it together with one known point into slope-intercept form, y equals mx plus b, and solve for b. For example, with slope 2 through the point (2, 3), substituting gives b equals negative 1, so the line is y equals 2x minus 1.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →