Find the slope (gradient), line equation, distance, and angle between two points. Visualize the line on a coordinate plane. Perfect for algebra, calculus, civil engineering, and data trend analysis.
Slope (gradient) measures the steepness and direction of a line. In coordinate geometry, the slope between two points \((x_1, y_1)\) and \((x_2, y_2)\) is defined as:
A positive slope means the line ascends from left to right; negative slope descends; zero slope is horizontal; undefined slope (division by zero) corresponds to a vertical line. Slope is fundamental in calculus (derivatives), physics (velocity), economics (marginal cost), and civil engineering (road incline).
Given two points, compute difference in y (Δy = y₂ - y₁) and difference in x (Δx = x₂ - x₁). Slope m = Δy / Δx. From slope, you can derive the line equation in point-slope form: y - y₁ = m (x - x₁). Convert to slope-intercept form y = mx + b. The distance between points follows Euclidean formula √(Δx² + Δy²). The inclination angle θ = arctan(|m|) for positive direction, with quadrant adjustment.
Real-world examples: a ramp with slope 0.2 means 20 cm rise per 100 cm run (accessible design). A road grade of 6% means slope 0.06. In finance, the slope of a trendline indicates average growth rate per unit time.
| Slope Value | Type | Graph Description | Example Points |
|---|---|---|---|
| m > 0 | Positive | Line rises to the right | (0,0) → (3,4) → m=1.33 |
| m < 0 | Negative | Line falls to the right | (0,5) → (4,1) → m=-1 |
| m = 0 | Zero / Horizontal | Constant y-value | (1,2) → (5,2) |
| Δx = 0 (undefined) | Undefined / Vertical | Constant x-value | (3,1) → (3,7) |
A civil engineer checks a wheelchair ramp: points A(0,0) and B(480, 36) cm. Slope = 36/480 = 0.075 (7.5% grade). According to ADA standards, the maximum slope for a ramp is 1:12 (≈8.33%). The computed slope 7.5% is compliant. Additionally, the engineer calculates the ramp length (distance ≈ 481.35 cm) and angle (4.3°) for proper construction drawings. This calculator instantly provides all relevant metrics, speeding up design verification.