Finding the Equation From a Graph
Read where a drawn line crosses the y-axis and how steep it is, then write its equation as y = mx + c.
- 5 steps
- 4 min
- 2 syllabuses
Try a real exam question on this
0580/12 · Feb/Mar 2025 · Q17 · 4 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
A straight line L is drawn on a grid with axes 0 to 8 and 0 to 7. Find its equation in the form y = mx + c, then find where L meets the x-axis at P.
(a) 2 marks
Using the grid, work out the gradient and y-intercept of line L and write its equation as y = mx + c.
- L crosses the y-axis at (0, 3), so c = 3
- L passes through (8, 7): gradient = (7 − 3)/(8 − 0) = 4/8 = 1/2
- y = 1/2 x + 3
Answer y = 1/2 x + 3
(b) 2 marks
Line L meets the x-axis at point P. Determine the coordinates of P.
- On the x-axis y = 0
- 0 = 1/2 x + 3
- 1/2 x = −3, so x = −6
- P = (−6, 0)
Answer (−6, 0)
The lesson, step by step
Step 1 of 5
Two Things to Read
Every straight line (except an upright one) has an equation of this form:
Formula
To find it from a graph you read just two numbers:
| Letter | What it is | Where to look |
| the gradient: how steep | up ÷ across between two points | |
| the y-intercept | where the line crosses the y-axis |
Key idea
For more on what m and c mean, see The Equation y = mx + c.
Step 2 of 5
Read c, Then m
The 2–3 mark question: a line is drawn on a grid, find its equation. Pick two points where the line crosses grid corners exactly.
Worked example
- 1
— Find where the line cuts the upright axis. That height is c, so c = 2.
- 2
— Pick two points where the line passes exactly through a grid corner. Exact points give an exact gradient.
- 3
— y goes from 2 down to −4. Going down means up is negative: −6.
- 4
— x goes from 0 to 2, so the line moves 2 to the right.
- 5
— Gradient = up ÷ across. Negative, which matches a line going down to the right.
- 6
— Put m in front of x and c on its own, as in .
- 7
— Check with the second point. It gives y = −4, so the equation fits.
Common mistake
Writing . The line goes down to the right, so the gradient must be negative.
Key idea
Show up ÷ across in your working, and write the answer as , not . A correct gradient or a correct c still earns a mark, even if the other one is wrong.
Step 3 of 5
When the Gradient Is a Fraction
Some lines rise slowly. Count across to the next exact grid corner: the gradient is then a fraction.
Worked example
- 1
— The line cuts the y-axis below 0, at −1. So c = −1, minus sign included.
- 2
— Move right from (0, −1) until the line passes exactly through a grid corner. The first one is (3, 1).
- 3
— y goes from −1 up to 1. Taking away a negative adds, so 1 + 1 = 2.
- 4
— x goes from 0 to 3, so the line moves 3 to the right.
- 5
— Up ÷ across. 2 does not divide exactly by 3, so leave the gradient as a fraction.
- 6
— Put m and c into . The −1 keeps its minus.
Common mistake
Doing across ÷ up and getting . Up always goes on top.
Key idea
Check with a third point. At : . It fits.
Step 4 of 5
When One Square Is Not 1
Exams often use axes where one square is not 1. Read the numbers on the axes, never just count squares.
Worked example
- 1
— Read the scales first. Here 5 squares reach 10 on the x-axis, and 2 squares reach 1 on the y-axis.
- 2
— The line crosses the y-axis at the number 3. Read the label, not the square count.
- 3
— Pick a second point where the line passes exactly through a grid corner, and read both numbers off the axes.
- 4
— Use the axis numbers. It is 4 squares, but each square is 0.5, so up = 2.
- 5
— Also 4 squares, but each square is 2, so across = 8.
- 6
— Up ÷ across, then simplify. 2 ÷ 8 = 0.25, which is the same as .
- 7
— Put m and c into .
- 8
— Check with a point on the line, (4, 4). It fits.
Common mistake
Counting squares: 4 up and 4 across gives . That is only right when both scales are the same.
Step 5 of 5
Which Method? Read the Question
Look at the line and what the question asks.
| You see | You do |
| A sloping line drawn on a grid | read c, then up ÷ across |
| A flat line | the height it sits at |
| An upright line | where it crosses the x-axis |
| A sloping line through | c = 0, so |
| A line that does not reach the y-axis | find m, then put a point in for c: Equation of a Line Through Two Points |
| Only two points, no graph | Equation of a Line Through Two Points |
| “Draw the line” | Drawing Straight-Line Graphs |
Key idea
Check the axis scales before counting squares. One square is not always 1.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 0580/11May/Jun 2026 · Q203 marksFrom a grid diagram of straight line L, find its equation in the form y = mx + c.Solve it →
- 0580/31May/Jun 2025 · Q152 marksFrom six sketched straight-line graphs labelled A to F, identify which graph matches each of two given equations.Solve it →
- 0580/32Feb/Mar 2024 · Q515 marksComplete a table for y = −x² + 5x + 7, plot its curve for −1 ≤ x ≤ 6, then answer questions on symmetry, gradients, parallel lines, a line on a grid, and rearranging y = mx + c.Solve it →
- 0580/32Oct/Nov 2024 · Q815 marksUsing a grid with line L from (0, 2) to (8, 6), work with y = 8 − 2x and y = x² − 4x − 4, finding equations, tables, graphs, symmetry and solutions.Solve it →
- 0580/33May/Jun 2023 · Q612 marksUse the given grid and line L to find its equation, complete a table and draw the quadratic y = x² − 3x − 3, then find its turning point, symmetry line and intersection with L.Solve it →
- 0580/12Oct/Nov 2023 · Q225 marksFrom a grid showing point A and line L, give A's coordinates, plot (−2, 4), and find the equation of L.Solve it →
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.