Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Advanced Coordinate Geometry and Graphs

Gradient of a Line

20 practice questions 2 video lessons Theory + worked examples

Gradient measures steepness: \(m = \dfrac{\text{rise}}{\text{run}} = \dfrac{y_2 - y_1}{x_2 - x_1}\). Lines that rise to the right have a positive gradient, horizontal lines have gradient \(0\) and vertical lines have no defined gradient. This NSW Year 9 Advanced maths subtopic calculates gradients (NESA outcome MA5‑LIN‑C‑01).

You will find gradients from points and graphs, compare the steepness of two lines, and find the gradient of a road and the rise of a ramp. You will show that three points are collinear, find an unknown coordinate from a gradient, use gradients to show a quadrilateral is a parallelogram, explain the gradient of a draining tank's graph, and test a driveway against a council rule. It is part of Year 9 Advanced Coordinate Geometry and Graphs.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Gradient of a Line - Video - Gradient of a straight line Watch
  • Gradient of a Line - 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 its steepness: rise over run. A line going uphill from left to right has a positive gradient and a line going downhill has a negative gradient. This Year 9 Advanced maths page covers the gradient formula, zero and undefined gradients, gradients as rates with units, parallel lines and finding an unknown coordinate.

The gradient \(m\) of a line is how far it goes up for each unit it goes across: \(m = \dfrac{\text{rise}}{\text{run}}\).

The run is the change in \(x\) and the rise is the change in \(y\), going from one point to another. A rise downwards is negative.

Read a line from left to right. Going uphill gives a positive gradient and going downhill a negative one. A bigger number, ignoring the sign, means a steeper line.

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

A straight line has the same gradient everywhere. So parallel lines have equal gradients, and three points lie on one line (they are collinear) when the gradients between them are equal.

In a real context the gradient is a rate, with units: litres per hour, dollars per kilogram, metres per metre.

Four kinds of gradientA line rising to the right has a positive gradient, a line falling to the right has a negative gradient, a horizontal line has zero gradient and a vertical line has an undefined gradient. x y O positive negative zero undefined
Read a line from left to right: uphill is positive, downhill is negative, flat is zero and vertical is undefined.
Rise over run is the same all along a lineA straight line with two gradient steps drawn under it, each a run of 3 and a rise of 2, so the gradient is two thirds everywhere on the line. x y run 3 rise 2 run 3 rise 2 O
Every step along a straight line has the same rise over run. Here \(m = \dfrac{2}{3}\) whichever two points you use.

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

\[m = \dfrac{\text{rise}}{\text{run}} = \dfrac{y_2-y_1}{x_2-x_1}\]
m=y2−y1x2−x1
LineGradient
rises to the rightpositive
falls to the rightnegative
horizontal (\(y = c\))\(0\)
vertical (\(x = k\))undefined
Parallel lines. \(m_1 = m_2\). Points \(A\), \(B\) and \(C\) are collinear when \(m_{AB} = m_{BC}\).
Rearranging. \(\text{rise} = m\times\text{run}\) and \(\text{run} = \dfrac{\text{rise}}{m}\). Use these when the gradient is given and a length is wanted.

How to find a gradient

  1. Choose two points on the line, reading them carefully from a graph if needed.
  2. Subtract in the same order: rise \(= y_2 - y_1\) and run \(= x_2 - x_1\).
  3. Divide rise by run and simplify the fraction.
  4. Check the sign against the picture: uphill positive, downhill negative.

Problems built on gradients

  1. Steeper line: compare the sizes of the gradients, ignoring signs.
  2. Unknown coordinate: write rise over run with the unknown in it, set it equal to the given gradient and solve (Example 3). If the unknown is in both coordinates, multiply both sides by the bracket first.
  3. Parallel sides: show a quadrilateral is a parallelogram by showing both pairs of opposite sides have equal gradients.
  4. Collinear points: find \(m_{AB}\) and \(m_{BC}\). Equal gradients and a shared point \(B\) mean one straight line.
  5. Rates: label the units of the rise and the run; the gradient is rise units per run unit (Example 2).
  6. Ramps, roads and driveways: put the rise and run in the same unit. Use rise \(= m \times\) run or run \(= \dfrac{\text{rise}}{m}\), and compare fractions to decide whether a limit is met (Example 4).
  7. Pronumerals: the rule is the same. Cancel a common factor only when it cannot be zero.
Example 1 β€” Gradient from two points
Find the gradient of the line through \(A(-3,4)\) and \(B(5,-2)\).
Solution

Go from \(A\) to \(B\). The rise is the change in \(y\) and the run is the change in \(x\).

Line through A(-3, 4) and B(5, -2)The line falls from A(-3, 4) to B(5, -2): a run of 8 and a rise of -6. x y run 8 rise βˆ’6 O A(βˆ’3, 4) B(5, βˆ’2)
\(\text{rise}\)\(=\)\(-2-4 = -6\)
\(\text{run}\)\(=\)\(5-(-3) = 8\)
\(m\)\(=\)\(\dfrac{-6}{8} = \mathbf{-\dfrac{3}{4}}\)
m=−68=−34

The line goes downhill from left to right, so a negative gradient makes sense. Going from \(B\) to \(A\) instead gives \(\dfrac{6}{-8}\), the same value.

