Slope-Intercept Form Calculator

This calculator works with linear equations in slope-intercept form (y = mx + b). Enter the slope (m) and y-intercept (b), and the calculator displays the equation. You can also use it to find the value of y for a given x, or the value of x for a given y. Slope-intercept form is the most commonly used form for writing linear equations because it immediately shows the slope and where the line crosses the y-axis.",

Slope-intercept form

y = mx + b
m = slope
b = y-intercept

To find y given x: substitute x into y = mx + b
To find x given y: solve x = (y - b) / m

Slope-intercept form: frequently asked questions

What is slope-intercept form?

Slope-intercept form is the equation y = mx + b, where m is the slope and b is the y-intercept. This form makes it easy to identify the slope and y-intercept from the equation. It is the most common way to write linear equations.

What does m represent?

m is the slope of the line, which measures how steep the line is. It is the rate of change of y with respect to x. A positive slope indicates the line rises from left to right, a negative slope falls, zero slope is horizontal.

What does b represent?

b is the y-intercept, the point where the line crosses the y-axis (where x = 0). If y = 2x + 3, then b = 3, and the line crosses the y-axis at (0, 3).

How do I find y given x?

Substitute the value of x into the equation y = mx + b and solve for y. For example, if y = 3x - 2 and x = 4, then y = 3(4) - 2 = 12 - 2 = 10.

How do I find x given y?

Rearrange the equation to solve for x: x = (y - b) / m. For example, if y = 3x - 2 and y = 10, then 10 = 3x - 2, so 3x = 12, and x = 4.

Methodology

Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.