Slope, angle, and line equation from any two points — instantly.
Enter Two Points
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Results
Line Equations
Formulas
The slope calculator finds the slope (rise over run), inclination angle, y-intercept, x-intercept, distance, and midpoint for any two coordinate points. It instantly generates the line equation in slope-intercept form (y = mx + b), standard form (Ax + By = C), and point-slope form — essential for algebra, geometry, physics, and engineering problems.
Slope (m) equals rise divided by run: m = (y₂ − y₁) / (x₂ − x₁). Subtract the y-coordinates to get the rise, subtract the x-coordinates to get the run, then divide. A positive slope goes up left-to-right; a negative slope goes down.
When both points share the same x-coordinate (a vertical line), the run is zero and division by zero is undefined. Vertical lines have no slope value — they are expressed simply as x = c, where c is the shared x-coordinate.
Slope-intercept form (y = mx + b) explicitly shows the slope m and y-intercept b. Standard form (Ax + By = C) uses integers and is preferred when working with systems of equations. Both describe the same line — the calculator provides all three common forms.
The angle θ a line makes with the positive x-axis satisfies tan(θ) = m, so θ = arctan(m). A slope of 1 gives a 45° angle; steeper lines approach 90°. Horizontal lines have 0° and vertical lines have 90° (undefined slope).