m Slope Calculator

Calculate the slope of a line from two points.

No ratings yet — be the first
Rate it: ★ ★ ★ ★ ★

Enter details

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


Also available in our Android app, with charts and full breakdown tables.

📘 About the Slope

Calculate rise over run between two points.

🧮 Formula

Where

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

✏️ Worked example

(1,2) to (5,10)

You enter
x11
y12
x25
y210
You get
Slope2

The slope is 2.

Try this example →

🧭 How to use this calculator

What you enter

  • x1
  • y1
  • x2
  • y2

What you get

  • Slope

💡 Interpretation

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

❓ Frequently asked questions

When is slope undefined?

A vertical line has x2 equal to x1, so the slope formula divides by zero.