A slope calculator computes the slope (m) of a line connecting two points, the straight-line distance between those points, and the equation of the line in slope-intercept form (y = mx + b).
About this calculator
A slope calculator computes the slope (m) of a line connecting two points, the straight-line distance between those points, and the equation of the line in slope-intercept form (y = mx + b). Slope measures the steepness and direction of a line.
Slope has practical applications in construction (ramp gradients), geography (hill gradients), physics (velocity-time graphs), economics (marginal rates), and data analysis (linear regression).
Common uses
- Find the slope between two data points in statistics
- Calculate the gradient of a road or ramp for construction
- Determine the equation of a line through two known points
- Find the angle of inclination from slope
Frequently asked questions
What is the slope formula?
Slope m = (y₂ − y₁) / (x₂ − x₁). A positive slope indicates an upward trend from left to right, a negative slope indicates a downward trend, zero slope means a horizontal line, and undefined slope means a vertical line.