Our online Line Equation from Two Points Calculator quickly determines the slope, y-intercept, and the full linear equation (y = mx + b) given any two coordinates. Simplify your geometry tasks and instantly find the precise straight-line equation for your data or problems. Ideal for students, educators, and professionals.
Formula:
To determine the equation of a straight line from two given points (x1, y1) and (x2, y2), we follow these steps:
- Step 1: Calculate the Slope (m)
m = (y2 - y1) / (x2 - x1) - Step 2: Calculate the Y-intercept (b)
Using one of the points (x1, y1) and the calculated slope (m):
b = y1 - m * x1 - Step 3: Form the Line Equation
The general form of a linear equation is:
y = mx + b
Where:
- x1, y1: Coordinates of the first point
- x2, y2: Coordinates of the second point
- m: The slope of the line, indicating its steepness and direction
- b: The y-intercept of the line, where the line crosses the Y-axis