Find slope, angle, and line equation from two points.
Last updated: June 2026 | By Patchworkr Team
Point 1 x is required.
Gradient is the same idea as slope in coordinate geometry. It measures how much y changes for each unit of x.
The formula is m = (y2 - y1) / (x2 - x1). If x2 - x1 = 0, the line is vertical and the slope is undefined.
For points (2, 3) and (5, 9), rise = 6 and run = 3.
What if the two x-values are equal?
The line is vertical and the slope is undefined.
Can gradient be negative?
Yes. A negative gradient means the line falls from left to right.
Does the angle match the slope?
Yes. The angle is arctan(slope) measured in degrees.
Can blank input be used?
No. Blank input is treated as missing so accidental zero values do not slip through.
Related Tools
Calculate line intersection.
Calculate regression line.
Calculate line equation.
Calculate plane intersection.
Calculate parallel lines.
Calculate perpendicular lines.