Write y = mx + b from a slope and either an intercept or a point.
Last updated: June 2026 | By Patchworkr Team
Slope is required.
If b is supplied, the calculator writes the equation directly. If a point is supplied instead, it solves b = y - mx first.
With m = 2 and point (3, 7), b = 7 - 2(3) = 1, so the equation is y = 2x + 1.
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
Calculate gradient.
Calculate line intersection.
Calculate regression line.
Calculate line equation.
Calculate plane intersection.
Calculate parallel lines.