Home » Math Theory » Slope Formula

Note: this page contains legacy resources that are no longer supported. You are free to continue using these materials but we can only support our current worksheets, available as part of our membership offering.

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.

annotated line with 2 points, (x1,y1) and (x2,y2) shown with difference in x and in y values shown.

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

line with points (3,5) and (10,11) marked and with rise and run shown.

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.


Use the worksheet(s) below for practice.