# Slope Calculator

Posted by Dinesh onSlope of a Line Calculator is an online tool, that helps to calculate the slope of a line if coordinates of two points are given. This Calculator requires the co-ordinates of two points on the line as (x1, y1) and (x2, y2).

### What is Slope?

Slope is calculated by finding the ratio of the "vertical change" to the "horizontal change" between (any) two distinct points on a line. Sometimes the ratio is expressed as a quotient ("rise over run"), giving the same number for every two distinct points on the same line.**Uphill**slopes are positive slopes. The slope will be a positive number like 8 or 6/7.**Downhill**slopes are negative slopes. The slope will be a negative number like -2 or -7/4.

## Slope of a Line Calculation

#### Example: Find the slope for co-coordinates (-12, 7) and (-11, -3)

Slope between two points:

`m = (y2 - y1) / (x2 - x1)`

(x1, y1) = (-12, 7)

(x2, y2) = (-11, -3)

m = (-3 - 7) / (-11 - (-12))

`m = -10`