Sub topic 1
How a Habit Works: Cue, Routine, Reward
A habit is a behavior that a situation triggers with little deliberate decision. This chapter gives you the working model behind the rest of the tutorial: the habit loop of cue, routine, and reward. Later chapters turn each part into a line on your one-page plan. Here you learn what each part does, how repetition builds the loop, and which mistakes make a plan fail.
Prerequisites
This chapter assumes you have:
- Some experience setting personal goals, such as "exercise more" or "read daily", and noticing when they stalled.
- Willingness to track one behavior daily for a few weeks. You will not track anything yet, but the later chapters depend on it.
- Optionally, enough Python to read a short function. The one snippet in this chapter is a diagnostic aid, and you can skip it without losing the main ideas.
You do not need any background in psychology.
The three parts of the loop
The habit loop is a three-part model. A cue is a signal that starts the behavior. The routine is the behavior itself. The reward is the outcome that tells your brain the behavior was worth repeating. Charles Duhigg popularized this "cue, routine, reward" wording in The Power of Habit, drawing on laboratory work on how the brain chunks repeated sequences into automatic ones.
The model is a simplification. Real behavior has more moving parts, such as mood, identity, and social pressure. It is still useful because each part can be written down and changed on purpose.
Cue
A cue is whatever precedes the behavior and prompts it. Researchers who study habits find that cues fall into a few broad groups:
- Time: 7:00 a.m., or Sunday evening.
- Location: the kitchen, or your desk.
- Preceding event: pouring coffee, or finishing a meeting.
- Other people: a colleague sitting down next to you.
- Internal state: feeling bored, stressed, or tired.
The cue matters more than most people expect. Studies of daily life by Wendy Wood and colleagues found that a large share of everyday actions, roughly 40 percent in one often-cited study, are repeated in the same place and context almost every day. People often explain these actions as choices. In practice the context is doing much of the work.
Routine
The routine is the observable action: what a camera would record. "Be healthier" is not a routine. "Walk to the end of the street and back" is. A routine can be physical, mental, or emotional, but for a plan you want one that another person could watch and confirm.
Reward
A reward is an outcome that makes the routine feel worthwhile, so your brain is more likely to run it again. Rewards come in several kinds:
- Sensory: the taste of coffee or the feeling of a hot shower.
- Emotional: relief, pride, or calm.
- Social: a thank-you, or a message to a friend.
- Informational: a visible mark that shows progress.
The reward must come soon after the routine. A benefit that arrives months later, such as lower blood pressure, is a good reason to start, but it does little to reinforce a Tuesday-morning stretch. The brain links actions to outcomes that arrive close in time.
The loop as a diagram
The loop is circular. The reward strengthens the link between the cue and the routine, so the next appearance of the cue triggers the routine more easily.
A worked example
Take the habit used throughout this tutorial: stretching every morning.
| Part | Content |
|---|---|
| Cue | You pour your first cup of coffee in the kitchen. |
| Routine | You put a mat on the floor and stretch for 5 minutes. |
| Reward | You say "done" out loud and drink the coffee. |
Here is what happens over repeated days:
- On day 1, the coffee does not feel connected to stretching. You must remember the plan and decide to follow it, and that takes effort.
- Over the next days and weeks, pouring coffee and stretching co-occur again and again. Your mind starts to treat the pair as a unit.
- Eventually, pouring coffee brings the thought of stretching to mind with no deliberate recall. Skipping it feels slightly odd.
The reward does real work in step 2. If stretching ended with nothing pleasant at all, and the coffee came before it instead of after, the loop would have a weaker closing step.
How a habit forms over time
Repetition in a stable context is what builds the link. The process is called automaticity: the behavior starts with less thought, effort, and decision.
Phillippa Lally and colleagues tracked 96 people who picked a new daily behavior. Automaticity rose quickly at first, then leveled off. The time to reach a plateau varied widely. The median was about 66 days, and individuals ranged from 18 to 254 days. Missing a single day did not noticeably damage the process.
Three practical points follow:
- There is no 21-day rule. Plan on weeks to months, and expect individual variation.
- Consistency of context beats intensity. Doing a small action in the same situation beats doing a large action at random times.
- One miss is not a reset. This matters for how you read your tracking later in the tutorial.
Why this model shapes the one-page plan
Each part of the loop becomes a field in your plan, and each field has a way to fail:
| Loop part | Plan field | Typical failure |
|---|---|---|
| Cue | Cue line | Too vague to notice, so it never fires |
| Routine | Action and minimum version | Too big or too fuzzy to start |
| Reward | Reward line | Missing, delayed, or unpleasant |
| The link between them | If-then sentence, tracking | Never written down, so never practiced |
Tracking and the review do not appear in the loop itself. They sit outside it and let you watch the loop from the outside, so you can fix a broken part instead of guessing.
Common errors when applying the model
These are the mistakes that most often make a plan fail while the person believes they did everything right.
Treating a goal as a cue
"Get fit by summer" is a goal. It is not a signal you will meet at a particular moment. A cue must be something that happens, ideally something you will certainly encounter, such as finishing breakfast. If you cannot say what you will see, hear, or do right before the routine, you do not have a cue yet.
Choosing a cue that does not reliably occur
A cue like "when I feel motivated" appears on unpredictable days. A cue like "when I arrive at my desk" appears on workdays. A good cue shows up on every day you want the habit to run. If you work from home some days, a cue tied to a commute will skip those days.
Packing several routines into one
"Morning routine: stretch, meditate, journal, and drink water" is four loops. Each has its own failure points. Start with one loop so that when something fails, you know which part failed.
Relying on a distant reward
"I will be healthier in a year" is a reason, not a reward. Keep the long-term reason on your plan, but add something small and immediate that follows the routine within seconds.
Rewarding the wrong thing
A reward can undercut the habit. Eating a large dessert after every workout may please you, but it works against the purpose of the workout. Pick a reward that does not contradict the goal.
Expecting the loop to run on willpower
Rereading your goals each morning is not part of the loop. If the habit depends on you remembering and deciding every day, it has not been built into a cue yet. Part of the work in later chapters is moving the trigger out of your memory and into your surroundings.
Believing a missed day breaks the habit
The Lally data show that a single missed day has little effect on how automatic the behavior becomes. Treating a miss as failure often leads people to abandon the plan altogether. A planned response to missed days belongs on the page, and you will write one later.
A quick diagnostic you can run
If you want to check a habit description for the three parts, the following function does it. It is a toy: it checks that each part is present and not obviously vague, and it cannot judge whether your cue is good. It still forces you to fill in each slot.
VAGUE_PHRASES = {"in the morning", "when i can", "more", "be better", "when motivated"}
def audit_loop(cue: str, routine: str, reward: str) -> list[str]:
"""Return a list of problems found in a habit loop description."""
problems = []
parts = {"cue": cue, "routine": routine, "reward": reward}
for name, text in parts.items():
cleaned = text.strip().lower()
if not cleaned:
problems.append(f"{name} is empty")
elif any(phrase in cleaned for phrase in VAGUE_PHRASES):
problems.append(f"{name} looks vague: {text!r}")
return problems
print(audit_loop(
cue="In the morning",
routine="Exercise more",
reward="",
))
# ['cue looks vague: 'In the morning'', 'routine looks vague: 'Exercise more'', 'reward is empty']
print(audit_loop(
cue="After I pour my first coffee",
routine="Do 5 minutes of stretching",
reward="Say 'done' out loud and drink the coffee",
))
# []The first call fails on all three parts, which matches the weak versions you will rewrite in the next chapters. The second call passes because every slot names a concrete moment, action, and outcome.
What to carry forward
- A habit loop has a cue, a routine, and a reward, and the reward strengthens the link from cue to routine.
- Context cues do much of the work in daily life, so a reliable, noticeable cue matters more than motivation.
- Automaticity builds over weeks to months of repetition in a stable context, and one missed day does little harm.
- Most failures come from a vague cue, an oversized routine, or a missing immediate reward.
- Each part of the loop becomes one field of your one-page plan.
Exercise
A reader writes this loop: Cue: "When I feel like it." Routine: "Get in shape." Reward: "Better health next year." Name the problem with each part and rewrite each part so it could appear on a plan.
Show answer
The cue is not a reliable event, because "feel like it" arrives on unpredictable days. Rewrite: "After I put on my work shoes at 6:30 a.m." The routine is a goal, not an observable action. Rewrite: "Walk around the block once." The reward is distant and not tied to the moment of finishing. Rewrite: "Check off the walk on my calendar and drink a glass of cold water." The long-term reason can stay on the plan as the reason for the habit, but it is not the reward.
Exercise
Someone misses their stretching habit on 3 of the first 10 days and decides the habit "isn't forming." Using the research described in this chapter, what would you tell them?
Show answer
Automaticity builds over weeks to months, with a median of about 66 days and a range from 18 to 254 days in the Lally study. Missing a single day did not noticeably harm progress in that study, so 3 misses in 10 days is not evidence that the habit cannot form. The better response is to check the parts of the loop (is the cue noticed, is the action small enough, is there an immediate reward) and adjust, not to quit.