Skip to content
Omnikalc

Shadow length calculator: how long is a shadow, or how tall is the object?

Enter the object height and the sun elevation to get the shadow length, or enter a measured shadow to find the height.

Updated on
Your inputs

Value out of range

°

Value out of range

Value out of range

Results

Shadow length

7.15 ft

Shadow length in meters
2.18 m
Shadow-to-height ratio
1.19
Height from the measured shadow
8.39 ft
Height from the measured shadow in meters
2.56 m

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.

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.

Frequently asked questions

How do you calculate the length of a shadow?

Divide the object's height by the tangent of the sun's elevation angle. At 45 degrees a shadow is as long as the object is tall, and the lower the sun, the longer the shadow.

How can I find the height of a tree from its shadow?

Measure the shadow on level ground and the sun elevation, then multiply the shadow by the tangent of the elevation. You can also compare it with the shadow of a stick of known height at the same moment.

How do I know the sun elevation?

Use a sun position chart, an app, or the shadow of a one-meter stick: elevation is the arctangent of stick height divided by its shadow. Noon elevation in summer is higher than in winter.

Does the ground have to be flat?

Yes. On a slope the shadow gets shorter or longer than on level ground, so the formula only applies to a flat surface and a vertical object.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.