Find the equation of a line passing through two points or given slope and intercept.
Coordinates
Equation Results
Equation y = mx + cy = 2x
Slope (m)2.0000
Y-Intercept (c)0.0000
y = 2x
About this calculator
Equation of a Line
The standard equation of a line is y = mx + c, where 'm' is the slope (gradient) and 'c' is the y-intercept. Given two points, you can calculate 'm' as (y₂-y₁)/(x₂-x₁) and then solve for 'c'.
💡
Pro Tips
Vertical Lines: If x₁ = x₂, the slope is undefined and the equation is x = x₁.
Horizontal Lines: If y₁ = y₂, the slope is 0 and the equation is y = y₁.
Parallel Lines have the same slope.
!
Fun Facts
"Descartes introduced the coordinate system in 1637, linking algebra and geometry."
"Linear equations are the foundation of linear algebra."
"The shortest distance between two points is a straight line."