Impact-Site-Verification: 1fce05f2-a6cf-4f31-8ca1-aaddc332516c

Analytic Geometry: Distance, Slope, and Midpoint

Place two points on a grid and geometry becomes algebra. Distance uses the Pythagorean theorem; slope is rise over run; midpoint averages coordinates.

Distance

d = √((x₂−x₁)² + (y₂−y₁)²). Order of points does not matter.

Slope and vertical lines

m = (y₂−y₁)/(x₂−x₁). When Δx = 0 the slope is undefined—a vertical line.

Distance between points

Enter (x₁,y₁) and (x₂,y₂):

Distance Formula Calculator

Slope with vertical handling

See interpretation when Δx = 0:

Slope Calculator