Gradient of linear graphs

Maths · Coordinate geometry. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The idea

The gradient of a straight line measures how steep it is. It is the change in y divided by the change in x as you move along the line, often called rise over run.

A line that goes up from left to right has a positive gradient. A line that goes down from left to right has a negative gradient. A horizontal line has gradient 0, and a vertical line has no defined gradient.

The gradient is the same everywhere on a straight line, so any two points on it give the same answer. In the form y = mx + c, the number m multiplying x is the gradient.

In simpler words

The gradient tells you how steep a straight line is. Count how much it rises and how far it runs, then divide rise by run. A line that climbs from left to right has a positive gradient. One that falls has a negative gradient. A flat line has gradient zero. In y = mx + c the gradient is m, the number in front of x.

An everyday comparison

Gradient is like the steepness of a staircase. Each step rises a certain height and runs forward a certain distance, and rise divided by run is the same whichever step you measure, because the staircase is straight. A staircase you walk down from left to right is a negative gradient. The comparison stops at vertical: a ladder straight up has no run, so there is no number for its gradient.

Rules to remember

Common mistake

Subtracting in a different order on the top and the bottom, or putting the x-change on top. Start from the same point in both subtractions and take care with double negatives such as 3 − (−2) = 5.

In the exam

Choose two points on the line at grid crossings and write their coordinates. Write m = (y2 − y1)/(x2 − x1), taking the same point first on top and bottom, then substitute. Show the subtraction, including double negatives, and give the answer as a fraction in lowest terms or a decimal. If the line is given as an equation, rearrange to y = mx + c first, showing the division, then state m. Check the sign: a falling line has a negative gradient.

Worked example

Find the gradient of the line through (−1, 8) and (3, −4).

  1. Change in y = −4 − 8 = −12.
  2. Change in x = 3 − (−1) = 4.
  3. Gradient = −12 ÷ 4 = −3.

Answer: Gradient = −3

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Drawing linear graphsLength and midpoint →Take a Maths test