Sunrise & Sunset Calculator

Calculate exact sunrise, sunset, golden hour, blue hour, and twilight times for any location and date. Free online solar time calculator.

Location & Date

Share this tool

Help others discover Sunrise & Sunset Calculator

About Sunrise & Sunset Calculator

How It Works

  • Enter your latitude and longitude (or click Use My Location)
  • Select the date you want to calculate for
  • The tool computes sun times using the NOAA solar algorithm
  • Results update automatically with sunrise, sunset, and twilight times
  • Golden hour and blue hour times are ideal for photography planning

Common Use Cases

  • Planning outdoor and landscape photography sessions
  • Scheduling golden hour portrait sessions
  • Timing astronomical observations after dark
  • Planning outdoor events and activities
  • Determining daylight hours for travel planning
  • Understanding seasonal changes in day length

Frequently Asked Questions

How does the sunrise and sunset calculator work?

The tool uses the NOAA solar position algorithm based on the Julian Day number and the observer's latitude and longitude. It computes the hour angle at which the Sun crosses each altitude threshold (e.g. −0.833° for sunrise/sunset, −6° for civil twilight) and converts those angles to local times.

What coordinates should I enter?

Enter your latitude (north positive, south negative; range −90 to 90) and longitude (east positive, west negative; range −180 to 180). You can also click "Use My Location" to auto-fill your current GPS coordinates if your browser permits access.

What is golden hour?

Golden hour is the period shortly after sunrise and shortly before sunset when the Sun is close to the horizon. The light is soft, warm-toned, and directional — ideal for landscape and portrait photography. It lasts roughly 20–60 minutes depending on season and latitude.

What is blue hour?

Blue hour occurs just before sunrise and just after sunset when the Sun is between −6° and −4° below the horizon. The sky takes on a deep blue tone with no harsh shadows, making it popular for cityscape photography and architecture shots.

What is the difference between civil, nautical, and astronomical twilight?

Civil twilight: Sun is 0°–6° below the horizon; enough light to see outdoors without artificial lighting. Nautical twilight: Sun is 6°–12° below; the horizon is visible at sea. Astronomical twilight: Sun is 12°–18° below; the sky is dark enough for most astronomical observations.

What is solar noon?

Solar noon is the moment when the Sun reaches its highest point in the sky for a given location. It is the midpoint between sunrise and sunset and is not always at 12:00 clock time because of the Equation of Time and your position within a time zone.

How accurate are the calculated times?

The calculations are accurate to within one to two minutes for most dates and locations. They use mean atmospheric refraction values. For very high latitudes or precise scientific work, dedicated astronomical software should be used.

Why do some locations show "polar day" or "polar night"?

At high latitudes (above approximately 66.5°N or S) the Sun can remain above or below the horizon for 24 hours around the solstices. "Polar day" means the Sun does not set; "polar night" means it does not rise.

Are the times shown in local time or UTC?

All times are displayed in your browser's local timezone. The underlying solar calculation is performed in UTC and then converted, so the results automatically reflect daylight saving time if your system clock is set correctly.

Can I calculate sunrise and sunset for past or future dates?

Yes. Simply change the date using the date picker. The algorithm works for any date within the range supported by JavaScript's Date object, although accuracy degrades significantly for dates far from the present.

Why does my sunrise time differ from official government sources?

Small differences (usually under two minutes) are normal due to differences in the atmospheric refraction model, the precise definition of sunrise (upper limb vs. geometric centre), and rounding. Official almanac services use more complex models that account for observer elevation and local atmospheric conditions.

Does this tool require an internet connection to fetch data?

No. All solar calculations are performed entirely in your browser using a mathematical algorithm. No external API is called and no data leaves your device.

Share ToolsZone

Help others discover these free tools!

Share this page

Sunrise Sunset Calculator | Golden Hour & Twilight Times