KS3 · Maths
Finding the equation of a straight line (y = mx + c)
y = 2x + 5 hides two numbers: one says how steep the line is, the other says where it crosses the y-axis. Spot them 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, c = 1 and c = −1. Where does each line cross the y-axis — and does the line ever get 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.
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
- In y = mx + c, the coefficient of x, m, is the gradient: how steep the line is.
- The constant c gives the y-intercept (0, c), because on the y-axis x = 0, so mx = 0 and y = c.
- You can only read m and c straight off once y is on its own with a coefficient of 1 — otherwise rearrange first.
- Once lines are in the form y = mx + c, the same coefficient of x means parallel lines; different constants just move them up or down.
- To write a line's equation, find m and c (from a graph, a table or two points), then check by substituting.
The big picture
When a line's equation is written as y = mx + c, 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, so some equations need rearranging first. Working the other way, you can write a line's equation by finding m and c — from a graph, a table of values or two points — and check it by substituting.
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. In 2y = 10 − 4x the gradient is not −4 and the y-intercept is not (0, 10). 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
- Adding and subtracting positive and negative integers
- Algebraic notation and conventions
- Angle sum in a triangle
- Angles on parallel lines (corresponding, alternate, co-interior)
- Area of a circle
- Area of a trapezium
- Area of a triangle
- Area of composite rectilinear shapes
- Arithmetic sequences and finding the nth term
- Associative, commutative and distributive laws
- Bisecting an angle
- Calculating theoretical probabilities
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 1 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.