skip to contentstylized crane logoWhite Crane Education

The Slope of a Line

Quick Navigation Video Lectures Dynamic Practice

Definition - The Slope of a Line

The slope of a line is a measure of how quickly or slowly the line is rising. Another way to think of it would be that the slope measures the steepness of a line. A slope that's very small, i.e. close to zero, indicates a line that's rising very slowly where a large slope indicates that the line is very steep.

If I give you two points (x1, y1) and (x2, y2) then you can calculate the slope of the line connecting them using the slope formula:

slope = m = y1 - y2
x1 - x2

The applet on the right gives you a chance to see what various slopes look like. Enter a numeric value into the text book, click on the "Draw Line" button and the tool will draw a line with the slope you specified.

Unfortunately, your browser doesn't support the canvas element that we used to create this application area. To view this part of the page, you should update to the latest version of your browser.

m =

Example 1

Find the slope of the line through the points (3, 10) and (4, 5).

This is a straight-forward application of the formula. I'm going to let the numbers in the (3, 10) point by the x1 and y1 values and the numbers in the (4, 5) point will be the x2 and y2. Substituting those numbers into the formula gives us:

Example 2

Find the slope of the line through the points (-2, 8) and (4, -6).

This is also straight-forward application of the formula but watch carefully how I deal with the negative signs.


  • What's the Slope of a Line?
  • Slope of a Line 1
  • Slope of a Line 2

Dyanmic Practice - Finding the Slope of a Line