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
- \(m\) the gradient (slope)
- \(c\) the y-intercept: where the line crosses the y-axis
- \((x_1,\ y_1)\) a point on the line
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\).
- \(m=\dfrac{-4-4}{1-(-3)}=\dfrac{-8}{4}=-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.
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 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.