Slope Intercept Form Calculator

Find the equation of a line in y = mx + b form. Enter any two points, a point + slope, or slope + y-intercept.

How do you want to enter the line information?

X coordinate of first point

Y coordinate of first point

X coordinate of second point

Y coordinate of second point

Rise over run

Where the line crosses the y-axis

X coordinate of a point on the line

Y coordinate of a point on the line

What do you want to solve?

Calculate y value at this x

Slope m = (y2 - y1) / (x2 - x1); Y-Intercept b = y1 - m*x1; Equation y = mx + b
Example: Points (1, 2) and (4, 8): Slope = (8-2)/(4-1) = 2; b = 2 - 2(1) = 0; Equation: y = 2x

What is slope-intercept form?

Slope-intercept form is y = mx + b, where m is the slope (rise over run) and b is the y-intercept (where the line crosses the y-axis). This form makes it easy to graph lines and understand their behavior at a glance.

How do I calculate slope from two points?

Slope = (y2 - y1) / (x2 - x1). For example, from points (1, 2) and (4, 8): slope = (8 - 2) / (4 - 1) = 6/3 = 2. A positive slope means the line goes up-left to bottom-right; negative slopes go the opposite direction.

What does the y-intercept mean?

The y-intercept is where the line crosses the y-axis (when x = 0). In y = 2x + 3, the line crosses at (0, 3). This tells you the starting value before any change in x occurs.

How do I graph y = mx + b?

Start at the y-intercept b on the y-axis, then use the slope m to find another point. For y = 2x + 1: start at (0, 1), then go right 1 and up 2 to reach (1, 3). Draw a line through the points.