IP331.com | Online Tools
Home›Geometry›Line Equation from Two Points Calculator

Line Equation from Two Points Calculator

Find the equation of a line through two coordinate points

Line Equation from Two Points Formula

m = (y₂-y₁)/(x₂-x₁), then y = mx + b

A line through two points is determined by its slope and intercept. The slope comes from rise over run, and substituting either point into y=mx+b gives the y-intercept.

⚠If x1 equals x2, the line is vertical and cannot be written as y=mx+b.

How the Two-Point Line Equation Works

Two distinct points determine one line. The calculator first finds slope, then uses one point to solve for the intercept or reports a vertical line.

Two Points

A unique nonvertical line passes through two distinct points.

Slope

Rise over run gives the line direction.

Intercept

Substitution finds where the line crosses the y-axis.

Vertical Case

Equal x values create x=constant.

💡 Example: For (1,2) and (3,6), m=2 and b=0, so y=2x.

Applications of Line Equations from Two Points

Graphing LinesLinear ModelsCoordinate GeometryAnalytic Proofs

Frequently Asked Questions

What is a line equation from two points calculator?▼
It finds the equation of the line passing through two coordinate points.
What formula finds a line from two points?▼
First find slope m=(y2-y1)/(x2-x1), then use y=mx+b to find b.
How do I use this calculator?▼
Enter two points and click Calculate to get the line equation.
What if the line is vertical?▼
If x1=x2, the line is vertical and its equation is x=x1.
Where is a two-point line equation used?▼
It is used in coordinate geometry, graphing, linear modeling, and analytic proofs.

More Geometry Tools

Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.

© 2026 IP331.com - Free Online Tools. All rights reserved.

Privacy Policy | Cookie Policy | Terms of Use | Disclaimer