Sub topic 7
How long it takes: ranges, not a magic number
This chapter assumes you know the habit strength curve from the previous chapters: each repetition in a stable context adds a shrinking increment. You can follow the Python snippets, but you don't need to run them.
The 21-day claim
A common claim says a habit takes 21 days to form. It traces back to a 1960 self-help book by a plastic surgeon, who observed that patients took about 21 days to adjust to a changed appearance. That was an anecdote about adjustment, not a measurement of habit formation, and it was later repeated as if it were a finding.
What measured studies show
A well-known study by Lally and colleagues (2010) followed 96 volunteers. Each person chose a simple daily behaviour, such as drinking water with lunch, and rated its automaticity every day for 12 weeks. The results looked like this:
- The median time to reach a plateau of automaticity was about 66 days.
- Individual times ranged from 18 days to 254 days.
- Some people had not plateaued when the study ended, so their true times are longer than reported.
- Missing a single day did not noticeably damage progress.
Treat these numbers as one sample from one population. The useful lesson is the spread, not the median.
Why the range is so wide
The curve levels off, so "done" depends on where you draw the line. Several things also change how fast strength grows.
| Factor | Effect on formation time |
|---|---|
| Behaviour complexity | Simple actions become automatic sooner than multi-step ones |
| Context stability | A consistent cue and place speed the link |
| Person | Individuals differ in how quickly they learn |
| Reward | Clear, quick satisfaction supports the link |
A model that shows the spread
The earlier model closes a fixed fraction of the remaining gap each day. That fraction is the rate parameter. Changing it shows how one rule produces very different timelines.
def days_to_threshold(threshold=0.95, rate=0.05, max_days=1000):
strength = 0.0
for day in range(1, max_days + 1):
strength += rate * (1 - strength)
if strength >= threshold:
return day
return None
print(days_to_threshold(0.95, 0.05)) # 59
print(days_to_threshold(0.95, 0.02)) # 149A rate of 0.05 reaches 95% strength in 59 days. A rate of 0.02 needs 149. Nothing else changed.
Lowering the threshold also changes the answer, because the curve is steep early and flat late. Try threshold=0.80: the day count drops sharply. This is why "how long?" has no single answer. You have to say how automatic counts as automatic.
The model is an illustration. The rate values are made up, and real habit strength is not measured on a clean 0 to 1 scale.
Common errors when applying this
- Setting a deadline. Planning "automatic by day 21" sets you up to conclude you failed when the behaviour still takes effort.
- Reading effort as failure. Early on, effortful repetition is the normal part of the curve, not a sign the habit isn't forming.
- Quitting after a miss. One missed day is a small setback, so resume the next day.
- Comparing across behaviours. A two-minute stretch and a 30-minute workout sit on different curves.
- Stopping at the first sign of ease. Strength keeps growing slowly after the behaviour feels easier, so continued repetition still helps.
A practical way to plan
Pick a small action and a stable cue. Expect weeks to months, not days. Check progress by how automatic it feels, using the signs from the earlier chapter, instead of counting toward a target number.
Exercise
A friend stopped her new habit on day 30 because "21 days should have been enough" and it still felt like effort. Give two reasons from this chapter why that conclusion is weak.
Show answer
The 21-day figure is an anecdote, not a measurement. In the Lally study the median was about 66 days, with a range from 18 to 254, so 30 days of effort is well within normal. Also, the habit strength curve rises gradually, so effort early on is expected. Her habit may be partway along the curve.
Exercise
In the Python model, why does lowering the threshold from 0.95 to 0.80 shorten the time sharply, even though the rate is unchanged?
Show answer
Each day closes a fixed fraction of the remaining gap, so gains are large early and small later. The last stretch toward 0.95 takes many days for small gains, while 0.80 is reached on the steep part of the curve.