4 Triangles › Worksheets › Equation of a line from its graph

Equation of a line from its graph

KS3Year 9 · 81 questions · about 60 minutes · start at A and work through as far as you can · no calculator

NameDate

Ready? You need these first.

✓1y = 4x − 3: write down m and c
✓2Write down the coordinates of the point on the y-axis where y = 2
✓3Work out 6 ÷ 3 and −6 ÷ 3

Stuck on these? Start with gradient and y-intercept first.

A. Read the y-intercept Fluency Where does the line cross the y-axis? Write down c.

↗ Find the y-axis (the one going up). Read the number where the line crosses it.

A1x−5−4−3−2−112345y−6−5−4−3−2−11234560
A2x−5−4−3−2−112345y−6−5−4−3−2−11234560
A3x−5−4−3−2−112345y−6−5−4−3−2−11234560
A4x−5−4−3−2−112345y−6−5−4−3−2−11234560
A5x−5−4−3−2−112345y−6−5−4−3−2−11234560
A6x−5−4−3−2−112345y−6−5−4−3−2−11234560
A7x−5−4−3−2−112345y−6−5−4−3−2−11234560
A8x−5−4−3−2−112345y−6−5−4−3−2−11234560

B. Up or down? Fluency Is the gradient positive, negative or zero?

↗ Read the line from left to right. Uphill is positive, downhill is negative, flat is zero.

B1x−5−4−3−2−112345y−6−5−4−3−2−11234560
B2x−5−4−3−2−112345y−6−5−4−3−2−11234560
B3x−5−4−3−2−112345y−6−5−4−3−2−11234560
B4x−5−4−3−2−112345y−6−5−4−3−2−11234560
B5x−5−4−3−2−112345y−6−5−4−3−2−11234560
B6x−5−4−3−2−112345y−6−5−4−3−2−11234560

C. Gradient with a triangle Fluency Work out the gradient of each line. Gradient = rise ÷ run.

↗ First the triangle has its numbers, then you count them, then you draw your own. A line going down has a negative rise.

C1Triangle drawnx−5−4−3−2−112345y−6−5−4−3−2−1123456013
C2Triangle drawnx−5−4−3−2−112345y−6−5−4−3−2−1123456026
C3Count the squaresx−5−4−3−2−112345y−6−5−4−3−2−11234560
C4Count the squaresx−5−4−3−2−112345y−6−5−4−3−2−11234560
C5Use the two pointsx−5−4−3−2−112345y−6−5−4−3−2−11234560
C6Use the two pointsx−5−4−3−2−112345y−6−5−4−3−2−11234560

D. Gradient on your own Fluency Work out the gradient. Draw your own triangle between two points where the line crosses grid corners.

↗ Now there is no triangle. Pick two grid corners on the line, far apart.

D1x−5−4−3−2−112345y−6−5−4−3−2−11234560
D2x−5−4−3−2−112345y−6−5−4−3−2−11234560
D3x−5−4−3−2−112345y−6−5−4−3−2−11234560
D4x−5−4−3−2−112345y−6−5−4−3−2−11234560
D5x−5−4−3−2−112345y−6−5−4−3−2−11234560
D6x−5−4−3−2−112345y−6−5−4−3−2−11234560
D7x−5−4−3−2−112345y−6−5−4−3−2−11234560
D8x−5−4−3−2−112345y−6−5−4−3−2−11234560

E. Fraction gradients Fluency Work out the gradient. Give it as a fraction when it is not a whole number.

↗ Go across far enough to land on a grid corner. 1 up for every 2 across is a gradient of ½.

E1x−5−4−3−2−112345y−6−5−4−3−2−11234560
E2x−5−4−3−2−112345y−6−5−4−3−2−11234560
E3x−5−4−3−2−112345y−6−5−4−3−2−11234560
E4x−5−4−3−2−112345y−6−5−4−3−2−11234560
E5x−5−4−3−2−112345y−6−5−4−3−2−11234560
E6x−5−4−3−2−112345y−6−5−4−3−2−11234560

F. Look at the scales Fluency Work out the gradient. Check what each square is worth on each axis first.

↗ Use the numbers on the axes, not the number of squares.

F1x−5−4−3−2−112345y−12−10−8−6−4−2246810120
F2x−5−4−3−2−112345y−12−10−8−6−4−2246810120
F3x−5−4−3−2−112345y−60−50−40−30−20−101020304050600
F4x−5−4−3−2−112345y−60−50−40−30−20−101020304050600
F5x−10−8−6−4−2246810y−30−25−20−15−10−5510152025300
F6x−10−8−6−4−2246810y−30−25−20−15−10−5510152025300

G. m and c together Fluency Write down the gradient m and the y-intercept c.

↗ c first (where it crosses the y-axis), then m (rise ÷ run).

G1x−5−4−3−2−112345y−6−5−4−3−2−11234560
G2x−5−4−3−2−112345y−6−5−4−3−2−11234560
G3x−5−4−3−2−112345y−6−5−4−3−2−11234560
G4x−5−4−3−2−112345y−6−5−4−3−2−11234560
G5x−5−4−3−2−112345y−6−5−4−3−2−11234560
G6x−5−4−3−2−112345y−6−5−4−3−2−11234560
G7x−5−4−3−2−112345y−6−5−4−3−2−11234560
G8x−5−4−3−2−112345y−6−5−4−3−2−11234560

