# Graphing Linear Equations

Linear equation graphs are always a straight line. And you just need two points to draw a straight line (try it out!), which is the key to drawing the graphs.

Try using our step by step linear equation graphing calculator below! You can also find the linear equation of a given graph using our step by step guide by scrolling down.

If you have two points or one point and a slope, you'll need to first find the slope-intercept form of your line. Use this calculator to do that first!

### Graphing a Linear Equation

There are four easy steps to graphing a linear equation:

**Slope-intercept form:**The first step to graphing a linear equation is getting our equation in slope-intercept form,$y=mx+b$

where $m$ and $b$ represent numbers. Enter in some numbers for $m$ and $b$.$y=$$x+$

### Graph to Linear Equation

There are five easy steps to getting the linear equation from a graph:

**Find two points:**We need two points to figure out our equation. So, we should look for two points that have whole numbers as $x$ and $y$ coordinates.

Let's say this is our graph:We're going to pick the two blue points, which are $(0,7)$ and $(−1,4)$.**Get the slope:**Next, we need to use our two points to get the slope of the line. Let's remember how to get the slope...So, with our two points, our slope is:$x_{1}−x_{2}y_{1}−y_{2} =0−(−1)7−4 =13 =3$#### Slope Formula

Let's say we have two points: Point 1 with coordinates $(x_{1},y_{1})$ and Point 2 with coordinates $(x_{2},y_{2})$. The slope is given by the change in $y$ by the change in $x$:$m=slope=x_{1}−x_{2}y_{1}−y_{2} $**Slope-intercept form:**Now, we can plug our slope into slope-intercept form, which is$y=mx+b$

where $m$ is the slope. Plugging in our slope of 3, we get $y=3x+b$**y-intercept:**Finally, we need to get our value for $b$. We can do this, by plugging in one of original points. We're going to choose the first point: $(0,7).$ Plugging in, we get this:$y=3x+b⟹7=3(0)+b$

If we solve this equation, we get:$777 =3(0)+b=0+b=b $**Final equation:**Now, we can plug our $b$ value in to get our equation:$y=3x+7$