Skip to the formula

Equation of a straight line: y = mx + c

The equation of a straight line is y = mx + c, or y − y₁ = m(x − x₁) through the point (x₁, y₁).

What each letter means

When to use it

A Level questions often ask for the line in the form ax + by + c = 0 with integer a, b and c, so after y − y₁ = m(x − x₁) you clear fractions and collect terms. Lines also come up as tangents and normals to curves.

Worked example

Find the equation of the line through \((-3,4)\) and \((1,-4)\) in the form \(y=mx+c\).

  1. \(m=\dfrac{-4-4}{1-(-3)}=\dfrac{-8}{4}=-2\)
  2. \(y-4=-2(x+3)\), so \(y=-2x-6+4\)

Answer: \(y=-2x-2\)

Common mistake

Stopping at y = mx + c when the question asks for ax + by + c = 0 with integers. Rearrange and multiply through by any denominator, or lose the final mark.

Fix it with practice: Skill Builder: Straight lines: gradient, equation & intersection (free account).

Try one yourself

One quick A Level Maths question on the equation of a straight line. No sign-in needed.

A line has gradient \(\frac{1}{2}\) and passes through \((4, 1)\). Find its \(y\)-intercept.
Choose your answer · keys 1–4

On your A Level Maths course

CourseIn the exam
UK A Level (Edexcel, AQA, OCR)Not given by Edexcel, AQA or OCR: learn it
Edexcel International A LevelNot in the booklet: learn it

From our own A Level Maths formula sheets, in our words. Official: Pearson's formulae booklet (PDF) · AQA's formulae booklet (PDF) · OCR's H240 assessment page · Pearson's IAL formulae booklet (PDF).

Practise and revise

Equation of a straight line formula card: y = mx + c, or y − y₁ = m(x − x₁) through the point (x₁, y₁). A Level Math Revision
Equation of a straight line card for A Level Maths: download (PNG).

A Level Maths FAQ

Is the equation of a straight line in the A Level formula booklet?

UK A Level (Edexcel, AQA, OCR): not given by Edexcel, AQA or OCR: learn it. Edexcel International A Level: not in the booklet: learn it.

How do I find the equation of a normal to a curve?

Differentiate to get the gradient of the tangent at the point, m. The normal is perpendicular, so its gradient is −1/m. Then use y − y₁ = −(1/m)(x − x₁).

Our own wording, examples and card, checked by A Level Math Revision. Not produced or endorsed by Pearson Edexcel, AQA or OCR.