Slope Calculator
Solve geometric relationships between any two points.
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Slope Calculator
The slope of a line describes its steepness and direction. Enter any two coordinate points and this calculator finds the slope, the line equation, distance between points, and midpoint.
How to Use This Calculator
- Enter the coordinates of two points: (x₁, y₁) and (x₂, y₂).
- Click Calculate to get slope, distance, midpoint, and the equation of the line in both slope-intercept (y = mx + b) and standard form.
Slope Formulas
Slope (m): m = (y₂ − y₁) / (x₂ − x₁) = rise / run
Distance: d = √[(x₂−x₁)² + (y₂−y₁)²]
Midpoint: ((x₁+x₂)/2, (y₁+y₂)/2)
Line equation: y = mx + b where b = y₁ − m×x₁
Example Calculation
Points: (2, 3) and (6, 11)
- Slope: (11−3)/(6−2) = 8/4 = 2
- Interpretation: For every 1 unit right, the line rises 2 units
- Distance: √(16+64) = √80 ≈ 8.944
- Midpoint: (4, 7)
- Line equation: y = 2x − 1
Slope Interpretation
- Positive slope: Line rises left to right (upward trend)
- Negative slope: Line falls left to right (downward trend)
- Zero slope: Horizontal line (no change in y)
- Undefined slope: Vertical line (x₂ = x₁, division by zero)
- Steeper line: Larger |m| value
Real-World Applications
- Road grades: A 5% grade means a slope of 0.05 (rises 5 ft per 100 ft horizontal)
- Roof pitch: Rise over run, often expressed as X:12 (X inches rise per 12 inches run)
- Economics: Marginal cost (slope of total cost curve), elasticity
- Physics: Velocity (slope of position-time graph), acceleration (slope of velocity-time)
Common Mistakes to Avoid
- Dividing Δx by Δy instead of Δy by Δx — Slope = rise/run = Δy/Δx. Mixing these up gives the reciprocal.
- Not maintaining consistent point order — (y₂−y₁)/(x₂−x₁) and (y₁−y₂)/(x₁−x₂) give the same slope. Just be consistent with which point is "1" and which is "2."
- Claiming vertical lines have infinite slope — They have undefined slope (division by zero). Infinite would imply a value; undefined means the concept doesn't apply.
Frequently Asked Questions
How do I find slope from an equation?
In y = mx + b (slope-intercept form), m is the slope and b is the y-intercept. For other forms: convert to slope-intercept, or pick any two points on the line and apply the formula.
What is the perpendicular slope?
The slope of a perpendicular line is the negative reciprocal: m_perp = −1/m. If the original slope is 3, the perpendicular slope is −1/3.
Conclusion
Slope is one of the most important concepts in mathematics — connecting algebra, geometry, calculus, and real-world measurement. Use this calculator for any two-point slope problem and get the full line equation automatically.
Related: Distance Calculator | Area Calculator | Pythagorean Theorem Calculator
Expert Hint
If the slope is 0, the line is perfectly horizontal. If the X-coordinates are identical, the line is vertical and the slope is "Undefined" because you cannot divide by zero!