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
b = 0Calculate Line Equation (y = mx + b) instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.

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

  1. Enter the parameter values — every field above is adjustable with a slider.
  2. The result and related metrics are calculated automatically as you type.
  3. Use the additional metrics shown (if any) where needed.
  4. Copy the result or bookmark the page.

Related calculators