Key Points
- A straight line has one gradient, the same between any two of its points; "gradient" and "slope" name the same number.
- From two points, m = (y₂ − y₁) ÷ (x₂ − x₁); from y = mx + c, read m once the equation is solved for y.
- From an angle, m = tan θ, with θ measured anticlockwise from the positive x-axis.
- Parallel lines have equal gradients, and perpendicular lines have gradients that multiply to −1.
The Same Number, Four Disguises
A line can reach you as two points, an equation, a picture on a grid, or an angle. Each hides the same number: the gradient of a line, the amount it climbs for every step to the right. The line through and drops squares over across, so its gradient is ; written as , the same sits inside the equation.

What Is the Gradient of a Line?
The gradient of a line is one number that says how steep the line is and which way it slants: the change in divided by the change in between any two of its points.
"Gradient" is the British name for the slope of a line. (The full meaning of the word, as a rate or a percentage, is on the gradient definition page.) In , is the gradient and is the y-intercept. A gradient is positive (rising), negative (falling), zero (horizontal) or undefined (vertical).
Why only one gradient per line? Every slope triangle (rise and run drawn under the line) on the same line has the same angles, so the triangles are similar (same shape, different size) and rise ÷ run never changes. That is what makes a straight line straight.
Four Ways to Find the Gradient of a Line
1. From two points
Subtract the y-values, subtract the x-values in the same order, divide. Through and : . Every special case is on finding slope from two points.
2. From the equation
In slope-intercept form, , the gradient is the coefficient of , but only once the equation is solved for . For the general form , solving for gives
3. From a graph
Pick two points where the line crosses grid corners, count squares up (negative if down) and across, and divide. Watch the axis scales: stretching an axis changes how steep a line looks, never its gradient.
4. From the angle
If the line makes angle with the positive x-axis, measured anticlockwise, then , because tan is rise (opposite) over run (adjacent). A rising line has an acute angle; a falling one is obtuse, so a line at has . Going back, a negative gradient gives a negative calculator angle: add .

A gradient fixes direction, not position: every line shares gradient . Add one point and point-slope form pins the line down. A vertical line's run is , so it has no gradient, and no method should produce one.
Gradients of Parallel and Perpendicular Lines
Parallel lines have equal gradients. The x-axis cuts both like a transversal, so their angles of inclination are equal corresponding angles, and equal angles have equal tangents. and are parallel lines.

Perpendicular lines, neither vertical, have . Turn a slope triangle with run and rise a quarter turn: the run becomes a rise of and the rise becomes a run of . The gradient becomes , and the product is . So flip the fraction and change the sign. The one gap: a horizontal and a vertical line are perpendicular with no pair of numbers to multiply.

The Angle Between Two Lines
The tangent of the angle between two lines comes straight from their gradients. Using the tangent of a difference of angles:
Equal gradients give (parallel); makes the denominator , so (perpendicular).
Try It Yourself
In the tool, drag each line's handles. Put the blue ones on and and the orange ones on and : the readout shows , and an acute angle of about . Then press "Parallel" and "Perpendicular".
Examples of the Gradient of a Line
Example 1
What is the gradient of the line y = 3x + 5?
- It is already in the form .
- The number in front of is .
Answer: .
Example 2
Find the gradient of 2y = 6x + 10.
- The number in front of is , and it is tempting to stop there.
- Check two points: gives , and gives . One right, three up.
- Divide every term by 2: .

Answer: , Example 1's line in disguise.
Example 3
A line passes through (1, 5) and (4, −4). Find its gradient.
- Rise: .
- Run: .
- .
Answer: ; the line falls 3 for every 1 to the right.
Example 4
Find the gradient of 4x − 2y + 5 = 0, and the gradient of a line perpendicular to it.
- , , so .
- Perpendicular: flip and change sign, .
- Check: .
Answer: , and for the perpendicular line.
Example 5
A line makes an angle of 120° with the positive x-axis. Find its gradient.
- Use .
- .
Answer: .
Example 6
Find the acute angle between y = 2x + 1 and y = −x + 4.
- and .
- .
- .

Answer: about , at the crossing point .
Common Mistakes With the Gradient of a Line
Mistake 1: Reading m before rearranging
Where it slips in: Equations not yet in form.
Don't do this: Call the gradient of "6".
The correct way: Solve for first: , so . The student who memorised "m is the number by x" skips this step.
Mistake 2: Dividing run by rise
Where it slips in: Putting on top because comes first.
Don't do this: Write , the reciprocal of the gradient.
The correct way: Rise over run, . Check against the picture: a line that climbs over a run of must have a gradient above . Misread a "1 in 4" road sign this way and a gentle hill becomes a cliff.
Mistake 3: Dropping the minus sign in −A/B
Where it slips in: The general-form shortcut, used quickly.
Don't do this: Give the gradient .
The correct way: , a negative slope. When unsure, solve for .
Mistake 4: Only changing the sign for a perpendicular gradient
Where it slips in: Remembering "perpendicular means negative" and stopping.
Don't do this: Give as the gradient perpendicular to .
The correct way: Flip and change sign: , then check the product is .
Why the Gradient Matters: "A Single Number for Steepness and Direction"
Every ramp, ski run and railway line carries a number that decides whether it is safe to climb, and that number is a gradient.
- Safety limits. In the United States, accessible ramps are capped at a running slope of 1 in 12, and railways keep gradients low so trains can climb and brake.
- Rates. On a straight-line graph the gradient is the rate: speed on a distance–time graph, the average yearly growth on a trend line.
- Right angles on plans. A road with gradient and a cross street with gradient meet at right angles, since .

Conclusion
- The gradient of a line is one constant number, , the same between any two of its points, and the same thing as the slope.
- Two points, the equation, a graph and the angle are four routes to the same ; rearrange to before reading it off.
- Parallel lines share a gradient, perpendicular gradients multiply to , and gives every angle in between.
Practise What You Have Learned
- State the gradient of .
- Rewrite as and give its gradient.
- Find the gradient of .
- Find the acute angle between and .
Answer to Question 1: .
Answer to Question 2: , so .
Answer to Question 3: . If it came out positive, reread Mistake 3.
Answer to Question 4: , so .
To work through coordinate geometry with a teacher, explore Bhanzu's geometry tutor or math tutoring.
Want a live Bhanzu trainer to walk your child through gradients and straight lines? Book a free demo class, online globally, or in person at our McKinney, TX center.
Read More
- Slope of Parallel Lines
- Slope of Perpendicular Lines
- Angle Between Two Lines
- How to Find Slope From a Graph
Research Behind This Article
- OpenStax, College Algebra 2e, Section 4.1: Linear Functions (slope, parallel and perpendicular lines) (2021). openstax.org
- OpenStax, Algebra and Trigonometry 2e, Section 9.2: Sum and Difference Identities (the tangent of a difference) (2022). openstax.org
- U.S. Access Board, Guide to the ADA Accessibility Standards, Chapter 4: Ramps and Curb Ramps (1:12 maximum). access-board.gov
- OpenStax, Algebra and Trigonometry 2e, Section 7.2: Right Triangle Trigonometry (tangent as opposite over adjacent). openstax.org
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
Is the gradient of a line the same as its slope?
What does the m in y = mx + c stand for?
Can the gradient of a line be negative?
What is the gradient of a vertical line?
Do I need two points to find the gradient?
