Understanding the Slope of a Line
Slope measures the steepness and direction of a line on a coordinate graph. It represents the constant rate of change between two variables. For any two distinct points on a nonvertical line, calculate the slope by dividing the vertical change by the horizontal change.
What is slope?
Slope, often called the gradient, describes how fast a value changes compared to another. In algebra, it defines the steepness of a straight line drawn on a coordinate plane.
Because straight lines have a constant rate of change, the slope remains the same everywhere along the line. This predictable steepness is a defining feature of linear equations. The mathematical variable for slope is typically .
The slope tells you how many units a line moves up or down for every unit it moves to the right.
Use rise over run
When you have a graph of a line, the easiest method to find its steepness is to use "rise over run".
The rise is the vertical change, meaning how far the line goes up or down. The run is the horizontal change, meaning how far the line moves left or right.
To calculate the slope from a graph:
- Identify two points where the line crosses the grid intersections exactly.
- Count the vertical units between the points to find the rise.
- Count the horizontal units between the same points to find the run.
- Divide the rise by the run, simplifying the fraction if possible.

This method works for all straight lines, including directly proportional graphs that pass exactly through the origin.
Find slope from two points
If you are given the coordinates of two points, you can calculate the slope algebraically without having to plot points on a graph.
Use the slope formula:
Here, are the coordinates of the first point and are the coordinates of the second point.
When applying the formula, a simple subtraction table helps keep your coordinates aligned:
Point | -coordinate | -coordinate |
Point 2 | ||
Point 1 | ||
Difference | (Run) | (Rise) |
Divide the -difference by the -difference to find the slope.

Read positive negative and zero slope
You can instantly understand a line's behavior by looking at its direction from left to right.
- Positive slope: The line goes uphill from left to right. As increases, increases. The calculated slope will be a positive number.
- Negative slope: The line goes downhill from left to right. As increases, decreases. The calculated slope will be a negative number.
- Zero slope: The line is perfectly horizontal. The -value never changes, meaning the rise is . Since divided by any non-zero run is , horizontal lines always have a slope of .

Handle vertical lines
A perfectly vertical line behaves differently from other straight lines on a graph.
For a vertical line, all the points share the exact same -coordinate. When you attempt to calculate the horizontal change (the run), the difference between the -values is .
Because division by zero is mathematically undefined, a vertical line does not have a slope.
Vertical lines have an undefined slope, not a slope of zero.

Worked examples
Understanding the direction and steepness of lines helps when graphing linear equations. Here are three examples showing different slope calculations.
Example 1: Finding slope from a graph
Question: A line passes through and . What is its slope?
Method:
- Let and .
- Substitute into the formula: .
- Calculate the rise: .
- Calculate the run: .
- Divide the rise by the run: .
- Simplify: .
Answer: The slope of the line is .
Check: The slope is positive, and the -values increase as increases, which confirms a positive rate of change.
Example 2: Calculating a negative fraction
Question: What is the slope of the line connecting and ?
Method:
- Label the points: and .
- Apply the slope formula: .
- Subtract the -values: .
- Subtract the -values: .
- Write as a fraction: .
Answer: The slope is .
Check: Reversing the order yields . The answer is correct.
Example 3: Comparing horizontal coordinates
Question: Find the slope of the line containing and .
Method:
- Label the coordinates: and .
- Calculate the rise: .
- Calculate the run: .
- Divide the rise by the run: .
- Any fraction with zero in the numerator equals zero.
Answer: The slope is .
Check: Both -coordinates are . The line is horizontal, which confirms the slope must be zero.
Common mistakes
- Flipping rise and run: A frequent mistake is dividing the run by the rise. Always ensure the change in is the numerator and the change in is the denominator. Remember the phrase "rise before you run."
- Inconsistent subtraction order: When applying the slope formula, you can choose either point as . However, if you subtract from , you must subtract from . Mixing the order will result in a slope with the wrong sign.
- Mishandling negative numbers: Subtracting a negative coordinate requires adding a positive value. Keep careful track of signs when evaluating expressions like .
Frequently asked questions
Is slope the same as the gradient?
Yes. In mathematics, gradient and slope are two words for the exact same concept. They both measure the steepness and direction of a line using the ratio of vertical change to horizontal change.
Can a slope be a fraction or a decimal?
Yes. Slopes are often written as fractions because the numerator directly represents the rise and the denominator represents the run. Decimal forms are also mathematically correct but can make counting points on a graph harder.
What happens if the denominator is zero?
If the run is zero, the line is perfectly vertical. Division by zero is undefined, so the line has an "undefined slope."
Practice questions

What is the slope of the line shown on the coordinate plane?
What is the slope of the line that passes through the points and ?
Which statement accurately describes a line with a slope of zero?
The line is perfectly horizontal and has a constant -value.
The line is perfectly vertical and has an undefined steepness.
The line slants upward from left to right.
The line slants downward from left to right.
The line is perfectly horizontal and has a constant -value.

What is the constant rate of change (slope) for the linear relationship shown in the table?
A line has a slope of and passes through the points and . What is the value of ?
