Sub topic 13
Changing a Habit: Keep the Cue and Reward, Swap the Routine
This chapter assumes you can already name the cue, routine, and reward in a behavior, and that you know what a craving is. You do not need any programming background. The short code samples only make the structure of a habit explicit.
Why swapping works better than deleting
Suppose you want to stop an unwanted habit. The obvious plan is to remove the behavior and rely on willpower. This tends to fail for a simple reason: the cue still shows up, the craving still builds, and nothing satisfies it. You are left with an unmet need and a trigger you cannot avoid.
The habit loop model suggests a different plan. The cue and the reward are doing real work. The cue reliably appears in your day, and the reward meets a real need such as rest, stimulation, company, or relief. The routine is the part that is easiest to replace, because many behaviors can deliver the same reward.
So the strategy has four parts:
- Keep the cue.
- Keep the reward, meaning the need it satisfies.
- Replace only the routine.
- Repeat the new routine in the same context until it becomes automatic.
Step 1: Identify the loop you want to change
Before swapping anything, write the existing loop down accurately. Guessing is the most common error, because the reward you assume is often not the reward you actually want.
Answer these questions for a specific instance of the habit:
- Cue: What time is it? Where are you? What did you just do? What is your mood? Who is nearby?
- Routine: What exactly do you do, in order?
- Reward: What do you feel afterward that you did not feel before?
The code below records a loop as three fields. This makes it easy to see whether each part is specific enough to act on.
from dataclasses import dataclass
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
old = HabitLoop(
cue="it is 3 pm and I feel tired",
routine="buy a candy bar from the vending machine",
reward="a break and a quick energy lift",
)
print(old)A cue such as "when I am stressed" is too vague to design around. "It is 3 pm and I feel tired" can be noticed and acted on.
Step 2: Find out what the reward really is
Many routines can satisfy several different needs. A candy bar at 3 pm could be rewarding because of any of these:
- The sugar gives you energy.
- Walking to the machine gives you a break from your desk.
- Seeing a coworker on the way gives you company.
- Eating is simply a pleasant sensory experience.
If you replace the routine with something that does not meet the real need, the craving stays unsatisfied and the new routine will not last. A useful method is to run small experiments. On different days, try a different routine and see how you feel about 15 minutes later.
| Experiment | What it tests | Question to ask afterward |
|---|---|---|
| Drink a glass of water at your desk | Is it thirst or the sugar? | Do I still want the candy bar? |
| Walk around the building without buying anything | Is it the break and movement? | Do I feel refreshed? |
| Chat with a colleague for five minutes | Is it company? | Did the urge fade? |
| Eat an apple | Is it energy or taste? | Did it satisfy me? |
Take notes after each trial. If the urge is gone after the walk but not after the water, the reward you care about is the break, not the sugar. Treat the result as a hypothesis, because one trial can be misleading.
Step 3: Choose a replacement routine
A good replacement routine has these properties:
- It delivers the same reward. If the real reward is a break, the new routine must be a break.
- It fits the same cue. It must be possible at 3 pm, at your desk or nearby.
- It is easy to start. A routine that needs 30 minutes will lose to one that takes 30 seconds.
- It has fewer costs. Its side effects should be ones you can accept.
A weak replacement is a "punishment" routine, such as doing push-ups every time you want a cigarette. It does not meet the need, so the craving continues. A better replacement gives you something close to what you were getting.
In code, the swap is a change to one field only.
from dataclasses import dataclass, replace
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
old = HabitLoop(
cue="it is 3 pm and I feel tired",
routine="buy a candy bar from the vending machine",
reward="a break and a quick energy lift",
)
# Keep the cue and the reward, change only the routine.
new = replace(old, routine="walk to the kitchen and make a cup of tea")
print(old)
print(new)Step 4: Write the plan as an if-then statement
A good intention is not enough. Tie the new routine to the cue with an if-then plan, as in the previous chapter.
def if_then_plan(situation: str, action: str) -> str:
return f"If {situation}, then I will {action}."
print(if_then_plan("it is 3 pm and I feel tired", "walk to the kitchen and make a cup of tea"))The plan names the cue exactly, so you do not have to decide anything when the moment arrives. You only have to carry out a choice you already made.
Step 5: Practice in the same context
Habits depend on stable context. Practice the new routine in the same place and at the same time as the old one. Each repetition that ends in the reward strengthens the link between the cue and the new routine, and the old link weakens as it goes unused.
Expect this to take weeks, not days. Early on, the old routine will still feel like the default. Noticing the pull toward it is part of the process, not a sign of failure. You can also support the swap by changing the environment, which the next chapter covers: put the old option out of reach and the new one close.
Common errors
- Removing the reward. If the new routine gives you nothing, the loop has no reason to repeat.
- Changing the cue. Avoiding the cue entirely can work for some habits, but it is a different strategy. Here the point is to keep the cue and use it.
- Choosing a routine that is too big. A habit change that is hard to start loses to the old habit under fatigue.
- Misreading the reward. Test your guess about the reward before committing to a replacement.
- Expecting the old craving to vanish. The craving may remain for a while. What changes is the response.
A worked example
Maya checks social media on her phone every evening after dinner, often for an hour. She wants to spend that time differently.
- Identify the loop. Cue: she finishes dinner and sits on the sofa. Routine: she opens a social app and scrolls. Reward: she feels she is unwinding.
- Test the reward. Over a week she tries reading, a call with a friend, and stretching. She notes that she most wanted to unwind and feel connected. Reading left her restless. The call felt best.
- Choose the replacement. She picks a short call or voice message to a friend or relative.
- Write the plan. "If I finish dinner and sit on the sofa, then I will send a voice message to a friend."
- Adjust the environment. She leaves her phone charging in the hallway and keeps it free of the social app's notifications.
After several weeks, sitting on the sofa after dinner starts to bring up the idea of a message first.
Check your understanding
Exercise
You want to stop snacking on chips while watching TV in the evening. List the three steps you would take before choosing a replacement routine, and explain why you should not simply remove the chips and do nothing else.
Show answer
First, write down the loop: the cue (for example, sitting down to watch TV after dinner), the routine (eating chips), and the reward you feel. Second, test what the reward really is by trying different routines on different nights, such as sparkling water, a handful of nuts, or knitting, and noting whether the urge fades. Third, pick a replacement that delivers the same reward and is easy to do in the same setting. Removing the chips alone leaves the cue and the craving in place with nothing to satisfy it, so the old routine tends to return.
Exercise
A person replaces "smoke a cigarette on the balcony after lunch" with "do 20 push-ups after lunch". After two weeks the old habit returns. Using the loop model, give one likely reason.
Show answer
The push-ups probably do not deliver the same reward. If the reward was a break, a calm pause, or time outside, push-ups are effortful and do not meet that need, so the craving stays unsatisfied. A replacement that gives a similar pause, such as stepping outside for a short walk, would match the reward better. Because nicotine is also a physical dependence, a health professional could help too.