The Slope Formula: Rise Over Run

The slope of a line is a number that tells you how steep the line is and which direction it goes. To find it, you need two points on the line and one straightforward formula: slope = (y₂ − y₁) / (x₂ − x₁). This means you subtract the first y-coordinate from the second y-coordinate, then divide by the difference of the x-coordinates.

The numerator (top part) is called the rise — how far the line goes up or down. The denominator (bottom part) is called the run — how far the line goes left or right. A slope of 3 means the line rises 3 units for every 1 unit it runs to the right. A slope of −2 means it falls 2 units for every 1 unit it runs right.

Key Takeaways

  • The slope formula is (y₂ − y₁) / (x₂ − x₁), where you use any two points on the line.
  • A positive slope means the line goes up from left to right; a negative slope means it goes down.
  • A slope of zero means the line is horizontal; an undefined slope means the line is vertical.
  • The order of your points does not matter as long as you subtract consistently — (y₂ − y₁) pairs with (x₂ − x₁).

Step-by-Step: Computing Slope From Two Points

Start with two points. Let's say your points are (2, 3) and (5, 9). Write them down clearly so you do not mix up the coordinates.

Label one point as (x₁, y₁) and the other as (x₂, y₂). It does not matter which is which — you will get the same slope either way as long as you stay consistent. Let's use (2, 3) as point 1 and (5, 9) as point 2. So x₁ = 2, y₁ = 3, x₂ = 5, y₂ = 9.

Subtract the y-coordinates: y₂ − y₁ = 9 − 3 = 6. This is your rise.

Subtract the x-coordinates: x₂ − x₁ = 5 − 2 = 3. This is your run.

Divide rise by run: 6 / 3 = 2. Your slope is 2. This means for every 1 unit you move right, the line goes up 2 units.

Working With Negative Slopes

When a line goes downward from left to right, the slope is negative. Suppose your two points are (1, 8) and (4, 2). Using the same steps: y₂ − y₁ = 2 − 8 = −6, and x₂ − x₁ = 4 − 1 = 3. So slope = −6 / 3 = −2.

A slope of −2 means the line falls 2 units for every 1 unit it moves to the right. The negative sign is part of the answer — do not drop it or ignore it. It tells you the direction of the line.

Horizontal and Vertical Lines

A horizontal line has a slope of zero. This happens when both points have the same y-coordinate. For example, (3, 5) and (7, 5) give you y₂ − y₁ = 5 − 5 = 0. Since the numerator is zero, the slope is 0 / 4 = 0. The line does not rise or fall at all.

A vertical line has an undefined slope. This happens when both points have the same x-coordinate. For example, (4, 2) and (4, 8) give you x₂ − x₁ = 4 − 4 = 0. You cannot divide by zero, so the slope is undefined. Vertical lines are infinitely steep.

Common Mistakes to Avoid

The most frequent error is flipping the subtraction. Remember: you must subtract in the same order for both coordinates. If you compute y₂ − y₁ on top, you must compute x₂ − x₁ on the bottom — not x₁ − x₂. Reversing one but not the other will flip your answer's sign.

Another mistake is confusing the order of coordinates within a point. The first number in a pair is always the x-coordinate (horizontal), and the second is always the y-coordinate (vertical). Writing (3, 5) backwards as (5, 3) will give you the wrong slope.

Do not simplify fractions incorrectly. If your slope is 4/2, simplify it to 2. But if your slope is 3/2, leave it as a fraction or convert it to 1.5 — do not round it to 2.

Slope From a Graph

If you have a graph with a line drawn on it, you can read two points directly from the grid. Look for points where the line crosses grid intersections — these are easiest to read because their coordinates are whole numbers.

Once you identify two clear points, explore the formula as usual. For instance, if the line passes through (0, 1) and (2, 5), your slope is (5 − 1) / (2 − 0) = 4 / 2 = 2. Reading points from a graph is faster than using an equation, but the math is identical.

Slope in Real-World Contexts

Slope appears everywhere outside the classroom. On a road, slope tells you the grade — how steep a hill is. In business, slope can represent how fast revenue is growing over time. In physics, slope of a distance-versus-time graph tells you speed.

The formula stays the same regardless of context. If a company's profit was $10,000 in month 2 and $25,000 in month 5, the slope is (25,000 − 10,000) / (5 − 2) = 15,000 / 3 = 5,000 dollars per month. The line is getting steeper, which means profit is growing faster.

Frequently Asked Questions

Does the order of my two points matter?

No. If you swap which point is (x₁, y₁) and which is (x₂, y₂), you will subtract in the opposite direction, but the final slope will be the same. For example, using (2, 3) and (5, 9) gives (9 − 3) / (5 − 2) = 2, and using them backwards gives (3 − 9) / (2 − 5) = −6 / −3 = 2.

What if my slope is a fraction like 3/4?

That is correct. A slope of 3/4 means the line rises 3 units for every 4 units it runs right. You can also write it as 0.75 if you prefer a decimal. Both forms are valid — use whichever your teacher or assignment asks for.

Can I use points that are not integers?

Yes. The formula works with decimals and fractions too. If your points are (1.5, 2.3) and (4.5, 8.7), you subtract the same way: (8.7 − 2.3) / (4.5 − 1.5) = 6.4 / 3 ≈ 2.13. The math is identical.

What does a slope of 1 mean?

A slope of 1 means the line rises 1 unit for every 1 unit it runs right. The line makes a 45-degree angle with the horizontal. This is the steepness where rise and run are equal.