← Math Calculators

Slope Calculator

Use this free slope calculator to find the slope between two points and the equation of the line through them. Enter two points to get the slope, the y-intercept, and the line in slope-intercept form.

How it works

The slope of a line measures how steep it is: how much y changes for each step in x. Between two points (x1, y1) and (x2, y2), the slope is m = (y2 - y1) / (x2 - x1), rise over run. A positive slope climbs left to right, a negative slope falls, zero is flat, and a vertical line has no defined slope at all because the run is zero.

Once the slope is known, the full line follows from the slope-intercept form y = mx + b, where b is where the line crosses the y-axis. The intercept comes from either point: b = y1 - m x1. Together, m and b describe every point on the line.

A practical use is reading a rate from a graph. If a chart shows savings over months, the slope between two points is the dollars saved per month — the same rise-over-run idea, applied to real data instead of a textbook diagram.

Example: The line through (1, 2) and (4, 8) has a slope of 2.00 and a y-intercept of 0.00, giving the equation y = 2.00x + 0.00.

Frequently asked questions

How do you find the slope between two points?

The slope is rise over run: m equals y2 minus y1, over x2 minus x1. A positive slope climbs left to right, a negative slope falls, and zero is flat.

What is the slope of a vertical line?

A vertical line has no defined slope, because the run is zero and you cannot divide by zero. The calculator tells you the slope is undefined when both points have the same x value.

More Math Calculators

← Back to all calculators