Enter any two of the three variables (angle, depth, or horizontal distance) to solve for the missing value using the trigonometric relationship between a slope angle and its vertical and horizontal components.

Angle Depth Calculator

Enter any 2 values to calculate the missing variable


Related Calculators

Angle Depth Formula

The relationship between angle, depth, and horizontal distance is governed by the tangent function of a right triangle, where depth is the vertical leg (opposite side) and horizontal distance is the horizontal leg (adjacent side).

\theta = arctan\left(\frac{d}{h}\right)

Variables:

  • theta is the angle from horizontal, in degrees
  • d is the vertical depth (opposite side of the right triangle), in meters
  • h is the horizontal distance (adjacent side of the right triangle), in meters

The three derived forms are: angle = arctan(d/h) to find the slope angle; depth = h * tan(angle) to find vertical drop given horizontal run and angle; and horizontal distance = d / tan(angle) to find the required run given a vertical drop and target angle.

What is an Angle Depth Calculation?

An angle-depth calculation quantifies the geometric relationship between a slope angle and its two defining distances: vertical depth (the rise) and horizontal distance (the run). Any sloped line in space creates a right triangle with the ground, and the tangent of the angle equals the ratio of rise to run. This relationship appears across engineering, geology, construction, and energy systems anywhere a slope, bore, trench, or inclined surface must be precisely defined or constrained.

The critical practical insight is that the tangent function is highly non-linear. Between 0 and 45 degrees, each degree of angle increase produces a modest rise-per-run gain. Above 45 degrees, gains accelerate rapidly. At 45 degrees the depth equals the horizontal distance exactly (ratio 1:1). At 60 degrees, depth is 1.73x the horizontal distance. At 75 degrees, it is 3.73x. At 80 degrees, it reaches 5.67x. This non-linearity means that small angular errors at steep inclinations translate into large depth errors, a factor critical in directional drilling, deep excavations, and long-range surveying.

Industry Applications and Regulated Angle Standards

Angle-depth geometry is not just a theoretical exercise. Dozens of industries operate under legally mandated or engineering-standard angle limits that require this calculation.

Excavation and Trench Safety (OSHA 29 CFR 1926 Subpart P)

OSHA mandates maximum allowable slope angles for all trenches 5 feet or deeper. The slope limit depends on soil classification. Type A soil (cohesive, unconfined compressive strength above 1.5 tons per square foot) allows a maximum 53-degree slope, equivalent to a 3/4:1 horizontal-to-vertical ratio. Type B soil (cohesive strength 0.5 to 1.5 tsf, or previously disturbed) is capped at 45 degrees (1:1 ratio). Type C soil (granular, submerged, or strength below 0.5 tsf) requires a maximum slope of 34 degrees (1.5:1 ratio). For any excavation exceeding 20 feet in depth, a registered professional engineer must design the slope system. These three regulated angles correspond to tan values of 1.33, 1.00, and 0.67 respectively.

Accessibility Ramps (ADA Standards)

The Americans with Disabilities Act requires that accessible ramps not exceed a 1:12 slope ratio, which equals an angle of 4.76 degrees. At this angle, for every 30 inches of vertical rise (depth), the ramp must extend at least 360 inches (30 feet) horizontally. A 1:20 curb ramp is even shallower at 2.86 degrees. These are strict upper limits: exceeding them by even a fraction of a degree renders a ramp non-compliant.

Drainage Pipe Slope

Gravity-fed drainage pipes require a minimum slope to maintain self-cleaning velocity (typically 2 feet per second). For 4-inch drain pipes, the International Plumbing Code specifies a minimum 1/4 inch of drop per foot of horizontal run, which is an angle of 1.19 degrees. Larger pipes (6 inch and above) may use 1/8 inch per foot (0.60 degrees) because the larger diameter maintains velocity at lower slopes. At 1.19 degrees and 50 feet of pipe run, the outlet sits 12.5 inches below the inlet. Getting this wrong by a degree in either direction results in slow drainage or reverse flow.

Directional Drilling and Wellbore Surveys

Directional drilling uses inclination angle (deviation from true vertical) and azimuth to describe a wellbore trajectory. At 0 degrees inclination the well is perfectly vertical. At 90 degrees it is horizontal. In a standard J-profile directional well, the driller builds angle at a rate of 2 to 5 degrees per 100 feet (called dogleg severity), kicks off vertical depth typically between 500 and 3,000 feet, and reaches the target at a specified true vertical depth and horizontal departure. At an inclination of 30 degrees and a measured depth section of 1,000 feet, the TVD gain is 866 feet and horizontal displacement is 500 feet. At 60 degrees over the same measured depth, TVD gain is 500 feet and horizontal displacement is 866 feet. Survey calculation accuracy is critical: a 1-degree angular error at 5,000 feet measured depth can displace the bottomhole location by 87 feet.

Solar Panel Tilt Optimization

The optimal fixed tilt angle for a solar panel roughly equals the site latitude. At 30 degrees north latitude (roughly Houston, TX), a 30-degree tilt maximizes annual energy capture. Seasonal optimization adjusts this: steeper in winter (latitude plus 15 degrees) to catch lower-angle sun, shallower in summer (latitude minus 15 degrees). Using the angle-depth formula, a panel at 30-degree tilt on a roof with a 10-foot horizontal run will have a vertical height difference of 5.77 feet between the bottom and top edge. For a 20-foot span at 45-degree tilt (optimal for 45 degrees north latitude, roughly Minneapolis or Portland), the height difference is 20 feet exactly.

Road and Ramp Grade

Road grades are expressed as a percentage (rise over run times 100), which is mathematically equivalent to tan(angle) times 100. The maximum grade for U.S. interstate highways is 6% in level terrain (3.43 degrees) and up to 7% in rolling terrain. Mountain highways may reach 10 to 14% (5.71 to 7.97 degrees) with special engineering. Truck escape ramps are typically built at 6 to 8 percent grade (3.43 to 4.57 degrees) and 300 to 700 feet long, creating a vertical rise of roughly 18 to 56 feet. Parking garage ramps are constrained to 10 to 15% (5.71 to 8.53 degrees) for safe vehicle navigation.

Angle to Slope Ratio Reference

The table below shows how selected angles relate to their depth-per-unit-run values and common industry equivalents.

Angle (degrees)Depth per Unit RunSlope RatioCommon Application
0.600.01051/8 in per footLarge sewer pipe minimum slope
1.190.02081/4 in per foot4-inch drain pipe IPC minimum
2.860.0501:20ADA curb ramp maximum
3.430.0606%Interstate highway max grade (level terrain)
4.760.08331:12ADA wheelchair ramp maximum
5.710.1010%Parking garage ramp typical
340.6751.5:1OSHA Type C soil max excavation slope
451.0001:1OSHA Type B soil max; natural angle of repose for loose dry sand
531.3273/4:1OSHA Type A soil max excavation slope
90undefinedverticalTrue vertical well; shored trench wall

Angular Sensitivity: Why Small Errors Matter at Scale

Because the tangent function is non-linear, the sensitivity of depth to angular error increases dramatically at steeper angles. At 10 degrees, a 1-degree error changes the depth-per-unit-run by about 1.9%. At 45 degrees, the same 1-degree error changes it by about 4.0%. At 80 degrees, it changes by about 34%. In a directional oil well with 5,000 feet of measured depth at 80-degree inclination, a 1-degree angular measurement error at the downhole survey tool produces a positional error of roughly 300 feet at the wellbore tip, potentially missing the target reservoir entirely. In long highway grades and deep trench excavations, the compounding of small angular errors over large distances is why slope verification with instruments rather than estimation is standard practice.