The Habit Loop Explained: Cue, Craving, Response, Reward (With Examples)

Most habits can be mapped onto the same four steps. Here's what each one does, how Duhigg's and Clear's versions differ, 10 examples and a worksheet to map your own.

A stone watermill in an autumn forest, its wooden wheel turned by water from a flume while the stream loops around the mill.
The water turns the wheel, and the wheel keeps turning: a loop that runs itself.

Key takeaways

  • The habit loop is the four-step pattern behind a habit: a cue triggers a craving, the craving drives a response, and the reward satisfies the craving and teaches your brain to repeat it.
  • Charles Duhigg's loop in The Power of Habit (2012) has three steps (cue, routine, reward); James Clear's Atomic Habits (2018) gives craving its own stage and calls the behavior the response.
  • To break a bad habit, log your cues for a week, test which reward you're after, then keep the cue and the reward and swap the response (Duhigg's Golden Rule).
  • To build a habit, make the cue obvious and the reward immediate: in Clear's words, what is immediately rewarded is repeated.
  • Habits take time: in a 2010 study, Lally and colleagues found a median of 66 days for a daily behavior to feel automatic, with estimates from 18 to 254 days.

The habit loop is the four-step pattern behind a habit: a cue triggers a craving, the craving drives a response (the behavior), and the reward satisfies the craving and teaches your brain to repeat it. Cue, craving, response, reward is James Clear's update, in Atomic Habits, of Charles Duhigg's original three-step loop: cue, routine, reward.

If you've read Atomic Habits and still can't get a new habit to stick, the details help. Below: the 4 stages with one running example, the exact difference between the two models, 10 examples, how to build and break a habit with the loop, what the science supports and a worksheet to map your own.

What is a habit loop?

The habit loop, also called the habit cycle, is the four-step pattern behind a habit: a cue triggers a craving, the craving drives a response (the behavior), and the reward satisfies the craving and teaches your brain to repeat it. Run it often enough in the same situation and it starts on its own, with less and less need for a decision.

Definition

