Slope Calculator
Compute the slope, angle and line equation from two points.
Input Data
X1
Y1
X2
Y2
Degrees or radians.
Results
Slope m.
1.5
Angle of the line.
56.3099
Equation of the line.
y = 1.5x
Explanatory note about the result.
斜率 m = 1.5
At a glance:m = (y2−y1)/(x2−x1); angle = atan(m); equation y−y1 = m(x−x1). Complements distance-formula and coordinates.
Formula
m = (y2−y1)/(x2−x1).
θ = atan(m).
How to Use
- Enter two points.
- The tool returns slope, angle and equation.
Case Studies
(0,0) to (4,2)
m = 0.5; θ ≈ 26.57°.
FAQ
Vertical line?
Slope is undefined (x2=x1); the line is vertical.
Related Tools
References
Content review: Calculatorism Science Team. Results are for reference only; please refer to the relevant authorities for the official figures.