Point-Slope Calculator
Enter a point and a slope to write the line in point-slope form, then see it converted to y = mx + b.
Inputs
Point-slope form
y − 3 = 4(x − 2)
Written with the point and slope you entered. The other forms describe the same line.
- Slope-intercept form
- y = 4x − 5
- Multiplied out
- y − 3 = 4x − 8
- Slope (m)
- 4
- y-intercept (b)
- −5
- x-intercept
- 1.25
Drag to pan. Ctrl + scroll, pinch or + / - to zoom.
Step-by-step solution
Start with the point-slope form.
y − y₁ = m(x − x₁)
Substitute m = 4, x₁ = 2 and y₁ = 3.
y − 3 = 4(x − 2)
Multiply out the brackets.
y − 3 = 4x − 8
Add 3 to both sides to isolate y.
y = 4x − 8 + 3
Combine the constants.
y = 4x − 5
The point-slope formula
y − y₁ = m(x − x₁) point-slope form
- x, y
- the variables: the coordinates of any point on the line
- x₁, y₁
- the coordinates of the one point you know
- m
- the slope of the line
The formula is the slope formula rearranged. Take the known point (x₁, y₁) and any other point (x, y) on the line. Their slope must equal m:
(y − y₁) / (x − x₁) = m
Multiply both sides by x − x₁ and you have point-slope form. It is popular because you can write it down straight from a point and a slope, without first finding the y-intercept.
Worked example
Write the line through (−2, 5) with slope −3.
y − 5 = −3(x − (−2))
y − 5 = −3(x + 2)
y − 5 = −3x − 6
y = −3x − 1
Check by substituting the original point into the final equation: −3(−2) − 1 = 6 − 1 = 5, which is the y-value we started with. The "Negative point" example loads these numbers.
The y-intercept is −1, so the line crosses the y-axis at (0, −1). It crosses the x-axis where −3x − 1 = 0, at x = −1/3.
Writing negative values correctly
| Point and slope | Point-slope form | What changed |
|---|---|---|
| (2, 3), m = 4 | y − 3 = 4(x − 2) | Positive coordinates stay as subtractions |
| (−2, 5), m = −3 | y − 5 = −3(x + 2) | Negative x₁ turns the minus into a plus |
| (4, −1), m = 1.5 | y + 1 = 1.5(x − 4) | Negative y₁ does the same on the left |
A negative slope is not a sign change in the brackets. It stays in front of the bracket, as in −3(x + 2). If you know two points rather than a point and a slope, the slope calculator gives you m, and the line equation calculator goes straight to the finished equation.
Point-slope and slope-intercept form side by side
The same line written two ways. Point-slope form keeps the point you started with visible, and slope-intercept form shows where the line crosses the y-axis. A slope of 0 gives a horizontal line, where y is the same everywhere.
| Point | Slope | Point-slope form | Slope-intercept form |
|---|---|---|---|
| (2, 3) | 4 | y − 3 = 4(x − 2) | y = 4x − 5 |
| (0, 0) | 1 | y = x | y = x |
| (1, 5) | −2 | y − 5 = −2(x − 1) | y = −2x + 7 |
| (3, 1) | 1/2 | y − 1 = 0.5(x − 3) | y = 0.5x − 0.5 |
| (−2, 5) | −3/4 | y − 5 = −0.75(x + 2) | y = −0.75x + 3.5 |
| (4, 7) | 0 | y − 7 = 0 | y = 7 |
Frequently asked questions
Can I enter the slope as a fraction?
Yes. Type it with a slash, such as 3/4 or -7/2. Whole numbers and decimals work too. A fraction stays exact, so a slope of 2/3 appears as (2/3) in the equation instead of a rounded 0.6667.
Why does the equation show x + 2 instead of x − (−2)?
Subtracting a negative number is the same as adding its positive. With x₁ = −2, the factor x − x₁ is x − (−2), which simplifies to x + 2. The calculator writes the simplified form, and the step list shows the substitution before simplifying.
Does it matter which point on the line I use?
The equation looks different, but every point on the line gives an equivalent equation. They all simplify to the same y = mx + b. If you have two points, the line equation calculator finds the slope for you and shows all three forms.
What about a vertical line?
Point-slope form needs a slope, and a vertical line does not have one, so it cannot be written this way. It is written as x = c instead. The line equation calculator handles vertical lines.
What happens when the slope is zero?
The term m(x − x₁) disappears and the equation becomes y − y₁ = 0, which means y = y₁. The line is horizontal, and it crosses the x-axis nowhere unless it is the x-axis itself.
Where do I get the slope if I only have two points?
Use the slope calculator. It returns the slope as a fraction and a decimal, and you can paste either into the slope field here.