The short answer
Slope measures how steep a line is: rise over run, or the change in y divided by the change in x between two points, m = (y₂−y₁)/(x₂−x₁). A positive slope rises left to right, negative falls, zero is flat (horizontal), and a vertical line has undefined slope, since that would mean dividing by zero.
Key takeaways
- Vertical lines have undefined slope because the change in x is zero, and division by zero has no defined result.
- Parallel lines always share the same slope; perpendicular lines have slopes that multiply to −1 (negative reciprocals of each other).
- The three common line equation forms — slope-intercept, standard, and point-slope — all describe the same line, just solved for different unknowns.
- The angle of inclination is simply arctan(slope) — it converts a rise-over-run ratio into an actual angle in degrees.
The slope formula and what it means
| Slope value | What it means |
|---|---|
| m > 0 | Line rises left to right |
| m < 0 | Line falls left to right |
| m = 0 | Horizontal line |
| undefined | Vertical line (Δx = 0) |
Parallel and perpendicular slopes
Slope 2 → perpendicular slope = −1/2 (since 2 × (−1/2) = −1)
Parallel lines never intersect because they climb or fall at exactly the same rate — same slope, different starting point. Perpendicular lines meet at a right angle, and their slopes are always negative reciprocals of each other.
Worked example: finding slope and equation from two points
Points (2, 3) and (5, 7):
m = (7 − 3) / (5 − 2) = 4/3
b = y₁ − m×x₁ = 3 − (4/3)×2 = 1/3
Equation: y = (4/3)x + 1/3
Check with the second point: y = (4/3)(5) + 1/3 = 20/3 + 1/3 = 21/3 = 7 — matching y₂ exactly, confirming both the slope and the equation.
Common mistakes to avoid
- Mixing point order between numerator and denominator — using y₁−y₂ on top with x₂−x₁ on the bottom flips the sign of the slope incorrectly.
- Assuming a zero denominator (vertical line) means slope is zero — it's the opposite: undefined, not zero.
- Confusing parallel (same slope) with perpendicular (negative reciprocal slope) — they describe opposite relationships between two lines.
- Forgetting the sign flip in standard form — for Ax + By = C, the slope is −A/B, not A/B.
Related calculators
- Distance Calculator — find the straight-line distance between the same two points.
- Quadratic Formula Calculator — solve curved (non-linear) equations instead of straight lines.
- Right Triangle Calculator — explore the angle of inclination using trigonometry directly.
- Triangle Calculator — work with three points forming a triangle instead of a line.