Sub topic 13
If-Then Plans as a Way to Anchor a Habit
Prerequisites
This chapter assumes you have read the earlier chapters in this tutorial. You should know that a habit is a behavior triggered by a context cue, that automaticity is the marker of a habit, and that Lally et al. (2010) found a median of about 66 days with a very wide range. You do not need to know any psychology beyond that.
What an if-then plan is
An if-then plan names a situation and a response in advance. Peter Gollwitzer called this an implementation intention, in work published in 1999. The format is:
If (specific situation), then I will (specific action).
Compare two ways of stating the same goal:
- Goal intention: "I will exercise more."
- If-then plan: "If I put my coffee mug in the sink after breakfast, then I will put on my running shoes."
A goal intention states what you want. An if-then plan also states when and where you will act. Earlier chapters described a habit as a behavior triggered by a context cue. A plan lets you choose that cue deliberately, before you have repeated the behavior enough for the cue to work on its own.
Why this belongs in a chapter about timing
Habit research shows that repetition in a stable context builds automaticity slowly. The median in Lally et al. was about 66 days, and individuals ranged from 18 to 254 days. During those early weeks, nothing in the environment yet pulls you toward the behavior. You have to remember it and decide to do it each day, so the early repetitions depend on motivation and memory.
An if-then plan targets that early stretch. It does not shorten the time to automaticity by a fixed number of days, and no study supports a figure like that. What it does is raise the chance that each early repetition happens, in the same context, which is the input the habit mechanism needs.
The mechanism
Researchers describe two effects, and the evidence for each differs in strength.
- Better detection of the cue. Deciding in advance what the cue is makes it easier to notice when it occurs. You are less likely to let the moment pass.
- Less deliberation at the moment of action. The decision was already made when you wrote the plan. At the cue, you carry out the plan and do not weigh whether to act.
The loop on the right of the diagram is the point. A skipped day sends you back to waiting for the next cue. As the previous chapter on missed days showed, one skipped day does not reset progress. The plan simply gives you a clear next opportunity.
What the evidence shows
The main evidence comes from a meta-analysis by Gollwitzer and Sheeran (2006). It combined 94 independent tests and found a medium-to-large effect of if-then plans on goal attainment (about d = 0.65). A frequently cited single study is Milne, Orbell and Sheeran (2002) on exercise. In it, 91% of participants who formed an if-then plan exercised at least once during the study period. Among participants who received only a motivational message, the figure was 35%, and among controls it was 38%.
These results need careful reading:
- They measure whether people acted, not how long automaticity took to form. The meta-analysis is about goal attainment, not habit timing.
- Many studies cover short follow-up periods and simple behaviors. Results for demanding or long-term changes are weaker and more mixed.
- Plans help most when the person already intends to act. They do little for a goal the person does not want.
- Some studies have also examined whether plans increase automaticity over weeks. This work is smaller and less settled, so treat it as promising and not proven.
The accurate summary is that if-then plans reliably help people start and repeat a behavior. That helps habit formation indirectly, because repetition in context is what builds a habit.
Anatomy of a good plan
The strength of a plan depends on how concrete its parts are.
| Part | Weak version | Strong version |
|---|---|---|
| Cue | "In the evening" | "After I brush my teeth at night" |
| Action | "Be healthier" | "Eat one piece of fruit" |
| Context | Varies day to day | Same place and routine each day |
| Link | Cue is optional or rare | Cue happens every day you intend to act |
Four properties matter most.
- The cue is an event, not a time window. "After I pour my morning coffee" is an event you can notice. "Sometime after lunch" is not.
- The cue happens reliably. If your cue occurs only three days a week, you will practice only three days a week.
- The action is small and observable. You should be able to tell afterward whether you did it.
- The context is stable. Lally et al. asked participants to perform the behavior in the same context each day, and the later chapters on complexity discuss why a consistent setting matters.
Checking a plan in code
A plan is a small data structure, so you can check it mechanically. The script below flags vague cues and actions. It is a rough heuristic, not a validated tool, and the word lists are my own illustrative choices.
from dataclasses import dataclass
VAGUE_CUE_WORDS = {"sometime", "later", "evening", "morning", "afternoon", "whenever"}
VAGUE_ACTION_WORDS = {"better", "more", "healthier", "try"}
@dataclass
class IfThenPlan:
cue: str
action: str
def problems(self):
found = []
cue_words = set(self.cue.lower().split())
action_words = set(self.action.lower().split())
if not cue_words & {"after", "when", "before", "once"}:
found.append("Cue does not name an event (try 'after ...' or 'when ...').")
if cue_words & VAGUE_CUE_WORDS and not cue_words & {"after", "when", "before", "once"}:
found.append("Cue is a vague time window.")
if action_words & VAGUE_ACTION_WORDS:
found.append("Action is vague; name something you can observe.")
if len(self.action.split()) > 12:
found.append("Action is long; shrink it to a small first step.")
return found
plans = [
IfThenPlan("In the evening", "Exercise more"),
IfThenPlan("After I brush my teeth", "Do five squats"),
]
for plan in plans:
issues = plan.problems()
status = "OK" if not issues else "; ".join(issues)
print(f"If '{plan.cue}' then '{plan.action}': {status}")The first plan gets two flags: no event cue and a vague action. The second passes. The point of the exercise is not the code. It is that each flagged problem corresponds to a way real plans fail.
Common errors and edge cases
- Stacking too many plans at once. Each plan needs its own cue and its own early repetitions. Starting five plans in one week spreads attention thin. Evidence on how many habits people can build in parallel is limited, so start with one or two.
- Choosing a cue that moves. A cue such as "when I get to work" breaks on remote days. Pick a cue that holds in every setting where you want to act, or write a second plan for the other setting.
- Treating the plan as a promise of 66 days. The plan does not set the timeline. The curve from earlier chapters still applies, and your own time to plateau could be nearer 18 days or well past 66.
- Writing a plan for something you do not want to do. Plans carry out intentions. They do not create them. If you feel strong reluctance, revisit the goal first.
- Expecting the plan to rescue a complex behavior. A multi-step routine such as a full workout takes longer to become automatic. Anchor a small first step, such as putting on your shoes, and let the rest follow.
- Ignoring obstacles. A second plan can address a known barrier: "If it is raining when I leave, then I will use the indoor stretch routine." This is sometimes called coping planning. The evidence for it is less extensive than for the basic format, so use it for barriers you actually expect.
Connecting plans to tracking
A plan gives you something concrete to track. Each day, record one fact: did the cue occur, and did you act on it? Two separate records tell you more than a single streak count:
- If the cue often does not occur, the problem is the cue. Pick a more reliable one.
- If the cue occurs but you skip the action, the problem is the action size or your motivation. Shrink the action or reconsider the goal.
Reviewing these records after a few weeks lets you adjust the plan, which is a better use of the data than checking whether you have reached an arbitrary day count.
Exercise
A learner writes: "If it is the evening, then I will read more." After two weeks they have read on only four days. Name two problems with the plan and rewrite it. Then say what you would check in a daily record to decide which problem is the main one.
Show answer
The cue "the evening" is a vague time window and not an event you can notice, and the action "read more" is not specific or observable. A rewrite: "If I get into bed at night, then I will read one page." In the daily record, log whether the cue occurred and whether the action followed. If the learner often did not get into bed at a consistent point or forgot, the cue is the main issue. If the cue occurred but they skipped reading, the action or motivation is the main issue.
Exercise
A friend says, "Studies show if-then plans make habits form in half the time." What does the research actually support, and what does it not support?
Show answer
It supports that if-then plans raise the chance people act on their goals (Gollwitzer and Sheeran's 2006 meta-analysis found a medium-to-large effect on goal attainment), which helps the repetition that habits need. It does not support a specific reduction in days to automaticity such as "half the time." Those studies mostly measured whether people acted, not how long automaticity took to form, and Lally et al. still show a very wide range between people.