Skip to main content
Calcimator

Slope Calculator

Calculate the slope, distance, midpoint, and line equation from two points. Visualize rise over run.

Inputs

Results

Slope (m)

2

Line Equationy = 2x + 0
Distance6.7082
Angle63.43°
Midpoint(2.5, 5)
Rise6
Run3
How to Use This Calculator
  1. Enter the coordinates of two points on a line: (x₁, y₁) and (x₂, y₂).
  2. Slope m = (y₂ − y₁) / (x₂ − x₁); positive slope rises left to right, negative slope falls.
  3. Undefined slope occurs when x₁ = x₂ (vertical line); zero slope means a horizontal line.
  4. The y-intercept b is found from y = mx + b rearranged: b = y₁ − m × x₁.
  5. Angle of inclination = arctan(|m|) converts slope to the angle the line makes with the horizontal.
  6. Distance between the two points and the midpoint are also computed using the distance formula.

How the result changes with X₂

X₂Slope (m)
-8,000-0
-3,000-0
3,0000
8,0000

What each input means

X₁
X-coordinate of the first point.
Y₁
Y-coordinate of the first point.
X₂
X-coordinate of the second point.
Y₂
Y-coordinate of the second point.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    X₁ = 1, Y₁ = 2, X₂ = 4, Y₂ = 8 = 4 input(s) provided
  2. Calculate Slope
    2 = 2
  3. Calculate Line Equation
    y = 2x + 0 = y = 2x + 0
  4. Calculate Distance
    Distance
    6.7082 = 6.7082

Engine last updated .

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.