KS3 · Maths
Finding the equation of a straight line (y = mx + c)
y = 2x + 5 is hiding two numbers: one says how steep the line is, the other where it crosses the y-axis. Spot both and you know the line.
Slide the line y = 2x + c
Every line here is y = 2x + c, so for every 1 you move right, the line goes up 2. Drag the dot on the y-axis to change c. Try c = 5, then c = 1, then c = −1. Where does each line cross the y-axis? And does the line ever get any steeper?
Algebra · y = mx + c
Ready to read, or rearrange first?
Can you read the gradient and the y-intercept straight off this equation?
Still to sort
Read m and c straight off (0)
y is on its own, with a coefficient of 1. The other side is just an x-term and a number, in either order.
Where the line is: A missing number still counts: no number in front of x means 1x, and no constant means the constant is 0.
Rearrange first (0)
y has a coefficient that isn't 1, there's a bracket, or y isn't on its own.
Where the line is: These are still straight lines. They just aren't showing you m and c yet.
You can only read m and c straight off when the equation says y = (number)x + (number), with y on its own. Some equations are already there. Some are in disguise. Sort them.
Maths · Algebra
Get y on its own, then read it
Do the same thing to both sides until the equation reads y = mx + c. Pick an equation and step through it.
y has a coefficient of 2, so these numbers aren't m and c yet.
Step 1 of 3
y has a coefficient of 2, so these numbers aren't m and c yet.
Predict, then check
Look closely: x = 0 isn't in this table.
These values come from a straight line. x: 2, 3, 4, 5 → y: 4, 8, 12, 16. Which equation is it?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
y = mx + c
Two numbers pin a straight line down: how steep it is, and where it crosses the y-axis.
What you need to know
- A coefficient is the number multiplying a variable, like the 3 in 3x; a constant is a term with no variable, like −5.
- In y = mx + c, m is the coefficient of x, and it's the gradient: how steep the line is.
- The constant c gives the y-intercept (0, c). On the y-axis x = 0, so mx = 0 and y = c.
Have a goYour mate insists y = 3x − 5 crosses the y-axis at (0, 5), because "minus signs don't count for intercepts". Where does it really cross?
(0, −5)
Put x = 0: 3 × 0 − 5 = −5. The constant keeps its sign, positive or negative, so your mate has just moved the line 10 units too high.
- You can only read m and c straight off once y is on its own, with a coefficient of 1.
- No number before x means 1x, no constant means c = 0, and the terms can come in either order.
Have a goNo pen allowed: what are the gradient and the y-intercept of y = 9 − x?
Gradient −1, y-intercept (0, 9)
The terms are the other way round and there's no number before x, so it's −1x. The 9 has no x, so it's the constant, not the gradient.
- Rearranging, by expanding brackets or dividing every term, changes how the equation looks, never which line it is.
- Same coefficient of x means same gradient, so the lines are parallel; a different constant just slides them up or down.
Have a goWrite a line parallel to y = −3x + 2 that crosses the y-axis at (0, 6).
y = −3x + 6
Parallel means the same gradient, so keep −3 and change only the constant. Changing the −3 would tilt the line, so it would no longer be parallel.
- Know the gradient and the y-intercept and you know the line: those two numbers pin it down completely.
- From a graph, a table or two points: gradient = change in y ÷ change in x, then work back to x = 0 for c.
- Check any equation you find by substituting the points: every point on the line must fit.
The big picture
Write a line's equation as y = mx + c and it hands you two things: the coefficient of x, m, is the gradient, and the constant, c, gives the y-intercept (0, c). That only works once y is on its own with a coefficient of 1, so some equations need rearranging first. Going the other way, find m and c from a graph, a table of values or two points, write y = mx + c, then substitute to check.
Key points
Worked example
Problem
Line A is 4x + 2y = 6. Line B passes through (1, 3) and (3, −1). Are the two lines parallel? Are they the same line?
⚠ Watch out
Reading the numbers off before y is on its own. 2y = 10 − 4x seems to show gradient −4 and intercept (0, 10). It doesn't. Divide every term by 2 first: y = 5 − 2x, so the gradient is −2 and the y-intercept is (0, 5).
Memory hook
Start at c, climb m. The line starts on the y-axis at (0, c); then for every 1 step right, it climbs m (a negative m means it goes down).
Check yourself
Cover the page and try 3y = 6x + 12: rearrange it, name its gradient and y-intercept, and write a line parallel to it. Check the intercept by putting x = 0 in.
Flashcards
(16)In y = mx + c, what does m tell you?
In y = mx + c, what does c tell you?
Why is the constant c the y-intercept?
What is a coefficient? What is a constant?
When can you read m and c straight off an equation?
Gradient and y-intercept of y = 5 − 2x?
Gradient of y = x − 2?
y-intercept of y = 2x?
What kind of line is y = 5?
Gradient and y-intercept of y = 2(3x − 4)?
y = 2x + 5 and y = 2x − 1: what do they share, and what's different?
Gradient 4, y-intercept (0, 7). Equation?
How do you find the gradient from two points?
A table of values doesn't include x = 0. How do you find c?
Reading a gradient from a graph: what must you check first?
How do you check an equation you've found?
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 postedMore KS3 Maths topics
- Arithmetic sequences and finding the nth term
- Equation of a line in general form
- Generating sequences from position-to-term rules
- Generating sequences from term-to-term rules
- Gradient and y-intercept of a linear graph
- Solving linear equations involving brackets
- Solving linear equations with unknowns on both sides
- Solving one-step linear equations
- Solving two-step linear equations
How this lesson was checked. This KS3 Mathslesson 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 31 October 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.