The slope calculator uses two distinct points in a coordinate plane to describe one line and quantify how quickly it rises or falls. It returns signed rise and run, slope, the y-intercept when applicable, Euclidean distance between the points, and a readable line equation.
It is useful for algebra and analytic-geometry exercises, reading a graph, checking a line's direction, and writing y = mx + b from two known coordinates. It is a two-point line calculator, not a linear-regression or general equation parser.
If you only know one point and a slope, have an equation to convert, need an x-intercept, or want to fit many noisy observations, use a specialized tool instead of guessing the missing information.
Enter two different two-dimensional points:
(x1, y1)(x2, y2)Together these four values define one line. Coordinates may be positive, negative, or ordinary decimals such as -2, 1.5, or .25; the fields accept ordinary decimal numbers only, not unit text, thousands separators, or scientific notation such as 1e3.
For `(x1,y1)` and `(x2,y2)`, slope is `m = (y2 - y1) / (x2 - x1)`, which is rise divided by run.
When the x coordinates match, run is zero and the slope is undefined. The page shows `x = constant` instead of inventing a y-intercept.
No. Identical points do not define one unique line, so the page asks for two different points.
They are signed changes found by subtracting the first point from the second. Reversing the points changes both signs but leaves a non-vertical slope unchanged.
It also shows the y-intercept, Euclidean distance between the points, and a line equation. It does not calculate an angle, percent grade, x-intercept, or regression fit.
Enter two distinct coordinate points to calculate rise, run, slope, y-intercept, point-to-point distance, and the line equation, including horizontal and vertical cases.