Slope Calculator (Slope, Y-Intercept and Line Equation from Two Points)

Updated 4 Dec 2026 · By , HisaabHub · How we check

Quick answer: enter two points (x1, y1) and (x2, y2). Slope = (y2 - y1) / (x2 - x1). Example: (1, 2) and (5, 10) give slope 2 and the line y = 2x + 0.

Advertisement
Slope meaning
Slope valueLine direction
PositiveRises left to right
NegativeFalls left to right
ZeroFlat (horizontal)
UndefinedVertical line

How do you find the slope of a line?

Short answer: slope m = rise / run = (y2 - y1) / (x2 - x1).

Subtract the y values for the rise and the x values for the run, then divide. Keep the same order of points in both subtractions or the sign will flip.

How do I write the line equation?

Short answer: use y = mx + b, where b = y1 - m x x1.

The calculator gives b for you, so the final equation is ready to graph or paste into homework.

Advertisement

Related searches

People also look for: point calculate, calculator equation, slope intercept calculator, free on line calculator, calculate slope calculator, how to calculate roof slope, calculate the slope, slope of a line calculator, calculate slope of a line calculator, online slope calculator, how do i calculate slope of a line, y calculator.

Questions people ask

What if x1 equals x2?
The line is vertical and the slope is undefined.
Can I use decimals and negatives?
Yes.
Is slope the same as gradient?
Yes, they mean the same thing.
Advertisement