mathClassic tool

Slope Calculator

Calculate slope, line equation, y-intercept, angle, and distance between points with a quick line calculator.

Use this slope calculator to find the slope of a line from two coordinates or from a known slope and one point on the line. The tool also builds the slope-intercept equation, shows the point-slope form and calculates the y-intercept automatically.

Besides the slope value itself, you also get the approximate angle of the line relative to the x-axis and, in the two-point mode, the distance between the coordinates you entered. That makes the tool useful for analytic geometry, algebra review, graph reading, physics basics and homework checks.

Special cases are handled too. If the line is vertical, the calculator marks the slope as undefined and returns the correct equation format, which helps you avoid treating division by zero as a normal slope value.

Pick the mode that fits your problem: two points to derive the full line or slope with one point to rebuild the equation quickly.

Quick note: if x1 and x2 are equal, the line is vertical and the slope is undefined.

SummaryEnter two points to calculate the line.
Slope
Line equation
Point-slope form
y-intercept
Angle
Distance between points
Classification

Use clear inputs to get a more useful result.