Home » Math Theory » Algebra » Point-Slope Form

Point-Slope Form

Quick answer

The point-slope form of a line through (x₁, y₁) with slope m is y − y₁ = m(x − x₁). Use it whenever you know one point and the slope, then rearrange to slope-intercept or general form.

Example: m = 3 through (−1, 5): y − 5 = 3(x + 1), so 3x − y + 8 = 0

Reviewed by the Helping with Math Team · Updated October 23, 2026

Related: For lines written as y = mx + b, see slope-intercept form.

Related: For rise over run and the slope formula, see slope of a line.

What is a straight line?

A straight line is a curve such that every point on the line segment joining any two points on it lies on it.

Let ax + by + c = 0 be a first degree equation in x, y where a, b, c are constants. Let P (x1, y1) and Q(x2, y2) be any point on the curve represented by ax+ by + c = 0. Then,

ax1 + by1 + c = 0 and ax2 + by2 + c = 0

When we say that the first degree equation in x and y, i.e. ax + by + c = 0 represents a line, it means that all points (x, y) satisfying ax + by + c = 0 lie along a line. Thus, a line is also defined as the locus of a point satisfying the condition ax + by + c = 0, where a, b, c are constants.

It should be noted that there are only two unknowns in the equation of a straight line because the equation of every straight line can be put in the form ax + by + c = 0, where a and b are two unknowns. x and y are not unknowns. In fact, these are the coordinates of any point on the line and are known as current coordinates. Thus, to determine a line we will need two coordinates to determine the two unknowns.

At a glance: y − y₁ = m(x − x₁); m = (y₂ − y₁)/(x₂ − x₁); m = tan θ; perpendicular: −1/my − y₁ = m(x − x₁)m = (y₂ − y₁)/(x₂ − x₁)m = tan θperpendicular: −1/m
At a glance: the key ideas for point-slope form. The green card is the main rule.

Try it: point-slope form

Move the point and change the slope. The line pivots around your point and the equation is shown in point-slope and slope-intercept form.

Point-slope form builder
1.5
Line through a draggable point with a given slope

Drag the gold point to any grid point and set the slope. The point-slope equation and its slope-intercept form update together.

Slope of a Line

The trigonometrical tangent of the angle that a line makes with the positive direction of the x-axis in a counterclockwise sense is called the slope or the gradient of a line.

The slope of a line is generally denoted by m. Thus m = $\tan \Theta$

Since a line parallel to the x-axis makes an angle of 0° with the x-axis, therefore, its slope is tan 0° = 0

A line parallel to the y-axis, i.e. a line that is perpendicular to the x-axis makes an angle of 90° with the x-axis, so its slope is tan $\frac{\pi }{2}$ = ∞. Also, the slope of a line equally inclined with axes is 1 or -1 as it makes an angle of 45° or 135° with the x-axis.

The angle of inclination of a line with the positive direction of the x-axis in a counterclockwise sense always lies between 0° and 180°.

Let us now understand the slop using some examples.

Example

What can be said regarding a line is its slope is a) positive b) zero c) negative?

Solution

Let $\Theta$ be the angle of inclination of the given line with the positive direction of the x-axis in a counterclockwise sense. Then, its slope is given by m = tan $\Theta$.

a) If the slope of the line is positive, then,

m = tan $\Theta$ > 0 ⇒ $\Theta$ lies between 0° and 90°

This means that $\Theta$ is an acute angle.

Thus the line of positive slope makes an acute angle with the parallel direction of the x-axis.

b) If the slope of a line is zero, then,

m = tan $\Theta$ = 0 ⇒ $\Theta$ = 0°

This means that either the line is x-axis or it is parallel to the x-axis.

Thus the line of zero slope is parallel to the x-axis.

c) If the slope of the line is negative, then,

m = tan $\Theta$ < 0 ⇒ $\Theta$ lies between 90° and 180°

This means that $\Theta$ is an obtuse angle.

Thus the line of negative slope makes an obtuse angle with the parallel direction of the x-axis in a counterclockwise direction.

Slope of a line in Terms of Coordinates of any Two Points on it

What would be the slope of a line in terms of coordinates of any two points on it? Let us find out.

Let P(x1, y1) and Q(x2, y2) be two points on a line making an angle q with the positive direction of the x-axis. Draw Pl, QM perpendicular on x-axis and PN_QN on QM. Then,

PN = LM = OM − OL = x2 − x1 and QN = QM − NM = QM − PL = y2 − y1

In △ PQN, we have,

