Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Linear Functions

Equations Of Lines

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The equation of a line is satisfied by every point on the line. In gradient–intercept form \(y=mx+c\) you can read the gradient and \(y\)-intercept straight off; the general form \(ax+by+c=0\) has integer coefficients. This Year 11 Mathematics Advanced page covers converting between the forms, finding intercepts, testing whether a point lies on a line, finding the equation from a gradient and a point or from two points, and perpendicular bisectors.

The equation of a line is a rule connecting \(x\) and \(y\) that every point on the line satisfies, and no other point does. A point lies on the line exactly when its coordinates make the equation true.

In gradient–intercept form, \(y=mx+c\), the coefficient of \(x\) is the gradient \(m\) and the constant \(c\) is the \(y\)-intercept: the line cuts the \(y\)-axis at \((0,c)\).

In general form, \(ax+by+c=0\), all the terms are on one side and \(a\), \(b\) and \(c\) are integers, usually with \(a\) positive. For example, \(y=-\dfrac{2}{3}x+4\) in general form is \(2x+3y-12=0\).

The \(x\)-intercept is where the line cuts the \(x\)-axis, so \(y=0\) there. The \(y\)-intercept is where it cuts the \(y\)-axis, so \(x=0\) there.

A line is fixed by its gradient and one point on it. If two points are given, find the gradient from them first. Parallel lines have the same gradient; perpendicular gradients multiply to \(-1\).

The gradient and y-intercept of y = x/2 + 2The line y = x/2 + 2 cuts the y-axis at c = 2 and the x-axis at (-4, 0). The dashed triangle shows a run of 2 and a rise of 1, so the gradient is 1/2. x y −4 −2 2 4 4 run 2 rise 1 c = 2 (−4, 0) y = ½x + 2
\(y=\dfrac{1}{2}x+2\): the gradient \(\dfrac{1}{2}\) means \(1\) up for every \(2\) across, and \(c=2\) is where the line cuts the \(y\)-axis.
Intercepts of 2x + 3y - 12 = 0The line 2x + 3y - 12 = 0 cuts the x-axis at (6, 0), found by putting y = 0, and the y-axis at (0, 4), found by putting x = 0. With the axes it makes a right-angled triangle. x y (6, 0) (0, 4) put y = 0 put x = 0 2x + 3y − 12 = 0
For \(2x+3y-12=0\): \(y=0\) gives \(x=6\) and \(x=0\) gives \(y=4\). The two intercepts are enough to draw the line.

The two forms of the equation of a straight line:

\[y=mx+c\qquad\qquad ax+by+c=0\]
gradient intercept form y equals m x plus c; general form a x plus b y plus c equals 0

For the line through \((x_1,y_1)\) with gradient \(m\) (the point–gradient form, covered fully on the next page):

\[y-y_1=m(x-x_1)\]
y minus y1 equals m times x minus x1
To findDo this
gradientmake \(y\) the subject; \(m\) is the coefficient of \(x\)
\(y\)-interceptput \(x=0\) (or read \(c\) from \(y=mx+c\))
\(x\)-interceptput \(y=0\) and solve for \(x\)
whether a point lies on the linesubstitute both coordinates and check the equation is true
Changing to general form. Clear fractions by multiplying every term, then move all terms to one side. \(y=\dfrac{2}{3}x-1\) becomes \(3y=2x-3\), so \(2x-3y-3=0\).
Where two lines meet. At the point of intersection both equations are true. For \(y=x+1\) and \(y=-2x+7\), equate the \(y\)-values: \(x+1=-2x+7\), so \(3x=6\), \(x=2\) and \(y=3\). The lines meet at \((2,3)\).
Triangle with the axes. A line with intercepts \((p,0)\) and \((0,q)\) cuts off a right-angled triangle with the axes, of area \(\dfrac{1}{2}\times|p|\times|q|\).

How to find the equation of a line

  1. Find the gradient \(m\): it is given, or use \(m=\dfrac{y_2-y_1}{x_2-x_1}\) for two points, or use a parallel (same \(m\)) or perpendicular (\(m_1m_2=-1\)) line.
  2. Find \(c\): substitute a known point into \(y=mx+c\) and solve. (Or use \(y-y_1=m(x-x_1)\) and rearrange.)
  3. Write the answer in the form asked. For general form, clear fractions and move every term to one side.
  4. Check: the given points must satisfy your equation.

Using an equation

  1. Gradient and \(y\)-intercept: rearrange to \(y=mx+c\).
  2. Intercepts: put \(y=0\) for the \(x\)-intercept and \(x=0\) for the \(y\)-intercept.
  3. Does a point lie on the line? Substitute its \(x\)-value and compare the \(y\)-value you get with the point’s \(y\)-coordinate.
  4. Perpendicular bisector of \(AB\): it passes through the midpoint of \(AB\) and its gradient is \(-\dfrac{1}{m_{AB}}\) (Example 4).
Example 1 — Reading y = mx + c
For the line \(y=-3x+6\):
(i) state the gradient and the \(y\)-intercept
(ii) find the \(x\)-intercept
(iii) determine whether \((-1,9)\) and \((4,-5)\) lie on the line.
Solution

(i) In \(y=mx+c\), the gradient is the coefficient of \(x\) and \(c\) is the \(y\)-intercept.

\(\therefore\) \(\boldsymbol{m=-3}\), \(\boldsymbol{c=6}\): the line cuts the \(y\)-axis at \((0,6)\).

(ii) At the \(x\)-intercept, \(y=0\):

\(0\)\(=\)\(-3x+6\)
\(3x\)\(=\)\(6\)
\(x\)\(=\)\(2\)
0 equals negative 3x plus 6, so x equals 2

\(\therefore\) the \(x\)-intercept is \(\boldsymbol{(2,0)}\).

(iii) Substitute each \(x\)-value:

\(x=-1:\ \ y\)\(=\)\(-3(-1)+6=9\)
\(x=4:\ \ y\)\(=\)\(-3(4)+6=-6\)
when x is negative 1, y is 9; when x is 4, y is negative 6

\(\therefore\) \((-1,9)\) lies on the line; \((4,-5)\) does not, since \(-6\neq -5\).

The line y = -3x + 6The line y = -3x + 6 with its y-intercept (0, 6) and x-intercept (2, 0). The point (-1, 9) lies on the line; the point (4, -5) lies just above it, not on it. x y (0, 6) (2, 0) (−1, 9) (4, −5)
Example 2 — General form
(i) Find the gradient and the intercepts of the line \(5x-2y-10=0\).
(ii) Write \(y=\dfrac{3}{4}x-2\) in general form.
Solution

(i) Make \(y\) the subject:

\(5x-2y-10\)\(=\)\(0\)
\(2y\)\(=\)\(5x-10\)
\(y\)\(=\)\(\dfrac{5}{2}x-5\)
5x minus 2y minus 10 equals 0, so y equals 5 over 2 x minus 5

\(\therefore\) gradient \(\boldsymbol{m=\dfrac{5}{2}}\) and \(y\)-intercept \(\boldsymbol{(0,-5)}\).

\(x\)-intercept: put \(y=0\): \(5x-10=0\), so \(x=2\), giving \(\boldsymbol{(2,0)}\).

The line 5x - 2y - 10 = 0The line 5x - 2y - 10 = 0, which is y = 5x/2 - 5, crossing the y-axis at (0, -5) and the x-axis at (2, 0). x y (0, −5) (2, 0)

(ii) Multiply every term by \(4\) to clear the fraction, then move all terms to one side:

\(y\)\(=\)\(\dfrac{3}{4}x-2\)
\(4y\)\(=\)\(3x-8\)
\(0\)\(=\)\(3x-4y-8\)
4y equals 3x minus 8, so 3x minus 4y minus 8 equals 0

\(\therefore\) \(\boldsymbol{3x-4y-8=0}\)

Example 3 — Line through two points
Find the equation of the line through \((-2,-1)\) and \((4,3)\). Give your answer in gradient–intercept form and in general form.
Solution

Find the gradient, then substitute a point to find \(c\).

\(m\)\(=\)\(\dfrac{3-(-1)}{4-(-2)}=\dfrac{4}{6}=\dfrac{2}{3}\)
m equals 4 over 6, which is 2 over 3

Substitute \((-2,-1)\) into \(y=\dfrac{2}{3}x+c\):

\(-1\)\(=\)\(\dfrac{2}{3}(-2)+c\)
\(-1\)\(=\)\(-\dfrac{4}{3}+c\)
\(c\)\(=\)\(\dfrac{1}{3}\)
negative 1 equals negative 4 over 3 plus c, so c equals 1 over 3

\(\therefore\) \(\boldsymbol{y=\dfrac{2}{3}x+\dfrac{1}{3}}\)

General form: multiply by \(3\) and rearrange.

\(3y\)\(=\)\(2x+1\)
\(0\)\(=\)\(2x-3y+1\)
3y equals 2x plus 1, so 2x minus 3y plus 1 equals 0

\(\therefore\) \(\boldsymbol{2x-3y+1=0}\)

The line through (-2, -1) and (4, 3)The line 2x - 3y + 1 = 0 through (-2, -1) and (4, 3), with gradient 2/3 and y-intercept (0, 1/3). x y (−2, −1) (4, 3) (0, 1/3)

