GCSE · Maths · Edexcel · Spec 1MA1 · Higher

Straight-line graphs and y = mx + c

A non-vertical straight line needs just two numbers: one for how steep it is, one for where it crosses the y-axis. Slide the line and spot which is which.

Slide the line. What moves, and what refuses to?

-2-0.512.54-8-32712xy1y when x = 0slide me up and down
c 1

c: 1. y when x = 0: 1

Grab the dot where the line meets the y-axis and slide it up or down. The line always climbs 2 for every 1 across, so its steepness never changes.

Two points, one equation

Problem

A straight line passes through A(1, 2) and B(3, 8). Find its equation.

Predict, then check

Before you calculate anything, look at the two x-coordinates.

A line passes through (3, 1) and (3, 6). What happens when you try to work out its gradient?

Your turn

Same method, new points

Find the equation of the straight line through (2, 3) and (6, 5).

  1. Two points, so start with the gradient: the change in y divided by the change in x.
  2. missing step
Which line is step 2?

Exam line: Gradient first, then c from one point, then write it down and test it on the other point.

Maths · Straight lines

How are these two lines related?

Decide how each pair of lines is related, then read why.

Still to sort

Parallel (0)

Same gradient, different y-intercepts.

Where the line is: If the y-intercepts matched too, it would be one line, not two.

The same line (0)

Same gradient and same y-intercept.

Where the line is: The equations may be written in a different order and still be one line.

Perpendicular (0)

Non-vertical lines whose gradients multiply to −1.

Where the line is: Multiply the two gradients. If the answer is not −1, they are not perpendicular.

Neither (0)

Different gradients that do not multiply to −1.

Where the line is: Not parallel and not at right angles.

6 of 6 still to sort.

Look at the gradients first, then the y-intercepts.

Exam line: Compare the gradients. Same gradient, different c: parallel. Gradients multiplying to −1: perpendicular.
Watch out: Opposite gradients, such as 4 and −4, do not make a perpendicular pair. And a pair that only looks different may be the same line.

Find the slip

One line of this answer is wrong

A student finds the gradient of a line perpendicular to a line with gradient 5. Which line of their answer is wrong?

A student’s answer — which line goes wrong?

Exam line: Always test a perpendicular gradient: multiply it by the original. If you do not get −1, something is off.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

y = mx + c

Two numbers. One line.

What you need to know

  • A non-vertical straight line has an equation y = mx + c. Know m and c? Write it straight down.
  • m is the gradient, the steepness. On a straight line it is the same everywhere along it.
  • c is the y-intercept: where the line crosses the y-axis, which is where x = 0.
  • Have a goYour mate says y = 4x + 7 crosses the y-axis at 4. Confident. Wrong. Where does it actually cross, and how could you prove it?

    At y = 7. Put x = 0 in: y = 4 × 0 + 7 = 7.

    c is the value of y when x = 0. The 4 multiplies x, so it vanishes when x is 0 and cannot be the intercept.

  • Gradient from two points: m = (change in y) ÷ (change in x).
  • Have a goA line passes through (2, 1) and (4, 9). Work out its gradient before you look.

    4

    Change in y is 9 − 1 = 8 and change in x is 4 − 2 = 2, so m = 8 ÷ 2 = 4. The change in y goes on the top.

  • Given two points, find m first. Then put m and one point into y = mx + c to find c.
  • Check your equation by substituting the second point. Every point on the line fits its equation.
  • Same x-coordinate twice? The change in x is 0, so the gradient is undefined. It is a vertical line, like x = 3.
  • Same y-coordinate twice? That is a horizontal line, like y = 5.
  • Have a goTwo points on a line are (2, 7) and (9, 7). What is the equation of the line through them?

    y = 7

    Both y-coordinates are 7, so the line is flat and horizontal. Whatever x is, y stays at 7.

  • Parallel lines have the same gradient and different y-intercepts. Same gradient and same y-intercept means the same line.
  • Two non-vertical lines are perpendicular when their gradients multiply to −1, like 3 and −1/3.

The big picture

A non-vertical straight line has an equation y = mx + c. The gradient m says how steep it is, and c is where it crosses the y-axis. From two points you find m, then c, then check. Vertical and horizontal lines, parallel lines and perpendicular lines all follow from the gradient.

Key points

1In y = mx + c, m is the gradient (steepness) and c is the y-intercept (the value of y when x = 0).
2Two points: gradient = change in y ÷ change in x, then find c from one point, write y = mx + c, and check with the other point.
3Same x-coordinate: vertical line x = k, gradient undefined. Same y-coordinate: horizontal line y = k.
4Parallel lines: same gradient, different y-intercepts. Perpendicular non-vertical lines: gradients multiply to −1.

Worked example

Problem

A straight line has gradient 4 and passes through (2, 5). Find its equation.

⚠ Watch out

Mixing up which number does what. In y = 4x + 7 the 4 is the gradient and the line crosses the y-axis at 7, not at 4. If you are unsure, put x = 0 in and see what is left.

🧠

Memory hook

c = where the line Crosses the y-axis. m = how much the line Moves up for each step across.

✓

Check yourself

A line has gradient 2 and crosses the y-axis at (0, −3). Write its equation, then the equation of a parallel line through (0, 5).

Flashcards

(13)
In y = mx + c, what does m tell you?
The gradient: how steep the line is.
In y = mx + c, what does c tell you?
The y-intercept: where the line crosses the y-axis, which is the value of y when x = 0.
How can you check the y-intercept of y = mx + c?
Put x = 0 in. Then y = c.
How do you find the gradient from two points?
m = (change in y) ÷ (change in x), taking both changes in the same order.
You know the gradient and the y-intercept. What is the equation?
Write them straight into y = mx + c.
You know the gradient and one point that is not on the y-axis. How do you find c?
Substitute m and the point’s x and y into y = mx + c and solve for c. Or work back from the point to x = 0.
What are the stages for a line through two points?
Gradient first, then c from one point, then write y = mx + c, then check with the other point.
Why is the gradient the same everywhere along a straight line?
On a linear graph the rate of change is constant.
Two points share the same x-coordinate, such as 3. What is the line?
A vertical line, x = 3. The change in x is 0, so the gradient is undefined.
Two points share the same y-coordinate, such as 5. What is the line?
A horizontal line, y = 5.
How do you tell parallel lines from the same line?
Both have the same gradient. Parallel lines have different y-intercepts. The same line has the same y-intercept too.
What is the gradient rule for perpendicular non-vertical lines?
The two gradients multiply to give −1.
A line has gradient 3/5. What is the gradient of a non-vertical line perpendicular to it?
−5/3, because 3/5 × (−5/3) = −1.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Edexcel GCSE Maths topics

See the full Edexcel Maths curriculum →

How this lesson was checked. This Edexcel GCSE Maths (specification 1MA1)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 11 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.

Helpful guides for parents and students