Contour Line Calculator: Topographic Slope & Elevation Gradient

Calculate contour line crossing coordinates, slope grade (%), inclination angle, and bulk earthwork volumes between surveyed stations.

1-Click Topographic Survey Presets

Topographic Contour Line Interpolation, Slope & Elevation Gradient Calculator

Calculate precise contour line crossing coordinates, topographic slope gradients, and cut/fill earthwork volumes between surveyed field benchmarks. Compliant with USGS topographic standards and civil engineering geomatics, this tool supports bidirectional linear interpolation across both ascending and descending terrain slopes.

Geomatics & Interpolation Mathematics

Contour lines represent imaginary horizontal lines connecting points of equal elevation above a vertical datum (e.g. NAVD88). When surveying between two points of known coordinates (x₁, y₁, z₁) and (x₂, y₂, z₂), the location of intermediate contour crossings is calculated via linear spatial interpolation.

  • 2D Planimetric Distance: D = √((x_2 - x_1)^2 + (y_2 - y_1)^2). Horizontal map distance between the two surveyed stations.
  • Topographic Slope Gradient: Slope (\%) = ((|z_2 - z_1|) / (D)) × 100, quad theta = arctan((|z_2 - z_1|) / (D)). Slope expressed as percentage grade and inclination angle in degrees.
  • Contour Crossing Interpolation Ratio: t = fracz_contour - z_1z_2 - z_1 quad (0 ≤ t ≤ 1). Normalized proportional distance along the traverse vector where the target elevation occurs.
  • Crossing Map Coordinates: x_contour = x_1 + t(x_2 - x_1), quad y_contour = y_1 + t(y_2 - y_1). Exact Cartesian planimetric coordinates for contour line drafting.
  • Average End Area Earthwork Volume: V = L × W × ((z_1 + z_2) / (2) - z_datum). Estimates bulk soil volume for site grading, retention basins, and cut/fill earthworks.

Worked Surveying Problem: Uphill Foothill Traverse

  • Station A Coordinates: (X₁: 100 m, Y₁: 100 m, Elev Z₁: 121.4 m)
  • Station B Coordinates: (X₂: 400 m, Y₂: 500 m, Elev Z₂: 147.8 m)
  • Contour Interval: 5.0 meters (Standard 5m topographic lines)
  • Measurement Unit: Meters
  1. Horizontal Distance = sqrt((400 - 100)^2 + (500 - 100)^2) = sqrt(300^2 + 400^2) = 500.0 m
  2. Elevation Difference = 147.8 - 121.4 = +26.4 m (Uphill slope)
  3. Slope Gradient = (26.4 / 500.0) × 100 = 5.28% (Slope angle = 3.02°)
  4. Intermediate 5m Contours in Range: 125m, 130m, 135m, 140m, 145m (5 contour crossings)
  5. For 125m contour: t = (125.0 - 121.4) / 26.4 = 0.1364 -> X = 100 + 0.1364(300) = 140.9 m, Y = 100 + 0.1364(400) = 154.5 m (Dist = 68.2 m)
  6. For 130m contour: t = (130.0 - 121.4) / 26.4 = 0.3258 -> X = 197.7 m, Y = 230.3 m (Dist = 162.9 m)
  7. For 135m contour: t = (135.0 - 121.4) / 26.4 = 0.5152 -> X = 254.5 m, Y = 306.1 m (Dist = 257.6 m)
  8. For 140m contour: t = (140.0 - 121.4) / 26.4 = 0.7045 -> X = 311.4 m, Y = 381.8 m (Dist = 352.3 m)
  9. For 145m contour: t = (145.0 - 121.4) / 26.4 = 0.8939 -> X = 368.2 m, Y = 457.6 m (Dist = 447.0 m)

A regular 5.28% grade produces evenly spaced contour lines approximately 94.7 meters apart along the ground traverse.

Contour Intervals Guide

  • Terrain: Flat Coastal Plains / Floodplains | Interval Meters: 0.5 m to 1.0 m | Interval Feet: 1 ft to 2 ft | Usage: Detailed storm drainage, airfield runways, flood risk mapping.
  • Terrain: Rolling Hills & Agricultural Sites | Interval Meters: 2.0 m to 5.0 m | Interval Feet: 5 ft to 10 ft | Usage: Subdivision grading, road alignments, site utilities.
  • Terrain: Rugged Foothills & Moderate Slopes | Interval Meters: 5.0 m to 10.0 m | Interval Feet: 10 ft to 20 ft | Usage: Highway corridors, forestry management, pipeline routing.
  • Terrain: Steep Mountainous Alpine Terrain | Interval Meters: 10.0 m to 25.0 m | Interval Feet: 25 ft to 50 ft | Usage: USGS 1:24,000 quadrangle maps, regional watershed hydrology.

Formulas Used

2D Planimetric Distance

D = √((x_2 - x_1)^2 + (y_2 - y_1)^2)

Horizontal map distance between the two surveyed stations.

Topographic Slope Gradient

Slope (\%) = ((|z_2 - z_1|) / (D)) × 100, quad theta = arctan((|z_2 - z_1|) / (D))

Slope expressed as percentage grade and inclination angle in degrees.

Contour Crossing Interpolation Ratio

t = fracz_contour - z_1z_2 - z_1 quad (0 ≤ t ≤ 1)

Normalized proportional distance along the traverse vector where the target elevation occurs.

Crossing Map Coordinates

x_contour = x_1 + t(x_2 - x_1), quad y_contour = y_1 + t(y_2 - y_1)

Exact Cartesian planimetric coordinates for contour line drafting.

Average End Area Earthwork Volume

V = L × W × ((z_1 + z_2) / (2) - z_datum)

Estimates bulk soil volume for site grading, retention basins, and cut/fill earthworks.

Frequently Asked Questions

On standard topographic maps, every fifth contour line is rendered heavier and labeled with its exact elevation; this is called an index contour. Intermediate contours are the lighter lines drawn between index contours to depict localized slope changes.
The mathematical interpolation normalizes direction vectors using the signed difference (z₂ - z₁). Whether surveying uphill or downhill, each contour crossing t is bounded between 0 and 1, ensuring accurate planimetric coordinates.
Because contour lines represent equal vertical increments, lines drawn very close together indicate steep cliffs or bluffs. Conversely, widely spaced contour lines indicate gentle slopes or flat terrain.
Depression contours indicate closed hollows, sinkholes, or excavation pits. They are drawn with short internal tick marks (hachures) pointing inward toward the lowest point.
Linear interpolation assumes a constant gradient between survey points. If an unmeasured knoll, gully, or ridge occurs between Station A and Station B, surveyors must record intermediate breaklines to prevent interpolation distortion.
The contour interval depends on map scale and topographic relief. A flat commercial parking lot requires 0.5m or 1-2ft intervals for drainage design, whereas mountainous forestry mapping standardly uses 20m or 40-50ft intervals.
Contour lines never cross or branch under standard conditions, with the rare exception of overhanging cliffs or natural caves, where dashed lines indicate the concealed lower elevation profile.
Cut represents soil excavated from areas above design grade, while fill represents material deposited into low areas. Topographic contours allow engineers to balance earthworks so excavated cut material equals required fill, minimizing costly haul-away trucking.