# Slope Formula

The slope of a straight line is commonly represented using the equation y = mx + b where m is the slope of the line. There is more on this here. This equation can be derived using any two points that lie on the line.

The slope formula lets us calculate the value, m, using any two such points.

As shown below, the slope, m is calculated by dividing the difference in the y-values by the difference in the x-values. This is often referred to as being the rise divided by the run.

 Slope = Y2 - Y1 X2 - X1 The formula states that the slope of a line is equal to the difference in y-values divided by the difference in x-values of two points on that line. This is also referred to as the rise divided by the run.

## Examples Using the Formula

### Example #1

 Slope (m) = Y2 - Y1 X2 - X1

 m = 11 - 5 10 - 3

 m = 6 7

Slope = 0.857
Rounded to nearest thousandth It does not matter which points on the line you take as being (X1, Y1) and which is (X2, Y2) as the example below using the same two points as Example #1.

### Example #2

 Slope (m) = Y2 - Y1 X2 - X1

 m = 5 - 11 3 - 10

 m = -6 -7

Slope = 0.857
Rounded to nearest thousandth ### Example #3

 Slope (m) = Y2 - Y1 X2 - X1

 m = 8 - (-8) 6 - (-2)

 m = 16 8

Slope = 2 ### Example #4

 Slope (m) = Y2 - Y1 X2 - X1

 m = 3 - (-4) -9 - 5

 m = 7 -14

Slope = -0.5 ## Worksheets

Use the worksheet(s) below for practice.

### Prevent Bullying

Click the links below for information and help on dealing with bullying.

By Subject > Equations & Expressions > Slope Formula