Sub topic 1
How a habit works: cue, routine, reward
Prerequisites
This chapter assumes you already have at least one habit you practise, such as exercise, reading, or meditation. It also assumes you are familiar with the idea of a daily routine. You don't need any background in psychology. All terms are defined as they appear.
Why start with the mechanism
Habits tend to break in the same few ways when you travel or when a week fills up. If you know how a habit is built, you can predict those breaks and repair them. If you only know that "habits are hard to keep," you can only try harder, and trying harder is the weakest fix available.
This chapter gives you the working model. Later chapters use it to explain why a change of surroundings weakens a habit, and how to rebuild the parts that fail.
By the end you should be able to:
- Name the three parts of a habit loop and identify them in one of your own habits.
- Explain why a habit can run without much conscious effort.
- Say which part of the loop a given disruption damages.
The habit loop
A habit is a behaviour you repeat in a familiar situation until it starts almost automatically. The standard model describes it as a three-part loop:
- Cue. The trigger that starts the behaviour. It can be a time, a place, a preceding action, an emotional state, or the presence of particular people or objects.
- Routine. The behaviour itself: what you actually do.
- Reward. The outcome that makes the behaviour worth repeating. It teaches your brain to repeat the loop the next time the cue appears.
The idea was popularised by Charles Duhigg's book The Power of Habit. The underlying research on context and repetition comes from experimental psychology, including work by Wendy Wood and colleagues on how habits form in stable settings.
A worked example
Take a morning exercise habit.
| Part | In the example |
|---|---|
| Cue | You pour your morning coffee. |
| Routine | You do a 45-minute gym session. |
| Reward | You feel energised and you tick a box in your tracker. |
After enough repetitions, pouring the coffee is enough to start the whole sequence. You don't deliberate or negotiate. The cue has become linked to the routine.
The tutorial's first code example writes a habit in this shape and adds a tier structure that later chapters explain:
habit: exercise
cue: after I pour my morning coffee
tiers:
full: 45-minute gym session
reduced: 20-minute run or bodyweight circuit
minimum: 5 minutes of stretching or push-ups
rule: on a disrupted day, do at least the minimum tierFor now, read only the habit and cue lines. They state the cue and the routine in a form you can check. The tiers and rule lines are the subject of the chapter on minimum versions.
What each part does
The cue
The cue is what moves a habit from "something I have to remember" to "something that happens." A good cue is specific and reliably present. "After I pour my coffee" is a better cue than "in the morning," because it points to one event you can't easily miss.
Common cue types:
- Time. "At 7:00."
- Location. "When I sit at my desk."
- Preceding action. "After I brush my teeth."
- Emotional state. "When I feel stressed."
- Other people or objects. "When my running shoes are by the door."
Most stable habits depend on several cues at once. Your morning exercise may be cued by the time, the coffee, the kitchen, and the shoes by the door. That redundancy is why the habit is sturdy at home. It is also why it is fragile elsewhere, because a trip removes most of those cues together.
The routine
The routine is the behaviour. Two properties matter for this tutorial:
- Size. A 45-minute workout depends on time, energy, and equipment. A 5-minute routine depends on very little. Large routines have more ways to fail.
- Dependencies. A routine may need a gym, a quiet room, a particular book, or a working internet connection. Each dependency is something a disruption can take away.
The reward
The reward is the payoff that makes your brain treat the loop as worth repeating. Rewards come in two broad kinds:
- Immediate. Relief, enjoyment, a feeling of having done it, a satisfying checkmark.
- Delayed. Fitness, finished books, a calmer mind. These take weeks or months.
Immediate rewards do most of the work in building a habit, because the brain links the behaviour to an outcome that arrives close in time. Delayed rewards are real, but they are weak at sustaining a loop on their own. If your only reward for exercise is "better health in a year," the loop is thin. This matters during disruptions, when effort is higher and the immediate reward may be smaller.
Why habits feel automatic
Repeating a behaviour in the same situation builds an association between the situation and the action. Over time, the situation alone brings the action to mind. You stop making a fresh decision each day.
That has a practical consequence. A habit saves you effort because the cue does the work of deciding. If the cue is missing, the decision returns, and you have to rely on motivation and memory. Motivation and memory are the resources a busy week or a trip drains first.
Which part breaks, and how
Different disruptions damage different parts of the loop. Diagnosing which part failed tells you what to fix.
| Disruption | Part damaged | What happens |
|---|---|---|
| Hotel room instead of your kitchen | Cue | The coffee, the kitchen, and the shoes by the door are gone, so nothing prompts the routine. |
| No gym on a work trip | Routine | The cue appears, but the behaviour has a missing dependency. |
| Back-to-back meetings all week | Routine and cue | The usual slot disappears, and the time-based cue passes unnoticed. |
| Exhaustion after a long flight | Reward | The effort is high and the payoff is low, so the loop feels not worth it. |
| Skipping for several days | Reward | With no payoff, the link between cue and routine weakens. |
Most real disruptions damage more than one part. A trip usually removes cues, adds dependencies, and lowers energy at once. That is why a habit that runs for months at home can stop within a day or two on the road.
Common errors in using the model
- Treating a missing cue as a lack of willpower. If your habit fails only when the surroundings change, the cause is probably the cue. More discipline won't replace it. A new cue will.
- Naming a vague cue. "When I have time" is not a cue, because no event marks it. Choose something that happens on its own.
- Ignoring the reward. If a routine has no immediate payoff, it is hard to sustain even in good conditions. Add one deliberately, such as a checkmark or a short note of how you feel.
- Describing the routine too grandly. "Get fit" is a goal. "Do 5 minutes of push-ups" is a routine. You need the second to plan for hard days.
- Assuming one habit loop covers everything. Each habit has its own cue, routine, and reward. A trip can break your exercise loop and leave your morning reading loop untouched.
Putting it to use
Write the loop for one habit you want to protect. Keep the cue concrete, the routine specific, and the reward immediate. Then ask three questions:
- Which of my cues depend on being at home?
- Which dependencies does the routine have, such as equipment, space, or time?
- What is the immediate reward, and would I still get it on a bad day?
Your answers are the starting point for the rest of the tutorial. The next chapters use them to explain why changed surroundings break habits, to classify the disruptions you expect, and to build smaller versions of your habits that survive them.
Exercise
A reader does 30 minutes of yoga every morning at home, cued by getting out of bed and stepping onto the mat beside it. On a business trip, they stop doing it for three days even though they still want to. Identify the cue, the routine, and a likely reward. Then say which part of the loop most likely failed in the hotel and why.
Show answer
Cue: getting out of bed next to the mat (the mat and the bedroom setting are part of the cue). Routine: 30 minutes of yoga. Likely reward: feeling relaxed and limber, or the satisfaction of starting the day with it. The part most likely to have failed is the cue. In the hotel, the mat is not beside the bed, the room layout is different, and the usual morning sequence is changed, so nothing prompts the routine. Because the person still wants to do yoga, motivation is intact. The routine may also be harder if the hotel room has little floor space, but the cue is the first thing to fix.
Exercise
Take one of your own habits. Write its cue, routine, and immediate reward in one line each. Then list one cue and one routine dependency that would be missing if you were in a hotel room.
Show answer
Answers vary. A good answer has a concrete cue (an event, not a time of day alone), a specific routine, and a reward that arrives right away. For example: Cue: after I brush my teeth. Routine: read one page of a book. Reward: a short feeling of calm and a checkmark. In a hotel, the missing cue might be the home bathroom routine layout or the book on the bedside table, and the missing dependency might be the book itself if it was left at home.