Hiking calculators / Time & distance
Sunset and turnaround time calculator
Pick where and when you're hiking and enter your moving time. You get sunrise and sunset, the latest you can start and still be off the trail an hour before sunset, and the time to turn around on an out-and-back.
Start by 2:51 pm; sunset 8:31 pm
On June 21, 2027 the sun sets at 8:31 pm (Denver / Front Range, CO). To be off the trail 60 minutes before that, a 4 h 40 min hike has to start by 2:51 pm.
How we got there
| Sunrise | 5:32 am | civil dawn 5:00 am |
|---|---|---|
| Sunset | 8:31 pm | civil dusk 9:04 pm: after this you need a headlamp |
| Daylight | 14 h 59 min | Denver / Front Range, CO, June 21, 2027 (America/Denver) |
| Your hike | 4 h 40 min | 4 h moving + 10 min of stops per hour |
| Be off the trail by | 7:31 pm | 60 min before sunset |
| Latest start time | 2:51 pm | to finish by then at your pace |
| If you start at 8:00 am, turn around by | 1:46 pm | on an out-and-back, half of the time you have left |
How the times are worked out
Sunrise and sunset come from NOAA's solar equations for the latitude, longitude and date, converted to local time with daylight saving where it applies. Sunset here is the moment the top of the sun drops below a flat horizon. Civil dusk, about 30 minutes later, is when it's too dark to read a trail without a headlamp.
From there the arithmetic is simple:
| Time | How it's found |
|---|---|
| Be off the trail by | sunset minus your buffer (60 minutes by default) |
| Your hike | moving time plus your stops (10 minutes per hour by default) |
| Latest start | off-trail time minus your hike |
| Turnaround | halfway between your start time and the off-trail time |
The turnaround uses half of the time you have, not half of the hike, because on an out-and-back the walk back can take as long as the walk out. On a big climb the descent is often faster, but tired legs, a slower partner or a missed junction can easily use that margin.
Why dark comes early in canyons and mountains
The sunset time assumes a flat horizon. In a canyon, under a ridge or on the east side of a mountain, the sun goes behind the terrain well before official sunset, sometimes an hour or more before in deep canyons and in winter when the sun is low. Dense forest makes it darker still. Temperatures can drop quickly once you're in shade.
That's why the default buffer is 60 minutes, and why you should raise it in canyons and in the colder months. Carry a headlamp on every hike anyway; it's one of the Ten Essentials for a reason.
Turnaround time is a promise to yourself
Set the turnaround time before you leave the trailhead, tell everyone in your group, and turn around when it arrives, wherever you are. Not at the next viewpoint, not after the summit that looks close. Most hikers who end up walking out in the dark didn't start too late; they kept going past the point where they should have turned back.
If you reach the turnaround time early in the hike and you're nowhere near your goal, that's useful information: the route is longer or slower than you thought. Pick a closer goal, or come back another day with an earlier start. On a loop or a one-way hike there's no clean halfway point, so check the latest start time instead, and know where the shortcuts and exits are.
Common questions, worked out
Read more
Questions
What time should I start my hike?
Early enough to be off the trail at least an hour before sunset at your real pace, stops included. In summer heat, start at first light so the climbing is done before midday. See what time should I start my hike.
What is a turnaround time?
A clock time, set before you start, at which you turn back no matter where you are. On an out-and-back, turn around halfway between your start time and the time you need to be off the trail.
How long after sunset is it dark?
Civil dusk, when the sun is 6° below the horizon, comes about 25 to 40 minutes after sunset in most of the US, and later at high latitudes in summer. After that you need a headlamp. In forest or a canyon it gets dark on the trail well before then.
Can I use a GPX file?
Yes. Open a route and the calculator uses the trailhead's location and time zone for sunrise and sunset, and fills in the moving time for that route at an average pace (the hiking time calculator shows how it's worked out). Change the hours if you know you're faster or slower.
Does it adjust for daylight saving time?
Yes. The times are shown in the local time zone for the place you pick, with daylight saving applied on the dates it's in effect. Arizona outside the Navajo Nation and Hawaii don't use daylight saving, and the times reflect that.
Sources
- NOAA Global Monitoring Laboratory, NOAA Solar Calculator and its solar position equations.
- Meeus, J., Astronomical Algorithms, Willmann-Bell.
Method checked 2026-11-30. Full formulas on the methodology page.