Formula and Method for the Point-Slope Form Calculator
Point-slope form writes the equation of a straight line as y - y₁ = m(x - x₁), where m is the slope and (x₁, y₁) is any known point on the line. It is the most direct way to write a line's equation once you know a slope and a single point — no need to solve for the y-intercept first. This calculator takes two points, computes the slope between them, and writes the resulting equation in point-slope form, slope-intercept form, and standard form.
How the calculation works
Enter the coordinates of two points, (x₁, y₁) and (x₂, y₂). The calculator first finds the slope with m = (y₂ - y₁) / (x₂ - x₁), then substitutes m and the first point into the point-slope formula y - y₁ = m(x - x₁). Distributing the slope and solving for y gives the slope-intercept form y = mx + b, where b = y₁ - m·x₁. Rearranging that equation into Ax + By = C form (with the x-coefficient made positive) gives the standard form. If the two points share the same x-coordinate, the line is vertical, the slope is undefined (the formula would divide by zero), and the calculator reports the line as x = x₁ instead.
Common mistakes
- Mixing up which point is (x₁, y₁): either point can be used as the base point — the slope and the final simplified equation are the same either way, but the unsimplified point-slope expression will look different depending on which point you pick.
- Dropping the sign on negative coordinates: y - (-3) simplifies to y + 3, and x - (-1) simplifies to x + 1. Forgetting to flip the sign is one of the most common point-slope errors.
- Dividing by zero: if x₁ = x₂, the slope formula divides by zero — the line is vertical and cannot be written in point-slope or slope-intercept form.
Real-world applications
- Algebra and geometry homework that asks for a line's equation given a point and a slope, or two points on a graph.
- Physics and engineering, where a constant rate of change (speed, cost per unit, growth rate) plus one known data point defines a linear model.
- Fitting a straight line between two measured data points, such as two readings on a graph or two rows in a small dataset.
- Checking work: converting between point-slope, slope-intercept, and standard form is a common way to verify that an equation was derived correctly.