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.
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.
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}}$

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:
- Make a note of the coordinate values of (x1, y1) and the value of m of the straight line.
- In the formula, $y-y_{1}=m(x-x_{1})$, substitute the values given.
- Simplify the equation to obtain the standard form of the equation.
Solved Examples
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
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
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
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
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
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
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
- A straight line is a curve such that every point on the line segment joining any two points on it lies on it.
- To determine a line we will need two coordinates to determine the two unknowns.
- 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$
- Thus the line of positive slope makes an acute angle with the parallel direction of the x-axis.
- Thus the line of negative slope makes an obtuse angle with the parallel direction of the x-axis in a counterclockwise direction.
- Thus the line of zero slope is parallel to the x-axis
- The point-slope form includes the slope of the straight line and a point on the line
- 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}$
- 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.
Type your answer and press Check.
Cheat sheet
| Idea | What to remember |
|---|---|
| Point-slope form | y − y₁ = m(x − x₁) |
| Slope from two points | m = (y₂ − y₁)/(x₂ − x₁) |
| Slope from angle | m = tan θ |
| Horizontal line | m = 0: y = y₁ |
| Vertical line | slope undefined: x = x₁ |
| Parallel / perpendicular | same m / m₁m₂ = −1 |
Quick quiz
Check yourself: point-slope form
5 quick questions. Tap an answer to see if you are right.
Point-slope form of slope 4 through (1, 2):
Subtract the point.
Slope through (0, 1) and (2, 7):
6 ÷ 2.
A line at 45° to the x-axis has slope:
tan 45° = 1.
y + 3 = 2(x − 5) passes through:
Signs flip from the equation.
Perpendicular to slope 2/3:
Negative reciprocal.
Answered 0 of 5.
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.
Recommended Worksheets
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.









