Slope-Intercept Form Calculator

SLOPE-INTERCEPT FORM
Type two points, then press =.
The slope, the intercept, and the check
y = mx + b, with the intercept worked out from every point you gave and made to agree.
A point, and a slope or a second point
Put a point the line passes through in x₁, y₁. Then give either the slope or a second point — whichever the question gives you. Fractions like 3/4 and decimals both work, and the answer stays exact. Give both a slope and a second point and the page will tell you if they disagree.
a point on the line needed
,
then the slope m
or
a second point
,
Tap a box, then use the keys
Slope-intercept form is y = mx + b: m is the steepness and b is where the line crosses the y-axis. Finding m is the easy half. Finding b means putting a point back into the equation and seeing what is left over — and there is a shortcut nobody mentions: since b is the y value at x = 0, a point that already sits on the y-axis hands it to you with no work at all.
The working, step by step

This slope-intercept form calculator writes a line as y = mx + b from two points, or from a point and a slope — and works the intercept out from every point you gave, so the two have to agree before anything is shown.

Give it (1, 3) and (4, 9) and you get y = 2x + 1, with the line drawn and the crossing marked.

Slope-Intercept Form Calculator — a free tool from Monkza

How to Find the Equation of a Line in Slope-Intercept Form

1. Find the slope. From two points: m = (y₂ − y₁) ÷ (x₂ − x₁). If you were handed the slope, skip this.
2. Find b. Put a point back into y = mx + b and see what is left over.
3. Write it. Slope in front of the x, intercept behind it.

With (1, 3) and (4, 9):

m = (9 − 3) ÷ (4 − 1) = 2
3 = 2 × 1 + b, so b = 3 − 2 = 1
y = 2x + 1

The second step is where marks go. It is y minus mx, not the other way round — and getting that backwards flips the sign of b while leaving the slope looking perfectly right, which makes it hard to spot.

What m and b Actually Tell You

This form is popular because it hands you the two facts you most often want, with no rearranging at all.

m is the steepness. Positive climbs from left to right, negative falls, and 0 is flat.
b is the height at which the line crosses the vertical axis — the y value when x is 0.

That makes graphing quick: mark (0, b), then step across and up by the slope. Keeping m as a fraction helps here, because 1/2 tells you to go 2 across and 1 up while 0.5 tells you nothing you can draw.

The other crossing follows from the same two numbers. Setting y to 0 gives x = −b ÷ m, so y = 2x + 1 meets the horizontal axis at −1/2, and y = −2x + 4 meets it at 2. A flat line is the exception: it either runs parallel to that axis and never arrives, or sits on it the whole way. This calculator gives both crossings, because between them they pin the line down without any drawing at all.

When b Costs You Nothing

Here is a shortcut almost nobody mentions. Since b is the y value at x = 0, a point that already has an x of 0 is the intercept.

Take (0, 3) and (2, 7). The slope is 2 as usual — but b = 3 outright. Nothing to substitute, nothing to rearrange.

Most people put the point into y = mx + b anyway and arrive at the same answer the long way, because the m × 0 term simply disappears. It is worth a glance at your coordinates before you start: if either one has a zero for x, half the work is already done.

The Check Almost Nobody Uses

When you have two points, work b out from the second one as well.

From (1, 3): b = 3 − (2 × 1) = 1
From (4, 9): b = 9 − (2 × 4) = 1

Both points are on the same line, so both must give the same intercept. It costs one subtraction, and unlike re-reading your own working it uses a number you have not looked at yet — which is exactly why it catches slips that checking twice does not. This calculator runs it on every answer before showing anything.

The One Line That Cannot Be Written This Way

A vertical line has no slope-intercept form at all. Its slope is undefined, so there is no m to put in — and more than that, it has no single y for a given x, which is the one thing an equation beginning y = has to provide. The points (4, 1) and (4, 9) give x = 4 instead.

A horizontal line is fine. Its slope is 0, the x term disappears, and (4, 7) with slope 0 gives simply y = 7 — every point on it shares that same y, which is the intercept.

How to Use This Slope-Intercept Calculator

A point is always needed. After that give either the slope or a second point, whichever the question handed you.

x₁, y₁A point on the line. Always needed
mThe slope, if you were given it
x₂, y₂Or a second point, and the slope is worked out
±     .Sign, fraction bar, decimal point
/ ACDelete one character, or clear everything
=Works it out

The route you are not using fades as soon as you start the other. Fractions like 1/2 and decimals both work, and the answer stays exact either way: (5, 6) with slope 1/2 gives y = 1/2x + 7/2, not a rounded decimal.

Open the working and you get the line drawn from your own coordinates with the intercept marked, every sum written out, b from both points, and where the line crosses each axis. If the question asks for the same line in point-slope form instead, that is given for reference too.

Slope-Intercept Form FAQ

What is slope-intercept form?
y = mx + b, where m is the slope and b is the y-intercept, the height at which the line crosses the vertical axis. It is the form that shows both of those facts without any rearranging.
How do you find the equation of a line from two points?
Work out the slope first, then put one point back into y = mx + b and see what b has to be. For (1, 3) and (4, 9) the slope is 2, and 3 = 2 times 1 plus b gives b = 1, so the line is y = 2x + 1.
How do you find b?
b = y minus mx, using any point on the line. Take the mx term off the y value and what is left is the intercept. The usual slip is subtracting the wrong way round, which flips the sign of b while leaving the slope looking right.
Is there a shortcut for finding b?
Yes. If one of your points already has an x of 0, that point sits on the y-axis, so its y value is the intercept and there is nothing to work out. For (0, 3) and (2, 7), b is 3 straight away.
How can I check my answer?
Work b out from the second point as well. Both points lie on the same line, so both must give the same intercept. It costs one subtraction and uses a number you have not looked at yet.
Can a vertical line be written as y = mx + b?
No. Its slope is undefined, so there is no m to put in, and it has no single y for a given x. It is written x = c instead.

Slope first, then the intercept — and then the second point, which is the cheapest check in the subject.