Slope-Intercept Form of a Line

Also known as y = mx + b

y=mx+by = mx + b

Worked example: y = 2·3 + 1 → 7 m — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Here the solver did the work — could you?

y = mx + b →

Grade 10Grade 10 Math

Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning.

See your Report Card
Compete with your friends
share your results
Learning zone

Slope-Intercept Form of a Line explained

bm(x, y)

y=mx+by = mx + b is the workhorse line equation, and it is worth reading as two separate claims. The bb is where you start: set x=0x = 0 and everything else vanishes, so bb is the value of yy before anything has happened. The mm is the rate at which yy changes per unit of xx. Between them those two numbers pin down every non-vertical straight line there is, which is why two parameters is all a linear model ever needs.

The reason this outlives school algebra is that it is the shape of any process with a fixed part and a per-unit part. A service call billed at $95 to show up plus $85 an hour is y=85x+95y = 85x + 95; four hours on site invoices at $435, and running it backwards, a $520 invoice accounts for 5 hours. Utility bills, freight rates, and equipment rentals are all this equation with different names on the constants, and the useful habit is asking, of any quoted price, which number is the bb and which is the mm.

Two related forms cover what this one cannot. Point-slope, y−y1=m(x−x1)y - y_1 = m(x - x_1), is the natural choice when you know a point on the line that is not the intercept — a calibration reading, say — and want the line through it. Standard form, Ax+By=CAx + By = C, is more general still, and unlike slope-intercept it can describe a vertical line, which y=mx+by = mx + b is structurally incapable of representing because a vertical line has no slope to put in mm.

Four things go wrong. The first is confusing bb with the x-intercept: bb is where the line crosses the vertical axis, while the crossing of the horizontal axis is at x=−b/mx = -b/m, which is a different number and often the one actually wanted — a break-even point, for instance. The second is that solving for mm divides by xx, so a point with x=0x = 0 tells you nothing about the slope; every line through the intercept fits it equally. The third is sign carelessness with a negative intercept: y=3x−4y = 3x - 4 has b=−4b = -4, and typing 4 shifts the whole line eight units. The fourth is the conceptual one: a straight line is a model, not a law. Fitting one to two measurements and extrapolating far past them assumes a constancy that most real processes do not have, and the intercept in particular frequently describes a condition that never occurs — the value at zero hours, zero flow, or zero temperature may be pure arithmetic with no physical meaning at all.

Slope-Intercept Form of a Line formula

y=mx+by = mx + b
Where
  • yy= y-coordinate (m)
  • mm= Slope
  • xx= x-coordinate (m)
  • bb= y-intercept (m)