Formula

Point-slope form

Also written: y minus y1 equals m times x minus x1 · point slope equation

y−y1=m(x−x1)y - y_1 = m(x - x_1)

Point-slope form writes the equation of a line from one point on it and its slope, with no need to find the y-intercept first.

What each part means

mm
the slope
(x1,y1)(x_1, y_1)
any known point on the line
(x,y)(x, y)
a general point on the line — these stay as letters

Point-slope form calculator

Describe a line by a slope and a point, by two points, or by its equation, and see it written as y−y1=m(x−x1)y - y_1 = m(x - x_1), then expanded, checked and graphed. Choose how the line is given and fill in the boxes that choice uses. Whole numbers, decimals and fractions all work.

The steps below write the line with slope 3 through (2, 5) in point-slope form, y−y1=m(x−x1)y - y_1 = m(x - x_1). Turn on JavaScript to try your own line.

Worked example: m=3, through (2,5)

Point-slope form: y − 5 = 3(x − 2), with slope 3 through (2, 5). In slope-intercept form: y = 3x − 1.

Graph of y = 3x − 1 A straight line that rises from left to right with slope 3. It crosses the y-axis at (0, −1) and the x-axis at (1/3, 0). Marked points: (2, 5). −4−2246−2246xy (2, 5) (1/3, 0) (0, −1)
  • y = 3x − 1
Graph of y = 3x − 1

Identify the slope and the point

Keep each sign with its number.

m=3x1=2y1=5

Substitute into point-slope form

Put m=3, x1=2 and y1=5 into the form.

y−y1=m(x−x1)
y−5=3(x−2)

Expand to slope-intercept form

Distribute m=3 across the brackets.

y−5=3x−6

Add 5 to both sides to get y alone.

y=3x−1

Check

Put the point back into the slope-intercept form.

At x=2:

y=3(2)−1=6−1=5

The same line in other forms

Standard form, with whole-number coefficients and A not negative:

3x−y=1

Intercepts and graph

Set y=0 to find where the line crosses the x-axis.

3x=1x=13

Set x=0 to find where it crosses the y-axis.

−y=1y=−1

The line crosses the x-axis at (13,0) and the y-axis at (0,−1).

A straight line that rises from left to right with slope 3. It crosses the y-axis at (0, −1) and the x-axis at (1/3, 0). Marked points: (2, 5).

Runs on your device: nothing you type is sent or saved. Want the reasoning behind each step? Read the point-slope form lesson, or see how to write the equation of a line from two points.

When to use it

You know a point and a slope and want the equation immediately. It is the fastest route when the given point is not the y-intercept.

It is the slope formula rearranged

Not a new fact — the slope formula with the denominator cleared.

m=y−y1x−x1m = \frac{y - y_1}{x - x_1}

Multiply both sides by x−x1x - x_1:

y−y1=m(x−x1)y - y_1 = m(x - x_1)

That is the whole derivation. Anything true of one is true of the other.

Why the subscripts matter

x1x_1 and y1y_1 are numbers you substitute. Plain xx and yy are variables that stay as letters, because they stand for every point on the line at once.

Substituting for all four is the most common error here, and it collapses the equation to a statement about one point rather than a line.

Worked examples

Write the line through (2,5)(2, 5) with slope 33.

y−5=3(x−2)y - 5 = 3(x - 2)

That is a complete answer. Expanding gives slope-intercept form:

y=3x−1y = 3x - 1

Write the line through (−4,1)(-4, 1) with slope −12-\tfrac{1}{2}.

Subtracting a negative becomes addition:

y−1=−12(x+4)y - 1 = -\tfrac{1}{2}(x + 4)

Watch the signs

The form subtracts both coordinates. A point at (−4,1)(-4, 1) gives x−(−4)x - (-4), which is x+4x + 4. Negative coordinates flip the sign inside the parentheses, and that is where most slips happen — see point-slope form.

Lessons that teach this

Related