How to build a habit when your work hours keep changing

Say you want to review one Spanish flashcard a day, and you've picked 7 p.m. On a day off, that works. After an early shift, 7 p.m. finds you on the sofa with the cards somewhere in your work bag. On a night shift, you're already at work. After a week, the plan has worked on two days, and you start to wonder if habits are only for people with nine-to-five jobs.

They aren't. Start by looking for a moment when you can actually do the card, even as your hours change.

The clock isn't the problem; the gaps are

A clock time can be a perfectly good cue. In one nutrition study, people who tied a daily behaviour to a specific time and people who tied it to a daily routine both reported following their plans more often over the following weeks, and researchers found no clear advantage for either. What did stand out was repetition: people who carried out their plan again and again tended to report that it felt more automatic.

That study wasn't about shift work. In the flashcard example, 7 p.m. works on a day off but finds you at work or with your cards still packed away on shift days.

Look for an event that moves with your shifts

The obvious next move is to tie the flashcard to work: "When I get home and hang up my keys, I'll do one card." That moves with the shift. But on a day off you don't come home from work, so the cue never arrives.

Say you wash your face before your main sleep: at night after an early shift or on a day off, and in the morning after a night shift. Try: "After I wash my face before my main sleep, I'll turn over one flashcard." "Before my main sleep" leaves out the quick wash before work.

You don't need to build a routine around this. You're choosing one starting point for one small action.

When it slips, find out which part broke

Even a cue that usually fits can fail you on some days. The tempting response is to scrap it and pick a new one. Before you do, it helps to know where the plan actually broke.

In a study of fruit and vegetable plans, researchers separated noticing the planned moment from doing the planned thing. They inferred the first from when and where people reported eating, rather than observing what people noticed. The three questions below borrow that distinction; the study didn't test them.

The next time you miss the card, start with what happened.

Did the cue happen? Maybe on the second night of a run of nights you get in and go straight to bed. There was no face wash, so the plan had nothing to start from. Leaving the card somewhere more visible won't fix that. Look for a different event that does happen on those days, such as closing the curtains before you sleep in the daytime, and use it for that stretch of the rota.

Did it happen, but the card never came to mind? You washed your face, dried off and went to bed without a thought of Spanish. The wash happened; it just didn't bring the card to mind that time. If the card is already in the bathroom but out of sight, try propping it beside the towel. If you use a fixed-time phone alert, it can catch you at the wrong moment too. See our guide to habit reminders if that keeps happening.

Did you remember, but couldn't act? You thought "flashcard" mid-towel, but the cards were in your work bag downstairs, and you weren't going back down. The cue worked and so did your memory; the setup didn't. Try keeping one card in the bathroom so it's there when you remember.

Each answer leads to a different fix. If the cards were downstairs and you respond by swapping your cue, you throw away a cue that was doing its job, and the cards will still be downstairs next time.

If nothing fits one part of your rota

Sometimes there's no shared event for a particular stretch, like a run of long shifts when the days blur together. Then it's fine to choose a slot on purpose for those days: "On long-shift days, I'll do the card on my first break." It's still the flashcard you meant to review. It may feel more deliberate than automatic, and that's fine. You don't need every day to be the same plan for the habit to count.

Try it on your next rota change

Keep the plan you have now. The next time a day goes by without the card, don't rewrite it straight away. Ask the three questions: no cue, cue missed, or no chance to act. Then change only the part that broke.

If you already track the flashcard on paper or in an app like Habit Hatch, you could also jot a quick note when it doesn't happen: "no wash", "forgot" or "cards downstairs". If you keep seeing the same note, that's a clue about which fix to try first.