# Video: Calculating the Slope of a Line in a Graph

Calculate the slope of the line in the graph.

02:18

### Video Transcript

Calculate the slope of the line in the graph.

We know that any straight line is a linear function that can be written in the form 𝑦 equals 𝑚𝑥 plus 𝑏, where 𝑚 is the slope or gradient of the line. The value of 𝑚 can be calculated using the formula 𝑦 two minus 𝑦 one over 𝑥 two minus 𝑥 one. This is the change in 𝑦-coordinates over the change in 𝑥-coordinates, otherwise known as the rise over the run. We begin by selecting any two points on the line 𝐴 and 𝐵 with coordinates 𝑥 one, 𝑦 one and 𝑥 two, 𝑦 two. Whilst it doesn’t matter which two points we choose, it is sensible to pick those with integer coordinates where possible.

In this question, we will choose the two points shown on the graph. Point 𝐴 has coordinates zero, one and point 𝐵 has coordinates two, seven. At this point, it is worth drawing a right-angled triangle on the graph to show the rise and the run. The rise in this case is equal to six, as the change in 𝑦-coordinates is six. The run is equal to two. This means that we would expect the slope to be six divided by two, which is three.

We can check this by substituting our coordinates into the formula. The two 𝑦-coordinates were seven and one. And the corresponding 𝑥-coordinates were two and zero. This simplifies to six over two, which once again gives us an answer of three. The slope of the line in the graph is three. It is worth recalling that any line that slopes upwards from left to right will have a positive slope. As three is positive, this suggests that our answer is correct.