# Slope Formula

The slope formula is used to calculate the steepness or the incline of a line. The x and y coordinates of the lines are used to calculate the slope of the lines. It is the ratio of the change in the y-axis to the change in the x-axis.

## Formula of Slope

The formula to calculate slope is given as,

 $m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$

Where m is the slope of the line. x1, x2 are the coordinates of x-axis and y1, y2 are the coordinates of y-axis

### Solved Examples Using Slope Formula

Question 1: Find the slope of a line whose coordinates are (2,7) and (8,1)?

Solution:

Given,

(x1, y1) = (2, 7)

(x2, y2) = (8, 1)

The slope formula is m = (y2 − y1 / x2 − x1)

m = (2 − 7/ 8 − 1)

m = −5/7

m = − 0.714