Slope Calculator

Enter two points to find the slope, distance, midpoint, and line equation.

m = (y₂ - y₁) / (x₂ - x₁)
m= Slope
(x₁,y₁)= First point
(x₂,y₂)= Second point

Tips & Notes

  • Parallel lines have equal slopes.
  • Perpendicular lines have slopes that are negative reciprocals (m₁ × m₂ = -1).
  • Horizontal lines have slope 0; vertical lines have undefined slope.
  • Slope represents rate of change in applied contexts.

Common Mistakes

  • Subtracting coordinates in inconsistent order (mixing which point is first).
  • Dividing rise by run incorrectly (slope is Δy/Δx, not Δx/Δy).
  • Forgetting that vertical lines have undefined (not zero) slope.
  • Confusing negative slope with undefined slope.

Slope Calculator Overview

What This Calculator Does

The Slope Calculator takes two coordinate points (x₁, y₁) and (x₂, y₂) and computes the slope m = (y₂ - y₁)/(x₂ - x₁), the distance between them using the Pythagorean theorem, the midpoint, and the line equation in y = mx + b form.

Understanding Slope

Slope is the ratio of vertical change (rise) to horizontal change (run). A slope of 2 means the line rises 2 units for every 1 unit of horizontal movement. A slope of -0.5 means it falls 0.5 units per horizontal unit. Zero slope is perfectly horizontal; undefined slope (vertical line) occurs when x₁ = x₂.

Line Equations

The slope-intercept form y = mx + b fully describes a non-vertical line: m is the slope and b is the y-intercept (where the line crosses the y-axis). Once you know the slope and one point, b = y₁ - m×x₁. This equation lets you find y for any x value on the line.

Applications

Physics uses slope as rate of change in graphs. Construction uses slope for drainage angles and ramp grades. Economics graphs supply and demand with slopes representing elasticity. Computer graphics uses slope for line-drawing algorithms and intersection detection.

Frequently Asked Questions

It means the line is vertical (x₁ = x₂). You cannot divide by zero, so the slope formula produces no finite value.

Set their equations equal: m₁x + b₁ = m₂x + b₂. Solve for x, then substitute back to find y.

Grade is slope expressed as a percentage: a 6% grade means the road rises 6 units for every 100 horizontal units.

The Slope Calculator uses standard validated formulas and provides results accurate to multiple decimal places. Review the step-by-step explanation to verify each calculation.