y = mx + c - Definition, Formula, and Examples

#Geometry
TL;DR
y = mx + c is the UK form of the straight-line equation, where m is the gradient (slope) and c is the y-intercept. This article defines each term, derives the equation, shows how to graph it and read mm and cc straight off it, and clears up the one thing that confuses everyone: y=mx+cy = mx + c and y=mx+by = mx + b are the same equation in different notation.
BT
Bhanzu TeamLast updated on July 22, 20268 min read

The Same Line, Written Two Different Ways Across an Ocean

A student in London learns straight lines as y=mx+cy = mx + c. A student in New York learns the identical idea as y=mx+by = mx + b. Both are staring at exactly the same equation, the same graph, the same gradient, and the same crossing point on the vertical axis. The only thing that changed on the flight across the Atlantic was one letter, and that quiet difference trips up more learners than the actual mathematics ever does.

What Is y = mx + c?

y = mx + c is the slope-intercept form of the equation of a straight line, in which m is the gradient of the line and c is the y-intercept, the value of yy where the line crosses the y-axis. Give any straight line's gradient and its crossing point, and this single equation draws it.

Keep the definition in view because two symbols carry the whole idea. The gradient mm measures steepness: how much yy climbs for each step of 11 in xx. A positive mm slopes up left-to-right; a negative mm slopes down. The intercept cc is where the line meets the y-axis, the point (0,c)(0, c).

So what does c actually mean? It is the value of yy when x=0x = 0. Set x=0x = 0 in y=mx+cy = mx + c and you get y=cy = c - the line's starting height on the vertical axis.

Deriving the Equation

The equation is not handed down; it falls straight out of the definition of gradient. The gradient between the y-intercept (0,c)(0, c) and any general point (x,y)(x, y) on the line is

m=y−cx−0m = \frac{y - c}{x - 0}

Multiply both sides by xx:

mx=y−cmx = y - c

Add cc to both sides:

y=mx+cy = mx + c

That is the whole derivation. Every symbol earns its place: mm came from the gradient definition, cc from the intercept point.

y = mx + c and y = mx + b: The Same Equation

This is the point of this article's differentiation, so let it be blunt: y=mx+cy = mx + c and y=mx+by = mx + b are identical. The letter for the y-intercept is a regional convention, nothing more.

  • UK, India, and much of the Commonwealth write the intercept as c - hence y=mx+cy = mx + c.

  • The United States writes the intercept as b - hence y=mx+by = mx + b.

There is no mathematical difference. In both, mm is the gradient and the third letter is the y-intercept. If you meet a US textbook using bb, read bb as "the same thing my book calls cc" and carry on. The full US-notation treatment lives in the y = mx + b article, and both connect to the general slope-intercept form.

UK / India form

US form

Equation

y=mx+cy = mx + c

y=mx+by = mx + b

Gradient symbol

mm

mm

Y-intercept symbol

cc

bb

The mathematics

identical

identical

Examples of y = mx + c

Example 1

Write the equation of the line with gradient m=3m = 3 and y-intercept c=−5c = -5.

Substitute directly into y=mx+cy = mx + c.

y=3x+(−5)y = 3x + (-5)

Final answer: y=3x−5y = 3x - 5.

Example 2

A line has gradient 44 and passes through (0,2)(0, 2). A student writes y=4x+4y = 4x + 4 because both numbers are on the line. Correct?

It is tempting to grab both given numbers, the gradient 44 and the x-coordinate 00… no, the student grabbed the gradient and reused it as the intercept, which mixes up two completely different roles.

Watch where it breaks: test x=0x = 0 in y=4x+4y = 4x + 4. You get y=4y = 4, but the line is meant to pass through (0,2)(0, 2), so yy should be 22. The equation is wrong.

The correct way keeps mm and cc in their proper slots. The gradient is m=4m = 4; the intercept cc is the yy-value when x=0x = 0, which the point (0,2)(0, 2) tells us is 22.

y=4x+2y = 4x + 2

Check: at x=0x = 0, y=2y = 2. Final answer: y=4x+2y = 4x + 2.

Example 3

Find the gradient and y-intercept of y=−2x+7y = -2x + 7.

The equation is already in y=mx+cy = mx + c form, so read the values straight off.

m=−2,c=7m = -2, \quad c = 7

The line slopes downhill (negative gradient) and crosses the y-axis at (0,7)(0, 7). Final answer: gradient −2-2, intercept 77.

Example 4

Rearrange 5x+4y=125x + 4y = 12 into y=mx+cy = mx + c form and state the gradient and intercept.

Isolate yy one step at a time.

4y=−5x+124y = -5x + 12 y=−54x+3y = -\frac{5}{4}x + 3

Now it is in slope-intercept form.

