Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Linear Relations

Gradient

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Gradient - Video - Gradient of a straight line Watch
  • Gradient - Video - How to Find the Gradient Using the Coordinates of Two Points Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The gradient of a line measures how steep it is: the rise divided by the run. This Year 9 maths page shows how to find a gradient from a graph or from two points, how to tell positive from negative gradients, why horizontal lines have gradient \(0\) and vertical lines have an undefined gradient, and how gradient is used for ramps and roads.

The gradient of a line, written \(m\), tells you how steep it is. It is the rise (how far up) divided by the run (how far across to the right).

Read a line from left to right. If it goes up, the gradient is positive. If it goes down, the gradient is negative. The bigger the number (ignoring the sign), the steeper the line.

A horizontal line has no rise, so its gradient is \(0\). A vertical line has no run, and dividing by \(0\) is impossible, so its gradient is undefined.

A straight line has the same gradient everywhere, so any two points on it give the same answer.

Positive, negative, zero and undefined gradientsFour small panels. A line going up to the right has a positive gradient; a line going down to the right has a negative gradient; a horizontal line has a gradient of zero; a vertical line has an undefined gradient. positive negative zero undefined rises falls horizontal vertical
Read the sign by looking left to right. A line that rises is positive, one that falls is negative, a flat line is \(0\), and a vertical line has no gradient.
Rise and run on a lineA line through (0, 1) and (4, 4). A dashed run of 4 goes across and a dashed rise of 3 goes up, so the gradient is 3 over 4. x y 1 2 3 4 5 6 1 2 3 4 5 0 run = 4 rise = 3
Any two points on the line give the same gradient: \(m = \dfrac{\text{rise}}{\text{run}} = \dfrac{3}{4}\).
\[m = \dfrac{\text{rise}}{\text{run}}\]
m=riserun

For the points \((x_1, y_1)\) and \((x_2, y_2)\):

\[m = \dfrac{y_2 - y_1}{x_2 - x_1}\]
m=y2−y1x2−x1
Real slopes. For a ramp or a road, the rise is the height gained and the run is the horizontal distance, in the same units. To find the rise from a gradient, multiply: \(\text{rise} = m \times \text{run}\). A ramp with gradient \(\dfrac{1}{14}\) over \(420\) cm rises \(\dfrac{1}{14} \times 420 = 30\) cm.
A missing coordinate. Write the gradient formula with the unknown and solve. For \(A(1,3)\), \(B(k,9)\) and \(m = 3\): the rise is \(6\), so the run must be \(2\), and \(k = 1 + 2 = 3\).
Comparing steepness. Work out both gradients and compare their sizes, ignoring the sign. A gradient of \(\dfrac{5}{2}\) is steeper than a gradient of \(\dfrac{2}{3}\), because \(\dfrac{5}{2} = 2.5\) and \(\dfrac{2}{3} \approx 0.67\). A gradient of \(-3\) is steeper than both.
Testing a gradient. To check which pair of points gives a certain gradient, work out rise over run for each pair. On a graph, pick two points where the line crosses grid corners, then count the rise and the run.

How to find the gradient of a line

  1. Look at the line from left to right and predict the sign: up is positive, down is negative.
  2. Choose two points on the line. On a graph, use points on grid corners.
  3. Find the rise (\(y_2 - y_1\)) and the run (\(x_2 - x_1\)), subtracting in the same order.
  4. Divide rise by run and simplify the fraction.
  5. Check the sign against your prediction.
Example 1 β€” From a rise and a run
A line rises \(9\) units for every \(6\) units it runs to the right. Find its gradient.
Solution

Put the rise on top and the run underneath, then simplify.

\(m\)\(=\)\(\dfrac{\text{rise}}{\text{run}}\)
\(\)\(=\)\(\dfrac{9}{6}\)
\(\)\(=\)\(\mathbf{\dfrac{3}{2}}\)
m=96=32
A rise of 9 for a run of 6A line segment rising 9 units over a run of 6 units, with the run and the rise drawn dashed. x y 2 4 6 8 2 4 6 8 10 12 0 run = 6 rise = 9

A gradient of \(\dfrac{3}{2}\) means the line rises \(3\) for every \(2\) across.

Example 2 β€” Using two points
Find the gradient of the line through \(A(-1,5)\) and \(B(3,-3)\).
Solution