Habit loop
The repeating sequence of cue, craving, response and reward (in Charles Duhigg's older version: cue, routine, reward) that turns a behavior you once chose into one that a familiar situation starts for you.

Why it becomes automatic: repetition in the same context. In their 2016 review of the psychology of habit, Wendy Wood and Dennis Rünger describe habits as responses that a familiar context triggers on its own, with less and less need for a conscious decision.

The idea comes from two books. Duhigg made the three-step loop famous in The Power of Habit (2012), drawing on lab research on habits, including work from Ann Graybiel's lab at MIT. Clear split it into four steps in Atomic Habits (2018).

The 4 stages of the habit loop: cue, craving, response, reward

The 4 stages of the habit loop are cue (the trigger), craving (the wanting), response (what you do) and reward (the payoff), and each answers one question you can ask about your own habits. Here's one everyday loop, start to finish, using James Clear's own example from Atomic Habits: your phone buzzes with a new text.

The habit loop at a glance: each stage, the question to ask yourself and one running example
StageAsk yourselfRunning example
CueWhat sets it off?Your phone buzzes on the desk
CravingWhat do I actually want?You want to know who texted
ResponseWhat do I do?You pick up the phone and read the message
RewardWhat do I get?Your curiosity is satisfied, and the next buzz pulls a little harder
  1. Cue: what sets it off?

    The cue is the trigger that tells your brain a reward might be close. It's a bit of information: a sound, a place, a time, a feeling. You often don't notice it at all, which is why the loop feels like it "just happens." In the example, it's the buzz.

  2. Craving: what do I actually want?

    The craving is the wanting that the cue sets off. Clear calls cravings the motivational force behind every habit. The key nuance from Atomic Habits: you don't crave the behavior itself but the change in how you feel that it delivers. You don't want to hold your phone; you want to stop wondering who texted.

  3. Response: what do I do?

    The response is the habit you actually perform, a thought or an action. Whether it happens depends on how much you want the reward and how much effort stands in the way. A phone within reach takes no effort, so the response wins nearly every time.

  4. Reward: what do I get?

    The reward is the payoff that satisfies the craving and teaches your brain the loop is worth repeating. It works in the moment (curiosity gone) and over time (the next buzz pulls harder). Clear's cardinal rule of behavior change: what is immediately rewarded is repeated.

Cues come in a handful of types. In The Power of Habit, Duhigg sorts them into five groups, and almost every cue you find in your own day fits one:

The five types of cues, with an example of each
Type of cueExample
Time3:00 PM, when your energy dips
LocationThe couch, the car, the kitchen counter
Emotional stateBored, stressed, lonely, restless
Other peopleA friend who smokes, a coworker heading for coffee
The action just beforePouring coffee, closing the laptop, getting into bed

When you can't find the cue, ask about these five. The answer is usually two of them at once, like "on the couch, bored."

Cue, routine, reward vs cue, craving, response, reward

Cue, routine, reward is Charles Duhigg's three-step habit loop from The Power of Habit (2012). Cue, craving, response, reward is James Clear's four-step version from Atomic Habits (2018): craving gets a stage of its own, and "response" takes the place of "routine." Both describe the same mechanism.

Duhigg's habit loop vs Clear's habit loop, compared point by point
AspectCharles Duhigg (The Power of Habit, 2012)James Clear (Atomic Habits, 2018)
Number of steps34
The stepsCue, routine, rewardCue, craving, response, reward
Role of cravingWhat drives the loop, described alongside it, not a step of its ownA stage of its own, between cue and response
Name for the behaviorRoutine: the behavior itself, physical, mental or emotionalResponse: the habit you perform, a thought or an action
Main advice for bad habitsThe Golden Rule: keep the cue and the reward, change the routineInvert the four laws: make it invisible, unattractive, difficult and unsatisfying
Best-known exampleHis own afternoon cookie at the office cafeteriaHis own phone example: the phone buzzes, you want to read the message, you grab it and read it

An honest note on the craving row: summaries online disagree about how central craving is for Duhigg. In The Power of Habit he does write that cravings are what drive the loop and make cues and rewards work. What he doesn't do is give craving its own step in the diagram. That's the change Clear made.

You may also see "reminder, routine, reward," the "3 R's of habit change" from James Clear's earlier writing. It's the same three-step loop, with "reminder" for cue.

Which model should you use? Our suggestion: the three steps to analyze a bad habit (find the cue, find the real reward, swap the routine) and the four steps to design a new one, because the craving stage makes you ask why you'd want to do it at all. Clear turns each of his four stages into a law; our Atomic Habits cheat sheet has all four with techniques.

Which book is the habit loop from?

The Power of Habit by Charles Duhigg (2012), which made cue, routine, reward famous; the four-step version is James Clear's, from Atomic Habits (2018).

Habit loop vs habit stacking vs the Fogg Behavior Model

Habit stacking and the Fogg Behavior Model are two other models you'll meet, and each covers a different piece. Habit stacking is a way to pick a cue (an existing habit), and the Fogg Behavior Model explains a single moment: whether a behavior happens now, when motivation, ability and a prompt meet. The habit loop explains why a behavior keeps coming back.

10 habit loop examples (good and bad habits)

Here are 10 habit loop examples, good and bad, each filled in for all four stages. Read across a row; then look down the Reward column, because that's where most bad habits hide their real job.

10 habit loop examples, each broken down into cue, craving, response and reward
HabitCueCravingResponseReward
Checking your phone after wakingThe alarm goes off and the phone is in your handTo know what you missed overnightOpen messages and social apps in bedFeeling caught up (and a slow start)
Morning coffeeWalking into the kitchenTo feel awake and readyMake and drink a cupAlertness and a calm first few minutes
Afternoon snack (Duhigg's cookie)About 3:30 PM at the officeA break and some companyWalk to the cafeteria for a cookieThe break and a chat with coworkers
Doomscrolling in bedLying in bed, phone on the nightstandTo wind down or avoid a thoughtScroll for "five minutes"Distraction and a little novelty
Evening run after workChanging out of work clothes at homeTo shake off the workdayRun 2 miles around the neighborhoodA clear head and a sense of done
Journaling after coffeeSitting down with the first cupTo sort out your headJournal three lines in a notebookFeeling calmer and more organized
Reading before bedGetting into bed, book on the pillowTo relax without a screenRead 10 pagesSleepiness and a story to return to
Brushing your teethStanding at the sink at nightA clean, fresh mouthBrush for two minutesThe minty, clean feeling
Smoking after mealsPushing the plate awayRelief and a pauseStep outside and light upNicotine and a short break
A full morning routineFeet on the floor after the alarmTo start the day on your termsA glass of water, five slow breaths, 10 pagesFeeling ahead before the day starts

Smoking is in the table because it's a familiar loop, but nicotine is addictive, and quitting is about more than a habit. If you smoke or drink to cope, the advice in how to break a bad habit below includes where to get help.

A bad loop, reworked: doomscrolling. The cue is the phone on the nightstand, so move it: charge it in the kitchen. The craving is to wind down, which is real, so keep it and give it a better response: a paper book on the pillow.

The reward is still distraction and a little novelty, now from a story instead of a feed. Our screen time calculator shows what your daily phone time adds up to over a year and over a lifetime.

A good loop, reinforced: the morning routine. The cue is already strong (feet on the floor). The craving is vague, so name it: "start the day on my terms."

Keep the response small, three habits in a fixed order, and add an immediate reward, like a check mark the moment you finish. Need more habits to run through the loop? Pick one from our 100+ good habits examples, organized by life area.

How to use the habit loop to build a new habit

To build a new habit with the habit loop, design each stage on purpose: make the cue obvious, the craving attractive, the response easy and the reward satisfying, ideally right away. These are Clear's four laws in short. For the whole process, from the first cue to an automatic habit, see our guide to habit formation.

One design rule for each stage of the habit loop, with an example
StageDesign ruleExample
CueMake it obviousThe book goes on your pillow every morning
CravingMake it attractiveA novel you actually want to read, with a mug of tea
ResponseMake it easyOne page counts on a bad night
RewardMake it satisfying (right away)A check mark the moment the book closes

Design the cue three ways. A fixed time ("at 7:00 AM"), a fixed place ("at the kitchen table") or, often strongest, right after something you already do: "After I pour my coffee, I will journal one line." That last one is habit stacking.

It works because it's an if-then plan: a 2006 meta-analysis by Peter Gollwitzer and Paschal Sheeran pooled 94 independent tests and found that plans saying when and where you'll act had a medium to large effect on reaching goals (d = 0.65).

Reward it now, not in six months. The real payoff of a good habit (fitness, a finished book, savings) comes late. In Clear's words, what is immediately rewarded is repeated, so a check mark or a streak today does more than results that arrive months later. In a 2016 meta-analysis of 138 studies with 19,951 participants, Benjamin Harkin and colleagues found that monitoring your progress helped people reach their goals, more so when it was physically recorded.

Worked example

Sam, a fictional example, wants to read 10 pages every morning. Here's the loop Sam designs:

  • The cue. "After I pour my coffee, I will open my book at the kitchen table." The book stays on the table overnight.
  • The craving. A novel Sam is curious about, not a book Sam thinks they should read.
  • The response. 10 pages on a normal day, one page on a rushed one. Our reading time calculator shows how long 10 pages take at your speed.
  • The reward. A check mark on a tracker as soon as the book closes, and the streak that grows from it.

Greatr runs on the same loop. In a morning or evening routine, your habits run in a fixed order, so finishing one is the cue for the next; you tap Play and go one habit at a time. The reward is immediate: every habit earns XP, your streak grows, and Otto, the app's guide, marks each day you show up in his notebook.

How to break a bad habit with the habit loop

To break a bad habit with the habit loop, make the loop visible, find the reward you're after, then keep the cue and the reward and swap the response. Finally, make the old response hard to reach. Most people skip straight to fighting the response with willpower, which is the hardest place to win.

  1. Make the loop visible for a week

    Each time the habit happens, jot down five things: the time, where you are, how you feel, who's with you and what you did just before. Those are Duhigg's five cue types. After a week, one or two will show up nearly every time. When Duhigg did this for his cookie habit, the cue turned out to be the time of day: the urge came at about the same time every afternoon, around 3:30 PM.

  2. Experiment with the reward

    Test what you're after. Duhigg did this with his afternoon cookie: on different days he tried an apple, a coffee or a walk instead. The cookie turned out not to be about hunger; what he wanted was a break and a chat with coworkers.

  3. Keep the cue and the reward, change the response

    This is Duhigg's Golden Rule: you can't simply erase a habit, but you can put a new routine between the same cue and the same reward. His plan: at about 3:30 PM, walk over to a colleague and talk for ten minutes. James Clear makes the same point in his guide to breaking bad habits: they meet real needs, so replace them rather than just ban them.

  4. Make the old habit invisible, unattractive, difficult and unsatisfying

    Clear's inversion of his four laws. Hide the cue (the chips go on the top shelf), spell out what the habit costs you, add friction (log out of the app) and add a cost (a friend who checks in). Want ideas for specific habits? Here are 50 bad habits and exactly what to replace each one with.

Why the cue matters more than willpower: if habits are triggered by context, then a cue still in plain sight pulls at you every single day, and you have to win that fight every time. Change the context once and the fight often doesn't start.

What the science says (and where the habit loop falls short)

The science strongly supports the core of the habit loop: behavior repeated in a stable context becomes automatic. It's weaker on the idea that a habit keeps running because of its reward.

Habits run a big share of your day. In two diary studies of college students published in 2002 by Wendy Wood, Jeffrey Quinn and Deborah Kashy, 35 percent and 43 percent of the everyday behaviors people recorded (one figure per study) were ones they did almost daily, usually in the same location.

It usually takes longer than the popular 21 days. In a 2010 study that followed 96 volunteers, Phillippa Lally and colleagues had each person repeat one eating, drinking or activity behavior daily in the same context. Among participants whose data fit their model, the median time for it to feel automatic was 66 days, with estimates from 18 to 254 days. Missing one day didn't materially affect the process, so treat 66 days as a median from one study, not a deadline. We go through the research in how many days it takes to form a habit.

66 days

median time for a daily behavior to feel automatic

Lally and colleagues, 2010

18 to 254 days

the range of estimates in the same study

Lally and colleagues, 2010

Dopamine learns the cue. In a 1997 paper in Science, Wolfram Schultz, Peter Dayan and Read Montague described how dopamine neurons in monkeys track errors in predicted reward: they first fire when a reward arrives, then, once a cue reliably predicts it, at the cue instead, and they dip when an expected reward doesn't come. Our reading in habit loop terms: the pull starts at the cue.

Where the loop falls short. First, once a habit is strong, the reward may barely matter.

Second, the craving isn't always something you feel. Wood and Rünger describe habits that keep running even after your goals change, so "what do I actually want?" sometimes has no good answer. Third, Duhigg's three-step loop says little about ability, how easy a behavior is right now. Clear adds it with his third law, and the Fogg Behavior Model makes it central.

Fourth, the brain is messier than the diagram. In a 2014 review, Kyle Smith and Ann Graybiel write that habits may depend on several components working at the same time, and that the brain activity they record doesn't fully match traditional models of how habits are structured.

None of this makes the loop wrong. It's a good map for spotting and designing habits, not a full theory of the brain.

Free habit loop worksheet (printable)

Print this page or copy the tables below into a notebook. Part 1 maps a bad habit; part 2 designs a new one. Fill in part 1 for a week before you change anything, so you're working from what actually happens.

Part 1: Map a bad habit

Habit loop worksheet, part 1: a 7-day cue log for one bad habit
DayTime and placeFeeling and who was thereWhat just happened
Example10:40 PM, bedTired, restless, alonePlugged in my phone
Day 1__________________
Day 2__________________
Day 3__________________
Day 4__________________
Day 5__________________
Day 6__________________
Day 7__________________

At the end of the week, fill in one line: my cue is ______, my craving is ______, my response is ______, my reward is ______.

Part 2: Design a new habit

Habit loop worksheet, part 2: design a new habit stage by stage
StageExampleYour habit
Cue (After I...)After I pour my coffee______________
Craving (because I want...)A calm, clear head before work______________
Response (I will...)Journal three lines______________
Reward (right after, I get...)A check mark and one more day on my streak______________

Your sentence: "After I ______, I will ______."

For the daily check mark, our habit tracker works in the browser with monthly and weekly views and a year heatmap per habit, saved in the page link with nothing stored. To see which day you're on, the days since calculator counts from your start date. If you'd rather have the whole routine in one app on your iPhone, add the habit to a routine in Greatr, where the fixed order is the cue and the streak, XP and medals are the reward.

Your next step today

  • Pick one habit you want to change, just one.
  • Next time it happens, write down the time, the place and how you felt.
  • Ask what you wanted from it: that's the reward to keep.
  • Write one line for tomorrow: "After I [cue], I will [new response]."

Frequently asked questions

What is a habit loop?

The habit loop, also called the habit cycle, is the four-step pattern behind a habit: a cue triggers a craving, the craving drives a response, and the reward satisfies the craving and teaches your brain to repeat it. Repeated often enough in the same situation, the loop starts on its own, with less and less need for a conscious decision.

What are the 4 stages of the habit loop?

The 4 stages are cue, craving, response and reward. The cue is the trigger, like your phone buzzing. The craving is the wanting it sets off, like wanting to know who texted. The response is what you do, picking up the phone. The reward is the payoff, your curiosity satisfied, which makes the next buzz pull a little harder.

What is the difference between cue, routine, reward and cue, craving, response, reward?

Cue, routine, reward is Charles Duhigg's three-step loop from The Power of Habit (2012). Cue, craving, response, reward is James Clear's four-step version from Atomic Habits (2018). Duhigg describes craving as what drives the loop without giving it a step of its own; Clear makes craving a separate stage and calls the behavior the response instead of the routine.

What is an example of a habit loop?

Charles Duhigg's own example: every afternoon at about 3:30 (the cue, which turned out to be the time of day), he walked to the office cafeteria for a cookie (the routine) and got a break and a chat with coworkers (the reward). By testing other rewards he found he wanted the chat, not the cookie, so he swapped the cookie for ten minutes of talking to a colleague.

Who created the habit loop?

Charles Duhigg, a journalist, popularized the habit loop of cue, routine and reward in his 2012 book The Power of Habit, drawing on habit research including work from Ann Graybiel's lab at MIT. James Clear expanded it into four stages, cue, craving, response and reward, in his 2018 book Atomic Habits, and built his four laws of behavior change on it.

Which book is the habit loop from?

The habit loop is from The Power of Habit by Charles Duhigg, published in 2012, which made cue, routine, reward widely known. The four-step loop of cue, craving, response, reward comes from Atomic Habits by James Clear, published in 2018. If you have seen the four steps, you have seen Clear's version, which builds on Duhigg's.

How do you break a habit loop?

Log the habit for a week: time, place, feeling, who was there and what happened just before. Then test which reward you're after. Keep the cue and that reward and swap the response, which Duhigg calls the Golden Rule. Finally, make the old habit invisible, unattractive, difficult and unsatisfying. For addiction, talk to a doctor.

How long does it take for a new habit loop to form?

It varies a lot. In a 2010 study of 96 volunteers who each repeated one behavior daily in the same context, Phillippa Lally and colleagues found a median of 66 days for it to feel automatic, with estimates from 18 to 254 days. Missing one day did not materially affect the process, so treat 66 days as a median, not a deadline.

Sources

  1. Psychology of HabitWendy Wood and Dennis Rünger, Annual Review of Psychology, 2016
  2. The Power of Habit: Why We Do What We Do in Life and BusinessCharles Duhigg, Random House (charlesduhigg.com), 2012
  3. Atomic Habits: Tiny Changes, Remarkable ResultsJames Clear, Avery (Penguin Random House), 2018
  4. Implementation Intentions and Goal Achievement: A Meta-analysis of Effects and ProcessesPeter Gollwitzer and Paschal Sheeran, Advances in Experimental Social Psychology, 2006
  5. Does Monitoring Goal Progress Promote Goal Attainment? A Meta-Analysis of the Experimental EvidenceBenjamin Harkin and colleagues, Psychological Bulletin, 2016
  6. How to Break a Bad Habit (and Replace It With a Good One)James Clear, jamesclear.com, 2013
  7. SAMHSA's National HelplineSubstance Abuse and Mental Health Services Administration, 2026
  8. Habits in everyday life: Thought, emotion, and actionWendy Wood, Jeffrey Quinn and Deborah Kashy, Journal of Personality and Social Psychology, 2002
  9. How are habits formed: Modelling habit formation in the real worldPhillippa Lally and colleagues, European Journal of Social Psychology, 2010
  10. A Neural Substrate of Prediction and RewardWolfram Schultz, Peter Dayan and Read Montague, Science, 1997
  11. The pull of the past: When do habits persist despite conflict with motives?David Neal, Wendy Wood and colleagues, Personality and Social Psychology Bulletin, 2011
  12. Investigating habits: strategies, technologies and modelsKyle Smith and Ann Graybiel, Frontiers in Behavioral Neuroscience, 2014

About this article

Jeroen Snel, co-founder of Greatr

Co-founder of Greatr

LinkedInX

Jeroen Snel is a co-founder of Greatr who writes about habit research, focus and iPhone settings: checking how a study was run before trusting its headline, then turning what holds up into steps you can take.

Read full bio

How we wrote this

Jeroen Snel wrote this guide from the studies and sources listed above, linked so you can check them. Greatr is our own app: we mention it where it fits, and it never decides what a study says. Published Nov 5, 2026. Read our editorial policy.

Hi, I’m Otto. I’ll help you build habits to transform your life in the next 66 days.

Download on theApp Store

Rated 4.9/5 on the App Store