Slope Calculator | Find Line Equation from Two Points
Calculate the slope (m), y-intercept, x-intercept, and angle of inclination. Generate line equations in slope-intercept, point-slope, and standard forms.
Point 1 (P1)
Point 2 (P2)
Solved Slope (Gradient m)
POSITIVE SLOPE2
y-Intercept (b)
0
x-Intercept
0
Inclination Angle
63.4349°(1.107149 rad)
Change in Y (Rise)
8
Change in X (Run)
4
2D Cartesian Graph Plot
Solved Line Equation Formats
Slope-Intercept Form
y = 2x
Format: y = mx + b
Point-Slope Form
y - 2 = 2(x - 1)
Format: y - y1 = m(x - x1)
Standard Form Equation
2x - y = 0
Format: Ax + By + C = 0
Step-by-Step Mathematical Solution
1. Find Change in Y (Rise) and Change in X (Run):
Rise (Δy) = y2 - y1 = 10 - 2 = 8
Run (Δx) = x2 - x1 = 5 - 1 = 4
2. Calculate Slope (m):
m = Δy / Δx = 8 / 4 = 2
3. Solve for y-Intercept (b):
b = y1 - m * x1 = 2 - (2 * 1) = 0
4. Build Slope-Intercept equation:
y = mx + b = (2)x + (0) = y = 2x