Line Equation (y = mx + b)
Calculate Line Equation (y = mx + b) instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.
Line Equation (y = mx + b)
x1
y1
x2
y2
Slope m
2
More about: Line Equation (y = mx + b)
What it calculates
The “Line Equation (y = mx + b)” calculator computes Slope m from 4 parameters: x1, y1, x2, y2.
A core calculation for studying, engineering tasks, and checking solutions.
Example calculation
With parameters x1 = 0, y1 = 0, x2 = 4, y2 = 8 the result is 2 (b = 0).
How to use
- Enter the parameter values — every field above is adjustable with a slider.
- The result and related metrics are calculated automatically as you type.
- Use the additional metrics shown (if any) where needed.
- Copy the result or bookmark the page.