AznikaHubFree toolsMathMint
🔒 Calculations run in your browser. We keep basic visit stats to improve the site — see Privacy Policy.

📈 Slope Calculator

Enter two points (x₁, y₁) and (x₂, y₂) to get everything about the line through them.

Slope

How the Slope Calculator works

Slope is rise over run. The y-intercept comes from plugging one point into y = mx + b. Distance uses the Pythagorean theorem.

m = (y₂ − y₁) ÷ (x₂ − x₁) b = y₁ − m × x₁ Distance = √((x₂ − x₁)² + (y₂ − y₁)²) Midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)

Step-by-step calculation

  1. 1Enter two points.
  2. 2Slope = rise ÷ run.
  3. 3Find the intercept, distance and midpoint.

Worked example

Points (1, 2) and (4, 8): slope = 6 ÷ 3 = 2, line y = 2x, distance = √45 ≈ 6.708, midpoint (2.5, 5).

Slope Calculator examples

x₁Slope
1m = 2
2m = 3
5m = -6
10m = -1
100m = -0.0625

Other inputs kept at the calculator's default values. Results calculated by this calculator.

Why use a Slope Calculator?

Find line equations for algebra and graphing.

Important factors that can affect your results

  • Vertical lines have undefined slope.
  • Order of points.
  • Rounding.

Frequently asked questions

What if x₁ = x₂?

The line is vertical and the slope is undefined; its equation is x = x₁.

What does a negative slope mean?

The line goes down from left to right.

Related calculators

Last reviewed November 2026 · How we build and check our tools · Report a problem

🧮Types of calculators