tan $\Theta =\frac{QN}{PN}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$

Slope of a Line, illustration

Thus, if (x1, y1) and (x2, y2) are coordinates of any two points on a line then its slope is given by

m = $\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{Difference\, in\, ordinates}{Difference\, in \, abscissae}$

Let us understand it through an example.

Example

Find the slope of a line that passes through the points (3, 2) and (-1, 5)

Solution

We know that the slope of a line passing through two points (x1, y1) and (x2, y2) is given by

m = $\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$

Here, y1 = 2, y2 = 5, x1 = 3, x2 = -1

Substituting these values in the given equation, we have

m = $\frac{5-2}{-1-3}=\frac{-3}{4}$

Hence, the slope of a line that passes through the points (3, 2) and (-1, 5) is $\frac{-3}{4}$.

Point-Slope Form

The equation of a straight line can be written in different forms depending on the data give. One of such forms is the point-slope form. The point-slope form includes the slope of the straight line and a point on the line as the name suggests. There can be infinite lines with a given slope, but when we specify that the line passes through a given point then we get a unique straight line. Thus, only a point on the line and its slope are required to represent a straight line in the point-slope form. Let us now understand what is a point-slope form?

The theorem of the point-slope form states that:

The equation of a line that passes through the point (x1, y1) and has the slope “m” is given by:

y − y1 = m (x − x1)

How did we reach upon this formula? Let us check out.

Let the straight line passing through the point Q(x1, y1) and let P (x, y) be any point on the line.

Then, we know that the Slope of a line = $\frac{y-y_{1}}{x-x_{1}}$

But, we also know that the slope of the line is “m”

Therefore,

m = $\frac{y-y_{1}}{x-x_{1}}$

⇒ $y-y_{1}=m(x-x_{1})$

Hence, $y-y_{1}=m(x-x_{1})$ is the required equation of the line.

Solving Point-Slope Form Equation

The following steps should be followed for finding the equation of a given line of for solving the point-slope form:

  1. Make a note of the coordinate values of (x1, y1) and the value of m of the straight line.
  2. In the formula, $y-y_{1}=m(x-x_{1})$, substitute the values given.
  3. Simplify the equation to obtain the standard form of the equation.

Solved Examples

Example 1

Find the equation of a line passing through (2, -3) and inclined at an angle of 135° with the positive direction of the x-axis.

Solution

To find the equation first we need to find the slope of the line using the given inclination.

We have been given that

m = Slope of the line = tan 135°

Now we can write tan 135° as tan (90° + 45°)

Further, tan (90° + 45°) = -cot 45° = -1 ( because tan (90° + θ) = −cot θ and cot 45° = 1)

Also, we have been given that x1 = 2 and y1 = -3

Now, we know that the equation of the line in point-slope forms I

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

$y-(-3)=-1(x-2)$

y + 3 = -x + 2

⇒ x + y +1 = 0

Hence, the equation of a line passing through (2, -3) and inclined at an angle of 135° with the positive direction of the x-axis will be x + y +1 = 0

Example 2

Determine the equation of the line through the point (4, -3) and parallel to the x-axis.

Solution

We have been given that the straight line passes through the point ( 4, -3 ).

This means we have been given that x1 = 4 and y1 = -3

Also, the straight line is parallel to the x-axis.

Now, recall that we have learned that the line of zero slope is parallel to the x-axis. This means that is a line is parallel to the axis if the slope of a line is zero, or,

m = tan $\Theta$ = 0 ⇒ $\Theta$ = 0°

So, we have m = 0

We also know that,

Now, we know that the equation of the line in point-slope forms I

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

$y-(-3)=0(x-4)$

⇒ y + 3 = 0

Hence, the equation of the line through the point (4, -3) and parallel to the x-axis will be given by y + 3 = 0

Example 3

Find the equation of a straight line passing through (-9, 5) and inclined at an angle of 120° with the positive direction of the x-axis.

Solution

To find the equation first we need to find the slope of the line using the given inclination.

We have been given that slope of the line (m) = tan 120°

Now we can write tan 120° as tan (90° + 30°) = −cot 30° = −√3. ( because tan (90° + θ) = −cot θ and cot 30° = √3)

Also, we have been given that x1 = -9 and y1 = 5

Now, we know that the equation of the line in point-slope forms I

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

Therefore, the required equation of the straight line is

$y-5=-\sqrt{3}(x-(-9))$

⇒ y − 5 = -√3 ( x+ 9 )

⇒ y − 5 = -√3x − 9√3