Example 2 β€” Gradient as a rate
A phone's battery charge, \(B\%\), falls steadily. After \(1\) hour it shows \(82\%\) and after \(5\) hours it shows \(34\%\). Find the gradient of the graph of \(B\) against \(t\) hours, and explain what it means.
Solution
Phone battery charge against timeA straight line falling from 82 per cent at 1 hour to 34 per cent at 5 hours. t (h) B (%) run 4 h rise βˆ’48% 1 2 3 4 5 6 7 8 20 40 60 80 100 0 (1, 82) (5, 34)
\(m\)\(=\)\(\dfrac{34-82}{5-1}\)
\(\)\(=\)\(\dfrac{-48}{4} = \mathbf{-12}\)
m=34−825−1=−12

The rise is in per cent and the run is in hours, so the gradient is in per cent per hour. The battery loses \(12\%\) of its charge every hour. The negative sign means it is going down.

Example 3 β€” Parallel lines and an unknown
The line through \(P(k,-2)\) and \(Q(4,7)\) is parallel to the line through \(R(-3,1)\) and \(S(1,7)\). Find \(k\).
Solution

Parallel lines have equal gradients. Find the gradient of \(RS\) first.

\(m_{RS}\)\(=\)\(\dfrac{7-1}{1-(-3)} = \dfrac{6}{4} = \dfrac{3}{2}\)

Now write the gradient of \(PQ\) with \(k\) in it and set it equal.

\(\dfrac{7-(-2)}{4-k}\)\(=\)\(\dfrac{3}{2}\)
\(\dfrac{9}{4-k}\)\(=\)\(\dfrac{3}{2}\)
\(3(4-k)\)\(=\)\(18\)
\(4-k\)\(=\)\(6\)
\(k\)\(=\)\(\mathbf{-2}\)
94−k=32
Two parallel linesLine RS through R(-3, 1) and S(1, 7), dashed, and the parallel line PQ through P(-2, -2) and Q(4, 7), in red. x y O R(βˆ’3, 1) S(1, 7) P(βˆ’2, βˆ’2) Q(4, 7)

Check: \(P(-2,-2)\) to \(Q(4,7)\) is rise \(9\), run \(6\), so \(m = \dfrac{9}{6} = \dfrac{3}{2}\).

Example 4 β€” Is the ramp too steep?
A building code says a wheelchair ramp must be no steeper than a gradient of \(\dfrac{1}{14}\). A ramp rises \(45\) cm over a horizontal distance of \(5.4\) m.
(i) Find its gradient as a fraction in simplest form.
(ii) Does it meet the code?
(iii) What horizontal distance would a \(45\) cm rise need?
Solution
Wheelchair rampA ramp rising 45 cm over a horizontal run of 5.4 metres. Not to scale. run 5.4 m = 540 cm 45 cm ramp

Put both lengths in the same unit first: \(5.4\text{ m} = 540\text{ cm}\).

(i)

\(m\)\(=\)\(\dfrac{45}{540} = \mathbf{\dfrac{1}{12}}\)

(ii) Compare with the code. \(\dfrac{1}{12} > \dfrac{1}{14}\), because a smaller run for the same rise is steeper. The ramp is too steep.

(iii) The steepest allowed ramp has \(\dfrac{\text{rise}}{\text{run}} = \dfrac{1}{14}\).

\(\dfrac{45}{\text{run}}\)\(=\)\(\dfrac{1}{14}\)
\(\text{run}\)\(=\)\(45\times 14 = 630\text{ cm}\)
\(\)\(=\)\(\mathbf{6.3}\text{ m}\)
run=45×14=630

Common pitfalls

Keep the same order top and bottom. If the rise is \(y_2 - y_1\), the run must be \(x_2 - x_1\). Mixing the order flips the sign of the answer.
Rise over run, not run over rise. The change in \(y\) goes on top. Upside down, \(-\dfrac{3}{4}\) would become \(-\dfrac{4}{3}\), a different line.
Zero is not undefined. A horizontal line has \(m = 0\). A vertical line has no gradient at all, because the run is \(0\).
Match the units. A rise in centimetres over a run in metres gives a wrong fraction. Convert first: \(5.4\) m is \(540\) cm.

Frequently asked questions

How do you find the gradient of a line?

Pick two points on the line. Subtract the \(y\)-values to get the rise and the \(x\)-values, in the same order, to get the run. The gradient is \(\dfrac{\text{rise}}{\text{run}}\).

What is the gradient formula?

For the points \((x_1,y_1)\) and \((x_2,y_2)\), \(m = \dfrac{y_2-y_1}{x_2-x_1}\).

What does a negative gradient mean?

The line goes downhill as you read from left to right. In a real situation, the quantity on the vertical axis is decreasing.

Why is the gradient of a vertical line undefined?

On a vertical line the run between any two points is \(0\), and you cannot divide by \(0\). So a vertical line has no gradient.

How do you know if two lines are parallel?

Work out the gradient of each line. Parallel lines have equal gradients.

What are the units of a gradient?

The units of the vertical axis per unit of the horizontal axis. For litres against hours, the gradient is in litres per hour.