Sun, Moon & Sleep Tracker
Calculate ideal sleep times using 90-minute cycles, track golden hours for photography, and see how moon phases affect your sleep quality.
Enter the time you need to wake up. We calculate ideal sleep times based on 90-minute sleep cycles (adding 15 mins to fall asleep).
Find the perfect lighting for photography. Requires location access.
The best phase for restorative sleep. Low light aids natural circadian rhythm reset.
About Sun, Moon & Sleep
Optimize your circadian rhythm and creative schedule. Sleep cycles are calculated on 90-minute intervals. Golden hours use live geolocation data. Moon phases are calculated using the synodic month algorithm. All calculations happen locally in your browser for total privacy.
Understanding Sleep Cycles
Human sleep is not a single uniform state — it progresses through repeating cycles of approximately 90 minutes. Each cycle moves through light sleep (N1, N2), deep sleep (N3), and REM (Rapid Eye Movement) sleep. Deep sleep is when the body repairs tissue, builds muscle, and strengthens the immune system. REM sleep is when memory consolidation and dreaming occur.
Waking up in the middle of deep sleep causes sleep inertia — that heavy, groggy, disoriented feeling that can last for hours. Waking up at the end of a complete 90-minute cycle, when sleep is lightest, leaves you feeling refreshed even with fewer total hours. This is why 6 hours of sleep (4 complete cycles) often feels better than 7 hours that interrupts a cycle.
How to Use the Sleep Cycle Calculator
Enter the time you need to wake up, and the calculator works backward in 90-minute increments to show you the ideal times to fall asleep. It accounts for the average 14 minutes it takes to fall asleep after lying down, so the times shown are when you should get into bed, not when sleep actually begins.
For example, if you need to wake at 7:00 AM and want 5 complete cycles (7.5 hours): fall asleep at 11:16 PM → wake at 7:00 AM (7.5 hours, 5 cycles). If 5 cycles is not possible, 4 cycles (6 hours) finishing at 12:46 AM is better than an amount that interrupts a cycle.
Golden Hour and Blue Hour for Photographers
The golden hour is the period shortly after sunrise and before sunset when sunlight is soft, warm, and directional. The low angle of the sun creates long shadows and a warm orange-red glow that is universally flattering for portraits, landscapes, and architecture. Professional photographers plan entire shoots around these windows.
The blue hour occurs just before sunrise and just after sunset, when the sky takes on a deep blue tone as the sun is below the horizon but still illuminating the atmosphere. It lasts roughly 20–40 minutes depending on your latitude and is ideal for cityscape photography where building lights balance naturally with the ambient sky brightness.
This tool uses your location (with permission) to calculate the exact times for both golden and blue hour for your specific latitude, longitude, and date — because these windows shift significantly with location and season.
Moon Phases and Their Names
- New Moon 🌑 — the moon is between Earth and the Sun, its dark side facing us. Not visible at night. Best for stargazing.
- Waxing Crescent 🌒 — a small sliver of light growing on the right side.
- First Quarter 🌓 — the right half of the moon is lit. Rises at noon, sets at midnight.
- Waxing Gibbous 🌔 — more than half lit, growing toward full.
- Full Moon 🌕 — the entire face of the moon is illuminated. Rises at sunset, sets at sunrise. Brightest nights.
- Waning Gibbous 🌖 — more than half lit, shrinking from full.
- Last Quarter 🌗 — the left half is lit. Rises at midnight, sets at noon.
- Waning Crescent 🌘 — a small sliver on the left, returning to new moon.
The lunar cycle from new moon to new moon takes approximately 29.5 days — the synodic period of the Moon.
Knowledge Base
The Sun, Moon & Sleep Tracker is a 3-in-1 wellness and productivity tool. It calculates the best times to fall asleep based on 90-minute circadian rhythm cycles, provides live Golden and Blue hour times for photographers using your geolocation, and shows how the current moon phase might be affecting your sleep quality based on scientific studies and historical folklore.
- 1Enter the time you need to wake up to see your ideal sleep times (6, 5, or 4 cycles).
- 2Click 'Enable My Location' to get accurate sunrise/sunset and golden hour data for your area.
- 3Check the Moon Phase section to see today's lunar state and its historical link to sleep quality.
Unlike basic alarm clocks or weather apps, this tool combines circadian science, precise astronomical data, and lunar folklore in one private interface. Location data is only used in your browser and never stored or sent to any server.
How does the 90-minute sleep cycle calculation work?
Sleep occurs in roughly 90-minute cycles. Waking up at the end of a cycle (rather than in the middle of deep sleep) helps you feel more refreshed. We calculate backward from your desired wake time, adding 15 minutes for falling asleep.
Is the Golden Hour data accurate for my location?
Yes! It uses the official Sunrise-Sunset API with your browser's exact GPS coordinates, providing pinpoint accuracy for photographers.
Does the moon actually affect sleep?
Several scientific studies (including those from the University of Basel) have found that people may experience reduced deep sleep and take longer to fall asleep around a Full Moon, even in a dark room.