Subtract the \(y\)-values for the rise and the \(x\)-values for the run, in the same order.

\(\text{rise}\)\(=\)\(-3 - 5 = -8\)
\(\text{run}\)\(=\)\(3 - (-1) = 4\)
\(m\)\(=\)\(\dfrac{-8}{4} = \mathbf{-2}\)
m=−84=−2
Line through A(-1, 5) and B(3, -3)A line falling from A(-1, 5) to B(3, -3). The run is 4 to the right and the rise is -8, down. x y βˆ’4 βˆ’3 βˆ’2 1 2 4 5 βˆ’4 βˆ’2 βˆ’1 1 2 3 4 6 run = 4 rise = βˆ’8 A(βˆ’1, 5) B(3, βˆ’3)

The gradient is negative, so the line falls from left to right, which matches the sketch.

Example 3 β€” Horizontal and vertical
Find the gradient of the line through
(i) \(P(1,-2)\) and \(Q(6,-2)\)
(ii) \(R(4,1)\) and \(S(4,9)\).
Solution
\(\text{(i)}\ m\)\(=\)\(\dfrac{-2 - (-2)}{6 - 1}\)
\(\)\(=\)\(\dfrac{0}{5} = \mathbf{0}\)
\(\text{(ii)}\ m\)\(=\)\(\dfrac{9 - 1}{4 - 4}\)
\(\)\(=\)\(\dfrac{8}{0}\)
m=0

(i) The rise is \(0\), so the line is horizontal and its gradient is \(0\).

(ii) The run is \(0\). Dividing by \(0\) is impossible, so the gradient is undefined. The line is vertical.

A horizontal interval PQ and a vertical interval RSHorizontal interval PQ from (1, -2) to (6, -2) and vertical interval RS, in red, from (4, 1) to (4, 9). x y 2 4 6 βˆ’3 βˆ’1 1 3 5 7 9 P Q R S
Example 4 β€” Points on one line
Show that \(A(-2,7)\), \(B(1,1)\) and \(C(3,-3)\) lie on one straight line.
Solution

Find the gradient of \(AB\) and of \(BC\). If they are equal, the two intervals slope the same way through the shared point \(B\).

\(m_{AB}\)\(=\)\(\dfrac{1 - 7}{1 - (-2)}\)
\(\)\(=\)\(\dfrac{-6}{3} = -2\)
\(m_{BC}\)\(=\)\(\dfrac{-3 - 1}{3 - 1}\)
\(\)\(=\)\(\dfrac{-4}{2} = -2\)
mAB=mBC=−2
Three points on one linePoints A(-2, 7), B(1, 1) and C(3, -3) all on one straight line with gradient -2. x y βˆ’3 βˆ’1 3 βˆ’4 βˆ’2 2 4 6 8 A(βˆ’2, 7) B(1, 1) C(3, βˆ’3)

The gradients are equal and \(B\) is on both intervals, so the points are collinear (on one line).

Common pitfalls

Rise on top, run underneath. \(\dfrac{\text{run}}{\text{rise}}\) gives the wrong gradient. The \(y\)-values go on top.
Subtract in the same order. If the top is \(y_2 - y_1\), the bottom must be \(x_2 - x_1\). Mixing the order flips the sign.
Zero and undefined are different. A horizontal line has gradient \(0\). A vertical line has an undefined gradient, because the run is \(0\).
Watch out for the sign on a graph. A line going down from left to right has a negative gradient, even though the rise and run you count are both positive numbers of squares.

Frequently asked questions

How do you find the gradient of a line?

Divide the rise by the run. From two points, \(m = \dfrac{y_2 - y_1}{x_2 - x_1}\).

What does a negative gradient mean?

The line goes down as you move from left to right. A gradient of \(-2\) means the line falls \(2\) units for every \(1\) unit across.

What is the gradient of a horizontal line?

Zero. A horizontal line has no rise, so rise divided by run is \(0\).

Why is the gradient of a vertical line undefined?

A vertical line has a run of \(0\), and you cannot divide by \(0\). So the gradient of a vertical line is undefined.

How do you know which line is steeper?

Compare the gradients, ignoring the sign. A line with gradient \(3\) is steeper than a line with gradient \(\dfrac{1}{2}\), and a line with gradient \(-3\) is just as steep as one with gradient \(3\).