Field Tools

Sunrise, Sunset & Daylight

How much light will you have? Sun times, twilight, and day length for any place and any date

About This Tool

The Sunrise, Sunset & Daylight calculator is a free browser tool that tells you when the sun rises and sets at a place on a date. Give it a position and it shows sunrise, sunset, and solar noon; first light and last light, with the nautical and astronomical twilights either side; the length of the day and how it compares with the day before; and the compass bearing on which the sun comes up and goes down, drawn on a map. A planner works back from sunset to the latest time you can start a walk and still be back in daylight, and a table lists the following days. The position can be typed or pasted in decimal degrees, degrees minutes seconds, or degrees decimal minutes, clicked on the map, taken from your device, or read from the start of a GPX file. Nothing is uploaded; the times are calculated entirely in your browser.

How to Use It

  1. Set the place. Type a latitude and longitude, or paste a whole position into any box: it is read whether it is written as decimal degrees, DMS, or DDM. You can also click the map, choose Use My Location, or choose Start of a GPX File to use the first point of a track or route. Drag the pin to adjust.
  2. Set the date. It starts on today. The arrows step a day at a time.
  3. Check the time zone. Times are shown on your device's clock unless you choose another zone. For a trip abroad, pick the zone of the place; if you do not know it, From the longitude gives a close approximation.
  4. Read the times. The headline shows sunrise, sunset, and the length of the day. The bar shows the whole day from midnight to midnight, and the list below it gives each event in order.
  5. Plan back from dark. Under Back Before Dark, enter how long the walk needs and the margin you want. The tool gives the latest start, and says so if that start is before sunrise.
  6. Look ahead. The table lists the next 7, 14, or 30 days. Download it as CSV to print or keep.

What the Times Mean

EventWhere the sun isIn practice
Astronomical dawn and dusk18° below the horizonThe boundary of full night. Between dusk and dawn the sky is as dark as it gets
Nautical dawn and dusk12° below the horizonThe horizon and the outline of the land can be made out, but not the ground at your feet
First light and last light (civil dawn and dusk)6° below the horizonIn clear weather there is enough light to walk and work without a lamp. Under cloud or trees, less
Sunrise and sunsetUpper edge on the horizonThe sun's centre is 0.833° below a level horizon: its own radius, plus the bending of light by the air
Solar noonAt its highest, due south or due northMidway between sunrise and sunset. It is rarely 12:00 on the clock

For planning a day on foot, the two that matter are sunset and last light. The half hour or so between them is usable on an open trail in good weather and is not worth counting on anywhere else.

Frequently Asked Questions

How accurate are the times?

To about a minute between the polar circles, for a level horizon at sea level. The sun's position is worked out with the formulas behind NOAA's solar calculator, taken from Jean Meeus's Astronomical Algorithms. Near the polar circles, in the days when the sun stops setting or stops rising, the times can be several minutes out, because the sun crosses the horizon at a very shallow angle.

Why does another app give a slightly different time?

Usually rounding: a sunrise at 06:42:31 is 06:42 in one app and 06:43 in another. Some apps also correct for your height above sea level, or define sunrise by the sun's centre instead of its upper edge. A difference of a whole hour is a time-zone or daylight-saving difference.

Does it allow for mountains and for my elevation?

No. The times are for a flat horizon. In a valley the sun reaches you later and leaves earlier, sometimes by an hour or more; on a summit you see it a few minutes earlier and later than the times shown. Treat the figures as the outer limits of the light and bring them in for the ground you will be on.

Which time zone are the times in?

Your device's, unless you choose another. Daylight saving is applied for the date you pick, so a date next July shows summer time. The tool does not know which zone a place is in: when the place is far from home, choose its zone from the list. If the sun's highest point comes out at an unlikely hour, the tool tells you the zone is probably wrong.

What does From the longitude do?

It uses the whole-hour offset from UTC that matches the longitude: UTC−8 at 116° west, for example. That is close to the local clock in most places, without daylight saving, and is useful at sea or when you do not know the zone.

What do the lines on the map show?

The directions of sunrise and sunset from the pin on the chosen date. They show which side of a ridge gets the morning sun, which way a camp faces, and where the low sun will be in your eyes.

Are the bearings true or magnetic?

True: degrees clockwise from true north. A magnetic compass reads differently by the local declination; our guide to topographic map navigation covers adjusting a bearing for it.

How does Back Before Dark work?

It takes sunset, or last light if you choose it, subtracts your margin, then subtracts the time the walk needs. A five-hour walk with an hour's margin before a 17:00 sunset has to start by 11:00. If you do not know how long the walk takes, the Hike Time Estimator works it out from a GPX file or from distance and climb.

Does it work in the Arctic and Antarctic?

Yes. When the sun does not set, or does not rise, the tool says so, and it shows whatever twilight there is.

What does it take from a GPX file?

Only the first point: the start of the first track, or of the first route if there is no track, or the first waypoint if there is neither. If that point carries a timestamp, the tool offers to switch to the date it was recorded. Files must be .gpx and under 25 MB.

Is my location sent anywhere?

No. The times are calculated by JavaScript in your browser. Use My Location asks your browser for the device's position, and that position stays on the page. The map loads its background from OpenStreetMap for the area you are looking at, as any online map does; the position you enter and any file you load are not sent anywhere.

What dates does it cover?

From 1900 to 2100.

Related Tools

The Hike Time Estimator gives the other half of the plan: how long the route takes. The GPX Analyzer shows a route's distance and climb before you commit to it. To read a position off a map or change its format first, use the Coordinate Converter.

Learn More

Request a Feature

Have an idea that would make this tool better? Post it on the feature request board and vote on what gets built next.