EST. 2024 · LONDON·MMXXVI SPECIFICATION
AQA·Edexcel·OCR|Foundation + Higher
AlgebraFoundation & HigherTopic 90 of 245

Finding the Equation of a Line –

GCSEMathsAI Team·7 min read·23 May 2026

Finding the equation of a straight line is one of the most tested algebra skills at GCSE. Whether you are given a gradient and a point, two points, or told the line is parallel or perpendicular to another, the goal is always the same: write the equation in the form y = mx + c.

What Is the Equation of a Line?

Every straight line on a coordinate grid can be described by an equation. The most common form is:

y = mx + c

where m is the gradient (how steep the line is) and c is the y-intercept (where the line crosses the y-axis).

If you know the gradient and any single point on the line, you can substitute into y = mx + c to find c. If you are given two points, you first calculate the gradient, then use one of the points to find c.

Key Formulas

Gradient = (y₂ − y₁) / (x₂ − x₁)
y = mx + c — substitute a known point to find c
Parallel lines have equal gradients: m₁ = m₂
Perpendicular lines have gradients that multiply to −1: m₁ × m₂ = −1

Step-by-Step Method

From a gradient and a point

  1. Write y = mx + c and substitute the given gradient for m.
  2. Substitute the coordinates of the point for x and y.
  3. Solve for c.
  4. Write the final equation.

From two points

  1. Calculate the gradient using (y₂ − y₁) / (x₂ − x₁).
  2. Substitute the gradient and one of the points into y = mx + c.
  3. Solve for c.
  4. Write the final equation.

Parallel or perpendicular to a given line (Higher)

  1. Read off or calculate the gradient of the given line.
  2. For a parallel line, use the same gradient. For a perpendicular line, use the negative reciprocal.
  3. Substitute the new gradient and the given point into y = mx + c, then solve for c.

Worked Example 1 — Foundation Level

Question: Find the equation of the line with gradient 3 that passes through (2, 11).

Working:

y = mx + c

Substitute m = 3, x = 2, y = 11:

11 = 3(2) + c

11 = 6 + c

c = 5

Answer: y = 3x + 5

Worked Example 2 — Higher Level

Question: Find the equation of the line passing through (1, 4) and (4, 13).

Working:

Gradient = (13 − 4) / (4 − 1) = 9 / 3 = 3

Substitute m = 3 and the point (1, 4) into y = mx + c:

4 = 3(1) + c

c = 1

Answer: y = 3x + 1

Worked Example 3 — Exam Style

Question: Line L has equation y = 2x − 5. Find the equation of the line perpendicular to L that passes through (6, 1).

Working:

Gradient of L = 2. The perpendicular gradient is −1/2 (negative reciprocal).

Substitute m = −1/2 and the point (6, 1) into y = mx + c:

1 = (−1/2)(6) + c

1 = −3 + c

c = 4

Answer: y = −(1/2)x + 4

Common Mistakes

  • Swapping the coordinates in the gradient formula. Always subtract in the same order: (y₂ − y₁) on top and (x₂ − x₁) on the bottom. Mixing up the order gives the wrong sign.
  • Forgetting the negative reciprocal for perpendicular lines. The perpendicular gradient is not just the reciprocal — you must also flip the sign. The gradient perpendicular to 3 is −1/3, not 1/3.
  • Leaving c out of the final answer. After finding c, make sure you write the full equation y = mx + c. Some students solve for c but never state the equation.

Exam Tips

  • Always show your substitution step — writing 11 = 3(2) + c earns method marks even if you make an arithmetic slip.
  • If the question says "parallel", the gradient stays the same. If it says "perpendicular", flip and negate.
  • Check your answer by substituting the given point back into your final equation to confirm it works.

Practice Questions

Q1 (Foundation): Find the equation of the line with gradient 5 that passes through (1, 8).

Answer: y = mx + c. 8 = 5(1) + c, so c = 3. Equation: y = 5x + 3.

Q2 (Foundation): Find the equation of the line through (2, 3) and (6, 11).

Answer: Gradient = (11 − 3)/(6 − 2) = 8/4 = 2. Substitute (2, 3): 3 = 2(2) + c, c = −1. Equation: y = 2x − 1.

Q3 (Higher): A line is parallel to y = 4x + 1 and passes through (3, 5). Find its equation.

Answer: Parallel gradient = 4. Substitute (3, 5): 5 = 4(3) + c, c = −7. Equation: y = 4x − 7.

Practise finding the equation of a line with instant feedback — completely free on GCSEMathsAI.

Summary

  • The equation of a straight line is y = mx + c, where m is the gradient and c is the y-intercept.
  • To find the equation from a gradient and a point, substitute into y = mx + c and solve for c.
  • To find the equation from two points, first calculate the gradient, then substitute a point to find c.
  • Parallel lines share the same gradient; perpendicular lines have gradients that multiply to −1.
  • Always check your final equation by substituting a known point back in.

Test your understanding

5 quick MCQs to identify any misconceptions on this topic.

Take Diagnostic Quiz
§Academic References

Further reading from leading academic institutions — free and open-access.

N
Equations & IdentitiesNRICH

Cambridge challenges on forming and solving equations.

University of Cambridge · Free · Open Access
C
Solving EquationsCorbett Maths

Step-by-step methods for linear and more complex equations.

Corbett Maths · Free · Open Access
← Previous topic

Plotting Straight-Line Graphs –

Next topic →

Iteration Method –

New · Edexcel Higher 2026

Ten practice papers between you and your exam.

Five Paper 2, five Paper 3 — full mark schemes and worked solutions. Instant PDF download after checkout.

Bundle — £9.99 →Paper 2 — £5.99Paper 3 — £5.99