Year 10 (ages 14–15, Grade 9 in the US) · Maths · Linear graphs · Lesson 4
Finding the equation of a line
Find the equation of a straight line from its graph, from its gradient and one point, and from two points, check whether a point lies on a line, and write equations in the form ax + by = c.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE maths courses. Check which course your school follows.

20-minute video lesson
Teaching, worked examples and 24 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Find the equation from a graph
- Find the equation from a gradient and a point
- Find the equation from two points
- Check whether a point lies on a line
The method
- From a graph: read c where it crosses the y-axis, then find m with a triangle.
- Gradient and a point: put x, y and m into y = mx + c and solve for c.
- Two points: find m = change in y ÷ change in x first, then c as above.
- Check: substitute the other point too.
- A point lies on a line if its coordinates make the equation true.
Key words: equation of a line, gradient, intercept, substitute, coordinates, y = mx + c.
Worked examples
Worked examples from the lesson, with every step.
Question 1
Find the equation of this line.
- Step 1: crosses y-axis at 3 → c = 3
- Step 2: from (0, 3) to (1, 2): −1 ÷ 1 = −1
- Step 3: y = 3 − x
Answer: y = 3 − x
Question 2
A line has gradient 4 and passes through (3, 5). Find its equation.
- Step 1: 5 = 4 × 3 + c
- Step 2: c = −7
- Step 3: y = 4x − 7
Answer: y = 4x − 7
Question 3
Find the equation of the line through (−2, 7) and (4, −5).
- Step 1: (−5 − 7) ÷ (4 − (−2)) = −2
- Step 2: 7 = −2 × (−2) + c
- Step 3: c = 3
- Step 4: y = 3 − 2x
Answer: y = 3 − 2x