A shadow is a right triangle drawn by the sun. This shadow length calculator turns an object height and the sun elevation into a shadow length, and it also works backward: enter a measured shadow and get the height of a tree, building or flagpole you cannot climb.
How the calculation works
- Shadow length = height ÷ tan(sun elevation)
- Height = shadow length × tan(sun elevation)
- Shadow-to-height ratio = 1 ÷ tan(sun elevation)
At 45° the ratio is 1, so the shadow equals the height. At 30° the shadow is 1.73 times the height, and at 10° it is 5.7 times as long.
Example
A 6 ft person with the sun 40° above the horizon casts a shadow of 7.15 ft, a ratio of 1.19. A shadow measured at 10 ft with the same sun belongs to an object about 8.39 ft tall.
Why it matters
Shadow length is used in photography to plan light, in gardening to place plants where they will get sun or shade, in solar design to space panels so they do not shade each other, and in classrooms to measure heights with nothing but a ruler. The same trick has been used since ancient times to measure tall buildings.
Good to know
The method assumes a vertical object on level ground and a point-like sun. Real shadows have a soft edge, so measure to the middle of the blurred zone. Take your measurement at the same time as the elevation, because the angle changes by several degrees an hour in the morning and late afternoon. Pick the time of day carefully if you want a quick answer: near noon the shadow is shortest, and its length barely changes for a few minutes. For a tall object, step back so you can see the tip of the shadow clearly and mark it with a stone before measuring.
Related tools
The tree height calculator measures a tree with an angle, the sunrise azimuth calculator gives the direction of the shadow, and the day length calculator shows how long the light lasts.