Home · Math · Algebra · Equation of a Line Calculator

Equation of a Line Calculator

A line in slope-intercept form, y = mx + b: evaluate y at a chosen x, and read off both intercepts.

Your figures

Example result — edit the figures to make it yours

11

y = mx + b

x-intercept −b ÷ m-1.50
y-intercept b3.00

What this calculator does

A line in slope-intercept form, y = mx + b: evaluate y at a chosen x, and read off both intercepts. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

y = m · x + b

The slope m is the rise per unit run and b is where the line crosses the y-axis. The x-intercept, −b/m, is where the line crosses the x-axis (undefined for a horizontal line, m = 0).

Worked example

With the example inputs this page opens with (slope m 2, y-intercept b 3, x value 4), the result is 11.00 — y = mx + b. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying slope m
Slope my = mx + b
17.00
1.69.40
211.00
2.513.00
315.00
419.00

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Equation of a Line Calculator work?

A line in slope-intercept form, y = mx + b: evaluate y at a chosen x, and read off both intercepts. Slope m, intercept b, x value → y, x-intercept. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Equation of a Line Calculator need?

Slope m, intercept b, x value → y, x-intercept. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Equation of a Line Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.