Lelifi·tools

Point-Slope Form Calculator

Point-slope form writes a line as y - y1 = m(x - x1) using one point on the line and the slope. A line through (3, 4) with slope 2 is y - 4 = 2(x - 3), which simplifies to y = 2x - 2. The calculator also returns the slope-intercept and standard forms of the same line.

Type one point and the slope (or two points) and get the point-slope form, slope-intercept form and standard form of the line, with the steps shown.

By the Lelifi editors ·

Key takeaways

-112345-22468run = 2rise = 4(3, 4)y-intercept (0, -2)y - 4 = 2(x - 3), the same line as y = 2x - 2Slope 2 means rise 4 over run 2 between any two points on the line
The line y - 4 = 2(x - 3) drawn from the point (3, 4) with a rise of 4 over a run of 2.
Point and slope to slope-intercept in four movesStart: slope m = 2, point (x1, y1) = (3, 4)y - y1 = m(x - x1)y - 4 = 2(x - 3)expand the right side: y - 4 = 2x - 6add 4 to both sides: y = 2x - 6 + 4= slope-intercept form: y = 2x - 2check: 2 x 3 - 2 = 4, which matches y1Standard form: 2x - y = 2. All three describe one line.
The same numbers the calculator computes: substitute, distribute, isolate y, then check against the point.
On this page
  1. What point-slope form is
  2. How to use the calculator
  3. Worked example: point (3, 4) with slope 2
  4. From two points to point-slope form
  5. Point-slope, slope-intercept and standard form compared
  6. Parallel and perpendicular lines in point-slope form
  7. Common mistakes and how to catch them

What point-slope form is

Point-slope form is one of three standard ways to write the equation of a straight line. It says y - y1 = m(x - x1), where m is the slope and (x1, y1) is any single point the line passes through. If you know where the line goes and how steep it is, this form hands you the equation with almost no algebra at all.

The form comes straight from the definition of slope. Slope is rise over run, m = (y - y1) / (x - x1), because it compares the vertical change to the horizontal change between two points on the line. Multiply both sides by (x - x1) and the slope definition turns into point-slope form. That is the entire derivation.

PartNameWhat it does
mSlopeHow fast y changes as x increases. A slope of 3 climbs 3 units for every 1 unit across.
x1, y1The known pointOne confirmed location on the line. Any point on the line works equally well.
x, yThe moving pointEvery other point on the line. These stay as variables.

The calculator below returns point-slope, slope-intercept and standard form at once, along with the y-intercept on its own. Its conventions match the lines chapter of Paul's Online Notes at Lamar University, which works through the same algebra in more depth.

How to use the calculator

The widget has two modes. In the point and slope mode you type the slope m and one point (x1, y1). In the two points mode you type both points and the calculator derives the slope for you, then writes the equation from whichever point you listed first. Results update as you type, and blank inputs count as 0.

You get four rows back: the point-slope form, the slope-intercept form y = mx + b, the standard form ax + by = c, and the y-intercept b on its own. The point-slope row is built from your inputs with no rearranging, so it is the fastest one to copy into homework that asks for point-slope form specifically.

One habit worth building: check the answer by feeding the x coordinate of your point back into the slope-intercept form. If the point is (3, 4) and the output is y = 2x - 2, then at x = 3 the formula gives y = 2 x 3 - 2 = 4, which lands on your point. If it does not, a sign got flipped somewhere.

All calculations run in your browser and nothing is uploaded anywhere.

Worked example: point (3, 4) with slope 2

Take the point (3, 4) and slope 2. Substituting into y - y1 = m(x - x1) gives y - 4 = 2(x - 3), and that is already a complete answer for a question that asks for point-slope form. Most textbooks, though, want it simplified into slope-intercept form.

StepWorkResult
1. Substitutey - 4 = 2(x - 3)point-slope form
2. Distributey - 4 = 2x - 6right side expanded
3. Isolate yy = 2x - 6 + 4add 4 to both sides
4. Combiney = 2x - 2slope-intercept form
5. Standard form2x - y = 2move y to the left

Two checks confirm the line. The y-intercept should be b = -2, and plugging x = 0 into y = 2x - 2 gives -2. The original point should satisfy the equation: 2 x 3 - 2 = 4, which matches y1. A third point keeps it honest: at x = 5 the line gives y = 2 x 5 - 2 = 8, so (5, 8) sits on it too.

The figure below draws the line. The red dot is the point (3, 4) you started from, and the green dashed legs show the rise of 4 over a run of 2 that the slope describes.

From two points to point-slope form

When a problem gives two points instead of a slope, compute the slope first, then treat one of the points as (x1, y1). Take (1, 2) and (4, 11). The slope is m = (11 - 2) / (4 - 1) = 9 / 3 = 3.

StepWorkResult
1. Slopem = (11 - 2) / (4 - 1)9 / 3 = 3
2. Pick a pointuse (1, 2)x1 = 1, y1 = 2
3. Substitutey - 2 = 3(x - 1)point-slope form
4. Distributey - 2 = 3x - 3expand
5. Isolate yy = 3x - 1slope-intercept form

Test the result against the point you did not use. At x = 4 the formula gives y = 3 x 4 - 1 = 11, which matches the second point. That check matters because the most common two-point error is dividing in the wrong order; if you had written (4 - 1) / (11 - 2) you would get a slope of 1/3 and the check would fail.

Either point produces a correct point-slope form. Starting from (4, 11) instead gives y - 11 = 3(x - 4), which expands to the same y = 3x - 1. The calculator uses your first point and shows the equivalent version built from the second one.

