Line Equation (y = mx + b)

Calculate Line Equation (y = mx + b) instantly with the exact formula and a worked example.

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.

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 x1, y1, x2 and y2 — each field above is adjustable with a slider.
  2. Slope m is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is Line Equation (y = mx + b) calculated?
The Line Equation (y = mx + b) calculator computes Slope m from x1, y1, x2, y2. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the Line Equation (y = mx + b) calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.

More calculators in this category

Explore related free tools

Boolean AlgebraStandard DeviationStandard ErrorCoefficient of VariationQuartiles & IQRSkewnessNormal DistributionBinomial DistributionPoisson DistributionExponential DistributionGeometric DistributionUniform Distribution