Sun Position Calculator

Calculate the sun's azimuth and elevation angle for any location, date, and time using the NOAA solar position algorithm.

Location & Time

Enter location and time to see sun position

Summary

Calculate the sun's azimuth and elevation angle for any location, date, and time using the NOAA solar position algorithm.

How it works

  1. 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. Enter your UTC offset to convert local time to Universal Time.
  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

  • Optimize solar panel tilt and orientation for maximum energy yield.
  • 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.
  • Verify satellite dish or antenna clear-sky sightlines.
  • Support agricultural planning by knowing daily sun exposure hours.

Frequently Asked Questions

Last updated: 2026-07-22 · Reviewed by Nham Vu