Slope Calculator
Calculate slope (m), angle of inclination, distance, midpoint, and line equation (y = mx + b) with dynamic Cartesian plot and derivation.
The Concept of Slope in Coordinate Geometry
In mathematics, the slope (denoted by the letter $m$) quantifies both the steepness and direction of a straight line connecting two coordinates $(x_1, y_1)$ and $(x_2, y_2)$ on a 2-dimensional Cartesian grid. It is universally defined as the ratio of vertical change (rise) to horizontal change (run):
For deeper analysis and related planning, you can also explore our Area Calculator and Average Calculator.
Types of Slope
Distance, Midpoint, and Equation of the Line
- Euclidean Distance: $d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$ (derived from the Pythagorean theorem).
- Midpoint: The arithmetic middle point $M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)$.
- Slope-Intercept Form: $y = mx + b$, where $b = y_1 - m \cdot x_1$ represents the vertical y-intercept.
- Perpendicular Line Slope: The negative reciprocal $m_{\perp} = -1 / m$.
Frequently Asked Questions
What is the slope formula?
The slope formula is m = (y2 - y1) / (x2 - x1), representing the vertical change (rise) divided by the horizontal change (run).
What does an undefined slope mean?
An undefined slope occurs when x1 = x2 (a vertical line). Dividing by zero (Δx = 0) is mathematically undefined in Euclidean geometry.
What is the slope of perpendicular lines?
Perpendicular lines have negative reciprocal slopes: m1 × m2 = -1, or m2 = -1 / m1.
Geometric Application: Slope arithmetic is identical to derivative rates of change in calculus ($\frac{dy}{dx}$), velocity in physics ($\frac{\Delta s}{\Delta t}$), and civil engineering gradient slopes for roadway drainage.