H. Worked examples Worked examples Read the first one. Fill the gaps in the second. Do the third on your own the same way.

↗ Each example does a little less for you.

H1Read this onex−5−4−3−2−112345y−6−5−4−3−2−112345601−1The line crosses the y-axis at 3, so c = 3.
From (0, 3) go 1 across and 1 down: m = −1 ÷ 1 = −1.
So y = −x + 3
H2Fill the gapsx−5−4−3−2−112345y−6−5−4−3−2−11234560The line crosses the y-axis at , so c = .
Go 1 across and : m = .
So y = x
H3On your ownx−5−4−3−2−112345y−6−5−4−3−2−11234560Find c, then m, then write the equation of the line.

I. Write the equation Fluency Write the equation of each line in the form y = mx + c.

↗ Steps: c, then m, then y = mx + c. Watch for flat lines (y = …) and upright lines (x = …).

I1x−5−4−3−2−112345y−6−5−4−3−2−11234560
I2x−5−4−3−2−112345y−6−5−4−3−2−11234560
I3x−5−4−3−2−112345y−6−5−4−3−2−11234560
I4x−5−4−3−2−112345y−6−5−4−3−2−11234560
I5x−5−4−3−2−112345y−6−5−4−3−2−11234560
I6x−5−4−3−2−112345y−6−5−4−3−2−11234560
I7x−5−4−3−2−112345y−6−5−4−3−2−11234560
I8x−5−4−3−2−112345y−6−5−4−3−2−11234560
I9x−5−4−3−2−112345y−6−5−4−3−2−11234560
I10x−5−4−3−2−112345y−6−5−4−3−2−11234560
I11x−5−4−3−2−112345y−6−5−4−3−2−11234560
I12x−5−4−3−2−112345y−6−5−4−3−2−11234560

J. Lines on the same axes Spot the pattern Write the equation of each line A, B and C. What is the same and what changes?

↗ Parallel lines have the same m. Lines through the same point on the y-axis have the same c.

J1Same steepnessx−5−4−3−2−112345y−6−5−4−3−2−11234560ABC
J2Same crossing pointx−5−4−3−2−112345y−6−5−4−3−2−11234560ABC
J3Mirror imagesx−5−4−3−2−112345y−6−5−4−3−2−11234560AB

K. Which is right? Which is right? Choose A, B, C or D. Then say what mistake each wrong answer makes.

↗ Hold up A, B, C or D.

K1x−5−4−3−2−112345y−6−5−4−3−2−11234560What is the equation of this line?Ay = 14x + 2By = 4xCy = 4x + 2Dy = 2x + 4
K2x−5−4−3−2−112345y−6−5−4−3−2−11234560What is the equation of this line?Ay = 2x − 1By = −2x − 1Cy = −x − 2Dy = 2x + 1
K3x−5−4−3−2−112345y−6−5−4−3−2−11234560What is the equation of this line?Ay = x + 4By = 4xCx = 4Dy = 4
K4x−5−4−3−2−112345y−6−5−4−3−2−11234560What is the gradient of this line?A−3B−2C−12D12

L. Spot the mistake Reasoning Each pupil has made a mistake. Say what they did wrong and write the right equation.

↗ Check c first, then the sign of m, then its size.

L1x−5−4−3−2−112345y−6−5−4−3−2−11234560Zara says the equation of this line is y = 4x + 2
L2x−5−4−3−2−112345y−6−5−4−3−2−11234560Leo says the equation of this line is y = 2x + 4
L3x−5−4−3−2−112345y−6−5−4−3−2−11234560Priya says the equation of this line is y = 2x + 2
L4x−5−4−3−2−112345y−6−5−4−3−2−11234560Jack says the equation of this line is y = −2x + 3

M. Real-life graphs Problem solving Read the scales carefully. Answer each part.

↗ The intercept is the starting value; the gradient is the rate (per mile, per hour, per minute).

M1t123456789101112V501001502002503003504004505005506000Time t (minutes)Water V (litres)The graph shows the water V (litres) left in a tank t minutes after it starts to empty.
(a) Write down the gradient and the intercept.
(b) What does each one mean?
(c) Write a formula for V in terms of t.
M2h123456C204060801001201401601802002202400Time h (hours)Cost C (£)The graph shows what a plumber charges, C (£), for a job lasting h hours.
(a) Write down the gradient and the intercept.
(b) What does each one mean?
(c) Write a formula for C in terms of h.
M3d12345678C246810121416182022240Distance d (miles)Cost C (£)The graph shows the cost C (£) of a taxi journey of d miles.
(a) Write down the gradient and the intercept.
(b) What does each one mean?
(c) Write a formula for C in terms of d.

N. Deeper Deeper For when you have finished.

N1x234567824681012141618The y-axis is not on this grid. Find the equation of the line.
N2x−5−4−3−2−112345y−6−5−4−3−2−11234560The line passes through the two marked points. Find its equation.
N3A line passes through (0, 4) and (2, 8). Find its equation without drawing it.
N4x−5−4−3−2−112345y−6−5−4−3−2−11234560Write the equation of the line that is parallel to this one and crosses the y-axis at (0, −5).

✓ Every answer on every version is worked out by the computer and checked again a second way. Last checked 3 December 2026. Report a problem · Pupils: check your answers · Teachers: a do now from this sheet, with new numbers, for checking back in a week or two