Check with the other point \((4,3)\): \(2(4)-3(3)+1=8-9+1=0\). ✓

Example 4 — Intercepts and a perpendicular bisector
The line \(3x+4y-24=0\) meets the \(x\)-axis at \(A\) and the \(y\)-axis at \(B\).
(i) Find \(A\), \(B\) and the area of \(\triangle OAB\), where \(O\) is the origin.
(ii) Find the equation of the perpendicular bisector of \(AB\) in general form.
Solution

(i) \(x\)-intercept: put \(y=0\); \(y\)-intercept: put \(x=0\).

\(3x-24\)\(=\)\(0\ \Rightarrow\ x=8\)
\(4y-24\)\(=\)\(0\ \Rightarrow\ y=6\)
3x minus 24 equals 0 so x equals 8; 4y minus 24 equals 0 so y equals 6

\(A(8,0)\) and \(B(0,6)\). \(\triangle OAB\) is right-angled at \(O\) with legs \(8\) and \(6\):

\(\text{Area}\)\(=\)\(\dfrac{1}{2}\times 8\times 6=24\)
area equals one half times 8 times 6, which is 24

\(\therefore\) \(\boldsymbol{A(8,0)}\), \(\boldsymbol{B(0,6)}\), area \(\boldsymbol{=24}\) square units.

(ii) The bisector passes through the midpoint of \(AB\) and is perpendicular to \(AB\).

Midpoint \(=\left(\dfrac{8+0}{2},\dfrac{0+6}{2}\right)=(4,3)\)

\(m_{AB}\)\(=\)\(\dfrac{6-0}{0-8}=-\dfrac{3}{4}\)
\(m_\perp\)\(=\)\(\dfrac{4}{3}\)
gradient of AB is negative 3 over 4, so the perpendicular gradient is 4 over 3
\(y-3\)\(=\)\(\dfrac{4}{3}(x-4)\)
\(3y-9\)\(=\)\(4x-16\)
\(0\)\(=\)\(4x-3y-7\)
y minus 3 equals 4 over 3 times x minus 4, so 4x minus 3y minus 7 equals 0

\(\therefore\) \(\boldsymbol{4x-3y-7=0}\)

Triangle OAB and the perpendicular bisector of ABThe line 3x + 4y - 24 = 0 meets the axes at A(8, 0) and B(0, 6), making triangle OAB of area 24. The dashed red line 4x - 3y - 7 = 0 passes through the midpoint M(4, 3) of AB at right angles to AB. x y A(8, 0) B(0, 6) M(4, 3) O 24

Check: \(M(4,3)\) satisfies it, \(4(4)-3(3)-7=0\), and \(M\) is \(5\) units from both \(A\) and \(B\).

Common pitfalls

Read \(m\) and \(c\) only from \(y=mx+c\). For \(3x+4y-12=0\) the \(y\)-intercept is \(3\), not \(-12\), and the gradient is \(-\dfrac{3}{4}\), not \(3\). Make \(y\) the subject first.
Match the intercept to the zero. The \(x\)-intercept comes from \(y=0\); the \(y\)-intercept comes from \(x=0\). Swapping them is a common slip.
General form means integers and “\(=0\)”. Multiply every term to clear fractions, then move all terms to one side. \(y=\dfrac{3}{4}x-2\) is \(3x-4y-8=0\), not \(3x-4y-2=0\).
Test both coordinates. A point lies on a line only if substituting its \(x\)-value gives exactly its \(y\)-value.
A perpendicular bisector goes through the midpoint. Use the midpoint of \(AB\), not \(A\) or \(B\), as the point, and the negative reciprocal of \(m_{AB}\) as the gradient.

Frequently asked questions

What is the general form of a straight line?

It is \(ax+by+c=0\), with all terms on one side and \(a\), \(b\), \(c\) integers, usually with \(a\) positive. For example, \(y=2x-3\) becomes \(2x-y-3=0\).

How do you find the equation of a line through two points?

Find the gradient from the two points, substitute either point into \(y=mx+c\) to find \(c\), then write the equation. Check that the other point also satisfies it.

How do you find the x- and y-intercepts of a line?

Put \(y=0\) and solve for the \(x\)-intercept; put \(x=0\) and solve for the \(y\)-intercept. For \(2x+3y-12=0\) these are \((6,0)\) and \((0,4)\).

How do you check if a point lies on a line?

Substitute the coordinates of the point into the equation. If the equation is true, the point lies on the line; if not, it does not.

What is the perpendicular bisector of an interval?

It is the line through the midpoint of the interval at right angles to it. Its gradient is the negative reciprocal of the gradient of the interval, \(-\dfrac{1}{m_{AB}}\).