Skip to calculator
general
Slope Calculator
Calculate the slope, equation, distance, and midpoint between two points. Enter coordinates (x₁, y₁) and (x₂, y₂) to find the line equation y = mx + b.
Enter two points (x₁, y₁) and (x₂, y₂) to find the slope, equation, distance, and midpoint.
Point 1
Point 2
Quick Facts
Slope of horizontal line0
Slope of vertical lineUndefined
45° line slope1
Parallel lines haveEqual slopes
How to Use This Calculator
- Enter the coordinates of Point 1 (x₁, y₁).
- Enter the coordinates of Point 2 (x₂, y₂).
- Click Calculate to see slope, equation, distance, midpoint, and angle.
The Formula
Slope: m = (y₂ - y₁) / (x₂ - x₁). Y-intercept: b = y₁ - m × x₁. Distance: √((x₂-x₁)² + (y₂-y₁)²). Midpoint: ((x₁+x₂)/2, (y₁+y₂)/2). Angle: atan(m) × 180/π.Frequently Asked Questions
Slope measures the steepness of a line. It is the ratio of vertical change (rise) to horizontal change (run) between any two points. A positive slope goes up-right, negative goes down-right, zero is horizontal, and undefined is vertical.