Slope Calculator
Enter two points to find the slope, distance, midpoint, and line equation.
m = (y₂ - y₁) / (x₂ - x₁)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.