TutorAI

How to Find the Slope of a Line from Two Points

Learn how to calculate the slope of a straight line when given any two points on the line, with a step-by-step example and common mistakes to avoid.

Updated:

How to Find the Slope of a Line from Two Points

If you know two points on a straight line, you can always find the slope (also called the gradient) of that line. After this lesson, you’ll be able to calculate the slope from any two points, understand what the slope means, and spot common mistakes students make.

What Is the Slope?

The slope of a line measures how steep it is. Mathematically, it’s the change in yy divided by the change in xx between two points:

slope=m=y2−y1x2−x1\text{slope} = m = \frac{y_2 - y_1}{x_2 - x_1}

This tells you how much yy increases (or decreases) for every unit increase in xx.

Why Does Slope Matter?

Slope is everywhere: it tells you how fast a car is climbing a hill, how quickly a business’s profits are rising, or whether a roof is too steep. In algebra, it’s a key part of the equation of a line (y=mx+by = mx + b).

Step-by-Step Example

Let’s say you’re given two points: A(2,3)A(2, 3) and B(5,11)B(5, 11). What is the slope of the line through these points?

Step 1: Label your points. Let A=(x1,y1)A = (x_1, y_1) and B=(x2,y2)B = (x_2, y_2), so x1=2x_1 = 2, y1=3y_1 = 3, x2=5x_2 = 5, y2=11y_2 = 11.

Step 2: Plug into the formula:

m=y2−y1x2−x1=11−35−2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{11 - 3}{5 - 2}

Step 3: Calculate:

m=83m = \frac{8}{3}

So the slope is 83\frac{8}{3}.

Real-Life Application

If a road rises 8 meters in elevation for every 3 meters you travel forward, its slope is 83\frac{8}{3}. This helps engineers design safe roads and ramps.

Common Mistakes (and How to Avoid Them)

  • Switching the order: Make sure you subtract yy and xx values in the same order. If you do y2−y1y_2 - y_1, you must do x2−x1x_2 - x_1.
  • Dividing by zero: If x2=x1x_2 = x_1, the denominator is zero. This means the line is vertical and the slope is undefined.
  • Forgetting negatives: Watch out for negative signs, especially if the line goes down as xx increases.

Try It Yourself

Find the slope of the line passing through (1,4)(1, 4) and (6,9)(6, 9).

Takeaway

Whenever you have two points, you can always find the slope using m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}. Understanding slope will help you with graphing lines, solving equations, and real-world problems.

Stuck on one question?

Solve explains your homework step by step, and Study turns it into a real lesson you can keep questioning.