This tool finds the equation of a line in the slope-intercept form (y = mx + b) given two coordinates on the Cartesian plane.
Calculated Slope (m):
1
Y-Intercept (b):
0
Equation of the Line:
The slope (m) represents the steepness of the line—how much y changes for every unit of x. The y-intercept (b) is the value where the line crosses the vertical y-axis (where x=0).
The slope-intercept form equation represents a linear relationship between two points on a coordinate plane, expressing the line in terms of its slope (m) and y-intercept (b).
Formula: m = (y₂ - y₁) / (x₂ - x₁) and b = y₁ - mx₁
m = (y₂ - y₁) / (x₂ - x₁)
b = y₁ - mx₁
Example inputs: Point A (2, 4) and Point B (4, 10).
If x₁ equals x₂, the slope is undefined, representing a vertical line (x = constant). This calculator will notify you if the line is vertical.
The y-intercept is the point where the line crosses the vertical y-axis, occurring when x = 0. It is denoted by 'b' in the equation y = mx + b.
© 2026 Hreflabs LLC. All rights reserved.
Made with ❤️ for everyone who loves accurate calculations