Free online tool

Slope Calculator

Enter two points to calculate the line relationship and coordinate geometry values.

First point
Second point
Slope-
Rise / run-
Line equation-
Distance-
Midpoint-

Method

Geometry formulas

Each result is calculated from the dimensions entered using standard Euclidean geometry formulas. The tool checks required constraints such as the triangle inequality and positive lengths.

Unless a unit is explicitly selected, lengths use any consistent unit, areas use its square, and volumes use its cube.

Questions

Slope Calculator FAQ

What is the slope formula?

Slope equals the change in y divided by the change in x: (y2 - y1) / (x2 - x1).

What is an undefined slope?

A vertical line has zero horizontal change, so division by zero makes its slope undefined.

Related tools

Continue calculating

All calculators