Calculators
A slope calculator from two points: enter the coordinates and get the slope, the y-intercept, and the line's equation, with rise over run shown.
Enter the coordinates of two points, then click Calculate.
Type two points, click Calculate. This slope calculator gives the slope, the y-intercept, and the line's equation instantly, right on the page.
You immediately get two results: the slope m (the rise over run between your points) and the y-intercept b of . With the defaults, the slope calculator returns and : the line .
This page is more than a static slope calculator — it is also an AI tutor you can ask questions:
Slope is rise over run: how far a line climbs (or falls) for each step you take to the right. Move 1 unit right along a line with slope 2 and you rise 2 units. Move 1 unit right along a line with slope and you drop 2 units. One number carries both the steepness and the direction of a line — that is what a slope calculator reads out.
Every line lands in one of four cases:
The last pair is where most slips happen. Horizontal means slope 0 — fine. Vertical means undefined, not 0. Enter two points that share one x into the slope calculator and it tells you exactly that: the line is vertical, and no single number describes its steepness.
Two points are all a slope calculator needs. The vertical change between them is the rise, the horizontal change is the run, and the slope is their quotient:
One discipline and one only: pick which point is first and stay with it. The rise and the run must both subtract in the same direction — that habit keeps the sign of honest, and the slope calculator follows it automatically.
One guarantee comes with the formula: a straight line has exactly one slope. Pick any two points on the same line and the slope calculator returns the same every time. So it never matters which pair of points you grabbed from the line — and one point plus the slope is enough to draw the whole thing.
Find the slope and the equation of the line through and — the slope calculator's default points.
So the line is , or just — it passes straight through the origin. Read as rise over run: from , step 3 units right and 6 units up — run 3, rise 6 — and you land exactly on . The slope is the directions between your two points, nothing more.
Check it against the second point: when , . Point is on the line, exactly as given. Click Calculate above and the slope calculator walks all four steps with you.
Negative slopes run the same route — the arithmetic just carries a minus sign. Take the line through and .
The line is . Now the general move from any slope to a full equation. With a point and slope , point-slope form writes the line at once:
Expand and collect: becomes — slope-intercept form again. Use point-slope when you know a point, slope-intercept when you want to read and fast; the slope calculator above hands you both.
One habit catches all three: write the formula, substitute with parentheses, simplify. That is the exact sequence the slope calculator above runs — compare your working line by line.
A line passes through the points (2, 3) and (6, 11). What is the slope of the line? Check your answer with the slope calculator above.
A line passes through the points (−1, 4) and (3, −8). What is the slope of the line? Check your answer with the slope calculator above.
Subtract the y-coordinates for the rise, subtract the x-coordinates for the run, and divide: m = (y₂ − y₁) ÷ (x₂ − x₁), subtracting in the same direction both times. The slope calculator above runs exactly this division.
Label one point (x₁, y₁) and the other (x₂, y₂), then compute (y₂ − y₁) ÷ (x₂ − x₁). For (1, 2) and (4, 8) that is 6 ÷ 3 = 2. Any slope calculator — including the one on this page — does the same two subtractions and one division.
Positive slope means the line rises left to right (like y = 2x); negative slope means it falls (like y = −2x + 5). Zero slope is a flat horizontal line and a vertical line's slope is undefined — all four cases show up in the slope calculator.
The line falls as you move right: y goes down while x goes up, like m = −2 dropping 2 units per 1 unit right. The slope calculator keeps the minus sign — it points down, not wrong.
Undefined. Both points share one x, so the run x₂ − x₁ is 0 and division by zero has no answer. The slope calculator reports the vertical-line case instead of a number. A horizontal line, by contrast, has slope 0.
Find the slope m first, then use b = y₁ − m·x₁ with either point. For (1, 2) with m = 2: b = 2 − 2 = 0, so the line is y = 2x. The slope calculator above returns b in its second row.
Yes — swapping which point is first flips the sign of both rise and run, and the two negatives cancel: (y₁ − y₂) ÷ (x₁ − x₂) equals (y₂ − y₁) ÷ (x₂ − x₁). The order of your two points never changes the slope the slope calculator returns, as long as you stay consistent within each subtraction.