Slope Calculator
Calculate the slope, distance, midpoint, and line equation from two points. Visualize rise over run.
Inputs
Results
Slope (m)
2
How to Use This Calculator
- Enter the coordinates of two points on a line: (x₁, y₁) and (x₂, y₂).
- Slope m = (y₂ − y₁) / (x₂ − x₁); positive slope rises left to right, negative slope falls.
- Undefined slope occurs when x₁ = x₂ (vertical line); zero slope means a horizontal line.
- The y-intercept b is found from y = mx + b rearranged: b = y₁ − m × x₁.
- Angle of inclination = arctan(|m|) converts slope to the angle the line makes with the horizontal.
- Distance between the two points and the midpoint are also computed using the distance formula.
How the result changes with X₂
| X₂ | Slope (m) |
|---|---|
| -8,000 | -0 |
| -3,000 | -0 |
| 3,000 | 0 |
| 8,000 | 0 |
What each input means
- X₁
- X-coordinate of the first point.
- Y₁
- Y-coordinate of the first point.
- X₂
- X-coordinate of the second point.
- Y₂
- Y-coordinate of the second point.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersX₁ = 1, Y₁ = 2, X₂ = 4, Y₂ = 8 = 4 input(s) provided
- Calculate Slope2 = 2
- Calculate Line Equationy = 2x + 0 = y = 2x + 0
- Calculate DistanceDistance6.7082 = 6.7082
Engine last updated .
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Pythagorean Theorem Calculator
Find the missing side of a right triangle using the Pythagorean theorem. Calculate area, perimeter, and angles.
Geometry & MeasurementArea Calculator
Calculate the area and perimeter of common shapes — rectangle, circle, triangle, trapezoid, and ellipse.
Geometry & MeasurementCoordinate Distance Calculator
Calculate the distance between two points on a coordinate plane, plus midpoint, slope, and the distance formula breakdown.
Excavation & EarthworkGrading & Slope Calculator
Calculate cut/fill quantities, slope percentages, slope ratios, and grade break locations for site grading projects.
Calculus ToolsDerivative Calculator
Calculate the derivative of polynomial, trigonometric, exponential, and logarithmic functions at any point.
More in Math & Statistics.