Home›GCSE & FSMQ›Maths›Algebra›Gradient and intercept
Gradient and intercept
y = mx + c and parallel lines. Topic 10 of 27 in Algebra.
Foundation & Higher This topic appears on both Foundation and Higher papers.
Every straight line can be described with two numbers:
- its gradient: how steep it is
- its y-intercept: where it crosses the y-axis
This page shows you how to find both, and how to use them to write the equation of a line.
Before you start, make sure you can plot and read coordinates, work with negative numbers, simplify fractions and rearrange a simple equation.
1. What gradient means
The gradient tells you how far a line goes up or down for every 1 you move to the right.
- Line goes uphill (left to right): gradient is positive.
- Line goes downhill (left to right): gradient is negative.
- Line is flat: gradient is 0.
- The bigger the number (ignoring the sign), the steeper the line. A gradient of −5 is steeper than a gradient of 2.
To measure it, pick two points on the line.
- The rise is how far you go up or down between them.
- The run is how far you go across.
gradient = riserun = change in ychange in x
A straight line has the same gradient everywhere. Any two points on it give the same answer.
Drag A and B to see rise, run and gradient
- Drag B to the left of A. The rise and run both change sign, but the gradient stays the same.
- Move A and B further apart along the same line. The gradient doesn’t change.
- Put A and B at the same height. Then put one straight above the other.
On a keyboard, press Tab to pick a point, then use the arrow keys.
2. Finding the gradient from a graph
Method
- Pick two points on the lineChoose points where the line goes exactly through a corner of the grid. Far apart is easier and more accurate.
- Draw a right-angled triangle between themRead the rise (up is +, down is −) and the run (to the right is +).
- Divide the rise by the run, then simplify
Example 1: a positive gradient
Find the gradient of this line.
- Pick two points on grid corners(−4, −1) and (2, 3)
- Read the rise and runrise = 4 up run = 6 across
- Divide the rise by the run, then simplifygradient = 46 = 23
The line goes uphill, so the gradient should be positive. It is.
Example 2: a negative gradient
Find the gradient of this line.
- Pick two points on grid corners(−4, 3) and (4, −3)
- Read the rise and run, going left to rightrise = 6 down = −6 run = 8 acrossDown is negative.
- Divide the rise by the run, then simplifygradient = −68 = −34
The line goes downhill, so the gradient should be negative. It is.
Example 3: axes with different scales
Find the gradient of this line.
Look at the axes first: the x-axis goes up in 1s, the y-axis goes up in 10s.
- Read two points from the axes(0, 20) and (4, 80)
- Work out the rise and run from the valuesrise = 80 − 20 = 60run = 4 − 0 = 4
- Divide the rise by the rungradient = 604 = 15
3. Finding the gradient from two coordinates
Call the points (x1, y1) and (x2, y2). The letter m stands for the gradient.
m = y2 − y1x2 − x1
- Either point can be first, but use the same order on the top and the bottom.
- Put negative numbers in brackets, so the signs don’t get lost.
Example 4: two coordinates
Find the gradient of the line through A(1, −3) and B(5, 7).
- Label the pointsx1 = 1, y1 = −3 x2 = 5, y2 = 7
- Put them into the formulam = 7 − (−3)5 − 1
- Work out the top and the bottomtop: 7 − (−3) = 7 + 3 = 10bottom: 5 − 1 = 4Subtracting a negative is the same as adding.
- Simplifym = 104 = 52
Example 5: negative coordinates and a negative gradient
Find the gradient of the line through C(−2, 9) and D(4, −6).
- Put the points into the formulam = −6 − 94 − (−2)
- Work out the top and the bottomtop: −6 − 9 = −15bottom: 4 − (−2) = 4 + 2 = 6
- Simplifym = −156 = −52
Quick sketch: D is to the right of C and lower down, so the line goes downhill. A negative gradient makes sense.
4. Horizontal and vertical lines
| Line | Direction | Every point on it has | Gradient |
|---|---|---|---|
| y = −3 | horizontal (flat) | y-coordinate −3, e.g. (−5, −3), (0, −3), (6, −3) | 0: the rise is 0 |
| x = 4 | vertical (straight up) | x-coordinate 4, e.g. (4, −5), (4, 0), (4, 6) | none you can work out: the run is 0, and you can’t divide by 0 |
The x-axis is the line y = 0. The y-axis is the line x = 0.
5. The y-intercept and y = mx + c
The y-intercept is where a line crosses the y-axis. On the y-axis, x is always 0, so the y-intercept is a point like (0, 5) or (0, −2).
Every straight line, except a vertical one, has an equation like this:
y = mx + c
- m is the gradient.
- c is the y-intercept: the line crosses the y-axis at (0, c).
Why it works:
- Put x = 0 into y = mx + c and you get y = c. So the line crosses the y-axis at c.
- Each time x goes up by 1, the mx part goes up by m. That’s the gradient.
Change m and c and watch the line move
- Change only c. The line slides up and down, and its steepness stays the same.
- Change only m. The line turns about the y-intercept.
- Set m to 0. What kind of line do you get?
- Press Match the line, then use the sliders to sit your line on top of the pale blue one.
6. Reading m and c from an equation
The sign in front of a number belongs to that number.
Example 6: already in the form y = mx + c
Find the gradient and y-intercept of y = 4x − 7.
y = 4x − 7
So the line crosses the y-axis at (0, −7).
Example 7: the x term comes second
Find the gradient and y-intercept of y = 6 − x.
- Swap the order so the x term comes firsty = −x + 6
- −x on its own means −1xy = −1x + 6
Example 8: rearrange first
Find the gradient and y-intercept of 5x + 2y = 8.
- Get the y term on its own: subtract 5x from both sides2y = −5x + 8
- Divide every term by 2y = −52x + 4
If there are brackets, expand them first. y = 3(x − 2) is y = 3x − 6, so m = 3 and c = −6.
7. Finding the equation of a line
A question can give you the line in three ways: as a graph, as a gradient and one point, or as two points.
Example 9: from a graph
Find the equation of this line.
- Find c: where does the line cross the y-axis?c = 3
- Find m: it goes down 1 for every 2 acrossm = −12
- Put them into y = mx + c
Example 10: from the gradient and one point
A line has gradient −3 and passes through (4, −5). Find its equation.
- Write what you knowy = −3x + c
- Put in the point: x = 4, y = −5−5 = −3 × 4 + c
- Tidy up−5 = −12 + c
- Solve for c: add 12 to both sidesc = 7
Example 11: from two points
Find the equation of the line through (−2, −5) and (4, 4).
- Find the gradient firstm = 4 − (−5)4 − (−2) = 96 = 32
- Put either point in. Using (−2, −5):−5 = 32 × (−2) + c
- Tidy up−5 = −3 + c
- Solve for c: add 3 to both sidesc = −2
Check with the other point, (4, 4): 32 × 4 − 2 = 6 − 2 = 4. Correct.
Drag P and Q: the working updates as you go
- Find a pair of points that gives a whole-number value for c, and a pair that doesn’t.
- Make up two points, work out the equation on paper, then drag P and Q there to check.
8. Parallel lines
They point the same way, so they never meet. Their values of c are different. If c were the same too, they would be the same line.
To check whether two lines are parallel, rearrange both into y = mx + c and compare the values of m.
Example 12: which lines are parallel?
Which of these lines are parallel to y = 3x + 1?
| Line | As y = mx + c | Gradient | Parallel? |
|---|---|---|---|
| y = 3x − 5 | already is | 3 | Yes |
| y = 1 − 3x | y = −3x + 1 | −3 | No |
| 2y = 6x + 7 | divide by 2: y = 3x + 3.5 | 3 | Yes |
| y = 13x + 1 | already is | 13 | No, even though c is the same |
Example 13: a parallel line through a point
Find the equation of the line parallel to y = 5x − 2 that passes through (1, 9).
- Parallel, so the gradient is the samey = 5x + c
- Put in the point: x = 1, y = 99 = 5 × 1 + c
- Solve for c9 = 5 + c, so c = 4
Change line B. Can you make it parallel to line A?
9. What m and c mean in real life
- The intercept is the value when the x quantity is 0: often a starting value or a fixed charge.
- The gradient is how much the y quantity goes up for each 1 of the x quantity: a rate. Its units are “y units per x unit”, such as pounds per hour.
Example 14: a plumber’s charges
The graph shows how much a plumber charges, C pounds, for a job lasting h hours. What do the intercept and gradient tell you?
- Read the interceptThe line meets the cost axis at 40.The plumber charges £40 before any work is done: a call-out fee.
- Work out the gradientgradient = 180 − 404 − 0 = 1404 = 35The plumber charges £35 for each hour.
- Write the equation
The mistakes that cost marks
- Dividing the wrong way round. Across over up gives the wrong answer. rise ÷ run: up over across.
- Mixing the order of the points. It flips the sign. if y2 comes first on the top, x2 comes first on the bottom.
- Counting squares when the scales are different. read the values on each axis, then subtract.
- Losing the minus sign. look at the line before you write the answer. Downhill means negative.
- Reading m from an equation that doesn’t start y =. The gradient of 5x + 2y = 8 is not 5. rearrange to y = … first.
- Dropping the sign of c. y = 4x − 7 crosses the y-axis at −7, not 7. keep the sign in front of the number with it.
- Mixing up x = k and y = k. remember x = 4 is a vertical line and y = 4 is a horizontal line.
- Thinking lines with the same c are parallel. The same c means they cross the y-axis at the same point. check the gradients. Parallel lines have the same m.
- Stopping at m and c. if the question asks for the equation, write y = … in full.
Quick checklist
- I can say whether a line’s gradient is positive, negative or 0 just by looking at it.
- I can find a gradient from a graph, and I check the scale on both axes first.
- I can find the gradient between two coordinates, including negative ones.
- I know which way the lines x = k and y = k go.
- I can read m and c from y = mx + c, including equations like y = 6 − x.
- I can rearrange an equation like 5x + 2y = 8 into y = mx + c.
- I can find the equation of a line from a graph, from a gradient and a point, and from two points.
- I know parallel lines have the same gradient, and I can find a parallel line through a given point.
- I can explain what the gradient and intercept mean on a real-life graph.
Download
Print these and work through them away from the screen.
Stuck on this topic?
These notes are free and always will be. If your child needs someone working through it with them, I run small GCSE maths groups of no more than 5, arranged by ability. Founding member price £35 a lesson, held for the first year, and the first lesson is a free trial.
Book a free trial →