What the shift rotation adjuster does
You tell the tool when you normally fall asleep, how long you usually sleep, when the new shift starts and ends and how many days you have. It works out a target sleep window for the new roster and then moves your sleep window towards it each day, in steps of up to two hours later or 90 minutes earlier.
For each day it shows the sleep window, the time for your last caffeine, and a light tip. If you cannot reach the target in the days you have, it shows an anchor sleep of four hours that you can keep steady while the rest of the sleep moves around it.
Why changing shifts is hard
Your body clock follows light and is not set by the roster. It can shift about one to two hours a day with the right light and dark exposure, and shifting later is easier than shifting earlier. Eastman and Burgess describe this in their guide on adjusting to time zones, and the same logic applies to shifts.
A sudden swing from days to nights asks the clock to move by ten hours or more in a day or two. The result is a mix of sleepiness at work and wakefulness at bedtime, a pattern known as shift work disorder when it becomes persistent. The NIOSH guide for shift workers lists poor sleep, fatigue, stomach problems and higher accident risk as common effects.
Anchor sleep and why it helps
Anchor sleep is a block of about four hours that you keep at the same clock time each day, whatever the shift. The idea comes from research on rotating shifts. The anchor keeps part of the body clock fixed, so you adapt faster and feel less jet lagged. The rest of your sleep fits around it, as a longer sleep or a nap.
When the tool says your target and your current window cannot be reconciled in the days you have, it gives you the anchor window. Try to keep it quiet, dark and free of calls, and plan naps before and after as needed.
Light and dark: the timing that matters
For night shifts, bright light at the start of the shift keeps you alert and tells the clock that it is daytime. Bright light at the end of the shift, on the way home, tells the clock to stay on a day schedule, which is the opposite of what you want. Wear dark sunglasses on the way home and use blackout curtains for your sleep.
For day shifts after nights, get bright outdoor light within an hour of waking and avoid it in the evening. Use warm dim lights at home from about two hours before the new bedtime.
Caffeine for shift workers
Caffeine helps at the start of a night shift, but a late dose spoils sleep. Drake and colleagues found that 400 mg taken six hours before bed cut sleep by over an hour. The adjuster shows a last caffeine time six hours before each sleep window.
Switch to water or decaf in the second half of the shift, and keep snacks light. Heavy meals in the middle of the night raise blood sugar and make you sleepy.
Naps before and during shifts
A 90 minute nap before the first night shift gives a full sleep cycle and cuts sleep pressure for the first hours. Short 10 to 20 minute naps on a break help alertness for a short while, as Brooks and Lack found in their nap study. Allow ten minutes after a nap before demanding tasks.
If your workplace allows a break nap, use a timer and a safe, quiet place. Tell colleagues so nobody worries.
Protect your day sleep at home
- Use blackout curtains or a sleep mask
- Keep the room cool, around 16 to 19 degrees Celsius
- Turn off phone notifications and use a do not disturb sign
- Use earplugs or white noise to cover daytime sounds
- Tell family and flatmates when your sleep window starts and ends
- Keep the same wind down routine as at night
Long term health and when to speak up
Short term rotations can be managed with the steps above. Long term rotating or night work is linked to higher risks of sleep problems and other health issues, so schedule regular check ups and speak to your employer about rosters that rotate forward, from days to evenings to nights, which suits the body clock better than rotating backward.
If you struggle to sleep or stay awake at work, see a doctor. Treatments exist for shift work disorder, including timed light and, in some cases, medication.
Meals and drinks around a changing roster
Your gut has a body clock too, and eating at odd hours can leave you feeling unwell. Keep your main meal at the start of your waking period and eat lighter snacks during the second half of a night shift. Choose protein, fibre and fruit over sugary snacks, which give a short lift and a crash.
Drink water through the shift and keep alcohol out of the hours before sleep. Alcohol may help you fall asleep, but it breaks up the second half of the night, which is the part you can least afford to lose after a swap.
Telling your household and protecting your sleep
A change of roster affects everyone at home. Share the schedule early and agree on quiet hours, a sign for the bedroom door and a plan for deliveries and noise. Ask a partner to answer the door and the phone during your anchor sleep.
For parents, split nights using the night splitter, and use daytime naps to cover the gaps. Be kind to yourself in the first two days. You will feel worse before you feel better, and that is part of the process.
Safety on the first shifts
The first night after a swap is the most dangerous time to drive or run machinery. Rest before you go, nap if you can, and avoid driving at the end of the shift when you can. If you notice microsleeps, tell a supervisor and get a safe lift. See the drowsy driving risk calculator for a quick check.
Frequently Asked Questions
How long does it take to adjust to night shifts? ›
Most people need several days, because the body clock moves one to two hours a day. Anchor sleep and light timing speed it up.
Is it better to sleep before or after a night shift? ›
Many people sleep after the shift and add a nap before the next one. The tool sets your window based on your shift times.
Should I wear sunglasses after a night shift? ›
Dark sunglasses on the way home reduce the morning light signal, which helps your clock stay on the night schedule.
What is anchor sleep? ›
A block of about four hours of sleep kept at the same clock time every day to stabilise the body clock during rotating shifts.
When should I stop caffeine on a night shift? ›
About six hours before your sleep window starts.
Can I use this plan for jet lag too? ›
The principles are similar, but use the jet lag calculator for flights.
Written by F.A and last updated on 5 November 2026. Claims are checked against the peer reviewed papers and public health sources listed below, and findings from small or early studies are labelled as such. We follow our editorial policy and explain how times and results are calculated in our methodology. Calculators run in your browser and store nothing. Found an error? Tell us and we will correct it.
Sources
- Eastman CI, Burgess HJ. How to travel the world without jet lag. Sleep Med Clin 2009
- NIOSH. Plain language about shiftwork (publication 97 145)
- Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 2013
- Brooks A, Lack L. A brief afternoon nap following nocturnal sleep restriction: which nap duration is most recuperative? Sleep 2006
- Watson NF et al. Recommended amount of sleep for a healthy adult. Sleep 2015
This page gives general information for adults and is not medical advice. If you have ongoing sleep problems, loud snoring, breathing pauses or heavy daytime sleepiness, speak to a doctor. Times and results are estimates.
