0

Slope Calculator

Find the slope between two points as an exact fraction, plus the y-intercept, slope-intercept and point-slope forms, distance with a simplified radical, midpoint and angle of incline — with steps.

First point (x₁, y₁)

Second point (x₂, y₂)

Decimals and negative numbers are allowed. Two points with equal x give a vertical line.

Processing... 0%
Reading the two points
Computing Δy / Δx
Building the line equations
Done

Result

The slope of a line through two points (x₁, y₁) and (x₂, y₂) is m = Δy/Δx = (y₂ − y₁)/(x₂ − x₁): rise over run. This slope calculator substitutes your coordinates into that formula step by step and returns the slope as an exact reduced fraction with its decimal value — so the points (1, 2) and (4, 8) give m = 6/3 = 2, not 1.9999….

From the same two points it builds everything the slope unlocks: the y-intercept b = y₁ − m·x₁, the slope-intercept equation y = mx + b, and the point-slope form y − y₁ = m(x − x₁). All coefficients are exact fractions computed in arbitrary-precision integer arithmetic; decimal coordinates such as 2.5 are stored as exact fractions before any algebra happens. A vertical line — two points with the same x — is handled honestly: the slope is undefined, and the calculator says so and prints the line's actual equation x = c instead of an error or a bogus number.

The run also measures the segment between the points: the distance √(Δx² + Δy²) is shown as a simplified radical (the points (1, 2) and (4, 8) are 3√5 apart) with a decimal approximation, the midpoint ((x₁ + x₂)/2, (y₁ + y₂)/2) comes out as exact coordinates, and the angle of incline arctan(m) is reported in degrees. Every quantity appears both in the step list and on its own result card.

Everything runs locally in your browser: nothing is uploaded, there is no registration, and you can check as many point pairs as you like on desktop and mobile alike. For the parabola-shaped counterpart of this job, the quadratic equation solver on this site works the same step-by-step way.