Sub topic 10
How long habits take to form
This chapter assumes you can name the cue, routine, and reward in a behavior, and that you know repetition in a stable context makes a behavior more automatic. It covers how long that takes, why the answer varies, and the mistakes people make when they plan around a number.
The 21-day claim
You may have heard that a habit takes 21 days. The figure traces back to a 1960 self-help book by a plastic surgeon, Maxwell Maltz. He noticed that patients took about 21 days to get used to a new appearance. That was an observation, not a measurement of habit formation. No study supports 21 days as a general rule.
The best-known measurement comes from a 2010 study by Phillippa Lally and colleagues at University College London. Volunteers picked a new daily behavior, such as drinking a glass of water with lunch or doing a set of sit-ups after coffee. Each day they rated statements like "I do it without thinking" and "I would find it hard not to do it."
Those ratings measure automaticity, the degree to which a behavior starts without deliberate effort. The study asked how many days it took for automaticity to level off.
What the study found
- The median time to reach the plateau was 66 days.
- Individual estimates ranged from 18 days to 254 days. The upper figure was extrapolated beyond the 12-week observation window.
- Simple behaviors, such as drinking water, became automatic sooner than demanding ones, such as exercise.
- Missing a single day did not noticeably damage the process. Repeated misses did slow it.
Treat these numbers as one study of a modest group of volunteers doing small daily behaviors. They are a better guide than 21 days, but they are not a law.
The shape of the curve
Automaticity does not rise in a straight line. It climbs quickly at first, then flattens. This kind of curve is called asymptotic, meaning it approaches a ceiling without sharply reaching it. Early repetitions add a lot, and later ones add little.
This shape has two practical consequences:
- The first two weeks feel the most effortful. The gains per repetition are also largest then, so early consistency is worth the most.
- The last stretch is slow. A habit can feel mostly automatic well before it reaches its plateau, and extra weeks of repetition add little.
Modeling the curve
The curve can be described with an exponential approach to a plateau. The rate value controls how fast you get there. A higher rate means a faster habit. The script below computes the day on which a habit reaches 95% of its plateau for three rates.
import math
def automaticity(day: int, plateau: float = 0.8, rate: float = 0.04) -> float:
"""Automaticity (0 to 1) after a number of days of practice."""
return plateau * (1 - math.exp(-rate * day))
def days_to_fraction(fraction: float, rate: float) -> float:
"""Days needed to reach a given fraction of the plateau."""
return math.log(1 / (1 - fraction)) / rate
for label, rate in [("hard habit", 0.02), ("typical habit", 0.04), ("easy habit", 0.08)]:
days = days_to_fraction(0.95, rate)
print(f"{label}: rate={rate}, about {days:.0f} days to reach 95% of the plateau")
print(f"Day 28 at the typical rate: {automaticity(28):.2f}")Running it prints about 150, 75, and 37 days for the three rates, and 0.54 for day 28. The model is a teaching tool, not a prediction. Real data are noisy, and a single person's curve will not be this smooth.
Why the time varies
Several factors move the timeline in either direction.
| Factor | Effect on formation time | Why |
|---|---|---|
| Behavior complexity | Longer for complex behaviors | More steps give more places for effort and decisions |
| Stable context | Shorter with a consistent cue | The same cue gives the loop a reliable trigger |
| Frequency | Shorter with daily repetition | Each repetition strengthens the cue-routine link |
| Reward timing | Shorter with quick, clear rewards | Reward learning works best when the reward follows soon |
| Person | Varies widely | Prior routines, stress, and temperament differ |
Context matters most for the loop model. A habit tied to "after I pour my coffee" gets the same trigger every day. A habit tied to "sometime this evening" has no stable cue, so each repetition has to be decided anew.
Common errors
Treating a number as a deadline. If you plan for 21 days and still need effort on day 30, you may conclude you failed. Nothing has gone wrong. You are on a normal part of the curve.
Quitting at the flat part. Gains per day shrink as the curve flattens, so progress feels like it stalls. The behavior is still becoming more automatic, only more slowly.
Overreacting to one miss. The 2010 data suggest an occasional missed day does little harm. The risk comes from what you do next. A miss followed by another miss is how a pattern of skipping starts. A later chapter covers lapses in detail.
Starting too big. A complex routine takes longer to automate, and each effortful repetition is easier to skip. Starting with a small version, such as two minutes of stretching, gets repetitions in sooner. You can extend it later.
Confusing automatic with effortless. A habit can be automatic and still be tiring. Automaticity describes how the behavior starts, not how pleasant or easy it is once underway.
Estimating your own timeline
You can run a small version of the study on yourself:
- Pick one behavior with a clear cue, such as "after I brush my teeth, I floss."
- Each day, rate "I did it without thinking about it" from 1 (not at all) to 7 (completely).
- Plot the ratings. The curve will be noisy, so look at weekly averages.
- When the weekly average stops rising, you have reached your plateau for that behavior.
This links to the next chapters. Writing an if-then plan gives the habit a clear cue from day one, and tracking helps you see the curve instead of guessing.
Summary of the working model
- Automaticity grows with repeated practice in a stable context.
- Growth is fast at first and slows near a plateau.
- In one well-known study the median time to plateau was 66 days, with a very wide range.
- Complexity, context stability, and individual differences change the timeline.
- A single missed day is not a reset.
Exercise
A reader starts a daily five-minute stretching routine. On day 21 she still has to remind herself to do it, and she decides the "21 days" rule has failed her. Using this chapter, explain what is likely going on and what she should do.
Show answer
The 21-day figure has no research basis. In the 2010 study the median time to reach the automaticity plateau was 66 days, with a range from 18 to an extrapolated 254 days, so day 21 is early. Automaticity rises fast and then flattens, so she is probably partway up the curve, not failing. She should keep repeating the routine with the same cue, track a daily "did it without thinking" rating to see the trend, and not treat an occasional missed day as a reset.
Exercise
In the Python model, which parameter would you raise to represent an easier habit, and what happens to the days needed to reach 95% of the plateau?
Show answer
Raise rate. Days to reach a fraction of the plateau equal log(1 / (1 - fraction)) divided by the rate, so doubling the rate halves the days. At rate 0.04 the 95% point is about 75 days. At 0.08 it is about 37 days.