MATMathematics

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.

Try an example

Equation
y = 2x + 3

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

Slope
2
Y-intercept
3

Your line

y = 2x + 3

Line
y = 2x + 3
x-intercept
-1.5
-8.19-5.71-3.23-0.751.734.216.69-13.38-8.42-3.461.56.4611.4216.38xyy-intercept: 3x-intercept: -1.5
Liney-intercept: 3x-intercept: -1.5

How It Works

Formula

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

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

Where

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

Related Calculators

Search

All calculators

Ready to Calculate?

Free calculators.