Skip to content
ZeroServer.tools

Slope Calculator

Calculate slope, angle, distance, midpoint, and line equation

Slope (m)
2
Angle of inclination
63.4349°
Distance
8.9443
Midpoint
(3, 6)
y-intercept (b)
0
Line equation
y = 2x + 0

How slope is calculated

The slope of a line through two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁) — rise over run. This tool also computes the angle of inclination (arctan of the slope, in degrees), the Euclidean distance between the points (√((Δx)² + (Δy)²)), the midpoint, and the full slope-intercept equation y = mx + b where b = y₁ − mx₁. A vertical line has an undefined slope; a horizontal line has slope 0. All values round to 4 significant figures.

Private & free — this tool runs entirely in your browser.

Related Calculators tools