Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Everyday tools

Shadow length calculator

This shadow length calculator shows that a 6 ft object with the sun 40 degrees above the horizon casts a shadow of 7.15 ft. Change the height or the angle and the shadow length updates, or pick another result to find a height or a sun elevation.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Used to find the shadow length and the sun elevation.
Used to find the shadow length and the object height. From 0.5 to 89.5.
Used to find the object height and the sun elevation.

Works on flat, level ground with a vertical object. A slope, a leaning pole or a very low sun changes the real shadow. Type any elevation to test a time of day.

Shadow length

7.15 ftfor a 6 ft object with the sun 40 degrees up

  • Shadow is 1.19 times the height
  • Longer than the object
Object height
6 ft (1.83 m)
Shadow length
7.15 ft (2.18 m)
Sun elevation
40 degrees
Tip of shadow to top of object
9.33 ft
Shadow of a 6 ft object at other sun elevations
Sun elevationShadow lengthTimes the height
10 degrees34.03 ft5.67
20 degrees16.48 ft2.75
30 degrees10.39 ft1.73
40 degrees7.15 ft1.19
45 degrees6 ft1
50 degrees5.03 ft0.84
60 degrees3.46 ft0.58
70 degrees2.18 ft0.36
80 degrees1.06 ft0.18

How to use the Shadow Length Calculator

  1. Choose What do you want to find?: shadow length, object height or sun elevation.
  2. Pick the Length unit, then fill in the two fields that the chosen result needs. The third field is ignored.
  3. Read the large answer, the chips with the shadow to height ratio and the table of shadows at other elevations.
  4. Change a number to test another time of day: a lower sun gives a longer shadow.

How do you calculate shadow length?

The object, its shadow and the line of sunlight from the top of the object to the tip of the shadow make a right triangle. The object is the vertical side, the shadow is the flat side, and the sun elevation is the angle at the tip of the shadow. Tangent of that angle equals height divided by shadow, so the shadow length is the height divided by the tangent of the sun elevation.

Take a 6 ft person at an elevation of 40 degrees. The tangent of 40 degrees is about 0.8391, and 6 divided by 0.8391 gives 7.15 ft. That is 1.19 times the height, which the page shows as a chip. At 45 degrees the tangent is exactly 1, so a shadow has the same length as the object.

The calculator keeps full precision inside and rounds only what it shows. It accepts elevations from 0.5 to 89.5 degrees, because the formula needs a sun above the horizon and a shadow that does not run off toward infinity.

Shadow of a 6 ft object at different sun elevations
Sun elevationShadow lengthTimes the height
10 degrees34.03 ft5.67
20 degrees16.48 ft2.75
30 degrees10.39 ft1.73
40 degrees7.15 ft1.19
45 degrees6 ft1
50 degrees5.03 ft0.84
60 degrees3.46 ft0.58
70 degrees2.18 ft0.36
80 degrees1.06 ft0.18

How does the sun elevation change the shadow?

The table above shows the pattern. From 80 degrees down to 50 degrees the shadow of a 6 ft object grows by only about four feet. From 20 degrees to 10 degrees it more than doubles, from 16.48 ft to 34.03 ft. Tangent is small for small angles, so dividing by it makes the length climb quickly when the sun is low.

This is why shadows near sunrise and sunset look stretched and shadows around the middle of the day look short. The page takes the elevation as a number you type, so it works for any place and time you want to test. If you need the elevation itself for a date and location, a sun position table or the golden hour calculator gives times for low sun.

How do you find the height of an object from its shadow?

Turn the same triangle around. If you can measure the shadow and know the sun elevation, the height is the shadow length times the tangent of the elevation. A pole whose shadow measures 7.5 ft when the sun is 32 degrees up stands about 4.69 ft tall.

If you can measure both the height of a reference object and its shadow, you get the sun elevation as the inverse tangent of height divided by shadow. A 1.8 m person with a 2.5 m shadow gives 35.75 degrees. Then any other shadow measured at the same moment converts to a height with the first formula.

Pick "Object height" or "Sun elevation" in the first field to run these two directions. The angle can be read from a protractor and a plumb line, or with the triangle calculator if you already know two sides.

Object height from a measured shadow and sun elevation
ShadowSun elevationObject height
3 ft25 degrees1.4 ft
5 ft35 degrees3.5 ft
8 ft40 degrees6.71 ft
12 ft50 degrees14.3 ft
20 ft60 degrees34.64 ft

What affects the accuracy of a shadow measurement?

The formula assumes flat, level ground and a vertical object. On a slope the shadow gets longer or shorter than the figure shown. A leaning pole or a tree with a wide crown also breaks the single triangle, so measure to the tip you care about.

Shadows have soft edges, because the sun is a disc and not a point, and the soft zone grows with the length of the shadow. Measure to the middle of the blurred tip. A one degree error in the elevation matters little at 60 degrees and a lot at 10 degrees, where the shadow can change by many feet. Use the same unit for the height and the shadow, and use the length converter when your two measurements are in different units.

All figures on this page are calculated on your device from the numbers you type.

Use it with

Questions

What is the formula for shadow length?

Shadow length equals object height divided by the tangent of the sun elevation. For 6 ft at 40 degrees that is 6 / tan(40) = 7.15 ft.

When is the shadow the same length as the object?

When the sun is 45 degrees above the horizon, because the tangent of 45 degrees is 1. A 10 ft pole then casts a 10 ft shadow.

How do I find the sun elevation?

Stand a stick of known height on flat ground and measure its shadow at the moment you care about. The elevation equals the inverse tangent of the stick height divided by the shadow, which the page computes when you pick "Sun elevation". Never look at the sun to measure it.

Can I use the calculator for a tree or a building?

Yes, as long as the ground is flat and the object is vertical. Measure the shadow from the base of the object to the tip, type the sun elevation and pick "Object height".

Why are angles below 0.5 and above 89.5 degrees refused?

At a very low sun the shadow grows toward infinity, and at a sun almost straight overhead it shrinks to nothing, so a small rounding error gives a wildly different answer.

Does the page store my numbers?

No. The heights and angles are worked out in the page while you type and nothing is sent anywhere.

The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.