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

How to Use This Calculator

  1. Enter the coordinates of Point 1 (x₁, y₁).
  2. Enter the coordinates of Point 2 (x₂, y₂).
  3. 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.