Sub topic 2
The Three Parts of the Habit Loop
What this chapter assumes
You have read the previous chapter on what counts as a habit. You know a habit is a behavior that runs with little deliberate thought, set off by a situation instead of a fresh decision. This chapter breaks that behavior into its three parts. Later chapters treat cues, routines, rewards, and craving in more detail. Here the goal is a working model you can use to describe any habit you already have.
The loop as a working model
A habit loop has three parts:
- The cue is the signal that starts the behavior.
- The routine is the behavior itself.
- The reward is the outcome that makes the behavior worth repeating.
The order matters. The cue comes first, the routine follows, and the reward comes last. After the reward, the brain links the cue to the routine more strongly. The next time the cue appears, the routine is more likely to start without a decision.
The return arrow is what makes this a loop instead of a sequence. A single run through cue, routine, and reward is just an event. A habit exists when many runs have strengthened the link between the cue and the routine.
Cues: what triggers the behavior
A cue is anything the learner notices that reliably comes before the behavior. It can be a time of day, a place, an earlier action, a feeling, or another person. A later chapter sorts these into types. For now, one rule is enough: a useful cue is something you can observe, not something you must remember.
"Evening" is a weak cue because it covers hours of changing circumstances. "I put my plate in the dishwasher" is a strong cue because it happens at one moment and you can point to it.
Cues also work without your noticing them. You can find yourself reaching for your phone and not know what prompted it. In that case the cue exists, but you have not identified it yet. Finding it is a matter of observation, covered in the worked example below.
Routines: the behavior itself
The routine is what you do. It can be physical (walking, biting a nail), mental (checking whether something is wrong), or emotional (venting to a friend). It can last a few seconds or half an hour.
Two properties matter for the loop:
- It is specific. "Exercise more" is a goal. "Put on running shoes and jog to the corner and back" is a routine.
- It is repeatable in the same form. The more the routine looks the same each time, the easier it is for the cue to trigger it.
Routines are the part of the loop you can change most directly. A later chapter shows how to keep the cue and reward and replace only the routine.
Rewards: why the loop repeats
A reward is the outcome that tells your brain the routine was worth doing. Rewards are often small and immediate: relief, a taste, a moment of calm, a feeling of progress, social approval.
Two points are easy to miss:
- The reward that drives the habit may differ from the one you name. Someone who says they snack for hunger may actually be getting a break from a hard task. The real reward is the one that, when removed, makes the behavior stop feeling worth doing.
- Delayed benefits are weak rewards. Better health after months of exercise is a real benefit, but it arrives too late to strengthen the link between this morning's cue and this morning's routine. A habit usually needs something that arrives close to the routine, such as a good feeling after a walk.
The next chapters explain craving, the pull toward the reward that builds between the cue and the routine, and how reward prediction strengthens the habit over time.
Writing the loop as data
Writing a habit as three named fields forces you to fill in each part. If you cannot fill in a field, you have found a gap in your understanding of the habit.
from dataclasses import dataclass
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
def describe(self) -> str:
return f"When {self.cue}, I {self.routine}, so that I get {self.reward}."
walk = HabitLoop(
cue="I finish my morning coffee",
routine="walk around the block",
reward="a few minutes of fresh air",
)
print(walk.describe())Running this prints:
When I finish my morning coffee, I walk around the block, so that I get a few minutes of fresh air.The sentence the method builds is a useful test. Read it aloud. If the cue sounds vague ("When I feel like it") or the routine sounds like a goal ("I get fit"), the loop is not specific enough to act on.
Common errors
| Error | Why it is a problem | Fix |
|---|---|---|
| Treating a goal as a routine | "Lose weight" has no moment when it starts or ends | Describe one action you can start at a known moment |
| Choosing a cue that is not observable | "When I have time" never clearly arrives | Pick a moment you can see, such as a specific earlier action |
| Naming a long-term benefit as the reward | It arrives too late to link to today's routine | Add a small reward right after the routine |
| Assuming the stated reward is the real one | The habit persists when the stated reward is absent | Test other rewards and see which one matters |
| Merging the three parts | You cannot change one part without knowing where it ends | Write each part as a separate phrase |
Worked example: finding the loop in a behavior you already have
Suppose you check social media several times during the workday and want to understand why. Follow these steps.
- Describe the routine. You open the app and scroll for about five minutes.
- Look for the cue. For a few days, note what happened just before each check. You might notice that it follows finishing a task, waiting for a file to load, or feeling stuck on a problem.
- Look for the reward. Notice how you feel afterward. If you feel relief from a stuck problem, the reward is probably a break from difficulty. If you feel connected, it might be social contact. If you only feel distracted, the reward may be novelty.
- Write the loop.
from dataclasses import dataclass
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
def describe(self) -> str:
return f"When {self.cue}, I {self.routine}, so that I get {self.reward}."
scroll = HabitLoop(
cue="I get stuck on a problem at work",
routine="open a social media app and scroll",
reward="a short break from the difficulty",
)
print(scroll.describe())Once the reward is "a break from difficulty", you have more options than "stop scrolling". You could keep the cue and the reward and change the routine, for example by standing up and getting water. That strategy is the subject of a later chapter.
Summary of the model
- The cue starts the behavior, the routine is the behavior, and the reward is the outcome that makes it worth repeating.
- The loop closes when the reward strengthens the link between cue and routine.
- A good description names an observable cue, a specific routine, and a reward that arrives soon after the routine.
- The real reward is sometimes different from the one you would name first.
Exercise
A learner writes this habit: "When I have free time, I get healthier, so that I feel good about myself." Which parts of the loop are weak, and how would you rewrite the cue and the routine?
Show answer
The cue ("free time") is not observable, because it never clearly arrives. The routine ("get healthier") is a goal, not a behavior. A better version is: "When I put my coffee mug in the sink after breakfast, I do ten minutes of stretching, so that I get a loose, awake feeling." The cue is a specific earlier action, and the routine is a concrete action with a clear start and end.
Exercise
You bite your nails whenever you read emails. You say the reward is "nothing, it is just a bad habit". Describe how you would find the real reward, and why a "nothing" answer is not enough.
Show answer
Every habit that persists has some reward, so "nothing" means the reward has not been identified yet. Over several days, note how you feel just before and just after biting your nails. Possible rewards include relief from tension, something to do with your hands, or a small break from concentration. Test each guess by substituting something else, such as squeezing a stress ball, and see whether the urge fades. The reward that the substitute satisfies is the likely real one.