Gradient formula: m = (y₂ − y₁) / (x₂ − x₁)
The gradient formula is gradient m = (y₂ − y₁) / (x₂ − x₁).
What each letter means
- \(m\) the gradient (slope) of the line
- \((x_1,\ y_1),\ (x_2,\ y_2)\) two points on the line
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)\).
- \(m=\dfrac{7-5}{6-2}=\tfrac12\), so the perpendicular gradient is \(-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.
Get 5 more like this — freeGoogle, Microsoft or email. No card needed.
On your A Level Maths course
| Course | In the exam |
|---|---|
| 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 |
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
- Practise A Level Maths practice
- Revise Coordinate geometry
- Revise IAL P1 coordinate geometry
- Print UK A Level (Edexcel, AQA, OCR) one-page formula sheet
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.