
If you’ve ever looked at a straight-line graph and wondered how to describe it mathematically, you’ve met y=mx+c. It’s the UK’s go-to formula for writing the equation of a straight line, and it packs a lot into a few letters.
Gradient m: slope = Δy/Δx ·
y-intercept c: value of y when x=0 ·
Equation format: y = mx + c ·
Used in: linear graphs in GCSE Maths ·
Also known as: slope-intercept form (US)
Quick snapshot
- y=mx+c always represents a straight line (TeachTutti (UK tutoring platform))
- m is the gradient (steepness) (TeachTutti)
- c is the y-intercept (TeachTutti)
- Why the UK uses c while the US uses b for the same intercept (Khan Academy (non-profit education))
- y=mx+c has been the standard form in UK secondary mathematics for decades (mathcentre (UK academic support centre))
- Use the formula to graph any straight line from its equation
- Apply it to model real-world relationships like cost, distance, and conversion
Four key facts, one takeaway: every straight line can be captured by these four symbols. Here’s how they fit together.
| Label | Value |
|---|---|
| Full name | slope-intercept form (British: gradient-intercept form) |
| Origin | Common in UK GCSE curriculum; also used globally |
| Variables | y dependent, x independent, m gradient, c intercept |
| Constraint | Defines only straight lines |
What does y, mx, and c stand for?
Every letter in y=mx+c has a specific mathematical job. Understanding each one turns a jumble of symbols into a clear description of a line.
What is the gradient m?
- m measures steepness — how much y changes for each one-unit increase in x. It’s often called rise over run.
- Formula: m = (y₂ – y₁) / (x₂ – x₁) using any two points on the line (Sparkl (IB revision platform)).
- A positive slope rises left to right; a negative slope falls left to right (Sparkl).
- If m = 0, the line is horizontal.
What is the y-intercept c?
- c is the y‑coordinate where the line crosses the y‑axis, which happens when x = 0.
- If no c term appears in the equation, c = 0 and the line passes through the origin (Cognito (GCSE video channel)).
What do x and y represent?
- x is the independent variable (the input). y is the dependent variable (the output).
- Together they form coordinate pairs (x, y) that satisfy the equation, producing every point on the line.
How to use the y=mx+c formula?
Using the formula is a matter of identifying two numbers — gradient and intercept — from either a graph or an equation. Here’s a step-by-step approach.
Step-by-step to find equation from graph
- Pick two distinct points on the line.
- Calculate the gradient: divide the vertical change by the horizontal change (rise / run).
- Find where the line meets the y‑axis — that’s c.
- Write the equation in the form y = mx + c.
For example, if a line passes through (0, 2) and (1, 7), the gradient m = (7 – 2)/(1 – 0) = 5, and c = 2, giving y = 5x + 2 (Scribd (educational resource repository)).
Rearrange equations into y=mx+c form
- Not all linear equations start as y = mx + c. For example, 2y – 4x = 6 can be rearranged: 2y = 4x + 6, then y = 2x + 3.
- If there is no number in front of x, the coefficient is 1 — so y = x + 2 has gradient 1.
The payoff: once in y=mx+c form, you can instantly read off the gradient and intercept without any further calculation.
Is y=mx+c only for linear equations?
Yes — and that’s its strength. The formula is built for straight lines and nothing else.
What types of graphs follow y=mx+c?
- Any graph that can be expressed as y = mx + c produces a straight line. This includes lines with any slope (positive, negative, zero) and any intercept.
- Linear relationships between two variables — for example, a phone plan with a fixed monthly fee plus a per‑minute charge — can be modelled this way.
Can curved lines be written as y=mx+c?
- No — curves (parabolas, exponential curves, sine waves) require different forms such as quadratic y = ax² + bx + c or exponential y = ab^x.
- Attempting to force a curve into y=mx+c would give a poor approximation at best, and a false model at worst.
The catch: y=mx+c is precise only for lines. If your data isn’t linear, the formula will mislead you — but it often helps as a first approximation.
What does y=mx+c mean in real life?
The formula isn’t just for exams — it appears whenever there’s a constant rate of change between two quantities.
Example of using y=mx+c for cost vs quantity
- Suppose a taxi charges a base fare of £3 plus £2 per mile. The total cost y = 2x + 3, where x is miles driven. Here m = 2 (rate per mile) and c = 3 (initial charge).
- This pattern works for any linear pricing model: subscriptions, catering per head, or fuel consumption over distance.
How gradient represents rate of change
- In physics, if distance = speed × time + initial distance, the gradient m is speed and c is the starting point.
- In temperature conversion, °C to °F follows a linear formula where the gradient is 9/5 and intercept 32.
Understanding y=mx+c means you can spot a constant rate of change in the wild — and describe it with a single equation. For a deeper look at proportional relationships in everyday life, see our guide on how far is 10000 steps, which uses the same linear thinking to convert steps to distance.
Should I use y=mx+c or y=mx+b?
Both forms are mathematically identical — the only difference is the letter used for the y‑intercept.
Difference between British and American notation
- In the UK, the standard is y = mx + c, where c stands for “constant”.
- In the US, the same equation is taught as y = mx + b, where b represents the intercept.
When to use each form
- Use y=mx+c if you’re following a UK curriculum (GCSE, A‑level).
- Use y=mx+b if you’re working with US resources or software (many calculators use b).
- Internationally, m always means slope; the intercept letter is a regional convention.
The trade-off: neither form is “right” — they are the same equation wearing different labels. The important part is to recognise both and avoid confusion when crossing curricula.
Key insights from the experts
“Any equation that can be rearranged into the form y = mx + c, will have a straight line graph.”
“The general equation of a straight line is y = mx + c, where m is the gradient, and y = c is the value where the line cuts the y‑axis.”
These two statements, from widely used UK educational sources, reinforce the same core message: y=mx+c is the standard, and its parts are unambiguous.
For students sitting GCSE maths, confusing c with b in an exam could lose a mark on correct working. The consequence: know your curriculum’s convention, and the notation won’t trip you up.
Frequently asked questions
Why is it called y=mx+c?
The letters come from established notation: m is often thought to stand for the French word “monter” (to climb), and c for “constant term”. Whatever the origin, the naming is conventional, not descriptive.
How to find the gradient without a graph?
If you have two points (x₁, y₁) and (x₂, y₂), use the formula m = (y₂ – y₁) / (x₂ – x₁). If you have the equation in the form y = mx + c, then m is the coefficient of x.
What if c is negative?
A negative c simply means the line crosses the y‑axis below the origin. For example, y = 2x – 3 crosses at (0, –3). The interpretation is unchanged.
Can m be zero?
Yes — a zero gradient produces a horizontal line. The equation becomes y = c, meaning y is constant no matter what x is.
What if m is undefined?
Vertical lines have an undefined gradient and cannot be written in y=mx+c form. Their equation is x = constant. This is a key exception: y=mx+c only works for non‑vertical lines.
How to plot a line from y=mx+c?
Start at the y‑intercept (0, c). Then use the gradient m as rise/run: move up (or down) m units and right 1 unit to find a second point. Draw the line through both points.
How to convert from standard form to y=mx+c?
Standard form is often ax + by = d. Isolate y: move the x term to the other side, then divide by the coefficient of y. What remains is y = (‑a/b)x + (d/b), which is y=mx+c.
For anyone working with linear data — from GCSE revision to spreadsheet modelling — the y=mx+c form is the most direct way to capture a straight‑line relationship. Whether you call the intercept c or b, the mathematics is universal. But the choice of notation reflects your curriculum. For a real‑world example of how such linear thinking powers everyday tools, see how game compatibility checks rely on system requirement calculations: Can My PC Run It – Game Compatibility Check Guide 2025.
Memorising y=mx+c without understanding its parts turns the formula into a rote trick. The real value comes when you can interpret m as a rate of change and c as a starting point — then you can model anything from phone bills to temperature scales.