⇒ y + √3x + 9√3 − 5 = 0

Hence, the equation of a straight line passing through (-9, 5) and inclined at an angle of 120° with the positive direction of the x-axis will be y + √3x + 9√3 − 5 = 0

Example 4

Find the equation of the straight line with slope 3 and passing through (-1, 5).

Solution

We have been given that the slope of the line is 3 or m = 3 and the line passes through (-1, 5),

We have also been given that (x1, y1) = (-1, 5). This means that x1 = -1 and y1 = 5

Now, we know that the equation of the line in point-slope forms I

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

Therefore, the required equation of the straight line is

$y-5=3(x-(-1))$

y − 5 = 3 ( x + 1 )

y − 5 = 3x + 3

⇒ 3x − y + 8 = 0

Hence, the equation of the straight line with slope 3 and passing through (-1, 5) will be given by 3x − y + 8 = 0

Example 5

Find the equation of the straight line with slope -2 and passing through (7, -4).

Solution

We have been given that the slope of the line is −2, or m = −2 and the line passes through ( 7, -4 ),

We have also been given that (x1, y1) = ( 7, -4) . This means that x1 = 7 and y1 = -4

Now, we know that the equation of the line in point-slope form is

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

Therefore, the required equation of the straight line is

$y-(-4)=-2(x-7)$

y + 4 = -2x + 14

⇒ 2x + y − 10 = 0

Hence, the equation of the straight line with slope -2 and passing through (7, -4) is 2x + y − 10 = 0

Example 6

Find the equation of the perpendicular bisector of the line segment joining the points A (2, 3) and B (6, -5 ).

Solution

To find the equation first we need to find the slope of the line

Recall that if (x1, y1) and (x2, y2) are coordinates of any two points on a line then its slope is given by

m = $\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$

We have been given that x1 = 2 and y1 = 3. Also x2 = 6 and y2 = − 5

Substituting these values in the above equation we will get

m = $\frac{-5-3}{6-2}=\frac{-8}{4}=-2$

Now, we know that the slope of a line perpendicular to the line AB will be given by $\frac{-1}{m}$.

Therefore, we have

Slope of the line = $\frac{1}{2}$

Now, let P be the mid-point of AB. Then the coordinates of P will be given by

$(\frac{2+6}{2},\frac{3-5}{2})=( 4, -1 )$

Since now we have one point as well as the slope of the line, we can use the point-slope form to find the equation of the line.

We know that the equation of the line in point-slope form is

Substituting the given values in the above equation, we have

Therefore, the required equation of the straight line is

Use $y-y_{1}=m(x-x_{1})$ with m = $\frac{1}{2}$ and the midpoint (4, −1).

$y+1=\frac{1}{2}(x-4)$

⇒ 2 ( y + 1 ) = 1 ( x − 4 )

⇒ 2y + 2 = x − 4

⇒ x − 2y − 6 = 0

Hence, the equation of the perpendicular bisector of the line segment joining the points A (2, 3) and B (6, -5 ) will be given by x − 2y − 6 = 0

Example 7

A line perpendicular to the line segment joining the points (1, 0) and (2, 3) divides it in the ratio 1:2. Find the equation of the line.

Solution

We have been given that the points are(1, 0) and (2, 3) and the line perpendicular to the line segment divides it in the ratio of 1 : 2.

Let M divide the join of A(1,0) and B(2,3) in the ratio of 1:2

Then, the point M is $(\frac{1\times 2+2\times 1}{1+2},\frac{1\times 3+2\times 0}{1+2})$.

Hence, M= $(\frac{4}{3},1)$

Slope of the line AB= $\frac{3-0}{2-1}$ = 3

Let L be the required line. Then, the slope of L= $\frac{-1}{3}$ and it passes through M.

Now, let L be the required line. we have been given that L is perpendicular to AB.

Therefore,

Slope of L= $\frac{-1}{3}$ and it passes through M $(\frac{4}{3},1)$

Since now we have one point as well as the slope of the line, we can use the point-slope form to find the equation of the line.

We know that the equation of the line in point-slope form is

$y-y_{1}=m(x-x_{1})$

Substituting the given values in the above equation, we have

Therefore, the required equation of the straight line is

$y-1=\frac{-1}{3}(x-\frac{4}{3})$

9 ( y − 1 ) = -1 ( 3x − 4 )

⇒ 9y − 9 = -3x + 4

⇒ 3x + 9y − 13 = 0

