After a night shift, most people sleep best by going to bed soon after getting home. A nurse working 7 PM to 7 AM with a 30-minute commute and 45 minutes to wind down would sleep from 8:15 AM to 4:15 PM for 8 hours, take a short nap around 5:30 PM, and stop caffeine by about 2:15 AM.
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How To Use The Shift Work Sleep Calculator
- Pick a mode, then enter your shift start and end. Night shifts across midnight work automatically. For a 24-hour shift, enter the same time twice. Or tap a preset.
- Add your commute and wind-down time. These push your bedtime later after the shift.
- Pick how much sleep you need. Most adults need 7 to 9 hours in 24 hours.
| Result | What it means |
|---|---|
| Go to bed and wake up at | Your main sleep for a work day |
| Pre-shift nap | A short nap before a night shift to stay alert |
| Last caffeine by | 6 hours before your bedtime |
| Time between shifts | Off-duty hours from the end of one shift to the start of the next |
What Is Shift Work Sleep?
Shift work means working when most people sleep: nights, early mornings, evenings, rotating or 24-hour shifts. Your body clock is set for night-time sleep, so sleeping in the day is harder and often shorter.
When the problem lasts, it can become shift work disorder: heavy sleepiness, trouble falling or staying asleep, low energy and poor concentration, with a higher risk of mistakes and drowsy-driving accidents. For a full routine, see how to sleep after a night shift.
How Does The Shift Work Sleep Calculator Work?
It decides whether your main sleep comes after the shift or before the next one.
Night and evening shifts: Bedtime = Shift end + Commute + Wind-down; Wake = Bedtime + Sleep need. Day shifts: Wake = Next start - Commute - 60 min; Bedtime = Wake - Sleep need. Last caffeine = Bedtime - 6 h| Shift type | When to sleep |
|---|---|
| Night (starts 6 PM to 4 AM) | Straight after the shift, plus a short pre-shift nap |
| Evening | After the shift, as a late night |
| Day or early start (starts 4 AM to noon) | The night before, early enough for your full sleep |
| 24 hours or longer | Recovery sleep after, then back to night-time sleep |
If the gap is too short for full sleep plus an hour to get ready, it warns you and suggests a split sleep.
Worked Example: A Nurse On 12-Hour Nights
| Step | Value |
|---|---|
| Shift | 7:00 PM to 7:00 AM |
| Home | 7:30 AM (30 min commute) |
| Bed | 8:15 AM (45 min wind-down) |
| Wake | 4:15 PM (8 hours) |
| Pre-shift nap | 20 to 30 min around 5:30 PM |
| Last caffeine | About 2:15 AM |
The plan fits, with time for a meal and a short nap before leaving at 6:30 PM.
Switching From Night Shifts Back To Days
After your last night shift, the Sleep Health Foundation suggests a short sleep in the morning, then going to bed earlier than usual that night. Some sunlight after waking helps your body clock line up with day and night again. Choose Nights to days in the calculator to get a day-by-day plan:
| When | What the plan does |
|---|---|
| Morning after the last night | Short recovery sleep: half your sleep need, ending at least 6 hours before bedtime |
| Afternoon | Daylight outside; no long naps in the 6 hours before bed |
| Each night off | The same bedtime and your full sleep need, then morning daylight |
| Back to a day shift | Bedtime moved earlier if needed, so you wake 60 minutes before leaving |
| Back to nights | A 20 to 30 minute nap before your first night back |
Example: 3 x 12-hour nights ending at 7 AM, 3 days off, then a 7 AM day shift. Sleep 8:15 AM to 12:15 PM, get outside, then go to bed at 9:30 PM every night off. The half-sleep-need length is our own rule to keep the day sleep short; the 6-hour gap follows the advice to avoid long naps in the 4 to 6 hours before your main sleep.
Shift Work Sleep By Role: Nurses, Doctors, Drivers, Pilots And Firefighters
| Role | Common pattern | Main challenge | Preset |
|---|---|---|---|
| Nurses | 12-hour days or nights | Short gaps between back-to-back 12s | Nurse, 12 h nights |
| Doctors | Long days, nights and on-call | Long hours and irregular calls | Doctor, long day |
| Truck drivers | Nights and early starts | Drowsiness at the wheel | Truck driver, nights |
| Pilots and cabin crew | Early reports and time zones | Very early alarms, jet lag | Pilot, early report |
| Firefighters | 24-hour shifts | Broken sleep on shift | Firefighter, 24 h |
Flight crews crossing time zones can also plan with the jet lag recovery calculator. Follow your employer and regulator rules on duty and rest times; this calculator does not replace them.
Rest Rules For Pilots And Truck Drivers
In the US, airline pilots must be given at least 10 consecutive hours of rest before a flight duty period, including at least 8 uninterrupted hours of sleep opportunity (14 CFR 117.25). Property-carrying truck drivers must take 10 consecutive hours off duty before driving, may drive up to 11 hours within a 14-hour window, and need a 30-minute break after 8 hours of driving (49 CFR 395.3). These are minimums: plan your real sleep inside the rest period with the calculator.
What Is A Good Night Shift Sleep Schedule?
A good night shift sleep schedule protects one main sleep at the same time after every shift, adds a short nap before work, and stops caffeine about 6 hours before bed. Here is how that looks for two common night shifts, using the calculator defaults (30 minute commute, 45 minute wind-down, 8 hours of sleep):
| 8-hour nights (11 PM to 7 AM) | 12-hour nights (7 PM to 7 AM) | |
|---|---|---|
| Home | 7:30 AM | 7:30 AM |
| Main sleep | 8:15 AM to 4:15 PM | 8:15 AM to 4:15 PM |
| Pre-shift nap | Optional, 20 to 30 min early evening | 20 to 30 min around 5:30 PM |
| Last caffeine | About 2:15 AM | About 2:15 AM |
On a run of nights, keep the same main sleep window every day.
Sleep Straight After vs Split Sleep: Which Is Better?
| Straight after the shift | Split sleep | |
|---|---|---|
| Pattern | One long sleep soon after getting home | A shorter main sleep plus a longer nap before the next shift |
| Best when | You fall asleep easily after nights and have a long gap between shifts | You wake early in the day, or the gap is too short for one long sleep |
Either works if the total reaches your sleep need and the timing stays the same each work day.
Factors That Change Your Shift Work Sleep
Light
Bright light at work and sunglasses on the way home make daytime sleep easier.
Naps
A planned nap before or during a night shift improves alertness, according to sleep medicine practice parameters; the nap calculator helps you choose a length.
Caffeine
Caffeine helps alertness on the shift, but taken within 6 hours of bed it can cut sleep by more than an hour. The caffeine calculator works out what is left at bedtime.
Your Bedroom
Blackout curtains, earplugs and a cool room protect daytime sleep.
Who Should Use A Shift Work Sleep Calculator?
- Night workers in healthcare, transport, security, manufacturing and emergency services.
- Early starters, such as pilots, bakers and delivery drivers.
- People on rotating rotas planning each week as it comes.
- Families of shift workers planning quiet hours.
Common Mistakes On Shift Work
Running Errands Before Bed
Staying up after a night shift shortens the easiest sleep.
Late Caffeine
A coffee near the end of a night shift lands just before bedtime.
No Nap Before Nights
A short pre-shift nap is a simple way to stay alert.
Driving Drowsy
If you are very sleepy, nap first or get another way home.
Accuracy And Limitations
The times follow sleep medicine guidance and simple rules, but every rota and household is different.
What It Does Well
- Bed, wake, nap and caffeine times for one shift pattern
- Day, evening, night and 24-hour shifts
- A day-by-day plan from nights back to days
What It Cannot Do
- Plan a whole rotating month at once
- Replace duty and rest rules from your employer or regulator
- Diagnose shift work disorder
How We Calculate Your Shift Work Sleep
Shift Work Sleep Calculator FAQs
When should I sleep after a night shift?
For most people, soon after getting home, in a dark, quiet, cool room. The calculator adds your commute and wind-down time.
How much sleep do shift workers need?
The same 7 to 9 hours in 24 hours as other adults, from one main sleep or a main sleep plus a nap.
Should I nap before a night shift?
Yes. A planned nap before or during a night shift improves alertness. A 20 to 30 minute nap avoids grogginess.
When should I stop caffeine on a night shift?
At least 6 hours before you plan to sleep. For a bedtime of 8:15 AM, that is about 2:15 AM.
How do I sleep before an early shift?
Count back from the time you need to wake, allowing an hour to get ready, and go to bed early enough for your full sleep.
How should I sleep after a 24-hour shift?
Take a recovery sleep after the shift, then try to go to bed at a normal time that night to reset.
What if there is not enough time between shifts?
Split your sleep into a main sleep after the shift and a longer nap before the next one.
What is shift work disorder?
Ongoing trouble sleeping or heavy sleepiness because of a work schedule, usually for a month or more. A sleep doctor can help.
Sources
- FAA: Flightcrew member rest requirements, 14 CFR 117.25 (eCFR) (10 consecutive hours rest, 8 h sleep opportunity)
- AASM practice parameters for circadian rhythm sleep disorders (planned naps, light, caffeine for night workers)
- AASM Sleep Education: Shift work disorder (symptoms and risks)
- Drake et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (2013) (6-hour caffeine cut-off)
- Sleep Health Foundation: Healthy sleep practices for shift workers (short morning sleep and earlier bedtime before days off, daylight, naps, 7 to 9 hours)
Related Calculators
For bedtimes and wake-up times in both directions, use the main sleep calculator. Explore every sleep timing, sleep need and shift work tool in one place.
All sleep toolsThis calculator gives general sleep timing guidance for shift workers. It does not replace duty and rest rules from your employer or regulator, or medical advice. Do not drive if you feel very sleepy. Spotted an error? Let us know.