Determine the gradient of a straight lineWorked examples

The gradient of a straight line is how steep it is. It can be calculated from a given set of coordinate points. There are three special cases of straight lines: parallel, horizontal and vertical.

Part ofMathsGeometric skills

Worked examples

Question

Find the gradient of the line joining the points A(5, 8) and B(3, 10)

\(A({x_1},{y_1})\,and\,B({x_2},{y_2})\)

\(A(5,8)\,and\,B(3,10)\)

\({m_{AB}} = \frac{{{y_2} - {y_1}}}{{{x_2} - {x_1}}}\)

\({m_{AB}} = \frac{{10 - 8}}{{3 - 5}}\)

\({m_{AB}} = \frac{{10 - 8}}{{3 - 5}}\)

\({m_{AB}} = \frac{2}{{ - 2}} = - 1\)

Now try the sample question below.

Question

Find the gradient of the line below:

Diagram of a line graph