Hence, the equation of the line that is perpendicular to the line segment joining the points (1, 0) and ( 2, 3 ) and divides it in the ratio 1:2 will be given by 3x + 9y − 13 = 0

Remember

  1. A straight line is a curve such that every point on the line segment joining any two points on it lies on it.
  2. To determine a line we will need two coordinates to determine the two unknowns.
  3. The trigonometrical tangent of the angle that a line makes with the positive direction of the x-axis in a counterclockwise sense is called the slope or the gradient of a line.
  4. The slope of a line is generally denoted by m. Thus m = tan$\Theta$
  5. Thus the line of positive slope makes an acute angle with the parallel direction of the x-axis.
  6. Thus the line of negative slope makes an obtuse angle with the parallel direction of the x-axis in a counterclockwise direction.
  7. Thus the line of zero slope is parallel to the x-axis
  8. The point-slope form includes the slope of the straight line and a point on the line
  9. Thus, if (x1, y1) and (x2, y2) are coordinates of any two points on a line then its slope is given by m = $\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{Difference\, in\, ordinates}{Difference\, in \, abscissae}$
  10. The equation of a line that passes through the point (x1, y1) and has the slope “m” is given by: y − y1 = m (x − x1)

Worked examples

Example 1

Point and slope. Write the line with slope 2 through (3, −1).

Solution

y + 1 = 2(x − 3), so y = 2x − 7.

Example 2

Two points. Write the line through (1, 2) and (4, 11).

Solution

m = 9 ÷ 3 = 3; y − 2 = 3(x − 1), so y = 3x − 1.

Example 3

Perpendicular line. Write the line through (2, 5) perpendicular to y = −½x + 4.

Solution

m = 2; y − 5 = 2(x − 2), so y = 2x + 1.

Common mistakes

  • Mistake: Writing y − y₁ = m(x + x₁) for a positive x₁. Fix: Subtract the point: (2, 5) gives y − 5 = m(x − 2).
  • Mistake: Forgetting a double negative: point (−3, 4) as y − 4 = m(x − 3). Fix: x − (−3) = x + 3.
  • Mistake: Swapping the order of subtraction in the slope. Fix: Use (y₂ − y₁)/(x₂ − x₁) with the same point first in both.
  • Mistake: Using the same slope for a perpendicular line. Fix: Perpendicular slopes multiply to −1: use −1/m.

Practice generator

Every question is made at random. Get several right in a row to build your streak.

Practice generatorStreak 0Best 0

Type your answer and press Check.

Type a number or a fraction.

Cheat sheet

Point-Slope Form cheat sheet
IdeaWhat to remember
Point-slope formy − y₁ = m(x − x₁)
Slope from two pointsm = (y₂ − y₁)/(x₂ − x₁)
Slope from anglem = tan θ
Horizontal linem = 0: y = y₁
Vertical lineslope undefined: x = x₁
Parallel / perpendicularsame m / m₁m₂ = −1

Quick quiz

Check yourself: point-slope form
5 quick questions. Tap an answer to see if you are right.

  1. Point-slope form of slope 4 through (1, 2):

  2. Slope through (0, 1) and (2, 7):

  3. A line at 45° to the x-axis has slope:

  4. y + 3 = 2(x − 5) passes through:

  5. Perpendicular to slope 2/3:

Answered 0 of 5.

Each answer shows a short explanation. Press Try again to reset the quiz.

Point-Slope Form FAQs

What is point-slope form?

It is the equation y − y₁ = m(x − x₁) of a line with slope m passing through the point (x₁, y₁).

How do you write an equation in point-slope form?

Substitute the slope for m and the point for x₁ and y₁. For slope 3 through (−1, 5): y − 5 = 3(x + 1).

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

Distribute the slope and add y₁ to both sides. y − 5 = 3(x + 1) becomes y = 3x + 8.

Can I use point-slope form with two points?

Yes. First find the slope from the two points, then use either point in the formula.

More practice: Dot Plots/Line Plots with Fractional Units (Snacks and Beverages Themed) Math Worksheets, Line Plots (Logistics Themed) Worksheets and Points and Lines (Stationery Themed) Worksheets.

Browse All Worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Point-Slope Form". Helping with Math. Accessed on November 18, 2026. https://helpingwithmath.com/point-slope-form/.

  • "Point-Slope Form". Helping with Math, https://helpingwithmath.com/point-slope-form/. Accessed 18 November, 2026.

  • Point-Slope Form. Helping with Math. Retrieved from https://helpingwithmath.com/point-slope-form/.