Gradient Formula (Slope) | How to Find the Gradient
Gradient Formula (Slope)
The gradient (also called the slope) tells you how steep a line is and whether it rises or falls. A positive gradient means the line goes up as x increases. A negative gradient means it goes down.
๐ Gradient (Slope) Formula
For two points (xโ, yโ) and (xโ, yโ), the gradient is:
m = (yโ โ yโ) / (xโ โ xโ)
- m is the gradient (slope)
- yโ โ yโ is the change in y (โriseโ)
- xโ โ xโ is the change in x (โrunโ)
How to find the gradient (step-by-step)
- Pick two points on the line: (xโ, yโ) and (xโ, yโ).
- Subtract the y-values: yโ โ yโ.
- Subtract the x-values: xโ โ xโ.
- Divide: (yโ โ yโ) รท (xโ โ xโ).
- Simplify your fraction if possible.
๐งฎ Example 1: Gradient between two points
Find the gradient between (2, 3) and (8, 15).
- Use: m = (yโ โ yโ) / (xโ โ xโ)
- Substitute: m = (15 โ 3) / (8 โ 2)
- Calculate: m = 12 / 6 = 2
So the gradient is 2 (the line rises 2 units for every 1 unit across).
๐งฎ Example 2: Negative gradient
Find the gradient between (1, 10) and (5, 2).
- m = (2 โ 10) / (5 โ 1)
- m = โ8 / 4 = โ2
So the gradient is โ2 (the line falls as x increases).
Gradient from a linear equation
If a line is written in the form:
y = mx + c
- m is the gradient
- c is the y-intercept (where the line crosses the y-axis)
Example: For y = 3x โ 5, the gradient is 3.
Special cases
- Horizontal line: gradient = 0 (y doesnโt change).
- Vertical line: gradient is undefined (division by zero because xโ โ xโ = 0).
Common mistakes to avoid
- Mixing up the order of points (keep the same order in top and bottom).
- Forgetting the negative sign when the line slopes downward.
- Trying to find a gradient for a vertical line (itโs undefined).
- Rounding too early (simplify fractions first).
Related pages
- Equation of a straight line
- Distance formula
- Midpoint formula
- Graphing linear equations
Disclaimer: This page is provided for general educational reference only. While care has been taken to present accurate formulas and examples, results may vary depending on rounding and input precision. This content does not replace professional educational, engineering, or technical advice.