What Is The Gradient Of A Line?
The gradient of a line is a number that tells you two things at once: how steep the line is and which way it slants. It is defined as the change in the -coordinate divided by the change in the -coordinate between any two points on the line:
The letter stands for the gradient. "Gradient" is simply the British and Commonwealth name for what is called the "slope" in the United States - the two words describe the identical idea. So the slope of a line and the gradient of a line are the same quantity, computed the same way.
The gradient's most useful home is inside the equation of a straight line:
Here is the gradient and is the -intercept (where the line crosses the vertical axis). Read off the number multiplying , and you have the gradient without any calculation.
A gradient can be positive, negative, zero, or undefined. A positive gradient rises left to right; a negative gradient falls; a horizontal line has gradient ; a vertical line has an undefined gradient (its run is zero, so you would divide by zero).
Examples Of Gradient Of A Line
These examples build from reading off an equation to finding it from two points and from a graph. Each problem statement is bold; the steps are plain.
Example 1
What is the gradient of the line ?
The equation is already in the form . The gradient is the coefficient of .
Here that coefficient is .
Final answer: the gradient is .
Example 2
Find the gradient of the line through the points and .
Your first instinct might be to divide the run by the rise - " over " - because is usually named first. Let's see where that leads.
Writing gives a gentle-looking gradient. But the line rises for a run of only , so it is clearly steep - a gradient under cannot be right.
The gradient is rise over run, on top:
A gradient of matches a line that climbs faster than it moves sideways, which fixes the flipped version.
Final answer: the gradient is .
Example 3
A line passes through and . Find its gradient.
Final answer: the gradient is , so the line falls three units for every one unit right.
Example 4
Rewrite in the form and state the gradient.
The equation is not yet solved for , so divide every term by :
Now it is in form, and the coefficient of is .
Final answer: the gradient is . (Reading before rearranging would have wrongly given .)
Example 5
A road rises m over a horizontal distance of m. What is its gradient?
Gradient is rise over run:
Final answer: the gradient is , often written as " in " on road and railway signs.
Example 6
What is the gradient of a horizontal line, and of a vertical line?
A horizontal line has no vertical change: , so .
A vertical line has no horizontal change: , so , which is undefined (you cannot divide by zero).
Final answer: horizontal gradient ; vertical gradient is undefined.
Why The Gradient Matters: "A Single Number For Steepness and Direction"
The gradient began as a practical measurement long before it became algebra: the grade of a road, the pitch of a roof, the rise of a railway. Engineers needed one number that said how hard a climb was, and "rise over run" delivered it. That is the substance behind - the is a real physical steepness, not just a letter.
Safety limits. Wheelchair-access ramps are capped near a gradient of in ; roads and railways post maximum gradients so vehicles can brake and climb safely. The number sets the rule.
Rates of change. In any straight-line graph - distance against time, cost against quantity - the gradient is the rate: speed, price per unit, litres per minute. Reading reads the rate directly.
Comparing lines instantly. Two lines with gradients and can be ranked for steepness at a glance; the larger is the steeper line, whichever way it points.
When a railway is surveyed, the ruling gradient decides everything from how long a train needs to brake to whether a locomotive can haul its load up the incline at all. A miscalculated gradient is not a rounding error - it can mean a train that cannot make the hill. The gradient turns "how steep?" from a vague impression into a number a rule can be written around.
Common Mistakes With the Gradient of a Line
These errors show up the moment the equation is not already tidy, or the points are given out of order.
Mistake 1: Reading m before rearranging the equation
Where it slips in: Grabbing the number in front of while the equation is not yet in form.
Don't do this: Looking at and calling the gradient .
The correct way: Solve for first. Dividing by gives , so the true gradient is . The memorizer who has learned " is the number by " but skips the rearrangement reads the wrong coefficient.
Mistake 2: Dividing run by rise (flipping the fraction)
Where it slips in: Putting on top and on the bottom.
Don't do this: Computing , which is the reciprocal of the gradient.
The correct way: Gradient is rise over run, , with the -change on top. The second-guesser who is unsure which goes on top can sanity-check against the graph: a steep line must give a gradient bigger than .
Mistake 3: Treating gradient and slope as different things
Where it slips in: Meeting "gradient" in a British textbook and "slope" in an American one and assuming they are separate topics.
Don't do this: Learning two formulas for what you think are two ideas.
The correct way: They are the same quantity with two names. "Gradient" is the UK term, "slope" the US term; both equal and both are the in .
Conclusion
The gradient of a line is - its steepness and direction in one number.
It is exactly the in ; read off the coefficient of once the equation is in that form.
Gradient (UK) and slope (US) are the same thing, computed identically.
A gradient can be positive (rising), negative (falling), zero (horizontal), or undefined (vertical).
Rise goes on top, run on the bottom - flipping the fraction gives the reciprocal, not the gradient.
Practise What You Have Learned
Work through these to test your understanding: state the gradient of (Answer to Question 1: ); find the gradient through and (Answer to Question 2: ); and rewrite as and give its gradient. To take this further with a teacher, explore Bhanzu's geometry tutor, high school math tutor, or math tutoring. Want to see the gradient change live as you tilt a line? Book a free demo class.
Read More
Slope Intercept Form — how the gradient sits inside y = mx + c.
Y Intercept — the c that partners the gradient in a line's equation.
Undefined Slope — why a vertical line has no gradient value.
Zero Slope — the horizontal line with gradient 0.
Finding Slope From Two Points — computing a gradient from coordinates.
Was this article helpful?
Your feedback helps us write better content


