MapTools
timeSolarFree · No signup

Sun Position Calculator (Solar Azimuth & Elevation)

Calculate real-time solar elevation angles, compass azimuth headings, solar noon times, and shadow length ratios for any location.

On-Device Only
Daily Solar Cycle
Sunrise
02:02 PM
Sunset
01:15 AM
Solar Noon: 07:39 PM • Golden Hour: 12:41 AM
Sun Angles in Sky
Altitude (Elevation)
13.9°
Above Horizon
Azimuth (Heading)
247.3°
WSW
Zenith Angle: 76.1° from vertical
Lunar Ephemeris
Waxing Gibbous
63% Illumination
Phase Cycle Value: 0.29 (0 = New, 0.5 = Full)

Twilight Phases (Dawn & Dusk)

Civil Twilight (-6°)
Dawn: 01:37 PM
Dusk: 01:41 AM
Nautical Twilight (-12°)
Dawn: 01:07 PM
Dusk: 02:10 AM
Night (Astronomical)
Starts: 02:39 AM
Ends: 12:38 PM
Solar Nadir (Midnight)
07:39 AM
Sun lowest point
Loading Google Maps JavaScript Canvas...
Click any place on the world map above to recalculate solar and twilight angles.

Runs entirely in your browser — your inputs never leave this page.

How this tool works

  1. 1

    Computes solar right ascension, declination, and equation of time for the given timestamp.

  2. 2

    Translates celestial coordinates into local topocentric coordinates (Altitude and Azimuth).

  3. 3

    Calculates object shadow length ratios: Shadow = Height / tan(Altitude).

Common uses

  • Solar photovoltaic panel tilt and azimuth orientation optimization.
  • Architectural daylight analysis and neighboring building shadow studies.
  • Landscape photography and golden hour planning.

Frequently asked questions

Solar azimuth is the compass direction from which the sunlight is coming, measured in degrees clockwise from True North (0° North, 90° East, 180° South, 270° West).

More in Time & Sun

View all →
Worked example

Planning Patio Shade in Phoenix with Winter and Summer Sun Angles

A homeowner in Phoenix, Arizona, wants to eat lunch on his patio in December without sitting in full desert sun, and he is deciding whether a 6-foot garden wall will shade the table. Guessing is pointless in Phoenix, where the sun behaves very differently in June and December, so he opens the Sun Position Calculator for his address. His patio faces south, which in Arizona is either the best seat in the house or a griddle, depending entirely on the season.

For December 21, the shortest day of the year, the tool shows the sun climbing only to about 33.1 degrees above the horizon at solar noon, due south. Shadow math is simple division: shadow length equals height divided by the tangent of the sun's elevation. Tan of 33.1 degrees is about 0.652, so the wall's noon shadow is 6 / 0.652, roughly 9.2 feet long, pointing north. His table sits 7 feet from the wall, comfortably inside the shade at lunchtime.

Then he checks June 21 for contrast. The noon sun in Phoenix reaches about 80 degrees, nearly overhead, and the same wall casts a shadow of 6 / tan(80 degrees), or 6 / 5.67, barely 1.1 feet. The 47-degree swing between the two solstices is the whole story of desert shade: a wall that protects you all winter noon is almost useless in summer, which is why he adds a shade sail angled for the high summer sun. The sail earns a second look for a reason he had not considered: by 3 in the afternoon the summer sun has swung around to the west, so a horizontal sail still lets low light slip under its western edge, and he adds a simple drop curtain on that side to finish the job.

He also checks 9 in the morning, when the family actually drinks coffee outside. The sun is lower and in the southeast, so shadows stretch far to the northwest and the patio's east side is the sunny one. Designing for the hour you really use the space, rather than noon by default, is the difference between a patio that works and one that photographs well. He writes the key numbers, winter noon shadow, summer noon shadow, and the 9 AM coffee-hour direction, on a card taped inside a kitchen cabinet, so next year's questions get answers instead of another round of guessing with a tape measure.

Common mistakes to avoid

  • Designing shade from summer angles only. At mid-northern latitudes the noon sun swings more than 45 degrees between solstices. A pergola tuned for July can leave a December table in full sun, so always check both solstices; a design tested against a single date is a coin flip dressed as a plan.
  • Misreading the azimuth scale. On most sun tools, azimuth 180 degrees means the sun is due south, which is where it sits at solar noon in the northern hemisphere. Confusing that with a south-referenced scale flips your whole plan, and when two tools disagree by roughly 180 degrees, this scale difference is almost always the cause.
  • Forgetting that shadows point away from the sun. A low morning sun in the east throws long shadows to the west. People routinely place the shade structure on the wrong side by picturing the shadow falling toward the sun instead of away from it, so sketch the shadow on paper for the exact hour before buying anything.

Pro tips

  • Check three dates, both solstices and an equinox, to see the full yearly range of sun angles for your exact spot.
  • Solar noon is not always 12:00 on the clock; daylight saving and your position in the time zone can shift it by half an hour or more.
  • Measure your wall or tree height honestly, including fences on a slope, because shadow length scales directly with height, and a surprising number of nominal 6-foot fences stand under 5 feet 9 on the low side of the yard.
Geospatial Engineering Reference & Field Manual

Applied Geospatial: Aviation, Marine, Time & Map APIs

Where mapping meets the real world: how planes navigate the curve of the Earth, how ships measure the sea, how time zones really work, and how developers build on map tiles and APIs. Written for Sun Position Calculator (Solar Azimuth & Elevation) and the everyday mapping tasks around it.

1

Great-Circle Navigation: Why Planes Arc

The shortest path between two points on a sphere is a great circle — the route you get slicing the planet through its center. On a flat map this looks like a dramatic arc, which is why New York to Tokyo flights swing near Alaska. The map is lying; the plane is flying straight.

Airlines do not fly perfect great circles. Jet streams — rivers of wind at 35,000 feet — can add 100 mph to ground speed or subtract it. Dispatchers nudge routes into favorable winds, trading a few extra miles for much faster trips. The planned track is a great circle bent by the weather.

For flight planning, distances come in flavors. Great-circle miles are the geometric minimum; filed flight plans run 3 to 7 percent longer for airways and maneuvering. Fuel planning adds reserves on top. When a tool reports 5,500 miles for a transatlantic hop, the airline plans for 5,800.

Airports are identified by two code systems. The 3-letter IATA codes (JFK, LHR, CDG) are for travelers; the 4-letter ICAO codes (KJFK, EGLL, LFPG) are for pilots and air traffic control, with the first letter naming the region. Both point to the same runways.

2

At Sea: Nautical Miles, Knots & Rhumb Lines

A nautical mile is one minute of latitude — about 1.15 land miles or 1.85 kilometers. Because it derives from the Earth's geometry, it is the natural unit for marine navigation: one minute of latitude traveled equals one nautical mile made good, anywhere on the planet.

Speed at sea is measured in knots — nautical miles per hour. The word comes from sailors tossing a knotted rope overboard and counting knots paid out against a sandglass. A container ship at 20 knots covers about 480 nautical miles a day, which is why your overseas order takes weeks.

Sailors historically steered rhumb lines: courses of constant compass bearing. A rhumb line spirals toward the pole and runs longer than the great circle, but it is trivially easy to follow — just hold the heading. Modern ships with GPS follow great circles, but the rhumb line remains the backup every navigator learns.

Ports are the fixed points of maritime geography. Each major harbor publishes exact coordinates for its harbor entrance, and shipping contracts price by port pair. A few miles of error in a port position can misroute a vessel into the wrong traffic lane — precision matters even on the open ocean.

This page shows the first two chapters. Read the complete this category field guide →