Skip to content

Paper Together: sit a paper in a room with your friends.See how it works

Equation of a line – GCSE Maths

Foundation and Higher · Grade 5 · Non-calculator

Jump to the questions and answers · Download the worksheet (PDF)

Build from a gradient and a point, from two points, or from a graph, and read and from an equation. It is on Foundation and Higher, aimed at grade 5. Free questions with answers are on this page.

The equation of a straight line is (or ). is the gradient, is the -intercept. Given two points: find , then substitute one point to find . Given a gradient and a point: and rearrange.

A line parallel to through still has , then gives , so — which happens to be the same line if the point sits on it. Check by substituting the given point into your final equation.

. If you have a point and a gradient, substitute into or find from . Rearrange to before you read .

Objectives

Key points

Worked examples

Example 1

Write down the equation of the line with gradient 2 and y-intercept 1.

2 marks

  1. Identify the gradient m = 2 and y-intercept c = 1
  2. Substitute into y = mx + c: y = 2x + 1
  3. State the line equation: y=2x+1

Answer: y=2x+1

Common slips
  • Slip: Alan swapped m and c The gradient is the coefficient of x.
  • Slip: Alan wrote y = x + 2 m multiplies x, while c is the constant term.
  • Slip: Amber omitted y = An equation must have both sides.

Example 2

Write down the equation of the line through (0, 5) with gradient 2.

2 marks

  1. Recognise that (0, 5) is the y-intercept, so c = 5
  2. Combine with gradient m = 2: y = 2x + 5
  3. State the full equation: y=2x+5

Answer: y=2x+5

Common slips
  • Slip: Brenda used 5 as the gradient A point on the y-axis gives c.
  • Slip: Brenda wrote y = 5x + 2 The gradient multiplies x.
  • Slip: Brenda wrote 2x + 5 Write the complete equation starting with y =.

Example 3

Write down the gradient of the line y=-2x+3.

3 marks

  1. Identify the form y = mx + c where m is the multiplier of x
  2. Read the coefficient of x including its sign: -2
  3. State the gradient: -2

Answer: -2

Common slips
  • Slip: Chloe read the constant term 3 3 is the y-intercept c.
  • Slip: Chloe dropped the minus sign to write 2 The minus sign belongs to the coefficient.
  • Slip: Colin wrote -2x Gradient is a numerical value, not including x.

Questions and answers

GCSE Maths equation of a line questions and answers. Try each one, then open the answer. Easy questions come first.

Question 1 Easy2 marks

Write down the equation of the line with gradient 5 and y-intercept 2.

Show answer

Answer: y=5x+2

  1. Gradient multiplies x: 5x.
  2. Intercept is added: y = 5x + 2.
  • M1 — Gradient multiplies x: 5x.
  • A1 — Intercept is added: y = 5x + 2.

Question 2 Easy2 marks

Write down the equation of the line with gradient 3 and y-intercept -4.

Show answer

Answer: y=3x-4

  1. Gradient multiplies x: 3x.
  2. Negative intercept is subtracted: y = 3x - 4.
  • M1 — Gradient multiplies x: 3x.
  • A1 — Negative intercept is subtracted: y = 3x - 4.

Question 3 Medium2 marks

Write down the equation of the line through (0, 1) with gradient 4.

Show answer

Answer: y=4x+1

  1. Point (0, 1) means intercept c = 1.
  2. Gradient m = 4 gives y = 4x + 1.
  • M1 — Point (0, 1) means intercept c = 1.
  • A1 — Gradient m = 4 gives y = 4x + 1.

Question 4 Medium2 marks

Write down the equation of the line through (0, -2) with gradient 3.

Show answer

Answer: y=3x-2

  1. Point (0, -2) means intercept c = -2.
  2. Gradient m = 3 gives y = 3x - 2.
  • M1 — Point (0, -2) means intercept c = -2.
  • A1 — Gradient m = 3 gives y = 3x - 2.

Question 5 Hard2 marks

Write down the gradient of the line y=5x-1.

Show answer

Answer: 5

  1. Read the coefficient of x.
  2. Coefficient is 5.
  • M1 — Read the coefficient of x.
  • A1 — Coefficient is 5.

Question 6 Hard2 marks

Write down the gradient of the line y=-4x+1.

Show answer

Answer: -4

  1. Read the coefficient of x including sign.
  2. Coefficient is -4.
  • M1 — Read the coefficient of x including sign.
  • A1 — Coefficient is -4.

Question 7 Exam-style2 marks

Write down the equation of the line with gradient 4 and y-intercept -7.

Show answer

Answer: y=4x-7

  1. The gradient is m = 4 and the intercept is c = -7.
  2. Substitute into y = mx + c, so the equation is y = 4x - 7.
  • B1 — y = 4x + c or y = mx - 7
  • B1 — y = 4x - 7

Common mistakes

Most lost marks on this topic are one slip.

  1. Swapping gradient and intercept

    m is the multiplier of x; c is the standalone number

  2. Dropping the minus sign from negative gradients or intercepts

    Always preserve signs in front of coefficients and constants

  3. Including x when stating the gradient

    The gradient is purely the numerical coefficient m

Spot the slip

Ada is asked for the equation of the line with gradient 2 and intercept 1. She writes the intercept as the gradient. What is the equation?

  1. y=2x+1
  2. y=x+2
  3. y=2+1
Show the slip

y=2x+1 The gradient multiplies x, and the intercept is added.

Exam tips

Printable worksheet

The same questions are in a PDF you can print. Answers start on a later page.

Download worksheet (PDF)

Or use Print in your browser. Answers under each question are included when you print.

Questions students ask

Is Equation of a line Foundation or Higher?

Equation of a line is on Foundation and Higher, aimed at grade 5.

What is a common slip on Equation of a line?

Swapping gradient and intercept. m is the multiplier of x; c is the standalone number.

Where can I get Equation of a line questions and answers?

The questions on this page are free. Open Show answer under each one, or download the worksheet PDF. Start free to practise this topic in the app.

Related topics

More on Equation of a line

Practise Equation of a line free

Start free

AQA-style and Edexcel-style questions. Yumio is not affiliated with, endorsed by or connected to AQA, Pearson Edexcel or any other exam board.

Last updated 9 November 2026.

Next topicPractise free