Skip to content

Slope Calculator

Result

Slope (m)0.75
y-intercept (b)0
Distance between points5
Angle of inclination36.8699°
Midpoint X2
Midpoint Y1.5
Line Equationy = 0.75x + 0
Midpoint(2, 1.5)
↗ Math

Slope Calculator — free online calculator.

Formula

Slope m = (y₂−y₁) / (x₂−x₁). Line equation: y = mx + b where b = y₁ − m×x₁. Distance = √((Δx)² + (Δy)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2).
  • Slope Calculator calculates its result from Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂. It uses the formula Slope m = (y₂−y₁) / (x₂−x₁). Line equation: y = mx + b where b = y₁ − m×x₁. Distance = √((Δx)² + (Δy)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2).. Change any input to recalculate the result instantly.
  • The main inputs are Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂. Enter them in the units and format shown in the calculator.
  • Keep comparable quantities in compatible units whenever the formula combines or compares them.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Slope

Inputs
  • Point 1 — x₁: 0
  • Point 1 — y₁: 0
  • Point 2 — x₂: 4
  • Point 2 — y₂: 3

m=(y₂−y₁)/(x₂−x₁), intercept b=y₁−mx₁, distance and midpoint from endpoints, inclination from atan2. Vertical lines have undefined finite slope and return a clear error.

Sample result: Calculating…

Frequently asked questions

What does the Slope calculate?

Slope Calculator — free online calculator.

Which values should I enter?

Enter Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂ using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: Slope m = (y₂−y₁) / (x₂−x₁). Line equation: y = mx + b where b = y₁ − m×x₁. Distance = √((Δx)² + (Δy)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2)..

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 10, 2026