Slope Intercept Form Calculator

Slope-Intercept Form

Write y = mx + b from a slope and either an intercept or a point.

Last updated: June 2026 | By Patchworkr Team

Inputs

Slope is required.

Results
Enter the slope and either b or a point.

How It Works

If b is supplied, the calculator writes the equation directly. If a point is supplied instead, it solves b = y - mx first.

Formula

Direct
y = mx + b
Solve b
b = y - mx

Example

With m = 2 and point (3, 7), b = 7 - 2(3) = 1, so the equation is y = 2x + 1.

FAQ

Do I need both b and a point?

No. Either b or a point is enough as long as m is provided.

Can b be negative?

Yes. Negative intercepts are normal.

Does blank input count as zero?

No. Blank input is treated as missing, not zero.

What if the slope is zero?

Then the line is horizontal and y = b.

Related Tools