GCSE Maths / Edexcel

Equation of a straight line

Write y = mx + c from a graph or given values, then check it with a point on the line.

GraphsFoundation and HigherGrades 5 to 8Focused skill

Curriculum path: GCSE Maths > Edexcel > Graphs > Equation of a straight line

Pearson Edexcel GCSE Maths Algebra A9-A10: use y = mx + c and find equations of straight lines from points, gradients and intercepts.

Revision notes

Theory, examples, and quick checks.

Keep the method short, then practise straight away. This note is written for GCSE Maths Edexcel students who need clear working and reliable method marks.

Theory

Many straight lines can be written y = mx + c. The number m is the gradient: how much y changes for each 1 increase in x. The number c is the y-intercept, the y-value where x = 0.

Read c first from where the drawn line crosses the vertical axis. Then find m from two exact points using change in y divided by change in x. Put both values into y = mx + c.

In the diagram, the line goes through (0, 3) and (3, 0). The y-intercept is 3 and the gradient is (0 - 3)/(3 - 0) = -1. Its equation is y = -x + 3.

If the gradient and intercept are given directly, substitute them: gradient 2 and y-intercept -4 give y = 2x - 4. A missing x term means gradient 0, as in y = 5.

If neither point is on the y-axis, first find the gradient from the two points. Substitute one point into y = mx + c to solve for c. Check the final equation with the other point.

Key ruleFind m and c separately, then write y = mx + c and check it with a known point.

Diagram guide

-4-3-2-11234-3-2-112345xy0(0,3)(3,0)y = -x + 3
Read the line equationThe line crosses y at 3 and falls 1 for every 1 right, so y = -x + 3.

Worked examples

Read an equation from a graph

Find the equation of the line through (0, 3) and (3, 0).

-4-3-2-11234-3-2-112345xy0(0,3)(3,0)y = -x + 3
Intercept firstThe line crosses the y-axis at 3 and has gradient -1.
  1. At x = 0, y = 3, so c = 3.
  2. Gradient = (0 - 3)/(3 - 0) = -3/3 = -1.
  3. Put m = -1 and c = 3 into y = mx + c.

Answer: y = -x + 3

Use given properties

Write the equation of a line with gradient 2 and y-intercept -4.

  1. Use y = mx + c.
  2. m = 2 and c = -4.
  3. Substitute and simplify.

Answer: y = 2x - 4

Use two points without an intercept

Find the equation through (1, 4) and (3, 8).

  1. Gradient = (8 - 4)/(3 - 1) = 4/2 = 2.
  2. Write y = 2x + c and use (1, 4): 4 = 2 + c, so c = 2.
  3. Check (3, 8): 2(3) + 2 = 8.

Answer: y = 2x + 2

Common mistakes

  • Swapping gradient and intercept.
  • Reading the x-intercept as c.
  • Losing a minus sign on a line that falls to the right.
  • Assuming the y-coordinate of any point is the y-intercept.

Quick exercise

Try these before moving to the exam-style questions.

  1. Give the equation with gradient 2 and y-intercept 5.
  2. Give the equation with gradient -1 and y-intercept 3.
  3. What is the y-intercept in y = 4x - 7?
  4. What is the gradient in y = -3x + 2?
  5. Give the equation of a horizontal line through (0, 6).
Exam-style questions

Practise the same skill at three levels.

These are original GCSE-style questions with mark schemes, common wrong answers, and AI marking guidance so feedback stays close to exam expectations.

Basic GCSE styleFoundationEither3 marks

Use the graph through (0, 3) and (3, 0) to find its gradient, y-intercept and equation.

-4-3-2-11234-3-2-112345xy0
Line through two interceptsFind where it crosses y, then calculate its fall per step right.
line equationgraph reading
Standard exam styleFoundation and HigherEither4 marks

A line has gradient 3 and passes through (0, -2). Write its equation. Show that (2, 4) lies on the line.

y = mx + cpoint on line
ChallengeHigherEither5 marks

Find the equation of the straight line through (2, 7) and (5, 16). Show each step and check your answer.

two-point equationgradientintercept