HomeCalculatorsMATH
mMATH

Slope Calculator

Calculate slope from two points and identify horizontal or vertical lines.

Enter your values

Your inputs stay in this browser.
Free tool

First point x-coordinate.

Looks good.

First point y-coordinate.

Looks good.

Second point x-coordinate.

Looks good.

Second point y-coordinate.

Looks good.

Privacy-friendly: your inputs are processed locally in your browser.

Formula

Slope = (y₂ − y₁) ÷ (x₂ − x₁).

Slope = (y₂ − y₁) ÷ (x₂ − x₁).

How it works

1

Enter the first point.

2

Enter the second point.

3

Review the slope and line type.

Important notes

A vertical line has an undefined slope because x₂ − x₁ is zero.