Shadow Length Calculator - Interactive Shadow Projection Tool

Written by:
PK

Our shadow length calculator shows real-time shadow length and direction for any object height, location, date, and time. See an interactive polar diagram with animation or a table mode, and use CSV/SVG export options for whatever it is you do where you need to predict shadows.

Shadow length calculator

Using the shadow calculator

The shadow calculator detects your location (with permission) or lets you enter a city or latitude and longitude. Switch between Visualization and Table modes to see shadow data your way, and click Animate to watch shadows sweep through the day.

Basic shadow features

  • Object Height: Enter height of an object in feet/inches or meters
  • Location Search: Type a city name (in the US you can do "City, State") to search 150,000+ locations worldwide, or directly enter a latitude and longitude
  • Date & Time: Pick any date and time, with seasonal presets for solstices and equinoxes
  • Visualization Mode: Interactive polar diagram shows shadow direction, length, and sun position with a compass rose
  • Table Mode: Complete 24-hour shadow data with hourly breakdown

Interactive shadow diagram

The visualization shows a top-down polar view with the object at center. Watch as the shadow length and direction update in real-time when you change the time or date (or start the animation). The diagram includes:

  • Shadow projection: Realistic shadow (with width) showing how shadows actually spread
  • Sun indicator: Shows where the sun is in the sky with rays and a connection line to the object
  • Distance rings: High-contrast labels showing scale. The rings are mostly fixed through the day, though automatically adjust for sunrise/sunset when shadows get extremely long
  • Compass rose: Cardinal directions and degree markers for precise shadow bearing

During nighttime, the diagram shows "NO SHADOW" with the appropriate phase emoji. That's because shadows don't exist when the sun's below the horizon (I mean, I'm ignoring artificial light here folks. Don't shade me.).

Shadow length calculator Visualization Mode with shadow direction and labels.
Look at that incredible shadow visualization.

Shadow animation and speed controls

Hit Animate to watch shadows sweep through a complete day. The animation steps through 15-minute intervals, showing how shadow length and direction change from sunrise to sunset. Speed options let you watch at slow, normal, or fast rates.

Table mode: hourly data

Switch to Table mode to see a complete 24-hour breakdown of shadow data. The table shows object height, location, and date at the top, followed by hourly shadow calculations from midnight to 11 PM.

Each row includes shadow length, compass direction, sun elevation, and azimuth for that hour. During nighttime hours, you'll see "Infinite" shadow length (the sun's below the horizon). The formula appears at the bottom:

\text{Shadow Length} = \frac{\text{Object Height}}{\tan(\text{Sun Elevation})}

Table mode is perfect for analyzing patterns, finding the shortest shadow time (solar noon), or exporting precise data.

Shadow length over the course of a day in Boston, MA in August
Shadow length in August in Boston, MA

Export options

  • CSV Export: Export the complete 24-hour shadow data with object height, location, and date metadata for spreadsheet analysis
  • SVG Export: Download a scalable diagram with embedded metadata

Explore more sun tracking and solar calculation tools:

      

PK

PK started DQYDJ in 2009 to research and discuss finance and investing and help answer financial questions. He's expanded DQYDJ to build visualizations, calculators, and interactive tools.

PK lives in New Hampshire with his wife, kids, and dog.

Don't Quit Your Day Job...

DQYDJ may be compensated by our partners if you make purchases through links. See our disclosures page. As an Amazon Associate we earn from qualifying purchases.
Sign Up For Emails
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram