Habit Science
The Habit Loop: Cue, Routine, Reward (And How to Use It)
Every habit you have runs on the same three-part loop. Understand the cue, routine, and reward — and you can build good habits and dismantle bad ones on purpose.

Around 40% of what you do each day isn't a decision. It's a habit — a behaviour running on autopilot, triggered by your surroundings rather than chosen in the moment. That figure comes from a well-known study by Wendy Wood and colleagues, and it reframes the whole problem of self-improvement. If nearly half your day runs on automatic, then changing your life is mostly a matter of changing what those automatic behaviours are.
The good news: every one of those habits runs on the same simple, three-part loop. Once you can see it, you can use it.
The three parts of every habit
The framework comes from Charles Duhigg's The Power of Habit, drawing on neuroscience research from MIT. Every habit, he showed, is built from three pieces:
Cue — the trigger that tells your brain to run the behaviour. It's usually one of five things: a time of day, a location, an emotional state, other people, or an immediately preceding action.
Routine — the behaviour itself. This is the part you notice: the cigarette, the scroll, the walk, the glass of water.
Reward — what your brain gets out of it. The reward is what teaches your brain the loop is worth repeating, so it gets reinforced and gradually becomes automatic.
Cue triggers routine, routine delivers reward, reward strengthens the link — and round it goes. James Clear later added a fourth piece in Atomic Habits: the craving, the anticipation of the reward that actually drives you to act. But the core loop is those three parts.
Why habits feel automatic (the brain bit)
This isn't just a tidy metaphor — it's visible in the brain. Neuroscientist Ann Graybiel and her team at MIT watched it happen by recording the brains of rats learning to run a maze. Early on, while the rats were still figuring it out, the thinking parts of the brain (the prefrontal cortex) were highly active. But as the route became familiar and automatic, that activity faded, and control shifted to the basal ganglia — an older, deeper structure that stores routines as single "chunks."
That shift is the whole point. Once a behaviour moves to the basal ganglia, your brain stops spending conscious effort on it. That's why you can drive a familiar route and barely remember doing it. It's also why habits are so hard to break: the loop is encoded, sitting there waiting for its cue, even after long periods of not doing it.
This is exactly why willpower is the wrong tool for habit change. Willpower lives in the effortful, conscious part of the brain — the part habits are specifically designed to bypass. (It's the same reason habit stacking works so well: it hijacks an existing cue instead of fighting the loop.)
How to build a good habit with the loop
To create a habit on purpose, you deliberately design all three parts:
1. Choose an obvious cue. Don't leave the trigger to chance. Anchor the new behaviour to something already fixed in your day — "after I make my morning coffee," "when I sit down at my desk." A reliable cue is the single biggest predictor of whether a habit sticks.
2. Make the routine tiny. Early on, the size of the behaviour barely matters; the repetition does. Five squats, one page, three slow breaths. You're carving the neural path, and a small routine gets carved just as surely as a big one — but it actually survives busy days. (More on this in how to build habits that actually stick.)
3. Give it a clear reward. The loop only locks in if your brain gets something it likes. Sometimes the behaviour is its own reward; often it helps to add one — a moment of satisfaction at ticking it off, a note of progress. This is why seeing a habit accumulate is so powerful: watching the days fill in on a habit heatmap turns abstract effort into a visible, satisfying reward.
How to break a bad habit with the loop
Here's the most useful insight Duhigg draws from the research, and it follows directly from the brain science: you can't simply erase a habit loop. The basal ganglia don't delete it — the cue and craving remain. Trying to white-knuckle a bad habit out of existence fights against your own neurology.
What works instead is substitution, what Duhigg calls the golden rule of habit change: keep the same cue and the same reward, but swap the routine.
Say your cue is 3pm slump (boredom + low energy), your routine is a chocolate bar, and your reward is a few minutes' break and an energy lift. You don't try to delete the loop. You keep the cue and the reward — and replace the routine with a short walk, a cup of tea, or a two-minute chat. Same trigger, same payoff, different behaviour. That's a loop you can actually change.
Start by spotting one loop
You don't need to overhaul everything. Pick one habit — good or bad — and break it into its three parts. What's the cue? What's the routine? What's the real reward (it's often not the obvious one)?
Just seeing the loop clearly is half the work. Once you know the cue and the reward, you're no longer at the mercy of the habit — you're holding the controls.
Ready to put this into practice?
Pick one cue and one tiny routine, and add it as a spark in HabitSpark AI. Each completion builds your reward right into the heatmap — so the loop reinforces itself, one day at a time.
