Slope of a Line
Slope of a Line
A number which is used to indicate the steepness of a line, as well as indicating whether the line is tilted uphill or downhill. Slope is indicated by the letter m.


See also
Horizontal line equation, vertical line equation, parallel lines, perpendicular
Key Formula
m=x2−x1y2−y1=runrise
Where:
- m = The slope of the line
- (x1,y1) = The coordinates of the first point on the line
- (x2,y2) = The coordinates of the second point on the line
- rise = The vertical change between the two points (difference in y-values)
- run = The horizontal change between the two points (difference in x-values)
Worked Example
Problem: Find the slope of the line passing through the points (2, 3) and (6, 11).
Step 1: Identify the two points. Let (x1,y1)=(2,3) and (x2,y2)=(6,11).
Step 2: Calculate the rise (change in y).
y2−y1=11−3=8
Step 3: Calculate the run (change in x).
x2−x1=6−2=4
Step 4: Divide the rise by the run to find the slope.
m=48=2
Answer: The slope is m=2. This means the line rises 2 units for every 1 unit it moves to the right.
Another Example
This example demonstrates a negative slope, showing how the sign of the slope indicates direction. A negative slope means the line decreases as you move from left to right, unlike the first example where the positive slope indicated an increasing line.
Problem: Find the slope of the line passing through the points (1, 9) and (4, 3).
Step 1: Label the points. Let (x1,y1)=(1,9) and (x2,y2)=(4,3).
Step 2: Compute the rise.
y2−y1=3−9=−6
Step 3: Compute the run.
x2−x1=4−1=3
Step 4: Divide rise by run.
m=3−6=−2
Answer: The slope is m=−2. The negative value tells you the line falls (goes downhill) from left to right.
Frequently Asked Questions
What does a slope of 0 mean?
A slope of 0 means the line is perfectly horizontal — it has no steepness at all. The y-value stays the same no matter how much x changes. Every horizontal line has the equation y=c for some constant c.
What is the slope of a vertical line?
A vertical line has an undefined slope. When you try to compute it, the run (x2−x1) equals 0, and division by zero is undefined. This is why vertical lines cannot be written in slope-intercept form and instead have the equation x=c.
Does it matter which point you call (x₁, y₁) and which you call (x₂, y₂)?
No, it does not matter. If you swap the two points, both the numerator and the denominator change sign, so the ratio stays the same. For example, using points (2,3) and (6,11): 2−63−11=−4−8=2, which matches 6−211−3=2.
Positive Slope vs. Negative Slope
| Positive Slope | Negative Slope | |
|---|---|---|
| Direction | Line rises from left to right (goes uphill) | Line falls from left to right (goes downhill) |
| Sign of m | m > 0 | m < 0 |
| Example | Through (0, 1) and (2, 5): m = 2 | Through (0, 5) and (2, 1): m = −2 |
| Real-world analogy | Walking uphill | Walking downhill |
Why It Matters
Slope is one of the most fundamental concepts in algebra and appears throughout mathematics, science, and economics. You need it to write equations of lines in slope-intercept form (y=mx+b) and point-slope form, and it directly leads into the concept of rate of change and derivatives in calculus. Whenever you interpret a graph — speed vs. time, cost vs. quantity, or temperature vs. altitude — you are reading slopes.
Common Mistakes
Mistake: Putting the x-values in the numerator and the y-values in the denominator (computing run over rise instead of rise over run).
Correction: Remember that slope is always rise over run: the change in y on top, the change in x on the bottom. A helpful mnemonic: y comes before x alphabetically when going top-to-bottom in the fraction.
Mistake: Mixing up the order of subtraction — using y2−y1 in the numerator but x1−x2 in the denominator.
Correction: You must subtract in the same order in both the numerator and denominator. If you compute y2−y1 on top, you must compute x2−x1 on the bottom. Swapping the order in only one part flips the sign of your answer.
Related Terms
- Line — The geometric object whose steepness slope measures
- Horizontal Line Equation — Horizontal lines always have a slope of zero
- Vertical Line Equation — Vertical lines have undefined slope
- Parallel Lines — Parallel lines have exactly the same slope
- Perpendicular — Perpendicular lines have slopes that are negative reciprocals
- Slope-Intercept Form — Uses slope as the coefficient m in y = mx + b
- Point-Slope Form — Another line equation form built directly from slope
- Rate of Change — Slope represents the constant rate of change of a linear function
