Slope Calculator

Calculate the slope (rise over run) and angle between two coordinate points.

This tool is for informational and educational purposes only. It is not a substitute for professional financial, medical, legal, or engineering advice. See Terms of Service.

Can't find what you need?

Request a Tool

How to Use the Slope Calculator

Enter two coordinate points and the slope appears instantly along with rise, run, and angle.

  1. Enter Point 1. Type the x and y coordinates of the first point.
  2. Enter Point 2. Type the x and y coordinates of the second point.
  3. Read the results. The slope (m), rise, run, and angle of the line are all displayed.

About Slope

Slope measures the steepness and direction of a line. It is calculated as rise over run: m = (y2 - y1) / (x2 - x1). A positive slope means the line goes up from left to right. A negative slope means it goes down. A slope of zero is a horizontal line, and an undefined slope (when x1 = x2) is a vertical line.

The angle of the line relative to the horizontal axis is the arctangent of the slope. Slope is fundamental to algebra, calculus, physics, and engineering.

Frequently Asked Questions

What does slope mean?

Slope measures how steep a line is. It equals the vertical change (rise) divided by the horizontal change (run) between any two points on the line. A slope of 2 means the line rises 2 units for every 1 unit it moves right.

What is an undefined slope?

When both points have the same x-coordinate, the line is vertical and the run is zero. Since you cannot divide by zero, the slope is undefined.

How is slope related to angle?

The angle of a line with the horizontal axis equals arctan(slope). A 45-degree line has a slope of 1. A 0-degree line is horizontal with slope 0.