Slope Calculator

ALGEBRA

Find the slope of the line through two points, with its angle and equation. Enter the coordinates.

Slope (m)
—
Rise over run.

Usage Tip

Positive slope rises left to right, negative falls. A slope of 1 is a perfect 45-degree diagonal.

THE MATH
slope = (y2 − y1) ÷ (x2 − x1)
The rise over the run
Slope measures steepness: how much a line rises for each step across.
A vertical line has undefined slope; a horizontal line has slope zero.
Slope is rise over run between the two points.
The angle is measured from the horizontal.
Two points with the same x-value give a vertical line (undefined slope).
Practical Notes

The slope of a line measures how steeply it rises or falls. It equals the change in y divided by the change in x between two points, often described as rise over run. A positive slope rises to the right, a negative slope falls, a slope of zero is horizontal, and a vertical line has an undefined slope because the change in x is zero.

The angle of the line follows from the arctangent of the slope. Slope appears in roof pitch, road grade, ramps, and any rate of change on a graph. A grade of 5 percent means a slope of 0.05, which is a rise of 5 units for every 100 units of run. The order of the two points does not matter as long as you subtract both coordinates in the same order.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.