Sleep calculator / Shift work calculator
Shift Work Sleep Calculator
Enter your shift and commute. Get a sleep window, wake-up time and caffeine cutoff that fit around it, including night shifts.
- 100% free
- No sign-up
- No app
Most adults need 7 to 9 hours. 5 cycles is a good target.
How the shift work calculator plans your sleep
It starts from the end of your shift, adds your commute and 30 minutes to wind down, then fits as many full 90-minute sleep cycles as it can before you need to get ready for your next shift. It leaves 45 minutes to get up and out the door.
If your full target won't fit, it tells you how short you are, so you can plan a nap or protect your next day off.
Night shift sleep: what helps most
- Go to bed soon after you get home. The longer you stay up in daylight, the harder daytime sleep gets.
- Make the bedroom dark. Blackout curtains or an eye mask matter more for day sleepers than anyone else.
- Cut the noise. Earplugs or white noise, phone on silent, and let your household know your sleep hours.
- Limit bright light on the way home. Many sleep specialists suggest sunglasses on the morning commute so daylight doesn't wake your body clock right before bed.
- Use caffeine early in the shift, not in the last few hours. The calculator gives you a cutoff based on a regular coffee.
- Take a short nap before a night shift if you can. A 20-minute nap, or a full 90-minute cycle, can improve alertness later in the shift. Time it with the nap calculator.
Days off: keep an anchor
Flipping fully back to a daytime schedule on every day off makes the next run of nights harder. A common approach is to keep part of your sleep in the same window on work days and days off, sometimes called anchor sleep, and shift the rest. Plan your days off with the sleep calculator.
When it's more than tiredness
A significant share of shift workers develop shift work disorder: ongoing insomnia or excessive sleepiness caused by their schedule. If you regularly struggle to sleep, feel dangerously sleepy at work or on the drive home, or have had near-misses, talk to a doctor. It is a recognized, treatable sleep disorder.
Drowsy driving after a night shift is a real risk. If you're struggling to stay awake, don't drive: nap first or get a ride.
Frequently asked questions
When should I sleep if I work nights?
For most night workers, the best time is soon after getting home in the morning, in a dark, quiet room. For a shift ending at 7:00 AM with a 30-minute commute, that means lights out around 8:00 AM.
How much sleep do night shift workers need?
The same as everyone else: 7 to 9 hours for adults. Day sleep tends to be shorter and lighter, so a pre-shift nap can help make up the difference.
When should night shift workers stop drinking coffee?
Aim to finish caffeine in the first half of your shift. For a regular 8 oz coffee, the calculator suggests stopping about 9 to 10 hours before you plan to sleep.
Should I nap before a night shift?
Often yes. A 20-minute nap or a full 90-minute cycle in the late afternoon or early evening can improve alertness during the shift.
Sources
- Wickwire EM et al. Shift work and shift work sleep disorder: clinical and organizational perspectives. Chest, 2017.
- Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013.
- Watson NF et al. Recommended amount of sleep for a healthy adult. Journal of Clinical Sleep Medicine, 2015.
More free sleep tools
All completely free, no sign-up.
- Sleep CalculatorBest bedtime or wake-up time, based on 90-minute sleep cycles.
- Nap CalculatorWhen to set your alarm for a power nap or a full-cycle nap.
- Sleep Debt CalculatorHow much sleep you owe this week, and how to pay it back.
- Caffeine Cutoff CalculatorHow much caffeine is still in you at bedtime, and your latest cup.
- Sleep Needs by AgeRecommended hours for every age, from newborns to over-65s.
- Sleep Efficiency CalculatorWhat share of your time in bed you actually spend asleep.
- Jet Lag CalculatorDays to adjust, plus a shift-before-you-fly schedule.
These results are general estimates, not medical advice. Everyone's sleep is a little different. If you're often exhausted despite enough time in bed, snore loudly, or have been told you stop breathing in your sleep, see a doctor.