Calculate Shadow on a Slope: Length and Direction

Calculator for the length of a shadow on a sloping surface. The sun elevation α, the sun direction s, the actual slope inclination γ and the slope direction A can be entered, as well as the height of the object h or the length of the shadow l.
Formulas:
r = (s + 180°) mod 360°
β = arctan(tan(γ) * cos(r-A))
l = h * cos(α) / sin(α-β)
α = arctan((h + l * sin(β)) / (l * cos(β)))
For the conversion of angles, see degrees and radians and degrees and percent.
If the shadow runs neither in the direction of the steepest descent nor exactly opposite to it, the absolute value of β is smaller than γ. If the shadow direction is perpendicular to it, β is 0 degrees.
The slope inclination in shadow direction β is positive if the slope descends in the direction of the shadow, making the shadow longer. It is negative if the slope rises in the direction of the shadow, making the shadow shorter. If the positive slope inclination in shadow direction is at least as large as the sun elevation, direct sunlight does not reach the slope surface in this direction. The calculated shadow length is measured along the slope surface from the foot of the vertical object to the end of the shadow.
Example: at a sun elevation of 30 degrees and a sun direction of 90 degrees, the shadow points in the direction of 270 degrees. If the slope has an inclination of 20 degrees and its direction of steepest descent is 225 degrees, the slope inclination in shadow direction is 14.43 degrees. Under these conditions, a ten-meter-high object casts a 32.27-meter-long shadow along the slope surface.
Last updated on 11/01/2026. Author: Jürgen Kummer
Visibility Calculators | © Jumk.de Webprojects
Imprint & Privacy | German: Scheinbare Größe berechnen
Retrieved on 2026-11-09 from https://rechneronline.de/sehwinkel/shadow-slope.php