Shadow Length Calculator

Shadow length10.00 m
Shadow-to-height ratio1.00x
Sun elevation used45°
Object height10.00 m
How this was calculated
  1. The shadow, the object and the sun's ray form a right triangle: tan(elevation) = height / shadow length.
  2. Shadow length = 10.00 / tan(45°) = 10.00 / 1 = 10.00 m.
  3. The shadow is 1.00x the object's height at this sun angle — at exactly 45° the two are equal.
  4. Surveyors and photographers use the same triangle in reverse: measure a shadow and the sun's angle and you have the height of anything you cannot climb.

A shadow length calculator determines the length of a shadow cast by an object of known height under a given sun elevation. A shadow, its object and the sun's ray form a right triangle, and the relationship tan(elevation) = height / shadow length ties together one equation with three unknowns to solve for. Enter any two values and the calculator returns the third, whether you need the shadow on the ground, the object height or the sun's elevation angle. At a sun elevation of exactly 45°, shadow length equals object height, which is the surveyor's quick check. For example, a 10 m building at 45° casts a 10.00 m shadow, while a 1.80 m person at 30° casts a 3.12 m shadow, 1.73x their height.

This right triangle method is the accepted standard because it relies on fixed geometry rather than estimation. Thales is said to have measured the Great Pyramid by this triangle, waiting for the hour when his own shadow equalled his height. Running the formula backwards from a measured shadow and a known height recovers the sun's elevation, the geometry inside every sundial. Solar installers use the same math in winter, when the low solstice sun stretches shadows and row spacing is set so panels never shade each other. This page shows the formula, step-by-step workings, worked examples and sources.

Worked examples

The 45-degree rule

Primary result: 10.00 m — At 45° the shadow exactly equals the height: 10.00 m of building, 10.00 m of shadow. (Shadow length · 10 · 0 · 45)

Shadow length10.00 m
Shadow-to-height ratio1.00x
Sun elevation used45°
Object height10.00 m

Person at low sun

Primary result: 3.12 m — A 1.80 m person at a 30° sun casts 3.12 m — 1.73x their height. (Shadow length · 1.8 · 0 · 30)

Shadow length3.12 m
Shadow-to-height ratio1.73x
Sun elevation used30°
Object height1.80 m

Recover the sun's angle

Primary result: 29.74° — A 20 m tower with a 35 m shadow means the sun sits at 29.74°. (Sun elevation angle · 20 · 35 · 0)

Sun elevation angle29.74°
Shadow-to-height ratio1.75x
Object height20.00 m
Shadow length35.00 m

The shadow triangle, three ways

A shadow, its object, and the sun's ray form a right triangle. That triangle gives us one equation with three unknowns: tan(elevation) = height / shadow length. A shadow length calculator works by rearranging this single tangent ratio to solve for whichever value you are missing.

Solve for shadow length first. Multiply the object's height by tan of the sun's elevation angle, and the result is the shadow on the ground. At a sun elevation of exactly 45°, shadow length equals object height — the surveyor's quick check. A 10 m building at 45° casts a 10.00 m shadow. Drop the sun to 30°, and a 1.80 m person casts a 3.12 m shadow, which is 1.73x their height. The same tangent ratio, applied to a lower angle, stretches the result across the ground.

Now solve for height. If you can measure the shadow and you know the sun's elevation, multiply shadow length by tan(elevation) and the object's height appears. Thales is said to have measured the Great Pyramid by this triangle, waiting for the hour when his own shadow equalled his height. At that moment, the pyramid's shadow also matched its height — no climbing, no instruments, just the 45° tangent ratio doing the work.

Finally, solve for the angle. Running the formula backwards from a measured shadow and a known height recovers the sun's elevation — the geometry inside every sundial. Divide height by shadow length, take the inverse tangent, and the elevation angle is yours. Solar installers use the same math in winter: the low solstice sun stretches shadows, and row spacing is set so panels never shade each other. One equation, three unknowns, and a tangent ratio that answers each one in turn.

Measuring heights you cannot climb

The ancient Greek thinker Thales is said to have measured the Great Pyramid by waiting for the hour when his own shadow exactly equaled his height. At that moment, he knew the pyramid's shadow must also equal its height, and a simple ground measurement gave him the full height of a monument he could never climb. The trick works because a shadow, its object, and the sun's ray form a right triangle. The relationship tan(elevation) = height / shadow length ties the three quantities together in one equation, and a shadow length calculator lets you solve for any one of the three unknowns as long as you know the other two.

The Thales method relies on a key assumption: the ground must be flat and level between the object and the tip of its shadow. On a true horizontal surface, the triangle is a clean right triangle, and the formula holds without correction. Slopes, steps, or mounded earth at the base will throw the result off, because the measured shadow no longer represents the horizontal leg the geometry expects. For trees, towers, and buildings, the method works best on open pavement or lawn, where the shadow falls uninterrupted and the ground is reasonably even.

At a sun elevation of exactly 45 degrees, shadow length equals object height, which is the surveyor's quick check. A 10 m building at 45 degrees casts a 10.00 m shadow. Drop the sun to 30 degrees and the same geometry stretches the line: a 1.80 m person casts a 3.12 m shadow, 1.73 times their height. Running the formula backwards from a measured shadow and a known height recovers the sun's elevation, which is the geometry inside every sundial.

