Calculay

Slope & Line Calculator

Enter two Cartesian coordinate points (x₁, y₁) and (x₂, y₂) to instantly calculate the slope, line equation, angle, and distance between them.

Slope & Line Calculator

1
Point 1

2
Point 2

Enter two points to calculate the slope, line equation, and distance.

Slope Calculator: Rise over Run Formulas, Cartesian Geometry, Angle & Engineering Grades

In analytic geometry, calculus, and civil engineering, the slope (gradient) of a straight line quantifies its steepness, trajectory, and rate of change between two coordinates in a two-dimensional Cartesian plane (R²). Denoted universally by the variable m, the slope describes how many vertical units of elevation change (“rise”) occur for every unit of horizontal displacement (“run”). The Calculay Slope Calculator computes the gradient, angle of inclination (θ), Euclidean line length, and linear equations in slope-intercept, point-slope, and standard formats.

The Core Mathematical Formulations

Given two distinct points on a Cartesian plane, P_1(x_1, y_1) and P_2(x_2, y_2) where x_1 ≠ x_2:

Slope & Angle of InclinationSlope (m) = Δy ÷ Δx = ( y₂ - y₁ ) ÷ ( x₂ - x₁ )Angle (θ) = arctan(m) = tan⁻¹(m)Grade Percentage (%) = | m | × 100
Euclidean Distance & Line FormsDistance (d) = √[ (x₂ - x₁)² + (y₂ - y₁)² ]Slope-Intercept: y = mx + b (where b = y₁ - mx₁)Point-Slope: y - y₁ = m(x - x₁)

Geometric Classifications of Linear Slopes

Slope CharacteristicNumerical Value (m)Angle of Inclination (θ)Geometric Orientation & Behavior
Positive Slopem > 00° < θ < 90°Line ascends from bottom-left to top-right (monotonically increasing)
Negative Slopem < 090° < θ < 180°Line descends from top-left to bottom-right (monotonically decreasing)
Zero Slope (Horizontal)m = 0θ = 0°Parallel to x-axis; altitude is invariant (y = c)
Undefined (Vertical)Δx = 0 (Division by 0)θ = 90°Parallel to y-axis; infinite vertical gradient (x = c)
Perpendicular Linesm₁ × m₂ = -1| θ₁ - θ₂ | = 90°Lines intersect at an exact 90-degree orthogonal right angle

Step-by-Step Worked Calculation

Problem: Analyze the line passing through Point 1 (2, 3) and Point 2 (6, 11).

  1. Vertical Rise (Δy): y₂ - y₁ = 11 - 3 = 8
  2. Horizontal Run (Δx): x₂ - x₁ = 6 - 2 = 4
  3. Slope (m): 8 ÷ 4 = 2.0 (Every 1 unit right → 2 units up)
  4. Angle of Inclination: θ = arctan(2.0) = 63.43°
  5. Euclidean Distance: √[ (4)² + (8)² ] = √[ 16 + 64 ] = √80 = 8.944 units
  6. Y-Intercept (b): b = y₁ - mx₁ = 3 - (2 × 2) = 3 - 4 = -1
  7. Slope-Intercept Equation: y = 2x - 1
  8. Perpendicular Line Slope: m_⊥ = -1 / 2 = -0.5

Engineering & Architectural Slope Standards

  • ADA Wheelchair Ramps: Strictly mandated at a maximum slope of 1:12 (8.33% grade or 4.76°). For every 1 inch of vertical rise, a minimum of 12 inches of horizontal run is legally required.
  • Plumbing Drainage Lines: Sewer pipes must maintain a negative slope of 1/4 inch per foot (2.08% grade). Steeper angles cause water to outrun solids, creating clogs; shallower slopes cause stagnation.
  • Roof Pitch: Standard asphalt shingle roofs require a minimum slope of 4:12 (33.3% grade or 18.4°) to ensure proper gravity-driven rainwater shedding.