Slope Calculator
Calculate slope, distance, angle, and midpoint from two coordinate points. Instant results with step-by-step breakdown.
Slope (m)
—
Distance
—
Angle (degrees)
—
Midpoint
—
Line Equation
—
What is Slope Calculator?
The slope calculator finds the slope (gradient), distance, angle of inclination, and midpoint between two coordinate points on a Cartesian plane. It applies the standard slope formula m = (y₂−y₁)/(x₂−x₁) along with the distance and midpoint formulas.
How to use
- 1 Enter the x and y coordinates for the first point (x₁, y₁).
- 2 Enter the x and y coordinates for the second point (x₂, y₂).
- 3 Click Calculate to see all results instantly.
- 4 Results include slope, distance, angle in degrees, and midpoint coordinates.
- 5 A vertical line (x₁ = x₂) will show 'undefined' slope.
Formula
Example calculation
Points (1, 2) and (4, 6): Slope = (6−2)/(4−1) = 4/3 ≈ 1.333. Distance = √(9+16) = √25 = 5. Angle = arctan(1.333) ≈ 53.1°. Midpoint = (2.5, 4).
Frequently asked questions
What does a negative slope mean?
A negative slope means the line goes downward from left to right. As x increases, y decreases. The steeper the negative value, the more steeply it descends.
What is an undefined slope?
A slope is undefined when x₁ = x₂ (a vertical line). Division by zero is undefined. A horizontal line has a slope of exactly 0.
What is the angle of inclination?
The angle of inclination is the angle the line makes with the positive x-axis, measured counterclockwise. It ranges from 0° (horizontal) to just under 90° (steep upward) or between 90° and 180° (downward).
What is the midpoint formula used for?
The midpoint formula finds the exact center between two points. It is used in geometry, computer graphics, and navigation to find average positions.
Can slope be greater than 1?
Yes. A slope greater than 1 means the line rises more than 1 unit vertically for every 1 unit horizontally. There is no upper or lower limit on slope values.