Skip to content

Slope Calculator

Calculate slope, distance, midpoint and line equation between two coordinate points

Frequently asked questions

What does it mean when slope is undefined?

The slope is undefined when the two x-coordinates are equal (x₁ = x₂), meaning the line is perfectly vertical. A vertical line has no defined slope because division by zero (x₂ − x₁ = 0) is undefined in mathematics.

What is slope-intercept form?

Slope-intercept form is y = mx + b, where m is the slope (rate of change) and b is the y-intercept (the value of y when x = 0). This form makes it easy to graph a line and understand how steep it is.

How is the distance formula related to the Pythagorean theorem?

The distance formula d = √[(x₂−x₁)² + (y₂−y₁)²] is the Pythagorean theorem applied to coordinate geometry. The horizontal difference (x₂−x₁) and vertical difference (y₂−y₁) form the two legs of a right triangle, and d is the hypotenuse.