Straight-line graphs: y = mx + c

▶ Watch the 1-minute version first, then work through the lesson.

Every straight line can be described by its steepness and where it crosses the y-axis.

Practise this lesson free (6 questions)

More tools

Gradient and intercept

In y = mx + c, m is the gradient and c is the y-intercept.
y = 2x + 3 crosses the y-axis at (0, 3) and goes up 2 for every 1 across.
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3 4 5 6 7 8 9 x y 1 across 2 up (0, 3) y = 2x + 3
y = 2x + 3 has gradient 2 and y-intercept 3.

Gradient from two points

gradient = change in ychange in x
Through (1, 4) and (3, 10): 10 − 43 − 1 = 62 = 3
−1 1 2 3 4 −2 2 4 6 8 10 12 x y (1, 4) (3, 10) y = 3x + 1 change in x = 2 changein y = 6 gradient = 6 ÷ 2 = 3
Gradient from two points: change in y ÷ change in x = 6 ÷ 2 = 3.

Finding the equation

Find m, then put one point into y = mx + c to find c.
m = 3, through (1, 4): 4 = 3 + c, so c = 1. Equation: y = 3x + 1.
Worked example

Find the equation of the line through (2, 5) and (4, 9).

  1. m = 9 − 54 − 2 = 2
  2. 5 = 2 × 2 + c, so c = 1
  3. y = 2x + 1

Answer: y = 2x + 1

Key idea

y = mx + c: m is the gradient (rise over run), c is where the line crosses the y-axis. Find m from two points, then substitute a point to find c.

Key words
Gradient
The steepness of a line: change in y ÷ change in x. It is m in y = mx + c.
Equation
A statement with an equals sign that is true for particular values of the letter, such as 3x + 1 = 10.

All GCSE and International GCSE Mathematics key terms and definitions →

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. What is the gradient of y = −8x + 9?

    Show the answer

    Answer: -8

    In y = mx + c, m = −8.

  2. Where does y = 2x + 9 cross the y-axis? Give the y-coordinate.

    Show the answer

    Answer: 9

    c = 9, so it crosses at (0, 9).

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons