How to write the equation of a line in point-slope form

If you know a point on a line and how steep the line is, you already have what you need to write its equation. We’ll plug those values into point-slope form, then see how to find the slope when we’re given two points.

Start with a point and the slope

If a line has slope m and passes through (x1,y1), its point-slope form is

y-y1=m(x-x1)

The slope describes how much y changes for each unit of change in x. So the change in y, which is y-y1, equals the slope times the change in x, which is x-x1.

Example: Use the given point and slope

The slope is -14 and the point is (-6,1). Use x1=-6 and y1=1. Subtracting the negative x-coordinate gives x+6.

y-1=-14(x-(-6))y-1=-14(x+6)

Example: Find the slope from two points

Use (-2,-4) and (3,5). Subtract the y-coordinates and the x-coordinates in the same order. The change in y is 9 and the change in x is 5.

The rise and run between two points on a lineThe line goes through negative two, negative four and three, five. A dashed horizontal segment shows a run of five units, and a dashed vertical segment shows a rise of nine units.(−2, −4)(3, 5)Run 5Rise 9xy
From (−2, −4) to (3, 5), x increases by 5 and y increases by 9.
m=y2-y1x2-x1m=5-(-4)3-(-2)=95y+4=95(x+2)

We used (-2,-4) as the known point. Using (3,5) gives y-5=95(x-3), which describes the same line.

Example: Keep the point visible in the equation

For the points (4,2) and (6,3), the slope is 3-26-4=12. Using (4,2) gives

y-2=12(x-4)

Leaving the equation in this form keeps the point and slope visible. If you want the y-intercept, you can rewrite it in slope-intercept form.

Write a vertical line as x equals a constant

If two distinct points have the same x-coordinate a, then x2-x1=0 and the slope is undefined. The equation of that vertical line is x=a. A horizontal line has slope zero, so point-slope form simplifies to y=y1.