Enter the height of an object and the angle of the source of light measured from the ground to calculate the shadow length. This calculator can also evaluate the height or angle, given the other variables are known.

Shadow Length Calculator

Enter any 2 values to calculate the missing variable

Shadow Length Formula

The shadow length formula derives from basic right-triangle trigonometry. A vertical object of height H, the ground surface, and the light ray connecting the top of the object to the tip of the shadow form a right triangle. The shadow length L is the adjacent side, the object height H is the opposite side, and the sun elevation angle a is measured between the ground and the incoming light ray.

L = H / tan(a)

Where L is the shadow length, H is the object height, and a is the sun elevation angle (also called solar altitude angle) measured from the horizontal. The formula can be rearranged to solve for height (H = L * tan(a)) or for the sun angle (a = arctan(H / L)).

This formula assumes a flat, level surface and a distant light source like the sun, where rays are effectively parallel. For artificial point-source lighting (such as a streetlamp), the geometry changes because light rays diverge, and the shadow length depends on both the height of the light source and its horizontal distance from the object.

Shadow Ratio Reference Table

The shadow ratio is the multiplier applied to an object’s height to determine its shadow length at a given sun elevation. To find the shadow length, multiply the object’s height by the ratio.

Sun ElevationShadow Ratio (L/H)Shadow per 1 m HeightTypical Condition
5 degrees11.4311.43 mJust after sunrise or before sunset
10 degrees5.675.67 mEarly morning or late evening
15 degrees3.733.73 mLow winter sun at mid-latitudes
20 degrees2.752.75 mWinter midday at ~47 deg latitude
30 degrees1.731.73 mMorning/afternoon in temperate zones
45 degrees1.001.00 mShadow equals object height
60 degrees0.580.58 mSummer midday at mid-latitudes
75 degrees0.270.27 mNear-tropical solar noon
90 degrees0.000.00 mSun directly overhead (tropics at solstice)

At 45 degrees elevation, the shadow length exactly equals the object height. This 1:1 ratio serves as a useful mental benchmark. Below 45 degrees, shadows are longer than the object; above 45 degrees, shadows are shorter.

Solar Noon Elevation by Latitude and Season

The sun’s maximum daily elevation (at solar noon) depends on the observer’s latitude and the time of year. The formula is: solar noon elevation = 90 – |latitude – solar declination|. Solar declination ranges from +23.44 degrees at the June solstice to -23.44 degrees at the December solstice, and is 0 degrees at the equinoxes.

LatitudeExample CityJune Solstice NoonEquinox NoonDec Solstice Noon
0 deg (Equator)Quito66.6 deg90.0 deg66.6 deg
23.4 deg NHavana90.0 deg66.6 deg43.2 deg
35 deg NTokyo / LA78.4 deg55.0 deg31.6 deg
40 deg NNew York / Madrid73.4 deg50.0 deg26.6 deg
48 deg NParis / Seattle65.4 deg42.0 deg18.6 deg
56 deg NEdinburgh / Moscow57.4 deg34.0 deg10.6 deg
64 deg NReykjavik49.4 deg26.0 deg2.6 deg

At 56 deg N latitude (Edinburgh, Moscow), the winter solstice noon sun sits at just 10.6 degrees, producing shadow ratios above 5x. At the same latitude in summer, noon elevation reaches 57.4 degrees and shadows shrink to about 0.64x the object height. This seasonal swing of nearly 47 degrees in peak sun angle is why shadow behavior varies so dramatically between summer and winter at higher latitudes.

The Shadow Rule for UV Safety

Dermatologists and public health organizations promote the “shadow rule” as a quick way to gauge UV intensity without checking an index or app. If your shadow is shorter than your height, UV radiation is intense and sun protection is strongly recommended. If your shadow is roughly equal to your height (sun at about 45 degrees), moderate caution is appropriate. If your shadow is longer than your height, UV exposure is lower.

The underlying physics is straightforward. When the sun is high (above 45 degrees elevation), UV rays travel through less atmosphere, so less radiation is filtered out before reaching the surface. A shorter shadow directly indicates a steeper sun angle and higher UV dose rate. At most mid-latitude locations, the window where shadows are shorter than body height falls roughly between 10 a.m. and 2 p.m. during spring and summer months, which aligns with peak UV exposure hours identified by skin cancer research.

