What Is the Shadow Length Calculator?
This calculator finds the length of the shadow cast by an upright object when the sun is at a given angle above the horizon. Knowing shadow length is useful for solar panel spacing, architecture and overshadowing studies, photography planning, gardening, and classic "height of a flagpole" geometry problems. The tool works with any consistent unit (feet, meters, etc.) — the shadow is returned in the same unit you entered for the height.
How to Use It
Enter the object's height and the sun's elevation angle (its altitude above the horizon, from 0° at the horizon to 90° straight overhead). Press calculate to see the shadow length, plus the shadow-to-height ratio so you can quickly scale to other objects. A low sun angle produces a long shadow; a high sun produces a short one.
The Formula Explained
An upright object of height h and its shadow form a right triangle. The sun's elevation angle θ sits at the tip of the shadow, with the object as the opposite side and the shadow as the adjacent side. Since \(\tan(\theta) = \text{opposite} / \text{adjacent} = h / L\), solving for the shadow gives:
$$L = \frac{h}{\tan(\theta)}$$
As \(\theta\) approaches 0° the shadow stretches toward infinity; at 90° (sun directly overhead) the shadow shrinks to zero.
Worked Example
A 10-meter pole with the sun 30° above the horizon: \(\tan(30°) \approx 0.5774\), so $$L = \frac{10}{0.5774} \approx 17.32 \text{ m}.$$ The shadow is about 1.73 times the pole's height — exactly \(\cot(30°) = \sqrt{3}\).
FAQ
What is the solar elevation angle? It is the angle of the sun above the horizon. It changes through the day and across seasons; tools like sun-position calculators give it for any time and place.
Why does my shadow get infinitely long near sunrise? As the elevation angle nears 0°, \(\tan(\theta)\) nears 0, so dividing by it makes the shadow huge — matching the very long shadows seen at dawn and dusk.
What units does the result use? The same units you enter for height. Enter meters, get meters; enter feet, get feet.