Slope Calculator
Free online slope calculator for finding the slope, angle, distance, and equation of a line between two points or from a point and slope.
What is a Slope Calculator?
A Slope Calculator is a free online tool that calculates the slope (gradient), angle of incline, distance, and equation of a line. You can calculate these values using either two points on the line or one point and the slope. It also provides the line direction and y-intercept. For related calculations, try our Equation of a Line Calculator and Distance Calculator.
How to Use the Slope Calculator
- Choose input mode - Select "Two Points" to calculate from coordinates, or "Point & Slope" if you know a point and the slope.
- Enter values - Input the X and Y coordinates of your points, or the point coordinates and slope/angle.
- View results - Get instant calculations for slope, direction, angle of incline, distance, line equation, y-intercept, rise, and run.
The Slope Formula
The slope of a line is calculated using the formula: m = (y2 - y1) / (x2 - x1)
Where m represents the slope. A positive slope indicates the line is increasing (going upward from left to right), while a negative slope indicates it is decreasing (going downward). A zero slope means the line is horizontal, and an undefined slope (division by zero) means the line is vertical.
Related Calculations
- Distance: d = √[(x2 - x1)² + (y2 - y1)²]
- Angle of Incline: θ = tan&supmin;¹(m)
- Line Equation: y = mx + b
- Y-Intercept: b = y - mx
Applications of Slope
Slope calculations are used in various fields including civil engineering (road gradients, roof pitches), geography (terrain steepness), physics (velocity, acceleration graphs), economics (supply and demand curves), and data analysis (trend lines). Understanding slope is fundamental to calculus, where it represents the rate of change of a function at any point.
Interpreting Slope Values
- m > 0: Line increases from left to right
- m < 0: Line decreases from left to right
- m = 0: Horizontal line
- m undefined: Vertical line
- |m| > 1: Steep line
- |m| < 1: Gentle line
Frequently Asked Questions
What does a slope of 0 mean?
A slope of 0 indicates a horizontal line. This means there is no change in the y-coordinate as x increases. The line is perfectly flat and the equation is y = b (constant).
What is an undefined slope?
An undefined slope occurs when the line is vertical (x1 = x2). This means there is no change in x, resulting in division by zero in the slope formula. A vertical line has the equation x = a (constant).
What is the difference between slope and angle of incline?
The slope (m) is a ratio of vertical change to horizontal change (rise/run), while the angle of incline (θ) is the angle the line makes with the horizontal axis. They are related by the formula: m = tan(θ) and θ = tan&supmin;¹(m).
How do I find the equation of a line from two points?
First calculate the slope (m) using the two points, then substitute one point into the equation y = mx + b to solve for the y-intercept (b). The complete equation is y = mx + b.
Can I calculate slope with only one point?
No, you need either two points or one point and the slope (or angle) to determine a line. With only one point, there are infinitely many lines passing through it with different slopes.