Find the equation of the line passing through two points and see the slope-intercept form or a vertical-line result.
Last updated: June 2026 | By Patchworkr Team
The two-point form uses two known points to build the equation of a line. First find the slope, then use one point to solve for the intercept. Vertical lines are handled separately because their slope is undefined.
Using the points (1, 3) and (3, 7), the line has slope 2 and intercept 1.
What if the two points are identical?
The calculator rejects identical points because there is no unique line through a single repeated point pair.
What happens when x1 equals x2?
The line is vertical, so the calculator returns x = constant instead of slope-intercept form.
Does the tool accept decimals?
Yes. Any finite real coordinate is accepted, including decimal and scientific notation values.
Why is a vertical line treated separately?
Because its slope is undefined, so y = mx + b does not describe it correctly.
Related Tools