iGuideSmart

Slope, Distance & Midpoint Calculator

Calculate line slope (m), slope-intercept form (y = mx + b), angle, distance, and midpoint from two points. 100% client-side with explicit formula, worked examples, reference chart, and FAQs.

Slope (m) & Line Equation
m = 2
y = 2x + 0 | Distance: 8.9443 | Midpoint: (3, 6) | Angle: 63.43°

Formula & Calculation Logic

Computes exact rise-over-run slope, linear equation y = mx + b, Euclidean distance, and grade percentage.

Primary Formula

m = (y₂ − y₁) ÷ (x₂ − x₁) | d = √((x₂−x₁)² + (y₂−y₁)²)

Example: Points (1, 2) and (5, 10)

  1. 1
    Calculate rise over run
    (10 − 2) ÷ (5 − 1) = 8 ÷ 4
    Slope m = 2
  2. 2
    Find y-intercept b = y₁ − mx₁
    2 − 2(1)
    y = 2x + 0

Slope, Road Grade & Angle Equivalents

Relationship between slope m, percent grade, and incline angle.

Showing 7 of 7 reference values
Slope to percent grade and incline angle conversion
Slope (m)Percent GradeAngle (deg)Real-World Context
0.022%1.15°Drainage slope
0.055%2.86°Accessible walkway
0.0833 (1:12)8.33%4.76°ADA max wheelchair ramp
0.1010%5.71°Steep mountain highway
0.25 (3:12)25%14.04°Low-pitch roof
0.50 (6:12)50%26.57°Standard gable roof
1.00 (12:12)100%45.00°45-degree incline

Practical Real-World Use Cases

Instant Verification & Planning

Compute slope, distance & midpoint calculator figures live with zero reloads or server latency.

Transparent Formula Breakdown

Check every intermediate step for study, engineering, or everyday budgeting.

Slope, Distance & Midpoint Calculator – Frequently Asked Questions

What is the slope of a horizontal vs. vertical line?
A horizontal line has slope 0 (zero rise); a vertical line has an undefined slope (division by zero run).
How do you convert slope to grade percentage?
Multiply the slope m by 100 (e.g., a 0.08 slope is an 8% road grade).
How are perpendicular slopes related?
Two non-vertical lines are perpendicular when the product of their slopes equals −1 (m₂ = −1/m₁).
View all Math Calculators →