Try it with your numbers
Show every step
Subtract the -values on top and the -values on the bottom, in the same order, then simplify. That one habit of keeping the order consistent saves more points than any other, and the sections below show why it works, how it behaves with negatives and fractions, and when it fails.
What is the slope formula and why does it work?
Slope is steepness turned into a single number: how far a line moves up or down for every one unit it moves to the right. Pick two points on the line and draw a right triangle between them. The horizontal leg has length (the run), the vertical leg has length (the rise), and the slope is the ratio of the two legs.
Here is the one idea that explains everything else. On a straight line, every such triangle is similar to every other, no matter which two points you pick or how far apart they are. Similar triangles have equal leg ratios, so the answer never changes. That is why you can use any two points, and why the formula fails to mean anything on a curve, where the ratio depends on which points you choose.
The small numbers are labels, not exponents. means “the -coordinate of the first point.” If reading coordinates still feels shaky, review plotting points on the coordinate plane first, because every slope problem is secretly a picture.
Quick check
Answer:
How to use the slope formula, step by step
The method is the same every time, and the labeling step is the one people skip.
- Label the points: call one and the other .
- Subtract the -values: .
- Subtract the -values in the same order: .
- Divide, and reduce the fraction.
Take the points and . Label and .
The slope is . Leave it as an improper fraction: it says “up 8 for every 3 across,” which is more useful than . Once you have , you are one step from the full equation, which is covered in the equation of a line through two points.
Does the order of the points matter in the slope formula?

The order of the points does not matter, but mixing the order does. Swap the two points and both the numerator and the denominator change sign, and the two negatives cancel. With and , going forward gives , and going backward gives .
The trap is subtracting in one order on top and the other order on the bottom. Writing gives , a clean-looking answer with the wrong sign. Nothing flags the error, because the arithmetic is fine. Only the setup is broken.
Write and above your work. With the labels in view, you copy subscripts instead of choosing an order twice.
Quick check
Answer:
Slope formula with negatives and fractions
Negative coordinates cause one specific error: forgetting that subtracting a negative adds. Find the slope through and .
The denominator is , not . Put parentheses around any negative coordinate before subtracting, and the sign error mostly disappears. As a sanity check, sits in the second quadrant and in the fourth (see the four quadrants). A line that runs from upper left to lower right must fall, so a negative slope is exactly right.
Fractions look worse than they are if you split the work. Find the slope through and . Compute the top and bottom separately first:
Then divide: . Handling each difference on its own avoids a tower of fractions inside fractions. If a difference is itself a fraction, divide by it by multiplying by its reciprocal.
Zero slope vs undefined slope: when the formula breaks
The formula needs , because the denominator cannot be zero. That leaves two special cases, and they are easy to confuse.
For the points and , the -values match, so the rise is :
For and , the -values match, so the run is :
That is undefined. Zero on top is fine and gives a slope of (a flat line). Zero on the bottom is never fine (a vertical line). Avoid the phrase “no slope,” which sounds like zero but means undefined. Horizontal and vertical lines have equations and , and the second form is why vertical lines cannot be written as at all.
How to find slope from an equation in standard form
When the line is given as an equation, you do not need two points. If it is already in slope-intercept form, , the slope is the number multiplying . For an equation in standard form, , solve for :
So the slope is . For , that gives . You can confirm it with the slope formula by using the intercepts, and (the method is in finding x and y intercepts):
Both routes agree. The most common slip is forgetting the minus sign in , which flips the line’s direction.
Move one unit right and grows by , so must shrink by to keep the total at . That makes change by per unit.
Slope formula vs distance formula and midpoint formula
Three formulas all start with the same two subtractions, which is why they get mixed up. Each one answers a different question about a pair of points.
| Formula | Question it answers | Result |
|---|---|---|
| Slope | How steep is the line? | (a ratio) |
| Distance | How far apart are the points? | (a length) |
| Midpoint | What point is exactly halfway? | (a point) |
For and , the legs of the triangle are and . The slope divides them, . The distance combines them with Pythagoras, . The midpoint averages the coordinates, . Same triangle, three different questions.
A quick tell: slope has a division bar and no square root, distance has the root, and midpoint is the only one that returns an ordered pair.
How to check a slope answer in ten seconds
Most wrong answers can be caught without redoing the work. Run through these checks:
- Direction: a line rising left to right has a positive slope, and one falling has a negative slope.
- Size: a slope above in size means the rise beats the run, so the line is steeper than .
- Reverse: redo it with the points swapped. You must get the identical fraction.
- Third point: use your slope to step from one point to a new point, then test that point with the formula.
The slope also checks other lines. Parallel lines have equal slopes, and perpendicular lines have slopes that multiply to , as laid out in slopes of parallel and perpendicular lines. If a homework problem says two lines are perpendicular and your slopes multiply to , one sign is wrong.
Try this: Find the slope through and . Use it to predict the point 4 units to the right of , then confirm that and your new point give the same slope.
Where the slope formula shows up in real life
Slope is a rate, so it carries units. If you earn $30 after 2 hours and $75 after 5 hours, the slope between and is dollars per hour. That reading is the heart of average rate of change, and the same ratio gives speed on a distance-time graph or cost per item on a price chart.
Builders use slope as grade and pitch. A road with a 6% grade rises 6 feet for every 100 feet of horizontal distance. The common accessibility limit for ramps is a rise of 1 for every 12 of run, which is . A roof pitched 6 in 12 has a slope of .
Slope also links to the angle of a line: , so . A slope of means an angle of about with the horizontal. And when a line passes through the origin, its slope is the constant in direct variation, , which is why proportional relationships always graph as straight lines through .
Quick check
Answer: about 8.3%
Practice problems
0 of 5 solved
- Find the slope of the line through and .
Answer:
Step 1: . Step 2: . Step 3: . - Find the slope of the line through and .
Answer:
Step 1: . Step 2: . Step 3: . - Find the slope of the line through and .
Answer: undefined
Step 1: . Step 2: . Step 3: is not defined, so the line is vertical and its slope is undefined. - Find the slope of the line through and .
Answer:
Step 1: . Step 2: . Step 3: . - The line through and has slope . Find .
Answer:
Step 1: Write . Step 2: Simplify to , so . Step 3: . Check: .
Common questions
What is the slope formula?
The slope formula is , where and are two points on the line. It divides the vertical change by the horizontal change.
Does it matter which point is first in the slope formula?
No. Swapping the two points flips the sign of both the top and the bottom, so the fraction keeps its value. What matters is using the same order for the values and the values.
Why is the slope of a vertical line undefined?
Every point on a vertical line has the same -value, so the run is . The formula then asks you to divide by zero, which has no answer.
What is the difference between zero slope and undefined slope?
Zero slope belongs to a horizontal line: the rise is , so . Undefined slope belongs to a vertical line: the run is , so the division cannot be done.
How do you find the slope from an equation like 3x + 4y = 12?
For , the slope is . Here that gives . You can also solve for and read off the coefficient of .
How do you find slope from a graph without the formula?
Pick two points where the line crosses grid corners, count the units up or down (rise), then the units across (run), and divide. Going down or left makes that count negative.