Sub topic 1
How a Habit Works: Cue, Routine, Reward
Choosing a first habit well starts with knowing what a habit is made of. This chapter gives you a working model of the habit loop. It also covers the usual ways people misread their own loops. Later chapters use this model to compare candidates, shrink the habit, and anchor it to a cue.
Prerequisites
This chapter assumes you have the following:
- Basic familiarity with the idea of a daily routine, such as a morning sequence or a regular evening wind-down.
- Willingness to write short lists and describe your own behavior honestly, including behavior you are not proud of.
- Enough Python to read a short script with a dictionary and a loop. The code is optional, and you can do the same exercise on paper.
You do not need any background in psychology.
What a habit is
A habit is a behavior that has become partly automatic. A particular situation triggers it, and you do it with little deliberate decision-making. Brushing your teeth after breakfast is a habit if you do it without weighing whether to. Going to the gym because you talked yourself into it each time is a repeated decision. That is not the same thing.
The distinction matters because deciding costs effort. A habit saves that effort. When a behavior depends on a decision every time, it competes with tiredness, mood, and other demands. When it is triggered by a situation, it can run in the background of a busy day.
Habit research describes automaticity as built through repetition in a stable context. A study by Lally and colleagues (2010) followed people who chose a new daily behavior. The time to reach a plateau of automaticity varied widely. The median was about 66 days, and individuals ranged from 18 to 254 days. Treat the figure as evidence that the timeline varies, not as a deadline to hit. Missing a single day did not appear to derail the process in that study.
The three parts of the loop
The most common model splits a habit into three parts, popularized by Charles Duhigg in The Power of Habit. The model gives you something to inspect and change.
- Cue. The trigger that starts the behavior.
- Routine. The behavior itself.
- Reward. The outcome that makes the brain mark the loop as worth repeating.
The cue
A cue is whatever reliably precedes the behavior. Cues tend to fall into five categories:
| Cue type | Example |
|---|---|
| Time | 7:00 a.m., or the end of the workday |
| Location | Walking into the kitchen |
| Preceding event | Finishing a meeting, or pouring coffee |
| Emotional state | Feeling stressed or bored |
| Other people | A colleague asking if you want a break |
Preceding events and locations are often the easiest to design around. A clock time is less reliable than it looks, because many people are not doing the same thing at 7:00 each day. An emotional state is the hardest to control because you cannot schedule it.
A cue is usually a bundle of several signals. You may reach for your phone because you are on the sofa, it is evening, you feel tired, and the phone is within reach. Removing one of those signals can weaken the habit, but it rarely removes it.
The routine
The routine is the behavior you actually perform. It can be physical (a walk), mental (a few minutes of planning), or emotional (a breathing exercise). Two properties matter for choosing a habit:
- Size. A routine that takes five minutes survives a bad day more easily than one that takes an hour.
- Specificity. "Exercise more" is a goal. "Put on walking shoes and step outside" is a routine you can observe.
If you cannot tell from the outside whether the routine happened, it is probably too vague to be a routine.
The reward
The reward is what you get from the behavior. Many people picture rewards as treats, but several kinds exist:
- Sensory. A taste, a warm shower, or the feel of fresh air.
- Emotional. Relief, calm, or pride.
- Social. Approval or connection.
- Informational. Seeing a streak mark or a finished item on a list.
- Relief from discomfort. The itch of boredom or anxiety goes away.
The reward is what teaches the loop. Behaviors followed by something satisfying get repeated. Behaviors followed by nothing noticeable are repeated much less reliably, even when they are good for you.
The missing step: craving
The three-part model leaves out a step that James Clear's Atomic Habits adds: craving. In that four-step version, the sequence is cue, craving, response, reward. The craving is the motivation or anticipation that the cue creates. You do not crave the cigarette itself, for example, but the relief you expect it to bring.
You can use the three-part model for most planning, but keep craving in mind for one reason. A cue only works if it makes you want the reward, even slightly. If a cue fires and nothing in you anticipates the outcome, the behavior will not start.
Why timing of the reward matters
Rewards that arrive immediately shape habits far more than rewards that arrive months later. This explains why exercise is hard to maintain. The costs (effort, sweat, time) arrive now. The main benefits (fitness, health) arrive slowly. A habit with a delayed payoff needs a small immediate reward added to it.
Immediate rewards can be built in. After a walk, you might note it on a calendar or take a moment to notice how you feel. The reward should be real to you and small enough not to cancel the benefit. Rewarding a 20-minute walk with a large dessert every time is a poor design.
Mapping a loop you already have
The practical skill is to take an existing habit and split it into the three parts. You will do this with your own habits first, because they are easier to observe than a habit you have not yet built.
Here is a short script that records a loop and flags any part you left empty.
def audit(habit):
missing = [part for part in ("cue", "routine", "reward") if not habit.get(part)]
print(f"Habit: {habit['name']}")
for part in ("cue", "routine", "reward"):
print(f" {part:>8}: {habit.get(part) or '???'}")
if missing:
print(f" Incomplete loop, still unknown: {', '.join(missing)}")
else:
print(" Loop is complete.")
audit({
"name": "scroll on phone after waking",
"cue": "alarm sounds, phone in hand",
"routine": "open a social app and scroll",
"reward": "novelty and feeling up to date",
})
audit({
"name": "evening snack",
"cue": "sitting on the sofa after dinner",
"routine": "eat something from the cupboard",
"reward": "",
})The second audit prints ??? for the reward and reports an incomplete loop. That is a realistic result. Many people can name the cue and the routine of a habit but cannot say what they get from it. Finding the reward is usually the hardest part.
A way to identify the real reward
To find a hidden reward, run a few small experiments over several days. Change the routine slightly and see whether the urge goes away.
- Suppose you snack after dinner. On day one, eat an apple instead of chips. Does the urge still feel unsatisfied?
- On day two, call a friend instead. If the urge disappears, you may have wanted social contact more than food.
- On day three, take a short walk. If this works, you may have wanted a break from sitting.
- Write down after each attempt what you feel after 15 minutes. If you still want the snack, the reward was probably something else.
This is a hypothesis test, not proof. You are collecting evidence about what the behavior gives you, and a few days is enough for a rough answer.
Common errors in reading a loop
These are the mistakes that most often lead people to design a habit that does not stick.
Mistaking a goal for a cue. "I want to lose weight" is a goal. It is not a trigger that occurs at a particular moment. A cue must be something you can notice happening.
Choosing a cue that does not reliably occur. "When I have free time" is unreliable because free time does not announce itself. A cue that occurs on only some days produces a habit that runs on only some days.
Naming the reward you wish you had. You may say you walk for health, while your actual reward is a quiet 10 minutes away from the family. Neither answer is wrong, but the plan has to serve the real reward. Otherwise it will feel flat.
Ignoring the context. Habits are tied to places and situations. Research on habit formation (for example, work by Wendy Wood and colleagues) found that many habits break when the context changes, such as after a move or a new job. Your cues may disappear in a new setting. Moving or travelling is a good time to check whether the loop still runs.
Expecting willpower to do the cue's job. If the plan only works when you remember and feel motivated, the cue is not doing its work.
How this connects to choosing a habit
The loop gives you three levers when you design a habit: you can pick the cue, you can shape the routine, and you can arrange the reward. This is why later chapters stress the following points:
- A tiny routine, because it keeps the loop running on bad days.
- A specific, reliable cue, because it starts the loop without a decision.
- A noticeable reward, so the loop strengthens each time.
- One habit at a time, because each habit needs its own cue and its own attention. Several new loops compete for the same limited effort.
A keystone habit, which a later chapter defines, is a habit whose loop also sets off improvements in other parts of your life. You still need a working loop first. A keystone that you cannot start is only an idea.
Worked example: a morning walk
Suppose someone wants to build a morning walk. Here is the loop before and after applying what you have learned.
First attempt:
- Cue: "In the morning, when I feel like it."
- Routine: "Go for a good walk."
- Reward: "Be healthier."
This fails on all three counts. The cue is a feeling and not an event. The routine has no clear size. The reward is far away.
Revised loop:
- Cue: pouring the morning coffee. It happens daily and it is easy to notice.
- Routine: put on walking shoes and step outside for five minutes.
- Reward: the fresh air right away, plus a tick on a paper calendar.
Each part can now be observed, and the reward happens within minutes. The later chapters on tiny versions and implementation intentions formalize this step. For now, notice that nothing about the revised version requires more motivation than the first. It simply gives the loop something concrete to attach to.
Summary
- A habit is a partly automatic behavior triggered by a context.
- The loop has three parts: cue, routine, and reward. Craving sits between cue and routine.
- Cues fall into time, location, preceding event, emotional state, and other people.
- Immediate rewards strengthen a loop more than delayed ones.
- You can find a hidden reward by swapping the routine and watching whether the urge fades.
- Common errors are vague cues, goals mistaken for cues, and rewards you do not actually get.
Exercise
Pick one habit you already have, good or bad. Write its cue, routine, and reward in one line each. Then say which of the five cue types (time, location, preceding event, emotional state, other people) the cue belongs to, and what experiment you could run to check that you named the reward correctly.
Show answer
A sample answer: Habit: checking email first thing at work. Cue: sitting down at my desk (location, with a preceding event of arriving). Routine: open the inbox and read new messages. Reward: relief at knowing nothing urgent is waiting. Experiment: for three days, do a different first task, such as writing my to-do list, and note whether the urge to check email fades once I have written the list. If it fades, the reward was a sense of control over the day. If it does not, the reward was probably reassurance about urgent messages. Any complete answer should have a cue that can be noticed, a routine that can be observed, a reward tied to a feeling or outcome, and an experiment that changes the routine while keeping the cue the same.
Exercise
A learner writes this plan: "Cue: when I have some free time. Routine: exercise. Reward: get fit." Name two problems with the cue and routine and one problem with the reward, then rewrite the plan.
Show answer
The cue is unreliable because free time is not a distinct event that occurs at a predictable moment, so the loop will start only on some days. The routine is vague because "exercise" has no size and cannot be observed. The reward, getting fit, is far in the future, so it does not strengthen the loop each day. A rewrite: Cue: after I put my work laptop away at the end of the day. Routine: change into running shoes and walk around the block for five minutes. Reward: mark an X on the wall calendar and notice how I feel after the walk.