Enter your line info
Choose what you know, then hit “Convert to y = mx + b”. Tip: if you’re using two points, decimals and fractions
both work (like 1.5 or 3/2).
Turn any line into y = mx + b in seconds — from slope & intercept, two points,
or point-slope form. You’ll get the equation, the intercepts, and a clear step-by-step breakdown you can copy
into homework, notes, or a graphing calculator.
Choose what you know, then hit “Convert to y = mx + b”. Tip: if you’re using two points, decimals and fractions
both work (like 1.5 or 3/2).
Slope-intercept form is a standard way to write the equation of a straight line:
y = mx + b. It’s popular because you can “read” the graph instantly.
The number m tells you the line’s tilt (slope), and the number b
tells you where the line hits the y-axis (the y-intercept).
Think of m as the line’s speed: it’s the amount y changes when x goes up by 1.
If m = 3, then every time x increases by 1, y increases by 3 — the line rises quickly.
If m = -1/2, then every time x increases by 2, y decreases by 1 — the line falls gently.
If m = 0, the line is perfectly flat (horizontal).
The intercept b is simpler: it’s the y-value when x is 0. Plug in x = 0
and you get y = b. So if the equation is y = 2x + 5,
the line crosses the y-axis at (0, 5). This is why slope-intercept form is so useful for fast graphing:
start at the intercept, then use the slope to move “rise over run” from that starting point.
(0, b), then apply rise/run using m.m is rate (dollars per hour, miles per minute), and b is a starting amount (base fee).
This calculator supports three common input styles. Under the hood, everything becomes
y = mx + b.
y = mx + b(0, b)x = -b/mm = (y₂ − y₁) / (x₂ − x₁)b = y₁ − m·x₁y − y₁ = m(x − x₁)b = y₁ − m·x₁
Notice the same shortcut appears in multiple methods: once you know a slope and a point on the line,
you can always compute b using b = y − mx.
Two-point problems are the most common in algebra and coordinate geometry. The strategy is always the same: (1) find the slope, (2) use the slope with a point to find b.
m = (11 − 3) / (5 − 1) = 8 / 4 = 2b = y₁ − m·x₁ with (1, 3):
b = 3 − 2·1 = 1y = 2x + 1
That’s it. If you want a fast self-check, plug in the second point:
x = 5 → y should be 11. 2·5 + 1 = 11. Checks out.
If both x-values are the same, the denominator in the slope formula is 0, which means the line is vertical.
Vertical lines cannot be written in slope-intercept form because they are not functions of x.
Their equation is x = constant, like x = 4.
This calculator will warn you if you enter a vertical line.
Once your equation is in slope-intercept form, you can interpret it like a mini story: “Start at b, then move with slope m.”
A helpful real-life translation: if y is “total cost” and x is “hours,” then m is
cost per hour, and b is the base fee. The equation
y = 30x + 15 reads as “$15 starting fee, then $30 per hour.”
Point-slope form is often given as y − y₁ = m(x − x₁).
To convert it into slope-intercept form, distribute m and then isolate y.
y − 2 = 3x − 12y = 3x − 10m = 3, b = −10.
If you want a shortcut, skip the distribution and use b = y₁ − m·x₁.
With point (4, 2) and m = 3: b = 2 − 3·4 = 2 − 12 = −10.
Same answer, faster.
It’s used to graph lines quickly, compare rates of change, and interpret linear relationships. It’s one of the most common forms in Algebra 1 and coordinate geometry.
Almost — every non-vertical line can. Vertical lines have equations like x = 3
and do not have a slope-intercept form because they fail the “function” rule (one x gives many y values).
Set y = 0 and solve: 0 = mx + b ⇒ x = −b/m
(as long as m ≠ 0). The intercept point is (−b/m, 0).
That’s totally normal. A slope like -3/4 means “down 3, right 4.”
When graphing, start at the y-intercept, then apply the rise/run steps repeatedly.
Use them directly. The slope formula works with decimals, fractions, and negatives. If you want a clean final equation, you can convert decimals to fractions (for example, 0.75 = 3/4).
These are pulled from the Math & Conversions category for strong internal linking.
m = (y₂ − y₁)/(x₂ − x₁)b = y − mx (use any point on the line)y = mx + bx = −b/m (if m ≠ 0)x = constant (no slope-intercept form)Want to make this page more viral? Screenshot the “cheat sheet” + your equation and post it with your class group chat. (Yes, people actually do this.)
If your teacher asks you to “write the equation of the line in slope-intercept form,” the fastest path is:
compute m first, then compute b, then write
y = mx + b. This calculator mirrors that exact workflow and prints the steps
in plain language so you can learn the pattern — not just get an answer.
For maximum accuracy, always verify with a quick substitution:
plug one original point into your final equation. If it works, you’re done.
If it doesn’t, the most common problem is a sign mistake in the slope calculation or in b = y − mx.
Disclaimer: This page is for educational support. If you’re stuck, ask your teacher for clarification on the form they want (slope-intercept, point-slope, or standard form).