Slope Calculator

Calculate the slope, y-intercept, line equation, and distance between any two points.

▼ Enter two points, then click Calculate
Point 1
Point 2
Result
Slope (m)
Y-Intercept (b)
Line Equation
Distance Between Points

Calculating Slope Between Two Points

Enter two coordinate points to calculate the slope of the line between them, using the standard formula (y₂ − y₁) ÷ (x₂ − x₁) — along with the line's equation, useful for algebra and coordinate geometry problems.

Example: the points (1, 2) and (4, 8) give a slope of 2 — the line rises 2 units for every 1 unit it moves right.

How Slope Is Calculated

Slope (m) is calculated as the change in y divided by the change in x: m = (y2 - y1) / (x2 - x1). This calculator also finds the y-intercept, full line equation, and the straight-line distance between your two points.

Frequently Asked Questions

Slope (m) is calculated as the change in y divided by the change in x: m = (y2 - y1) / (x2 - x1).

It also finds the y-intercept, full line equation, and the straight-line distance between your two points.

You need the coordinates of two points to calculate the slope, y-intercept, line equation, and distance between them.

Yes — enter two points or a point and a slope, and it returns the equation in slope-intercept form (y = mx + b), along with the slope and y-intercept individually.

Yes — alongside the line equation, it calculates the straight-line distance between the two points using the distance formula, along with the midpoint.

Feedback
Was this tool helpful?
Share
How would you rate this tool?