Linear Equation Grapher

Graph a straight line from slope and y-intercept. See y = mx + b, the x-intercept, y-intercept, and the line on a coordinate grid.

Your line
Examples

Positive slope with y-intercept 3

Equation
y = 2x + 3
Slope
2
Y-intercept
3
X-intercept
-1.5

y = 2x + 3; it crosses the y-axis at 3 and the x-axis at -1.5.

Was this useful?

Examples

How It Works

Formula

y=mx+by = m\,x + b

xintercept=bm(m0)x_{\text{intercept}} = -\frac{b}{m}\quad(m \ne 0)

Variables

mm

Slope of the line

bb

Y-intercept

A line in slope-intercept form is y = mx + b. The slope m controls steepness, and b is the y-intercept. The x-intercept is found by setting y to zero.

Frequently Asked Questions

01What does slope mean?
Slope is the change in y for every 1-unit increase in x. A positive slope rises; a negative slope falls.
02What is the y-intercept?
The y-intercept is the value of y when x = 0. In y = mx + b, it is b.
03How is the x-intercept found?
Set y = 0 and solve 0 = mx + b, so x = -b/m when m is not zero.

All calculators