Home ↓
CalculatorsVerified

Physics & Chemistry

Shadow Length Calculator (Sun Elevation Angle)

Shadows offer one of the oldest and simplest applications of trigonometry. On level ground, a vertical object, its shadow and the line from the top of the object to the tip of the shadow form a right triangle. The angle at the tip of the shadow equals the sun's elevation, its angle above the horizon, so the shadow length equals the object's height divided by the tangent of the sun's elevation. When the sun is 45 degrees high, shadows are exactly as long as the objects casting them; when it is 30 degrees high, they are about 1.73 times as long; and when it is low in the sky near sunrise and sunset, they stretch out dramatically. This calculator works in three directions. Given an object's height and the sun's elevation, it gives the shadow length. Given a height and a measured shadow, it gives the sun's elevation and its complement, the zenith angle. Given a shadow and the sun's elevation, it gives the object's height, a method traditionally credited to the ancient Greek philosopher Thales, who is said to have measured the height of an Egyptian pyramid from its shadow. A 2-metre pole at a sun elevation of 30 degrees casts a shadow about 3.46 metres long, and a 1.8-metre person with the sun at 60 degrees casts a shadow about 1.04 metres long. If a 10-metre tree casts a 10-metre shadow, the sun is 45 degrees above the horizon. The sun's elevation for any place and time can be found from solar position calculators or astronomical almanacs. Shadow calculations are useful in garden planning, solar panel siting, photography, architecture and education.

How to use this calculator

  1. Choose what you want to find.
  2. Enter the object's height and the sun's elevation for a shadow length.
  3. Or enter the height and the measured shadow for the sun's angle.
  4. Or enter the shadow and sun elevation for the object's height.
  5. Use level ground and a vertical object for accurate results.

Shadows and solar planning

Gardeners and solar installers care about the shadows cast by buildings, trees and fences, especially in winter when the sun is low. At a latitude of 50 degrees, for example, the midday sun at the December solstice rises only about 16.5 degrees above the horizon, so a 5-metre building casts a shadow nearly 17 metres long.

Tools that compute the sun's position for each hour of the day let you combine those angles with this calculator to map where shadows will fall throughout the year.

Measuring heights

To measure the height of a tree or building, place a stick of known height vertically and measure its shadow and the object's shadow at the same moment. Because the sun's angle is the same for both, the object's height equals the stick's height multiplied by the ratio of the two shadows.

On sloping ground, or with a leaning object, the simple triangle no longer applies and the slope must be included in the calculation.

Formula & method

Shadow length = height ÷ tan(sun elevation)Sun elevation = arctan(height ÷ shadow length)Height = shadow length × tan(sun elevation)Assumes level ground and a vertical object

Shadow = h ÷ tan(elevation). Elevation = arctan(h ÷ shadow). Height = shadow × tan(elevation). Zenith angle = 90° − elevation.

Worked example

A 2 m pole with the sun at 30°

  1. tan 30° = 0.5774.
  2. Shadow = 2 ÷ 0.5774 = 3.4641 m.
  3. Shadow is about 1.73 times the height.

Answer: The pole casts a shadow about 3.46 m long.

Frequently asked questions

How do I calculate shadow length?

Divide the object's height by the tangent of the sun's elevation angle.

When is a shadow equal to the object's height?

When the sun is 45° above the horizon.

How can I find the sun's angle?

Measure a vertical object's height and shadow, then take the arctangent of height ÷ shadow.

Why are winter shadows longer?

The sun is lower in the sky, so its elevation angle is smaller.

Can there be no shadow?

Yes, when the sun is directly overhead, which happens only in the tropics.

Does this work on slopes?

Not exactly; the formula assumes level ground.