Practical Applications of Shadow Length

Architecture and Zoning

Many municipalities require shadow impact studies before approving new construction, particularly for buildings above 4 to 6 stories. These studies model how a proposed structure’s shadow sweeps across neighboring properties throughout the day and across seasons. The critical design case is typically the winter solstice, when shadows are longest. Architects use the shadow length formula with the local winter solstice noon elevation to determine minimum setback distances that prevent permanent shading of adjacent buildings, parks, or sidewalks.

Solar Panel Spacing

For ground-mounted or flat-roof solar arrays, panels must be spaced far enough apart that one row does not shade the next. The standard approach calculates row spacing using the shadow length at the winter solstice noon sun angle for the installation’s latitude. Even partial shading on a single cell in a typical 36-cell module can reduce power output by up to 75%, making accurate shadow length calculations directly tied to system efficiency and return on investment.

Photography and Filmmaking

Photographers use shadow length and direction to plan shoots around specific lighting conditions. The “golden hour” near sunrise and sunset produces shadow ratios above 5x, creating long, dramatic shadows favored in landscape and portrait work. Knowing the exact shadow ratio at a planned shoot time lets a photographer predict where shadows will fall in a scene and position subjects accordingly.

Landscaping and Garden Planning

A fence, wall, or tree casts a shadow zone where shade-tolerant plants should be placed. Calculating the shadow length at summer and winter solstice noon gives the minimum and maximum shadow footprint. For example, a 2 m fence at 40 deg N latitude casts a noon shadow of about 1.0 m in June but roughly 4.0 m in December. That 3 m difference defines a transitional planting zone that receives full sun in summer but deep shade in winter.

Forensics and Geolocation

Open-source intelligence (OSINT) analysts and forensic investigators use shadows in photographs and satellite imagery to estimate the time a photo was taken or to verify the claimed location. By measuring the shadow length of an object with known height in an image, analysts can back-calculate the sun elevation angle, then cross-reference that angle against solar position data for the claimed date and coordinates. A mismatch between the calculated sun angle and the expected angle for that time and place can reveal that an image was taken at a different time or location than stated.

Shadow Length Throughout the Day

Shadow length changes continuously as the sun moves across the sky. The table below shows approximate shadow lengths for a 1.7 m tall person (average adult height) at 40 deg N latitude on the equinox and summer solstice.

Solar TimeSun Elev. (Equinox)Shadow (Equinox)Sun Elev. (June Solstice)Shadow (June Solstice)
7:00 AM12 deg8.0 m25 deg3.6 m
8:00 AM23 deg4.0 m36 deg2.3 m
9:00 AM33 deg2.6 m48 deg1.5 m
10:00 AM41 deg2.0 m58 deg1.1 m
12:00 PM50 deg1.4 m73 deg0.5 m
2:00 PM41 deg2.0 m58 deg1.1 m
4:00 PM23 deg4.0 m36 deg2.3 m
5:00 PM12 deg8.0 m25 deg3.6 m

On the equinox at 40 deg N, an average adult’s shadow shrinks from about 8 m at 7 AM to 1.4 m at noon, then stretches back out symmetrically into the afternoon. On the summer solstice at the same latitude, the noon shadow drops to just 0.5 m because the sun reaches 73.4 degrees elevation.

Limitations and Edge Cases

The standard formula L = H / tan(a) assumes flat terrain, a single directional light source, and a vertical object. On sloped ground, the effective angle changes: an uphill slope shortens the shadow while a downhill slope lengthens it. For objects that are not vertical (such as a leaning pole or a person bending), the height H must be replaced with the vertical component of the object. At extremely low sun angles (below about 2 degrees), atmospheric refraction bends light enough to introduce noticeable error, and shadows become so long that minor ground undulations distort them significantly.

For artificial point-source lights like streetlamps, the shadow formula changes entirely. If the light is at height H_L and the object of height H_O is at horizontal distance d from the light, the shadow length is: L = (H_O * d) / (H_L – H_O). This produces longer shadows as the object approaches the light’s height and theoretically infinite shadows when the object and light are the same height.