Point-slope form is one of the most direct ways to describe a straight line when you know its slope and at least one point on the line. Instead of first finding the y-intercept, you can substitute the known point immediately. This calculator supports both the standard classroom case—one point plus a slope—and the common two-point case where the slope must be calculated first.
How to use the Point Slope Form Calculator
If your problem gives a point and the slope, choose Point + slope. Enter x₁ and y₁ for the known point, then enter the slope m. The slope field accepts integers, decimals, and simple fractions such as 2, −1.5, or 3/4. The calculator writes the point-slope equation first, then derives slope-intercept and standard forms for the same line.
If your problem gives two points, choose Two points. Enter (x₁, y₁) and (x₂, y₂). The calculator first computes the slope using the change in y divided by the change in x. It then substitutes one of the points into point-slope form. The optional display control lets you choose the first or second point so you can see that different-looking point-slope equations can still describe exactly the same line.
All numeric inputs begin blank. Results stay at their neutral placeholders until enough valid information is entered. This prevents a default value from being mistaken for part of the problem.
Point-slope form formula
y − y₁ = m(x − x₁)In this equation, m is the slope and (x₁, y₁) is any known point on the line. The variables x and y represent an arbitrary point that also lies on the same line. The subscripts do not mean powers; x₁ and y₁ are simply the coordinates of the known point.
The form is especially convenient because it uses information you often already have. If a question says “write the equation of the line with slope 4 through (2, −3),” you do not need to find the y-intercept first. Direct substitution gives y − (−3) = 4(x − 2), which simplifies to y + 3 = 4(x − 2).
Why point-slope form works
The formula comes directly from the definition of slope. Take a fixed point (x₁, y₁) on a nonvertical line and any other point (x, y) on that same line. Because the slope between every pair of distinct points on a straight nonvertical line is constant,
m = (y − y₁)/(x − x₁)Multiplying both sides by x − x₁ gives y − y₁ = m(x − x₁). That is point-slope form. The equation therefore says something geometric: the vertical change from the known point equals the slope multiplied by the horizontal change from that point.
This derivation also explains the vertical-line exception. A vertical line has no finite slope because its horizontal change is zero. Dividing by x − x₁ would require division by zero, so the usual point-slope equation with finite m is not the correct representation.
Finding point-slope form from two points
When two points are given, first calculate the slope:
m = (y₂ − y₁)/(x₂ − x₁)Then substitute that slope and either point into y − y₁ = m(x − x₁). The order of subtraction matters only in the sense that the numerator and denominator must use the same point order. Reversing both differences leaves the slope unchanged:
(y₂ − y₁)/(x₂ − x₁) = (y₁ − y₂)/(x₁ − x₂)If the two entered points are identical, infinitely many lines pass through that single location, so the information is not enough to determine one unique line. If they have the same x-coordinate but different y-coordinates, they determine a vertical line x = constant.
Point-slope, slope-intercept, and standard form
A single nonvertical line can usually be written in several algebraically equivalent ways. Point-slope form emphasizes a known point and the slope. Slope-intercept form emphasizes the slope and y-intercept:
y = mx + bStarting from a known point, the intercept is b = y₁ − mx₁. Expanding point-slope form gives the same result. Standard form is commonly written as Ax + By = C. When the entered values can be represented exactly as rational numbers, this calculator clears denominators, reduces a common factor, and chooses a positive leading A when possible. That gives a clean integer-coefficient standard form rather than an arbitrary scaled copy.
There is no mathematical requirement that every textbook use exactly the same sign convention for standard form. Equations such as 2x − 3y = 7 and −2x + 3y = −7 describe the same line. The calculator normalizes the sign only to make the result easier to compare.
Fractions, decimals, and negative signs
Fractions are common in slope problems, so reducing everything immediately to a rounded decimal can hide useful exact structure. A slope of 2/3 is exactly 2/3; writing 0.6667 is only an approximation. The calculator therefore keeps an exact rational value whenever the inputs make that practical and uses the chosen decimal precision as supporting information.
Negative coordinates also create one of the most common notation traps. If x₁ = −4, then x − x₁ becomes x − (−4), which simplifies to x + 4. Likewise, if y₁ = −2, then y − y₁ becomes y + 2. The default formatting cleans these double negatives automatically, while the optional literal view can show the direct substitution.
Parentheses around x − x₁ matter. The slope multiplies the entire horizontal difference, not just x. For example, 3(x − 2) means 3x − 6, not 3x − 2.
Horizontal and vertical lines
A horizontal line has slope 0. Point-slope form becomes y − y₁ = 0(x − x₁), so the equation simplifies to y = y₁. A horizontal line is therefore completely valid in point-slope form even though the x-coordinate of the chosen point disappears after simplification.
A vertical line is different. If two distinct points have the same x-coordinate, then x₂ − x₁ = 0 and the slope formula has a zero denominator. The slope is undefined, not zero and not infinity. The correct equation is simply x = x₁. The calculator detects this case and labels it explicitly instead of forcing an invalid finite-slope equation.
Worked examples
Example 1: point and positive slope
Suppose the line has slope 3 and passes through (2, 5). Substitute m = 3, x₁ = 2, and y₁ = 5:
y − 5 = 3(x − 2)Expanding gives y − 5 = 3x − 6, so y = 3x − 1. An equivalent standard form is 3x − y = 1.
Example 2: negative coordinates and a fractional slope
Let the line pass through (−2, −3) with slope 1/2. Direct substitution gives y − (−3) = (1/2)[x − (−2)]. Cleaning the signs gives:
y + 3 = (1/2)(x + 2)Expanding produces y = (1/2)x − 2. Clearing the denominator gives the standard form x − 2y = 4.
Example 3: equation from two points
Use (2, 3) and (7, −9). The slope is:
m = (−9 − 3)/(7 − 2) = −12/5Using the first point, y − 3 = (−12/5)(x − 2). Using the second point, y + 9 = (−12/5)(x − 7). The two equations look different but simplify to the same line: y = (−12/5)x + 39/5.
Example 4: vertical line
The points (4, 1) and (4, 9) have the same x-coordinate. The denominator in the slope formula is 4 − 4 = 0, so the slope is undefined. The line equation is:
x = 4Trying to report m = 0 here would be a serious error: m = 0 describes a horizontal line, not a vertical one.
How to verify your line equation
A useful result should be easy to check. For a point-slope equation, first verify that the displayed slope matches the expected rise/run. Then substitute the known point into the equation. Both sides should agree. In two-point mode, test both original points in the slope-intercept or standard equation. If each point satisfies the equation, that is strong confirmation that the algebra is consistent.
You can also compare forms. Expanding the point-slope equation should produce the displayed slope-intercept form. Rearranging that equation should produce the displayed standard form. These are not three unrelated answers; they are three representations of the same geometric line.
Common point-slope form mistakes
Mixing point order in the slope formula. If you subtract y₂ − y₁ in the numerator, use x₂ − x₁ in the denominator. Mixing orders flips the sign incorrectly.
Dropping a negative sign. Subtracting a negative coordinate becomes addition. Writing x − (−3) as x − 3 changes the line.
Forgetting the parentheses. In m(x − x₁), the slope multiplies the entire difference.
Calling a vertical slope zero. Zero slope means horizontal. Vertical slope is undefined.
Using two identical points as if they determine one line. One distinct point does not fix a unique line without additional information such as slope.
Rounding too early. If the slope is an exact fraction, keep it exact through the algebra and round only a supporting decimal if needed.
Thinking point-slope form is unique. A line contains infinitely many points. Any point on that line can be used with the same slope, producing an equivalent point-slope equation.
When point-slope form is especially useful
Point-slope form is often the shortest route when a problem gives a rate of change and one observed value. It is also natural for tangent-line and secant-line work, because calculus and algebra problems frequently provide a slope at a particular point. In coordinate geometry, two points can be converted to slope first and then to point-slope form without needing to locate the y-intercept graphically.
Slope-intercept form is often more convenient when you want the y-intercept immediately or plan to graph from b. Standard form can be useful when integer coefficients are preferred or when comparing certain linear equations. The “best” form depends on what information the problem gives and what you need to do next.
Frequently asked questions
What is point-slope form?
For a nonvertical line, point-slope form is y − y₁ = m(x − x₁), where m is the slope and (x₁, y₁) is a known point on the line.
Can I use either of two points?
Yes. After finding the same slope, either point can be substituted into point-slope form. The resulting equations may look different before simplification but represent the same line.
How do I convert point-slope form to slope-intercept form?
Distribute the slope, then isolate y. Equivalently, calculate b = y₁ − mx₁ and write y = mx + b.
What happens if the slope is zero?
The line is horizontal. Point-slope form simplifies to y = y₁.
What happens if the slope is undefined?
A finite point-slope equation is not available. For two distinct points with the same x-coordinate, the line is vertical and its equation is x = constant.
Can the slope be a fraction?
Yes. Fractional slopes are often preferable to rounded decimals because they preserve exact values. The calculator accepts entries such as −3/5.
Are point-slope and slope-intercept forms different lines?
No. When converted correctly, they are algebraically equivalent descriptions of the same line.
Why does standard form sometimes look different from another answer key?
Multiplying every coefficient and constant by the same nonzero number gives an equivalent equation. This calculator reduces common integer factors and normalizes the leading sign for consistency.
Important note
This calculator is designed for straight-line equations in a Cartesian x-y plane. Point-slope form requires a finite slope, so vertical lines are handled separately as x = constant. Exact fraction output is preserved when the entered values can be represented rationally; decimal displays are supporting approximations and may be rounded to the precision you select.