Point-slope, slope-intercept and standard form compared

All three forms describe the same object. They differ in what they make easy to read off, and teachers ask for specific ones because each shines in a different situation.

FormEquationBest for
Point-slopey - y1 = m(x - x1)Writing a line fast when you know a point and the slope. No solving needed.
Slope-intercepty = mx + bGraphing by hand and reading the slope m and y-intercept b directly.
Standardax + by = cSolving systems by elimination and keeping integer coefficients.

Using the earlier example, one line has three costumes: y - 4 = 2(x - 3), y = 2x - 2 and 2x - y = 2. Graphing calculators usually want slope-intercept or the solved form, while elimination in a system moves fastest in standard form. Point-slope is the natural first draft, because it is the only one you can write down the instant you know a point and a slope.

The linear equations and graphs unit on Khan Academy covers the same three forms with extra practice sets, and our standard form to slope-intercept converter handles the conversion in the other direction.

Parallel and perpendicular lines in point-slope form

Parallel lines share the same slope, so a parallel line is a copy of the original equation with a different point swapped in. A line parallel to y = 2x - 2 through the point (1, 5) is y - 5 = 2(x - 1), which simplifies to y = 2x + 3. Same m, different line.

Perpendicular lines meet at a right angle, and their slopes multiply to -1. So the perpendicular slope is the negative reciprocal: flip the fraction and change the sign. The perpendicular partner of slope 2 is -1/2, because 2 x -0.5 = -1.

Concretely: find the line through (5, 1) perpendicular to y = 2x - 2. The slope is -0.5, so point-slope form gives y - 1 = -0.5(x - 5). Distribute: y - 1 = -0.5x + 2.5. Add 1: y = -0.5x + 3.5. A quick check: at x = 5 the formula gives -0.5 x 5 + 3.5 = 1, which lands on the point.

Horizontal and vertical lines are the two special cases. A horizontal line has slope 0, so point-slope form collapses to y = y1, for example y = 4. A vertical line has an undefined slope and cannot be written in point-slope or slope-intercept form at all; its equation is just x = x1, for example x = 3.

Common mistakes and how to catch them

Point-slope form is short, which leaves room for a small set of reliable errors. The subtraction on both sides is where most of them live, because subtracting a negative coordinate looks like an addition mistake even when it is correct.

MistakeLooks likeCorrect version
Adding the point instead of subtractingy + 4 = 2(x - 3) for the point (3, -4)y - (-4) = 2(x - 3), written as y + 4 = 2(x - 3)
Sign slip inside the parenthesesy - 4 = 2(x + 3) for the point (3, 4)y - 4 = 2(x - 3)
Distributing to only one termy - 4 = 2x - 3y - 4 = 2x - 6, since 2 x 3 = 6
Swapping rise and runm = (x2 - x1) / (y2 - y1)m = (y2 - y1) / (x2 - x1), y changes on top

The single fastest check is substitution. Pick any point you trust, the one you started with or the second of a pair, put its x into your simplified equation, and confirm the y comes back out. It takes ten seconds and catches every one of the mistakes in the table above.

For a different angle on the same idea, the slope calculator on this site starts from two points and returns the slope, angle, distance and grade together, which is handy when the problem is about steepness rather than the equation.

Frequently asked questions

What is the point-slope formula?

y - y1 = m(x - x1), where m is the slope and (x1, y1) is any point on the line. Substitute your known values and the equation is done.

How do you convert point-slope form to slope-intercept form?

Distribute the slope, then isolate y. From y - 4 = 2(x - 3): expand to y - 4 = 2x - 6, add 4, and you get y = 2x - 2.

How do you write point-slope form from two points?

Find the slope with m = (y2 - y1) / (x2 - x1), then plug one point into y - y1 = m(x - x1). Points (1, 2) and (4, 11) give slope 3 and y - 2 = 3(x - 1).

What if the slope is negative?

Nothing changes except the sign. A line through (1, 5) with slope -2 is y - 5 = -2(x - 1), which simplifies to y = -2x + 7.

What does point-slope form look like for a horizontal line?

A horizontal line has slope 0, so the formula becomes y - y1 = 0, or just y = y1. The line y = 4 stays flat no matter what x does.

Can a vertical line be written in point-slope form?

No. Vertical lines have an undefined slope because the run between any two points is 0. Their equation is just x = x1, such as x = 3.

How many points do you need to define a line?

One point plus the slope, or two full points. The calculator accepts either input pair and produces the same equation.

Is there only one correct point-slope equation for a line?

No. Every point on the line produces a different-looking but equivalent point-slope form. y - 4 = 2(x - 3) and y - 8 = 2(x - 5) describe the same line.

What does the b in y = mx + b mean?

b is the y-intercept, the height where the line crosses the y axis. For y = 2x - 2 the line crosses at (0, -2).

How do parallel lines differ in point-slope form?

They share the same slope m and differ only in the point. Parallel to slope 2 through (1, 5) gives y - 5 = 2(x - 1), while the original through (3, 4) was y - 4 = 2(x - 3).

How do you graph a line from point-slope form?

Plot the point (x1, y1), then use the slope as rise over run. A slope of 3/2 means step right 2 and up 3 to land on a second point, then draw the line through both.

When is point-slope form more useful than slope-intercept form?

When a problem hands you a point and a slope directly, such as a line through (3, 4) with slope 2. You can write y - 4 = 2(x - 3) immediately, without solving for the y-intercept first.

Spotted a wrong number or a broken result?

More Math tools

See all Math tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.