Slope Calculator

Find the slope between two points plus the line equation, angle, midpoint, and distance

Frequently Asked Questions

How is slope calculated?

Slope m = (y₂ − y₁) ÷ (x₂ − x₁) - the change in y over the change in x ("rise over run"). A positive slope rises left to right, negative falls, zero is horizontal, and a vertical line has undefined slope (x₂ = x₁).

How do I get the line equation from two points?

Find m, then use point-slope y − y₁ = m(x − x₁) and solve for b to get slope-intercept form y = mx + b. This calculator returns both forms plus the line's angle of inclination.

What does the slope angle mean?

It is the angle the line makes with the horizontal, arctan(m), in degrees. A slope of 1 is 45°; a slope of 0 is 0°. Useful for ramps, roofs, and roads (where it is often expressed as a percent grade = m × 100).

Why is a vertical line's slope undefined?

Because the run (x₂ − x₁) is zero and division by zero is undefined. A vertical line has the equation x = constant and cannot be written as y = mx + b.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.