How to Plan Sleep Around a Night or Rotating Shift
When you work nights or a schedule that keeps changing, the usual advice about going to bed at 10 and waking at 6 is no help. You still need real sleep. You just have to fit it into whatever hours your job leaves you. This calculator works backward from the time you need to be up and ready, so you can see when to start winding down, when to get into bed, and when to set your alarm.
How to use the calculator
Pick a planning style first.
- I must wake by… Use this when something fixed is coming up, like the start of your next shift, a school pickup, or an appointment. Enter the time you need to be functional by, meaning dressed and ready to go, not just awake.
- I'm starting sleep at… Use this when you already know when you'll get into bed, such as right after a night shift and your drive home. The calculator shows when to wake for each option.
The Shift Pattern buttons (Night, Day, Rotating, Custom) load typical buffer settings for that kind of shift. For example, Rotating allows a little more time to fall asleep and wake up. You can still change any buffer yourself.
Open the extra settings to adjust the buffers for your real routine:
- Fall asleep buffer (20 minutes for Night, 25 for Rotating): how long it usually takes you to drift off. It's set a little higher than in our other calculators, because settling down after a shift, often in daylight, can take a while.
- Wake buffer (default 15 minutes): time to actually get out of bed after the alarm.
- Get ready time (45 minutes for Night): shower, food, commute prep.
- Wind-down time (default 30 minutes): screens off, lights low, a quiet routine before bed.
- Hard stop and earliest in bed: optional limits, if you can't sleep past a certain time or can't be in bed before a certain time. Any plan that breaks one gets a warning, so you can pick another option.
Why it gives you three options
Sleep runs in cycles of roughly 90 minutes, moving from light sleep into deep sleep and REM and back again. Waking at the end of a cycle, when sleep is lighter, tends to feel easier than being pulled out of deep sleep. So the calculator offers plans of four, five, or six full cycles:
- Lighter Rest (4 cycles, about 6 hours) for days when time is truly short.
- Recommended (5 cycles, about 7.5 hours), the best match for the general guideline below.
- Extended Rest (6 cycles, about 9 hours) for recovery after a stretch of short sleep.
The American Academy of Sleep Medicine and the Sleep Research Society recommend that adults sleep 7 or more hours on a regular basis. Six hours is better than nothing on a rough day, but it shouldn't become your normal.
Cycle length varies from person to person and from night to night, so treat the 90-minute figure as a starting point. If you consistently wake up groggy, try nudging the cycle length in the settings by 5 or 10 minutes and see how you feel.
An example
Say you work 11 PM to 7 AM and need to be ready to leave the house by 5:00 PM. With the Night settings, the Recommended plan works backward like this:
- Ready by 5:00 PM, so start getting ready at 4:15 PM.
- Alarm at 4:00 PM, leaving 15 minutes to get up.
- Five 90-minute cycles before that means being asleep by 8:30 AM.
- Allowing 20 minutes to fall asleep, you'd get into bed at 8:10 AM and start winding down around 7:40 AM.
If your commute means you can't be in bed before 8:30, set that as your earliest in-bed time and the plan flags the options that don't fit. You can take the four-cycle option (into bed at 9:40 AM), or shorten your get-ready time so you keep the full 7.5 hours.
Tips for better daytime sleep
The plan only helps if you can actually sleep during it. These habits come from guidance for shift workers published by NIOSH (the CDC's workplace safety institute) and other sleep health sources:
- Go to bed soon after you get home. If your body hasn't adjusted to sleeping in the daytime, your internal clock will start pushing you to stay awake as the day goes on, so the sleep you get earlier in the day usually counts the most. Save errands for after you wake up.
- Make the room very dark. Blackout shades or heavy lined curtains, plus something to block light under the door. A sleep mask works too.
- Keep it quiet and cool. Earplugs or a white-noise machine can cover daytime noise from traffic, neighbors, or family.
- Limit bright light on the way home. Morning light tells your body it's time to be awake. Dark sunglasses can help, but only wear them if someone else is driving.
- Time caffeine and alcohol carefully. Cut back on caffeine in the hours before you plan to sleep. Alcohol may help you nod off, but it tends to break up sleep later.
- Don't drive drowsy. If you're very sleepy after a shift, get a ride, use transit, or take a short nap before driving.
Rotating shifts
Rotating schedules are the hardest, because your body never gets the chance to fully settle into one pattern. Run the calculator again each time your shift changes, and use the "I'm starting sleep at…" mode on transition days when you know when you'll get into bed but not much else. On days off, try not to swing all the way back to a daytime schedule if you're going straight back to nights.
When to talk to a doctor
Some shift workers develop ongoing insomnia or excessive sleepiness that doesn't get better with good habits. This is sometimes called shift work disorder. If you regularly struggle to sleep during your sleep window, nod off at work or behind the wheel, or feel unwell on your schedule, talk with a healthcare provider. This calculator is a planning tool, not medical advice. See our disclaimer for more.