Solar installers use the same math in winter. The low solstice sun stretches shadows, and row spacing is set so panels never shade each other. A shadow length calculator handles the same triangle for a field of racks as it does for a single tree, and the flat-ground assumption matters just as much on a solar array as it does at the base of a pyramid.

  • Flat, level ground is required: the formula assumes the shadow runs along a true horizontal surface.
  • At 45° sun elevation, shadow length equals object height, the surveyor's quick check.
  • A 10 m building at 45° casts a 10.00 m shadow; a 1.80 m person at 30° casts a 3.12 m shadow, 1.73 times their height.
  • Working backwards from a known height and measured shadow yields the sun's elevation, the principle behind every sundial.
  • Solar installers apply the same math at the winter solstice to set row spacing so panels never shade each other.
Thales waited for the moment his own shadow equaled his height, then measured the Great Pyramid's shadow to find its height without climbing it. The same right triangle still drives modern shadow reckoning.

Shadows through the day and year

Sun elevation changes with the hour, the latitude, and the season, and each shift changes the shadow on the ground. The shadow, its object, and the sun's ray form a right triangle: tan(elevation) = height / shadow length — one equation, three unknowns to solve for. When the sun sits low at dawn or dusk, the shadow stretches long. As the sun climbs toward the middle of the day, the shadow shrinks. This is why noon shadows shrink to their shortest length, because the sun reaches its highest point in the sky and the angle of elevation peaks.

The same triangle governs the change across the calendar. In summer the sun rides high, so shadows stay compact. In winter the low solstice sun stretches shadows, which is why solar installers use the same math during the cold months: row spacing is set so panels never shade each other when shadows are at their longest. A shadow length calculator that takes the sun's elevation angle for a given place and time can turn these seasonal extremes into exact numbers in seconds.

At a sun elevation of exactly 45°, shadow length equals object height — the surveyor's quick check. The worked examples make this clear: a 10 m building at 45° casts a 10.00 m shadow, while a 1.80 m person at 30° casts a 3.12 m shadow, which is 1.73 times their height. Thales is said to have measured the Great Pyramid by this same triangle, waiting for the hour when his own shadow equalled his height so the pyramid's shadow would match its height as well.

Running the formula backwards from a measured shadow and a known height recovers the sun's elevation — the geometry inside every sundial. To get the sun's angle for a given place and time, you can read it from a solar position table, an astronomical almanac, or a weather service that publishes hourly solar data. Feed that angle into the equation along with the object height, and the shadow length follows directly.

Designing with shadows

A shadow, its object, and the sun's ray form a right triangle. The relationship tan(elevation) = height / shadow length ties all three together with one equation and three unknowns, which is why a single shadow length calculator can serve so many different fields. At a sun elevation of exactly 45°, shadow length equals object height — the surveyor's quick check. Thales is said to have measured the Great Pyramid by this triangle, waiting for the hour when his own shadow equalled his height. The same principle still applies whether you are sizing a solar array, planning a garden, timing a photograph, or checking whether a new building will cast too much shade on its neighbors.

Solar installers use the same math in winter: the low solstice sun stretches shadows, and row spacing is set so panels never shade each other. A 10 m building at 45° casts a 10.00 m shadow, so the spacing between rows must account for the worst-case season, not just the annual average. Running the formula backwards from a measured shadow and a known height recovers the sun's elevation — the geometry inside every sundial. That reverse path matters for gardeners mapping sun across a yard too: measure a fence's shadow at noon in December, and you know exactly how far the shade will reach toward your raised beds.

Photographers work the same triangle from the other direction. A 1.80 m person at a 30° sun elevation casts a 3.12 m shadow, which is 1.73x their height. That ratio tells a portrait shooter how far the subject should stand from a wall to catch clean, directional light, or when to wait for a longer, softer shadow that flatters the scene. The shadow length calculator turns a guess into a plan: plug in the subject's height and the time of day, and you get the shadow before you set up the camera.

Building overshadowing rules put a legal edge on the same geometry. Planners need to know whether a proposed tower will block sunlight from an existing window or public park, and the answer comes straight from the tangent. Because the equation is reversible, the same tool that sizes a solar gap also tests a zoning limit — one tangent, many jobs.

FAQs

How do I calculate shadow length?

Divide the object height by the tangent of the sun's elevation. For example, a 10 m object at 45° casts a shadow of 10 / 1 = 10.00 m. This gives you the distance from the base of the object to the tip of its shadow.

How tall is an object from its shadow?

Multiply shadow length by tan(elevation). A 35 m shadow at 29.74° belongs to a 20 m object. This reverses the standard shadow formula, letting you find an unknown height when you can measure the shadow on the ground.

When is a shadow the same length as the object?

At a sun elevation of exactly 45°, the shadow matches the object's height. This is the moment Thales reportedly waited for at the Great Pyramid, using the equal lengths to estimate its height without climbing it.

What sun elevation should I enter?

Enter the sun's angle above the horizon for your place and time. Find it using a solar position calculator or app. The angle changes by the hour and season, so the same object casts different shadow lengths throughout the day and year.

Does the ground have to be flat?

The simple formula assumes flat ground and a vertical object. Slopes stretch or shrink shadows and need a correction. If the ground rises or falls, the actual shadow length will differ from the calculated value unless you adjust for the terrain.

Why do solar panels need shadow calculations?

At the low winter sun, one row's shadow can cover the next. Spacing is designed from the solstice shadow length so rows never shade each other. Proper spacing ensures every panel receives full sunlight, maximizing energy output across the entire array.

Sources

Related calculators

Angle of Repose Calculator
Angle of repose of a loose pile from its height and base diameter, with slope ratio, cone volume, pile mass and typical material ranges.
Belt Length Calculator
Open-belt length from pulley diameters and centre distance, with the correction term shown and the wrap angle on the small pulley checked for slip risk.
Debye Length Calculator
The Debye length of a plasma - how far it screens electric fields - with the value in metres and the number of particles in a Debye sphere.