Part 2 of 7 in Build a Habit That Sticks
The Habit Loop: Cue, Routine, Reward
How the brain automates behaviour through the three-part cue-routine-reward loop — and how to identify and design your own loops deliberately. Lesson 2 of 7.
In lesson one, we reframed habit failure as a design problem, not a character flaw. Now we need the blueprint for better design. At the centre of every automatic behaviour your brain runs is a three-part structure: a cue, a routine, and a reward. This is the habit loop, and understanding it is the most practically useful thing neuroscience research on habits has produced. Once you can see it operating in your own life, you can use it deliberately instead of letting your environment assemble it for you — for good or ill.
What a habit loop actually is
Neuroscience research on habit formation has converged on a consistent finding: repeated behaviours that produce some form of reward get encoded in the basal ganglia — a deep brain structure involved in procedural memory and automatic sequencing. Once encoded there, the sequence can run with minimal conscious involvement, freeing the prefrontal cortex (the deliberate, effortful part) for tasks that actually need it. This is the brain's efficiency engine. It does not distinguish between helpful and harmful behaviours; it encodes whatever gets repeated and rewarded. The loop is value-neutral — which is why the same mechanism that locks in brushing your teeth also locks in reaching for your phone at the first moment of boredom.
The cue: five trigger types
A cue is any stimulus the brain has learned to associate with a particular routine. Research on habit cues consistently identifies five main categories:
- Time of day — a recurring moment (waking up, a specific hour, a lunch break). Powerful because it is highly consistent.
- Location — a specific place the brain associates with a behaviour done there repeatedly: your desk, the kitchen, the gym entrance.
- Emotional state — a feeling (boredom, anxiety, stress, restlessness) that has previously preceded a behaviour. Many habits are emotion-cued in ways we do not consciously notice.
- Preceding action — an existing behaviour that immediately precedes the habit. This is the most controllable cue type for building something new, because you choose which already-automatic action to anchor to.
- Social context — the presence of specific people, or a type of social situation, historically associated with a behaviour.
For building a new habit, a preceding action is usually the most reliable cue to design around. You borrow the reliability of something that already fires automatically in your day instead of constructing a new trigger from scratch. 'After I pour my morning coffee' fires every single morning, because the coffee routine is already ingrained. The new habit rides on it.
The routine: the weakest part of a new habit
The routine is the behaviour itself — the action you want to automate. It is tempting to think this is what a habit is. It is not; it is only the middle third. Without a reliable cue and a meaningful reward, a routine is just a thing you do when you happen to remember. The routine is the weakest link at the start because it has not yet been reinforced by enough repetition to run automatically. It needs the cue to trigger it consistently and the reward to signal to the brain that running it was a good idea.
This is why advice like 'just do it every day' fails people who haven't designed the rest of the loop. Without a specific trigger and a short-loop reward, you are relying on conscious will every single time — a resource that depletes under stress, illness, and competing demands. The habit collapses on exactly the days when you most needed it to carry you.
The reward: what the brain is actually learning
The reward is what the brain uses to evaluate whether this sequence is worth encoding. In the neurological sense, 'reward' is broader than it sounds: it can be relief from discomfort, a genuine small pleasure, a sense of completion, a social signal, or even just the act of marking something done. What matters is that the brain registers a positive outcome — something that makes this sequence worth running again.
Here is the most important insight about rewards: once a habit loop is established, the brain releases dopamine not at the reward but at the cue. The moment you perceive the trigger, you experience an anticipatory craving for the reward, and that craving drives the behaviour. This is why well-established habits feel almost compulsive — the motivation is not a conscious decision but a neural prediction. It also explains why removing or modifying the cue (putting your phone in another room, moving snacks out of sight) is often far more effective than trying to resist the behaviour once the cue has already fired.
Spotting your own loops
The most useful exercise in this lesson is to identify the habit loop behind one existing behaviour — ideally one you want to change or understand better. Take any regular behaviour and work backwards from the routine: what reliably comes immediately before it? That is your cue. Then ask what you get from it — what changes emotionally, physically, or situationally when you do it? That is your reward. The habit persists because the loop reliably closes.
Then apply the same exercise in reverse for a habit you want to build. Choose a specific preceding action as your cue. Decide on a tiny version of the routine (we cover sizing in lesson 3). Define a genuine short-loop reward — not a long-term outcome like 'I'll be healthier', but something you experience in the next thirty seconds: marking it done, a small celebration, a cup of tea after. Write all three down. Specificity here is not optional; it is the difference between an aspiration and an actual loop.
Tonight's exercise
Write the full loop for one habit you want to build: (1) the specific preceding action that will be your cue, (2) a very small version of the routine, (3) the immediate reward that follows. Keep it somewhere visible. In lesson 3 we will calibrate the size of the routine — for now, just get the loop on paper.
**HabitWin** lets you attach a schedule and reminder to each habit you're building — that external cue bridges the gap while the internal, automatic one is still forming. The check-in when you mark a habit complete is the short-loop reward: a genuine, immediate signal to the brain that this loop closed successfully today.
Log your first habit loop — gentle design, streak protection, no punishment for missed days.
Frequently asked questions
More in The Psychology of Habits
- How Habits Actually Work: The Complete GuideHabits aren't about willpower — they're about brain design. Here's what the science actually says about how they form, stick, and break.
- The 21-Day Habit Myth: Where It Came From and What Research Really FoundThe '21-day habit' claim has been repeated for decades. Here's where it really came from — and what the actual research found instead.
- Habit Formation Takes 18 to 254 Days: Inside the UCL ResearchThe '66-day habit' figure comes from one landmark study. Here's exactly what it found — and what it means for building habits that last.