m Slope Calculator

Calculate the slope of a line from two points.

No ratings yet — be the first

Enter details

Slope from two points
m = (y2 - y1)/(x2 - x1)
m =--
  • x₁ (first point)
  • y₁ (first point)
  • x₂ (second point)
  • y₂ (second point)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Slope Calculator

Slope (or gradient) measures how steep a line is: rise ÷ run, the change in y divided by the change in x between two points.

A positive slope rises from left to right, a negative slope falls, zero is horizontal and a vertical line has an undefined slope.

🧮 Formula

Where

  • m = slope
  • x1,y1 = first point
  • x2,y2 = second point
m = (y2-y1)/(x2-x1).

✏️ Worked examples

(1, 2) to (5, 10)

You enter
x₁ (first point)1
y₁ (first point)2
x₂ (second point)5
y₂ (second point)10
You get
Slope2

Slope 2.

(−3, 4) to (3, −2)

You enter
x₁ (first point)-3
y₁ (first point)4
x₂ (second point)3
y₂ (second point)-2
You get
Slope-1

Slope -1.

🧭 How to use this calculator

What you enter

  • x₁ (first point)
  • y₁ (first point)
  • x₂ (second point)
  • y₂ (second point)

What you get

  • Slope

💡 Interpretation

  • Positive slope means y increases as x increases.
  • Negative slope means y decreases as x increases.

❓ Frequently asked questions

What is the slope formula?

m = (y₂ − y₁) ÷ (x₂ − x₁).

When is slope undefined?

When x₁ = x₂ — the line is vertical and the run is zero.

How do I turn slope into an angle?

Angle = arctan(m). A slope of 1 is 45°.