Choose a mode
Two points finds the slope between them. Slope & point builds the line from m and one point. Line equation converts Ax + By = C into slope and intercepts.
MATHEMATICS · INTERACTIVE TOOL
Two points in, everything out — slope, angle, percentage grade, intercepts and the full line equation, with step-by-step working and an interactive graph.
FREE — NO SIGN-UP · RUNS ENTIRELY IN YOUR BROWSERWAITING FOR INPUT — RESULTS UPDATE AS YOU TYPE
DRAG TO PAN · SCROLL OR PINCH TO ZOOM · HOVER FOR COORDINATES
Two points finds the slope between them. Slope & point builds the line from m and one point. Line equation converts Ax + By = C into slope and intercepts.
Plain numbers, negatives, decimals like 0.75 and fractions like 3/4 all work. Everything recalculates live as you type — no calculate button needed.
Slope, angle, percentage grade, both intercepts, perpendicular slope, distance and midpoint — plus the line written in slope-intercept, standard and point-slope form.
Drag to pan, scroll or pinch to zoom, toggle the rise/run triangle — then copy the full step-by-step solution wherever you need it with one click.
Slope is the ratio of vertical change to horizontal change between two points on a line — rise over run. Subtract the y-coordinates to get the rise Δy, subtract the x-coordinates to get the run Δx, and divide. The steeper the line, the bigger the magnitude; the sign tells you which way it leans. Two facts worth memorising: parallel lines always share the same slope, and perpendicular slopes multiply to −1.
Rises left to right. Example: y = 2x has slope 2.
Falls left to right. Example: y = −x + 3 has slope −1.
Perfectly horizontal. Example: y = 5 has slope 0.
Perfectly vertical. Example: x = 4 — division by zero.
The questions people actually ask about slope — answered in plain language.
m = (y₂ − y₁) / (x₂ − x₁). Subtract the y-coordinates (that's the rise), subtract the x-coordinates (that's the run), then divide. For example, with points (2, 3) and (5, 11): m = (11 − 3) / (5 − 2) = 8/3 ≈ 2.667. The calculator above does this instantly — and shows every step.Δx = x₂ − x₁ becomes zero, and dividing by zero is undefined. The line is vertical (x = constant) with an inclination angle of exactly 90°.y = b.θ = arctan(m). A slope of 1 is a 45° angle; a slope of 0.5 is about 26.57°. Percentage grade (used for roads and ramps): grade = m × 100. A 0.25 slope is a 25% grade — it rises 25 units per 100 units of run.y = mx + b — fastest for reading m and b. Point-slope: y − y₁ = m(x − x₁) — best when you know one point and the slope. Standard: Ax + By = C — best for intercepts and exact integer arithmetic. All three describe the same line; this calculator shows all of them.m₂ = m₁. Perpendicular lines (at 90° to each other) have slopes that multiply to −1: m₂ = −1/m₁ — flip the fraction and change the sign. So a line perpendicular to m = 2 has slope −1/2.(y₂ − y₁)/(x₂ − x₁) and (y₁ − y₂)/(x₁ − x₂) give the same slope — the sign flips in both numerator and denominator and cancels. Just be consistent: don't mix the points up mid-calculation.