Skip to the formula

Gradient formula: m = (y₂ − y₁) / (x₂ − x₁)

The gradient formula is gradient m = (y₂ − y₁) / (x₂ − x₁).

What each letter means

When to use it

In A Level coordinate geometry, to test whether lines are parallel or perpendicular, to find a perpendicular bisector, and as the gradient of a chord when you differentiate from first principles.

Worked example

Find the equation of the line through \((2,5)\) that is perpendicular to the line through \((2,5)\) and \((6,7)\).

  1. \(m=\dfrac{7-5}{6-2}=\tfrac12\), so the perpendicular gradient is \(-2\)
  2. \(y-5=-2(x-2)\)

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

Common mistake

Taking the perpendicular gradient as −m instead of −1/m. The two gradients must multiply to −1.

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

Try one yourself

One quick A Level Maths question on the gradient formula. No sign-in needed.

Find the gradient of the line through \((0, -3)\) and \((6, 1)\).
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

Gradient formula formula card: gradient m = (y₂ − y₁) / (x₂ − x₁). A Level Math Revision
Gradient formula card for A Level Maths: download (PNG).

A Level Maths FAQ

Is the gradient formula 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 a perpendicular bisector?

Find the midpoint of the two points and the gradient m between them. The bisector passes through the midpoint with gradient −1/m.

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