This line equation from two points calculator will help you write down the equation of a line passing through any pair of points. Scroll down to find an article explaining how to determine the slope-intercept linear equation as well as the standard form linear equation from any two points in 2D space. We will also teach you how to find the 3D line equation from two points!
Of course, we provide all the formulas in case you have to solve such a problem by hand. In such a case, don't forget to check your solution with Omni's line equation from two points calculator!
🙋 Check out our slope intercept form calculator if you're not yet familiar with this type of equation.
The linear equation from two points (x1, y1) and (x2, y2) describes the unique line that passes through these points. This equation can be in the standard form (Ax + By + C = 0) or in the slope-intercept form (y = ax + b). A unique line equation also exists for any two points in three-dimensional space.
In what follows, we discuss how to determine the line equation from two points — first in the slope-intercept form and then in the standard form. Then we will move on to 3D space.
To compute the equation of the line passing through points (x1, y1) and (x2, y2):
💡 Does the slope formula from Step 1 remind you of the rise over run formula? This is not an accident! Discover more with our rise over run calculator.
To compute the standard form equation of the line passing through (x1, y1) and (x2, y2):
The equation of the line passing through points (x1, y1, z1) and (x2, y2, z2) is:
(x, y, z) = v × t + point
See our direction of the vector calculator for more information on v here.
Explicitly, the 3D line equation from two points reads:
We can rewrite this as the system of equations for each coordinate:
Omni's line equation from two points calculator is really straightforward to use! Follow these steps:
Two point form formula is a way of writing down the equation of a line passing through two points. If the points are (x1, y1) and (x2, y2), then the two-point form reads:
This equation is y = 2x - 1. To arrive at this answer, we find the slope as follows:
Then we find the intercept as b = y1 - a × x1 = 1 - 2 × 1 = -1. So the equation reads y = a × x + b = 2x - 1, as claimed.