InfiniteCalcs

Slope Calculator

A slope calculator finds the steepness of a line from two coordinate points and can express the result as slope, rise over run, or part of a line equation.

Slope Calculator Tool

Enter your values in the calculator above, then use the explanations below to understand the result, check assumptions, and compare scenarios.

About this calculator

A slope calculator finds the steepness of a line from two coordinate points and can express the result as slope, rise over run, or part of a line equation. Slope is fundamental in analytic geometry and also appears in grading, ramps, roofs, roads, and other layout problems where vertical change is compared with horizontal change.

For points (x₁, y₁) and (x₂, y₂), slope is m = (y₂ - y₁)/(x₂ - x₁). A positive slope rises from left to right, a negative slope falls, zero slope is horizontal, and a vertical line has an undefined slope because the horizontal change is zero.

Slope is a ratio rather than a length, so it has no linear unit when both axes use the same unit. If the axes use different units, interpret the result in those units per unit. For physical grades, confirm whether the desired output should be a ratio, decimal, percentage, or angle before using the value in design work.

Worked examples

Slope between two points

A line passes through (2, 3) and (8, 15).

  1. Rise = 15 - 3 = 12
  2. Run = 8 - 2 = 6
  3. Slope = 12/6 = 2

Result: The line has slope 2, meaning it rises 2 units for every 1 unit of horizontal run.

Practical tips

  • Subtract coordinates in the same order for both rise and run.
  • Check for zero run before dividing.
  • Keep sign direction intact when interpreting positive or negative slope.
  • Use consistent coordinate units when the result represents a physical grade.

Common mistakes

  • Reversing only one subtraction, which changes the sign incorrectly.
  • Dividing run by rise instead of rise by run.
  • Treating a vertical line as slope zero.
  • Ignoring different units on the horizontal and vertical axes.

Key terms

Rise
The vertical change between two points.
Run
The horizontal change between two points.
Slope
The ratio of vertical change to horizontal change.
Y-intercept
The y-value where a line crosses the vertical axis.

Frequently asked questions

What is the formula for slope between two points?
Use m = (y₂ - y₁)/(x₂ - x₁), subtracting the coordinates in the same order in the numerator and denominator.
What does a negative slope mean?
A negative slope means the line falls as x increases, so y decreases while moving from left to right.
What is the slope of a vertical line?
A vertical line has undefined slope because its horizontal change is zero and division by zero is not defined.
Is slope the same as percent grade?
They are related but not identical in presentation. Percent grade is the slope ratio multiplied by 100 percent.