Sun Position Calculator

Calculate the sun's azimuth and elevation angle for any location, date, and time using the NOAA solar position algorithm, with DST-aware time zones, twilight and golden-hour times and an hourly table.

Solar elevation follows sin(elevation) = sin φ × sin δ + cos φ × cos δ × cos h, where φ is latitude, δ is the Sun's declination and h is the hour angle (15° per hour from solar noon).

Use the Sun Position Calculator

Location & Time

Location permission is optional. Coordinates are used only in this browser calculation.

Pick a time zone to apply daylight saving time for the chosen date automatically.

Enter location and time to see sun position

Sun elevation at solar noon by latitude

Noon elevation = 90° − |latitude − declination|, geometric (refraction adds about 0.0–0.5°). Northern latitudes shown; for the same southern latitude swap the June and December columns. The noon sun is due south when the latitude is north of the declination, due north when it is south of it.

Latitude Dec solstice (δ −23.44°) Equinoxes (δ 0°) June solstice (δ +23.44°)
0° N 66.6° 90.0° 66.6°
10° N 56.6° 80.0° 76.6°
20° N 46.6° 70.0° 86.6°
30° N 36.6° 60.0° 83.4°
35° N 31.6° 55.0° 78.4°
40° N 26.6° 50.0° 73.4°
45° N 21.6° 45.0° 68.4°
50° N 16.6° 40.0° 63.4°
55° N 11.6° 35.0° 58.4°
60° N 6.6° 30.0° 53.4°
65° N 1.6° 25.0° 48.4°
70° N below horizon 20.0° 43.4°

Quick answer

Solar elevation follows sin(elevation) = sin φ × sin δ + cos φ × cos δ × cos h, where φ is latitude, δ is the Sun's declination and h is the hour angle (15° per hour from solar noon). Azimuth is the Sun's compass bearing clockwise from true north, and at solar noon the elevation is simply 90° − |φ − δ|.

Examples

Place, date, local timeAzimuthElevation
New York, Jun 21 2026, 1:00 PM181.6° (S)72.7°
New York, Dec 21 2026, 12:00 PM181.5° (S)25.9°
Pittsburgh, Sep 21 2026, 3:00 PM218.2° (SW)43.2°
Antananarivo, Jun 21 2026, 11:52 AM0.6° (N)47.7°

Pick a city or enter coordinates, date and time to get azimuth, elevation, twilight and golden hour, an hourly table and the day's sun path chart.

Summary

The Sun Position Calculator computes solar azimuth and apparent altitude for a geographic coordinate and local date/time. It implements equations published by NOAA's Global Monitoring Laboratory; checked against the U.S. Naval Observatory, New York on June 21, 2026 at 1:00 PM EDT gives 181.63° azimuth and 72.72° elevation in both. Pick a city or an IANA time zone and the UTC offset, including daylight saving time, is taken from your browser's time-zone data for that date; a custom offset is also accepted. Results include solar noon and noon elevation, sunrise, sunset, day length, civil, nautical and astronomical twilight, golden and blue hour, an hourly position table you can copy as CSV, and a shadow-length estimate.

How it works

  1. Pick a city preset, or enter your latitude and longitude (or click "Use My Location" to auto-fill from your browser).
  2. Select the date and local time you want to evaluate.
  3. Choose a time zone so daylight saving time is applied for that date, or type a custom UTC offset.
  4. The tool computes the Julian Day Number and Julian Century for the given moment.
  5. Solar geometric angles (declination, equation of time, hour angle) are derived using NOAA polynomial coefficients.
  6. Azimuth and elevation are calculated from the hour angle and declination, then corrected for atmospheric refraction.

Use cases

  • Inspect solar azimuth and elevation before planning a solar-energy site assessment.
  • Determine shading patterns for building design and architecture.
  • Plan landscape or portrait photography at the golden hour or blue hour.
  • Schedule outdoor activities around peak sun intensity.
  • Find sunrise and sunset times for any location on Earth.
  • Calculate solar noon for accurate sundial calibration.
  • Check when direct sunlight may enter a window or cast a shadow.
  • Support agricultural planning by knowing daily sun exposure hours.

Frequently Asked Questions

Last updated: 2026-10-09 · Reviewed by Nham Vu