Skip to main content
DigiCalcs

How to Calculate Slope

What is Slope?

Slope (gradient) measures the steepness of a line: rise over run = Δy/Δx = (y₂−y₁)/(x₂−x₁). Positive slope = rising left to right; negative = falling; zero = horizontal; undefined = vertical. Used in algebra, physics, road engineering, and data analysis.

Step-by-Step Guide

  1. 1m = (y₂ − y₁) / (x₂ − x₁)
  2. 2Slope-intercept form: y = mx + b (m=slope, b=y-intercept)
  3. 3Parallel lines have equal slopes
  4. 4Perpendicular lines: slopes are negative reciprocals (m₁ × m₂ = −1)

Worked Examples

Input
Points (1, 2) and (4, 8)
Result
Slope = (8−2)/(4−1) = 6/3 = 2
For every 1 right, go 2 up
Input
Slope of 1/4 in road engineering
Result
25% grade
1 ft rise per 4 ft run

Ready to calculate? Try the free Slope Calculator

Try it yourself →

Settings

PrivacyTermsAbout© 2026 DigiCalcs