Practice
How to build a habit when you work night shifts: anchor it to the shift
Clock-based routines collapse on nights. Here is how to hang habits on shift events instead, protect daytime sleep first and keep going on your days off.

On night shifts, tie each habit to an event in your shift cycle rather than a clock time: clocking off, the journey home, the first meal after you wake, putting on your uniform. Those moments happen in the same order every work day even when the hours move. Build sleep-protecting habits first, keep every other habit small, and write a separate, shorter version for your days off.
Key takeaways
- A clock time means something different on a night week and a day off; a shift event means the same thing every time.
- Habits that protect daytime sleep, such as dimming light late in the shift, deserve the first slots in your routine.
- The journey home is a risky time for tired people, so keep habits there simple and never trade safety for a routine.
- Rotating rosters need two versions of a routine that share the same first step.
- Persistent sleeplessness or dangerous drowsiness is a reason to see a doctor, not to try harder.
Most habit advice quietly assumes a nine-to-five body. “Stretch at 7am”, “read before bed at 10”, “walk at lunchtime”. If you work nights, 7am is when you are driving home with gritty eyes, and lunchtime might fall in the middle of your sleep.
The habit itself is rarely the problem. The trigger is. Below is a way to build routines around the structure your work already gives you, starting with the habits that protect your sleep, because almost every other habit depends on them.
Why clock times let night workers down
A habit forms when the same action is repeated in the same situation until the situation starts to prompt it. Habit researchers advise choosing a cue inside an existing daily routine, because it is a convenient and stable starting point (British Journal of General Practice, 2012). More on that mechanism is in our guide to how habits form.
For night workers, a clock time is not stable. Ten in the morning is bedtime on a work day, the middle of the morning on a day off, and somewhere in between during a changeover. The cue keeps changing meaning, so the habit never gets a firm hold.
Aisha, an intensive care nurse, tried to stretch “every day at 4pm”. On work days she was asleep; on days off she was at the shops. The stretch happened about twice a month.
Shift events that make reliable anchors
Your shift cycle has its own landmarks that come round in the same order however the hours fall. These make better hooks than the clock:
| Shift event | Good for |
|---|---|
| Putting on your uniform or work boots | A short check-in: drink water, set an intention for the shift |
| Your main break | A few minutes of movement or stepping outside for fresh air |
| Clocking off or handing over | A natural full stop: a one-line note of what went well, or phone on quiet mode |
| Walking through your front door | Sleep preparation: curtains, bottle of water by the bed, phone on charge across the room |
| The first meal after you wake | Your real “breakfast”, whatever the clock says: a short walk, a call to family or ten minutes of reading |
Written as plans, they look like this: “When I clock off, I will write one line in my notes.” “After my first meal after waking, I will walk for ten minutes before I do anything else.” A meta-analysis by Peter Gollwitzer and Paschal Sheeran, pooling 94 independent tests, found that if-then plans of this kind had a medium-to-large effect on reaching goals (Gollwitzer & Sheeran, 2006).
Aisha moved her stretch to “after I eat my first meal after waking”. On work days that was mid-afternoon, on days off late morning. The anchor was the same either way, and she stretched most days within a month.
Protect sleep before adding anything else
New habits draw on energy you only have if you sleep. The NIOSH training for nurses on shift work makes the point simply: decide to make sleep a priority, plan your schedule to leave enough time for it, and control light, sound and temperature where you sleep (NIOSH, Module 12). Several sleep-protecting steps work well as anchored habits.
Late in the shift: turn the light down
For full-time night workers, NIOSH suggests more light in the first half of the shift to stay alert, then less light in the second half so sleep comes more easily at home. You do not need to stare at a light; working in a brightly lit area is enough (NIOSH, Module 9).
As a habit: “After my main break, I will work in the dimmer area where possible and turn my screen brightness down.” Dan, a warehouse picker, used the break bell as his cue to swap from the bright loading bay to the quieter aisles for his last hours.
Caffeine with a cut-off tied to the shift
NIOSH suggests night workers who use caffeine take it at the beginning of the shift and stop several hours before it ends (NIOSH, Module 6). A clock-based rule (“no coffee after 3am”) breaks when your hours change. A shift-based one does not: “My last coffee is with my main break.”
The journey home: safety first
The same NIOSH page on light warns that sunglasses can blunt light’s alerting effect, which may make drowsy driving more likely after a night shift; it suggests wearing them only if someone else is driving you home (NIOSH, Module 9). If you drive, the only habit worth building on the road is staying alert. If you take public transport or get a lift, the journey can carry calmer habits, such as listening to the same quiet playlist every time as a signal that the day is ending.
Through the door: a short, repeatable wind-down
NIOSH recommends a relaxing routine before bed to help your body move from waking to sleeping, keeping light low for one to two hours beforehand, avoiding heavy or spicy meals in the two to three hours before sleep, and asking family and friends not to disturb you (NIOSH, Module 6). The Sleep Foundation adds blackout curtains or eye shades, and earplugs or white noise if sound is a problem (Sleep Foundation).
Turn that into a fixed sequence after the front door closes: shoes off, curtains shut, light snack if you need one, phone across the room, eye mask on. The order matters more than the time. For general sleep habits that also apply to shift workers, see how to sleep better.
Two versions for rotating rosters and days off
The Sleep Foundation suggests keeping a similar sleep-wake routine on days off and, when your schedule changes, moving bedtimes in small steps; shifting later tends to be easier than shifting earlier (Sleep Foundation).
For habits, that means writing two short routines that share the same first step. Leo, a security guard on a four-on, four-off roster, uses “after my first meal of the day, I put my trainers on” in both. On work days that leads to a fifteen-minute walk before his shift; on days off, a longer one with his partner. The first step stays fixed, so the habit survives the switch even when everything after it changes.
Keep the extras small
Night work already costs energy, so every non-sleep habit should start at a size you could manage after your worst shift: one page, one stretch, one message to a friend. When a bad night leaves you wrecked, a plan helps: “If I finish a shift exhausted, then I will do only the first step of my routine and go to bed.” Grace, a care-home worker, kept her language practice going through a hard winter by allowing herself a single flashcard on bad mornings. Some days that was all she did, and that was enough to keep the cue alive.
When it is more than a routine problem
Some people struggle with sleep and alertness on nights however well they plan. The Sleep Foundation notes that shift work disorder should be diagnosed and treated by a professional (Sleep Foundation). If you regularly cannot sleep after shifts, feel dangerously drowsy at work or on the road, or are thinking about sleep tablets or stimulants, talk to a doctor or a sleep specialist.
The wise move
Before your next night, write one line on a card in your locker: "When I clock off, I will…" followed by a single action under two minutes. Read it as you badge out.
Questions people ask
Should I exercise before or after a night shift?
There is no single right answer. NIOSH suggests that if you have trouble falling asleep, you finish exercise at least three hours before bedtime, which often makes the window after your main sleep and before the shift the easier slot. Pick the one you can repeat most weeks.
Is it better to sleep straight after a night shift or later in the day?
It varies with your household, commute and body clock. What matters more for habits is that your main sleep starts at roughly the same point in your shift cycle each time, so the routine before it can settle.
Can I use the same habit tracker as day workers?
Yes, but log by shift rather than by calendar date. A night that runs from Monday into Tuesday counts as one shift, which keeps the record from looking like a missed day.
Sources
- Module 9. Coping with the Night and Evening Shifts: Light — NIOSH Training for Nurses on Shift Work and Long Work Hours (CDC), 2015
- Module 6. Improving Your Sleep and Alertness: Prepare for Sleep — NIOSH Training for Nurses on Shift Work and Long Work Hours (CDC), 2015
- Module 12. Action Steps for Nurses on Shiftwork — NIOSH Training for Nurses on Shift Work and Long Work Hours (CDC), 2015
- Treatments for Shift Work Disorder — Sleep Foundation, 2025
- Making health habitual: the psychology of 'habit-formation' and general practice — British Journal of General Practice (Gardner, Lally & Wardle), 2012
- Implementation intentions and goal achievement: A meta-analysis of effects and processes — Advances in Experimental Social Psychology (Gollwitzer & Sheeran), 2006
Read how we work in our editorial standards.


