Shadow Length Calculator
Calculate the shadow cast on level ground by a vertical object from its height and solar elevation.
How shadow length is calculated
The vertical object, its shadow on level ground and the incoming ray form a right triangle. If the sun is α above the horizon, tan α equals the object height divided by the shadow length. Divide the height by tan α to obtain the shadow length.
Example and limits
At a solar elevation of 45°, an object 2 m tall casts a shadow 2 m long. Directly overhead sunlight gives zero shadow length. On or below the horizon, this model does not return a finite length. Sloping ground, tilted objects, nearby obstructions and penumbra are excluded. Near the horizon the result is highly sensitive to small uncertainties in the elevation angle.
Choosing the angle and height
Solar elevation is measured above the horizon. It differs from the zenith angle measured from directly overhead. Do not enter a zenith angle directly as solar elevation. Object height must be the vertical distance above the horizontal plane where the shadow is measured. A sloping length along the terrain is a different input. Check that the selected angle unit matches the number entered.
For example, take a vertical pole 4 m high and solar elevation of 30°. Since tan 30° = 1/√3, the shadow is 4√3 ≈ 6.928203 m. This is the horizontal distance from the pole base to the shadow tip, not the inclined ray length from the pole top to that tip. At the same angle, doubling height doubles shadow length.
The shadow shortens as the sun rises, but the relationship is not linear in angle. Doubling the angle does not always halve the shadow. Near the horizon, a small angle change can produce a large length change. Many displayed digits do not imply equivalent measurement precision.
The calculator does not determine solar elevation from date and location. Obtain that angle separately. It also does not solve shadow direction or mutual shading between nearby objects. On a sloping roof or terrain, the result represents only the ideal level ground geometry.
Related calculators
-
Surveying and Geodesy
Solar Elevation and Azimuth
Calculate geometric solar elevation and azimuth clockwise from north using latitude, declination and true solar time. -
HVAC and Thermodynamics
Rooftop Solar Panel Layout and Row Spacing Calculator
How many solar panels fit on a roof: count, installed power and area use from roof and panel sizes. For tilted rows on a flat roof, shade free row spacing at the winter solstice. -
Surveying and Geodesy
DMS and Decimal Degrees Converter
Convert latitude or longitude between degrees, minutes, seconds and decimal degrees. A separate direction preserves west and south angles below one degree. -
Surveying and Geodesy
Earthwork Cross Section Volume
Estimate cut or fill volume between two consecutive cross sections using the average end area method. -
Surveying and Geodesy
Latitude Longitude Distance and Initial Bearing
Find the spherical great circle distance and initial bearing from true north between two coordinates using a chosen sphere radius. -
Surveying and Geodesy
Leveling Survey Calculator
Calculate the end elevation and elevation difference from a starting elevation and sums of backsights and foresights.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.