Why Shadows Change Length, and How to Predict Them Exactly
A shadow is one of the oldest measuring instruments in the world. Ancient surveyors estimated the height of pyramids from their shadows, sundials told the time from a shadow's direction, and sailors once judged the hour by the length of their own shadow on a deck. The geometry behind all of it is beautifully simple: a vertical object, the sun at a known angle above the horizon, and a flat patch of ground form a right-angled triangle, and the shadow is one side of that triangle. If you know the height and the sun's elevation angle, the shadow length is fixed, and this calculator works it out in one step.
The formula is shadow length equals height divided by the tangent of the sun's elevation angle. When the sun is at 45 degrees, the tangent is exactly one, so the shadow is exactly as long as the object is tall: a two-metre person casts a two-metre shadow. When the sun climbs higher, the tangent grows and the shadow shrinks; at 60 degrees the shadow is only about 58 percent of the height. When the sun sinks low, the tangent collapses toward zero and shadows stretch dramatically: at 10 degrees, a shadow is nearly six times the object's height, which is why evening shadows race across gardens and parks while midday shadows huddle close to their objects.
Sun elevation changes through the day in a smooth arc, which is why shadows are long in the morning, shortest at solar noon, and long again in the evening. It also changes through the year: at mid-latitudes the midday sun may reach 60 degrees or more in June but barely 15 degrees in December, so the same tree can cast a shadow three or four times longer in winter than in summer. Latitude matters just as much. Near the equator the midday sun passes almost overhead and shadows nearly vanish, while in polar regions the sun stays low for months and shadows stretch for extraordinary distances across snow and ice.
Shadow direction is the other half of the story, and it is just as predictable. A shadow always points away from the sun, so in the northern hemisphere it points roughly north at midday, swings from west in the morning to east in the evening, and at solar noon it is at its shortest and most northerly. In the southern hemisphere the pattern mirrors: midday shadows point south. Photographers use this constantly, planning shoots for the golden hour when low sun gives long, soft, warm shadows that add depth to a scene, and avoiding harsh midday light when shadows are short, hard and unflattering. Gardeners use it too, working out which beds will fall into a neighbour's hedge shadow in winter.
For builders, planners and homeowners, shadow prediction is practical rather than poetic. A new fence, extension or tree can shade a neighbour's garden, a solar panel or a vegetable patch, and disputes about light are far easier to prevent than to resolve. Measuring the height of the proposed object and checking the shadow at winter midday, when the sun is lowest and shadows longest, gives the worst case. If a solar panel stays clear in that worst case, it will stay clear all year. The same check helps with placing patios: a patio that is sunny at noon in June may sit in deep shade at the same hour in November, and a few minutes with a shadow calculation can change where you put the chairs.
Measuring the sun's elevation angle is easier than it sounds. Smartphone compass and sun-position apps report it directly for your location and time, and astronomy websites give it for any date. Without an app, you can estimate it: hold your arm out and use your fist, which covers roughly 10 degrees of sky, counting fists from the horizon to the sun. Or measure a shadow you can already see: if you know your own height and measure your shadow, the angle is the arctangent of height divided by shadow length. Either way, a rough angle gives a useful shadow length, and the calculator's presets for morning, midday and evening cover the most common cases without any measuring at all.
There are limits worth knowing. The simple formula assumes flat ground and a truly vertical object. On a slope, a shadow falling downhill stretches longer and a shadow falling uphill shortens, sometimes dramatically on steep ground. A leaning tree, a sloping roof edge, or a flagpole on a hill all break the neat triangle. Very long shadows also bend slightly with the curvature of the earth and are softened by the sun not being a perfect point of light: the sun has a visible disc, so real shadows have a dark core called the umbra and a softer edge called the penumbra, which is why a distant shadow's edge looks fuzzy rather than razor sharp.
Shadows have also shaped science and culture in surprising ways. Eratosthenes measured the size of the earth by comparing shadow lengths in two Egyptian cities on the same day. Sundials, the oldest clocks, are shadow calculators carved in stone, and their markings had to be corrected for latitude precisely because shadow behaviour changes with place. In art, the study of shadows is called chiaroscuro, and painters from Caravaggio onward used long, dramatic shadows to create depth and emotion. Even today, architects run shadow studies for whole city blocks before building, because a tower's shadow can darken a park for hours and change how a neighbourhood feels.
Children meet this idea early, often without realising it: stand in the sun, measure your shadow with footsteps, and you have measured the sun's angle. It is a wonderful first experiment in trigonometry because the result is visible, physical and easy to check. Try it at different hours and the pattern appears on its own: long, short, long again. Try it in different seasons and the year's rhythm appears too. ShadowCast turns that experiment into a planning tool, but the wonder is the same: a patch of darkness on the ground is really a measurement of where the sun is in the sky.
To use the calculator well, start with an accurate height: measure the object, do not guess it, since every error in height becomes the same percentage error in the shadow. Then pick your sun angle from an app, a preset, or your own measurement. Use the compare mode to test two objects side by side, such as a proposed tree and an existing fence, and check the worst case at winter midday as well as the pleasant case at summer noon. Whether you are placing a patio, protecting a solar panel, timing a photograph, or settling a playground debate about who casts the longest shadow, the answer is one triangle away.
ShadowCast is for photographers chasing golden hour, gardeners planning beds, builders checking overshadowing, teachers demonstrating trigonometry, and anyone who has ever wondered how far a shadow will reach. Enter a height and an angle, and the sun's geometry does the rest. The shadow you see on the ground is not random at all: it is the sun, the earth and a simple triangle, drawn in light and dark for anyone willing to measure it.