Sub topic 1
Why habits run on cues: the cue, routine and reward loop
Prerequisites
This chapter assumes you have basic familiarity with daily routines and personal goal setting. You do not need a psychology background. You should be comfortable reading short Python snippets, though the code is only an illustration and you can skip running it.
The working model
A habit is a behavior you repeat in a stable context until it starts with little deliberate effort. Researchers and writers on habit often describe the process as a three-part loop:
- Cue: a trigger that starts the behavior. It can be a time, a place, a preceding action, a feeling, or another person.
- Routine: the behavior itself, whether physical, mental, or emotional.
- Reward: the outcome that tells your brain the behavior was worth repeating.
Each time the loop runs, the link between cue and routine gets a little stronger. After enough repetitions, the cue alone can pull you into the routine before you decide anything. This is why you reach for your phone when you sit on the couch, or lock the door as you leave without thinking about it.
Why a reliable cue matters
Most failed habits do not fail because the behavior is too hard. They fail because nothing starts them. "I want to stretch more" has no cue. You have to remember it, find the time, and feel motivated, and all three can fail on a busy day.
A reliable cue removes that decision. If a cue shows up every day, in the same form, the behavior has a daily chance to start. Compare these two plans:
| Plan | Cue | Starts the behavior? |
|---|---|---|
| "I'll read more this year" | None | Only if you remember and feel like it |
| "When I get into bed, I read one page" | Getting into bed | Every night you go to bed |
Habit stacking is a method built on this idea. It does not invent a new cue. It borrows one from something you already do every day.
A loop in code
The loop is easy to model. This sketch runs a cue, a routine, and a reward, and counts repetitions as a rough stand-in for how strong the link has become.
class HabitLoop:
def __init__(self, cue: str, routine: str, reward: str):
self.cue = cue
self.routine = routine
self.reward = reward
self.repetitions = 0
def run(self) -> None:
print(f"Cue: {self.cue}")
print(f"Routine: {self.routine}")
print(f"Reward: {self.reward}")
self.repetitions += 1
loop = HabitLoop(
cue="I sit down at my desk",
routine="I open my to-do list",
reward="I feel organized and ready",
)
for _ in range(3):
loop.run()
print(f"Repetitions so far: {loop.repetitions}")The counter is a simplification. Real habit strength is not a simple count, and it depends on context and consistency as well as repetition. The point of the model is the structure: all three parts must be present.
Where each part can go wrong
When a habit does not stick, check each part of the loop in turn.
- Weak or missing cue. The trigger is vague ("sometime after work") or unreliable (a meeting that happens only on Tuesdays).
- Routine too large. The behavior takes more effort than you have at that moment, so you skip it.
- No noticeable reward. The benefit is distant, such as better health in a year, so nothing reinforces the link today.
How this leads to habit stacking
If a cue starts the behavior, the practical question becomes: where do I find a cue that is reliable? Your existing routines are a good source. You already pour coffee, brush your teeth, and sit down to eat at fairly consistent points in the day. Each of these is already a cue that fires daily.
Check your understanding
Exercise
A person says, "I want to do five push-ups every day," but often forgets. Which part of the habit loop is most likely missing, and what could they use to fix it?
Show answer
The cue is missing. The plan names a behavior but nothing that starts it. They could attach it to an existing daily event, for example "After I brush my teeth, I will do five push-ups," so that brushing teeth acts as the cue.
Exercise
Name the three parts of the habit loop and say which one is the existing routine's job in habit stacking.
Show answer
The parts are cue, routine, and reward. In habit stacking, the existing routine provides the cue for the new behavior.