Straight Line Graphs GCSE Maths: A Clear Guide
Straight line graphs GCSE maths made clear. Learn gradients and intercepts with worked examples, common mistakes and exam-style practice questions today.

Straight line graphs GCSE maths questions often feel harder than they really are. A line appears on a grid, several coordinates are marked, and suddenly you are expected to connect algebra with a picture.
You need to recognise the equation, identify the gradient, find the intercept and move confidently between an equation, a table and a graph. Once those connections become familiar, the topic stops feeling unpredictable.
The straight line graphs checklist
Before attempting exam-style questions, make sure you can:
- recognise the form y=mx+cy=mx+cy=mx+c;
- identify the gradient mmm;
- identify the yyy-intercept ccc;
- calculate a gradient from two coordinates;
- draw a line from its equation;
- find the equation of a line from a graph or two points;
- recognise parallel lines from their gradients.
Higher tier questions may also involve perpendicular lines. Check your exam board's specification for your course requirements.
Understanding y=mx+cy=mx+cy=mx+c
The equation of a non-vertical straight line is commonly written as:
y=mx+cy=mx+cy=mx+cThe letter mmm represents the gradient. It tells you the direction and steepness of the line. The letter ccc represents the yyy-intercept, the value of yyy where the line crosses the yyy-axis.
For example, consider:
y=3x−4y=3x-4y=3x−4The gradient is 333 and the yyy-intercept is −4-4−4. Therefore, the line crosses the yyy-axis at (0,−4)(0,-4)(0,−4).
A positive gradient means the line rises as you move from left to right. A negative gradient means it falls. A gradient of 000 produces a horizontal line.
Vertical lines are an exception. A vertical line has an equation such as x=5x=5x=5 and does not have a defined gradient, so it cannot be written in the form y=mx+cy=mx+cy=mx+c.
MathsGenie's Gradient of a Line revision guide explains how steepness and direction are represented.
How to draw a straight line graph
Graphs are built from exact coordinates, not guesses about where a line belongs.
Use this reliable method:
- Choose several sensible xxx-values.
- Substitute each value into the equation.
- Record the resulting coordinates in a table.
- Plot the coordinates carefully.
- Draw one straight line through them using a ruler.
Worked example: drawing y=2x−1y=2x-1y=2x−1
Choose the xxx-values −2-2−2, −1-1−1, 000, 111 and 222.
| xxx | −2-2−2 | −1-1−1 | 000 | 111 | 222 |
|---|---|---|---|---|---|
| y=2x−1y=2x-1y=2x−1 | −5-5−5 | −3-3−3 | −1-1−1 | 111 | 333 |
For example, when x=−2x=-2x=−2:
y=2(−2)−1=−5y=2(-2)-1=-5y=2(−2)−1=−5The coordinates are therefore (−2,−5)(-2,-5)(−2,−5), (−1,−3)(-1,-3)(−1,−3), (0,−1)(0,-1)(0,−1), (1,1)(1,1)(1,1) and (2,3)(2,3)(2,3).
Plot the points and join them with a straight line. Notice that the line crosses the yyy-axis at (0,−1)(0,-1)(0,−1), which agrees with c=−1c=-1c=−1. It also rises by 222 units whenever you move 111 unit to the right, agreeing with m=2m=2m=2.
Consolidate this process with the Drawing Linear Graphs exam booklet or revisit the straight line graph lesson.
A student asks a ruler to make their thinking straight in a minimalist revision comic
Straight line graphs worked examples
The next step is reversing the process: finding an equation from coordinates rather than drawing a graph from an equation.
Finding the gradient from two points
The gradient is the change in yyy divided by the change in xxx:
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}m=x2−x1y2−y1Suppose a line passes through (1,2)(1,2)(1,2) and (5,10)(5,10)(5,10). Its gradient is:
m=10−25−1=84=2m=\frac{10-2}{5-1}=\frac{8}{4}=2m=5−110−2=48=2Subtract the coordinates in the same order. If you calculate 10−210-210−2 on the top, calculate 5−15-15−1 on the bottom.
Finding the full equation
Once you know m=2m=2m=2, substitute one of the coordinates into y=mx+cy=mx+cy=mx+c. Using (1,2)(1,2)(1,2) gives:
2=2(1)+c2=2(1)+c2=2(1)+c 2=2+c2=2+c2=2+c c=0c=0c=0The equation is therefore:
y=2xy=2xy=2xYou can check it using the second coordinate:
10=2(5)10=2(5)10=2(5)The statement is true, so the equation fits both points. For more practice, use the Equation of a Line exam-style questions, which include worked solutions.
Parallel and perpendicular lines
Parallel lines have the same gradient. For example, the lines
y=4x+1y=4x+1y=4x+1and
y=4x−7y=4x-7y=4x−7are parallel because both have gradient 444. Their intercepts are different, so they do not lie on top of one another.
For Higher tier questions, two non-vertical perpendicular lines have gradients whose product is −1-1−1. This means that you take the negative reciprocal. If one gradient is 333, the perpendicular gradient is:
−13-\frac{1}{3}−31Do not simply change the sign. The perpendicular gradient to 333 is not −3-3−3.
The intersection of two lines can represent the solution to a pair of equations, as shown in the Solving Simultaneous Equations Graphically lesson.
Common mistakes with straight line graphs
Confusing the gradient and intercept
In y=−2x+6y=-2x+6y=−2x+6, the gradient is −2-2−2 and the intercept is 666. The gradient is the coefficient of xxx, not whichever number appears first.
Ignoring a negative gradient
If mmm is negative, the line must fall from left to right. If your calculated gradient is negative but your graph rises, something is wrong.
Reading the wrong intercept
The value ccc is specifically the yyy-intercept. It is where the line crosses the vertical axis, not the horizontal axis.
Using an inconsistent subtraction order
For two coordinates, either subtraction order works, provided it is consistent:
10−25−1=2−101−5=2\frac{10-2}{5-1}=\frac{2-10}{1-5}=25−110−2=1−52−10=2Mixing the orders changes the sign incorrectly.
Drawing separate line segments
Plot the coordinates first, then use a ruler to draw one continuous straight line. Avoid joining each pair of points with short, uneven strokes.
Straight line graphs questions to practise
Try these without looking back at the examples.
- For y=−3x+4y=-3x+4y=−3x+4, state the gradient and yyy-intercept.
- Complete the values of yyy when x=−2x=-2x=−2, 000 and 222 for y=12x+2y=\frac{1}{2}x+2y=21x+2.
- Find the equation of the line through (−1,5)(-1,5)(−1,5) and (3,−3)(3,-3)(3,−3).
- Find the equation of the line parallel to y=4x−7y=4x-7y=4x−7 that passes through (2,3)(2,3)(2,3).
The answers are:
- The gradient is −3-3−3 and the yyy-intercept is 444.
- The values of yyy are 111, 222 and 333.
- The gradient is −2-2−2 and the equation is y=−2x+3y=-2x+3y=−2x+3.
- The parallel gradient is 444, so the equation is y=4x−5y=4x-5y=4x−5.
Check whether your gradient has the correct sign, whether the intercept matches the graph and whether a given coordinate satisfies your equation.
Turn understanding into marks
Follow the same sequence: identify mmm, identify or calculate ccc, and check with a coordinate. Regular practice makes this dependable under time pressure.
Start the MathsGenie Equation of a Line Question Bank and practise moving between equations, coordinates and graphs.



