The Habit Loop: Cue, Craving, Routine, Reward
The habit loop explained: cue, routine and reward (plus craving), with examples and a simple way to use the loop to build good habits and break bad ones.
November 11, 2026 · 5 min read
The habit loop is the cycle behind every habit: a cue triggers a routine, and a reward makes your brain want to repeat it next time the cue appears. Charles Duhigg named it in The Power of Habit (cue, routine, reward). James Clear later split it into four steps in Atomic Habits: cue, craving, response, reward.
Once you can see the loop, you can work on it. To build a habit, make each step easy to complete. To break one, interrupt the loop at its weakest point.
The short version
- 1Every habit runs on a loop: a cue, a routine, and a reward that teaches your brain to repeat it.
- 2To build a habit, design a clear cue, a tiny routine and an immediate reward.
- 3To break a habit, keep the cue and the reward but swap in a different routine.
The three parts of the loop
The cue is the trigger. It is usually a time, a place, a feeling, a person, or the action you just finished. Finishing dinner, opening your laptop, feeling bored at 3 pm.
The routine is the behavior itself. Washing up, checking email, reaching for a snack.
The reward is what you get out of it. Relief, a small pleasure, a feeling of completion. The reward is the part that teaches the loop. Your brain remembers that this cue led to something good and makes the routine a little more automatic the next time.
One loop, two examples
- CueBored at 3 pm
- RoutineScroll, or walk 5 minutes
- RewardA break from the task
Where the craving fits
James Clear adds a fourth step between cue and routine: the craving. The cue on its own is just information. What moves you is the change you want, such as relief from boredom or the taste of coffee. You do not crave scrolling. You crave the break it gives you.
This matters because two very different routines can satisfy the same craving. That is the opening you use to change a habit.
How the loop turns into a habit
A loop does not become a habit after one run. It becomes a habit through repetition in the same context. Research by Phillippa Lally and colleagues at UCL (2009) followed people building a new daily behavior. Reaching automaticity took anywhere from 18 to 254 days, 66 days on average, and missing a single day did not undo progress.
Notice the shape: effort is high at first and drops slowly, while automaticity climbs and then levels off.
Effort falls as the loop repeats
Week
- Automaticity
- Effort to start
For more on the timeline, see how long it takes to form a habit.
Use the loop to build a habit
Clear turns each step of the loop into a law. For a good habit:
- Cue: make it obvious. Pick a precise trigger. "After I pour my morning coffee" beats "in the morning". Put the gear where you will see it.
- Craving: make it attractive. Pair the habit with something you enjoy, or join people who already do it.
- Routine: make it easy. Shrink it until it takes under two minutes. One page, one push-up, one line. See tiny habits and the two minute rule.
- Reward: make it satisfying. Give yourself something immediate: a check mark, a quiet "done", a moment to enjoy the coffee.
A script you can copy:
After I [current habit], I will [tiny new habit], and then I will [immediate reward].
Example: "After I close my laptop at 6 pm, I will put on my shoes and walk around the block, and then I will mark it done and call a friend on the way back."
Design your loop
0 / 6
Use the loop to break a habit
You cannot delete a loop. The cue will keep showing up. Duhigg's golden rule of habit change is to keep the cue and the reward, and change the routine in the middle.
Find each part first. For a week, when the habit happens, note:
- Where am I? What time is it?
- What am I feeling?
- Who is around?
- What just happened?
Then test rewards. If you snack at 3 pm, try a walk, a glass of water, or a chat with a colleague instead. If the urge fades, you found what you were really craving.
Clear inverts his four laws for bad habits: make the cue invisible, the craving unattractive, the routine difficult, and the reward unsatisfying.
Interrupt the loop at each step
StepChange
Cue→Phone charges in the hall
Craving→Name it: tired or bored?
Routine→Log out, add a step
Reward→A walk or a real break
More detail on this in how to break bad habits.
Common mistakes with the loop
A vague cue. "When I have time" never arrives. Tie the habit to something that already happens every day.
A delayed reward. The real benefits of exercise or saving come months later. Your brain needs something now. A visible check mark is a small but real reward.
Fighting the craving head on. Willpower against a cue that appears ten times a day loses eventually. Change the environment so the cue appears less, or give the craving a better outlet.
Changing too many loops at once. Pick one loop. Run it until it feels boring. Then add the next.
Tracking closes the loop
A tracker does two jobs in the loop. It is a cue, because you see the list of habits you planned. And it is a reward, because ticking the box feels good right away, long before the habit pays off.
That is one reason we built Moto around fast check-offs from a Home Screen widget or the Mac menu bar, with no badges or guilt-trip notifications. The tick is the reward, and the year heatmap shows the loop turning into a habit.
FAQ
Who came up with the habit loop?
Charles Duhigg popularized the cue, routine, reward loop in his 2012 book The Power of Habit, drawing on research about how habits form in the brain. James Clear later described a four step version, cue, craving, response, reward, in Atomic Habits. Both describe the same idea from slightly different angles.
What is the difference between the 3 step and 4 step habit loop?
The four step version separates the craving from the cue. The cue is the signal, and the craving is the change you want to feel. This makes it easier to see that different routines can satisfy the same craving, which helps when you replace a bad habit.
Can you remove a cue completely?
Sometimes. You can hide snacks, delete an app, or change your route home. But many cues, like stress, boredom or a time of day, cannot be removed. For those, plan a different routine in advance with an if-then plan: "If I feel bored at my desk, then I stand up and refill my water."
How do I find the reward behind a bad habit?
Experiment. When the urge appears, try a different routine and notice how you feel 15 minutes later. If the urge is gone, the new routine delivered the same reward. If it is still there, try another option.
Keep Reading
Habit Stacking: The Formula and 40+ Examples
Habit stacking means attaching a new habit to one you already do. Learn the formula, how to pick a good anchor, and copy more than 40 real examples.
November 11, 2026 · 7 min read
ScienceHabit Streaks: Why They Work and When They Backfire
The psychology of habit streaks: why a chain of days motivates you, how it turns into pressure, and how forgiving streaks and never missing twice fix it.
November 11, 2026 · 4 min read
GuideHabit Tracker App for iPhone: What to Look For
What makes a good habit tracker on iPhone: interactive widgets, Siri, schedules, reminders, sync and privacy. Criteria first, then a worked example.
November 11, 2026 · 7 min read