m=−54,c=3m = -\frac{5}{4}, \quad c = 3

Final answer: y=−54x+3y = -\frac{5}{4}x + 3; gradient −54-\frac{5}{4}, intercept 33.

Example 5

A line passes through (2,7)(2, 7) with gradient 33. Find cc and write the equation.

Substitute the known point and gradient into y=mx+cy = mx + c and solve for cc.

7=3(2)+c7 = 3(2) + c 7=6+c7 = 6 + c c=1c = 1

Final answer: y=3x+1y = 3x + 1.

Example 6

Find the equation of the line through (1,5)(1, 5) and (3,11)(3, 11).

First find the gradient using the gradient of a line formula, m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}.

m=11−53−1=62=3m = \frac{11 - 5}{3 - 1} = \frac{6}{2} = 3

Now find cc by substituting one point, say (1,5)(1, 5):

5=3(1)+c5 = 3(1) + c c=2c = 2

Final answer: y=3x+2y = 3x + 2.

Why This Form Matters: "Two Numbers Fix A Whole Line"

The power of y=mx+cy = mx + c is that it compresses an infinite line into two numbers you can read at a glance. That compactness is why straight-line models sit under so much everyday reasoning.

  • Cost with a fixed fee. A taxi that charges a £3£3 flag-drop plus £2£2 per mile is y=2x+3y = 2x + 3: the fee is cc, the rate is mm. Read the equation and you know the fixed cost and the per-mile rate instantly.

  • Conversions. Temperature between Celsius and Fahrenheit is a straight line, F=95C+32F = \frac{9}{5}C + 32 - the intercept 3232 is where the scales meet, the gradient 95\frac{9}{5} is the exchange rate.

  • Trends. A line of best fit through data is reported as y=mx+cy = mx + c so a reader can see the rate of change and the baseline in one line.

The Mistakes Students Make Most Often

Mistake 1: Swapping the gradient and the intercept

Where it slips in: reading mm and cc off an equation, or building one from a gradient and a point.

Don't do this: treat the number attached to xx as the intercept, or the standalone number as the gradient.

The correct way: mm is always the coefficient of xx; cc is always the standalone term. The first instinct, especially under time pressure, is to grab whichever number appears first. Anchor it instead: "mm sits with the xx; cc sits alone." A student who says the two roles out loud once stops swapping them.

Mistake 2: Reading c wrong when the equation is not yet rearranged

Where it slips in: an equation like 5x+4y=125x + 4y = 12, where yy is not isolated.

Don't do this: call 1212 the intercept because it is the standalone number.

The correct way: you can only read mm and cc once the equation is genuinely in y=mx+cy = mx + c form. Rearrange first, then read. Skipping the rearrangement is the habit that dividing-through cleanly fixes, as in Example 4.

Mistake 3: Thinking c and b mean different things

Where it slips in: switching between a UK/Indian resource and a US one.

Don't do this: treat y=mx+by = mx + b as a new, separate formula to relearn.

The correct way: bb and cc are the same y-intercept; the letter is regional.

Conclusion

  • y = mx + c is the UK slope-intercept form of a straight line, with mm the gradient and cc the y-intercept.

  • cc is the value of yy at x=0x = 0 - the point (0,c)(0, c) where the line crosses the vertical axis.

  • y=mx+cy = mx + c and y=mx+by = mx + b are the same equation; only the intercept letter differs by region.

  • To use it, put the equation in y=mx+cy = mx + c form, then read mm from the xx-coefficient and cc from the standalone term.

To take y = mx + c further with a teacher, explore Bhanzu's geometry tutor, a high school math tutor, or math classes online.

A Practical Next Step

Practice these to solidify your understanding: state the gradient and intercept of y=12x−4y = \frac{1}{2}x - 4; write the equation of the line with gradient −3-3 through (0,6)(0, 6); and rearrange 3x−2y=83x - 2y = 8 into y=mx+cy = mx + c form. If the rearrangement trips you, return to Example 4 and isolate yy one line at a time. Want a live Bhanzu trainer to walk through more straight-line problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What do m and c stand for in y = mx + c?
mm is the gradient (slope) of the line, and cc is the y-intercept, the value of yy where the line crosses the y-axis.
How do you find the gradient from y = mx + c?
The gradient is simply the coefficient of xx - the number multiplying xx in the equation.
Is y = mx + c the same as y = mx + b?
Yes. They are the identical equation; cc (UK/India) and bb (US) are just two conventions for the same y-intercept.
What is c when the line passes through the origin?
Zero. If the line goes through (0,0)(0, 0) then c=0c = 0 and the equation is simply y=mxy = mx.
How do you write a line's equation from two points?
Find the gradient mm from the two points first, then substitute one point into y=mx+cy = mx + c to solve for cc.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →