📈 Slope Calculator
Enter the coordinates of two points to calculate the slope, line equation, distance between them, and angle of inclination.
Two Points
Your Result
Slope (m)
2
Line Equation
–
Distance
–
Angle
–
Y-Intercept
–
Advertisement
How the Slope Calculator Works
Slope measures how steep a line is — the ratio of the vertical change (rise) to the horizontal change (run) between two points on a line.
Formula
Slope: m = (y2 − y1) / (x2 − x1)
Y-Intercept: b = y1 − m × x1
Line Equation: y = mx + b
Distance: d = √[(x2 − x1)² + (y2 − y1)²]
Angle: θ = arctan(m)
Y-Intercept: b = y1 − m × x1
Line Equation: y = mx + b
Distance: d = √[(x2 − x1)² + (y2 − y1)²]
Angle: θ = arctan(m)
Frequently Asked Questions
What does a slope of zero mean?
A slope of zero means the line is perfectly horizontal — there is no change in y as x changes.
What happens when the line is vertical?
When x1 equals x2, the line is vertical and the slope is undefined because it would require dividing by zero.
How is the angle of a line calculated?
The angle of inclination is found by taking the arctangent of the slope, converted from radians to degrees.