How Long Does It Take to Form a Habit? What Research Says
About two months for a simple habit, six for the gym: what the studies really say about habit formation, why the 21-day rule is wrong, and how to speed it up.
Trackware · · 4 min read
It takes about two months to form a simple daily habit. Two studies gathered in a 2024 review found medians of 59 and 66 days, but people ranged from 4 to 335 days. Going to the gym took about six months in a 2023 study. The 21-day rule comes from a 1960 book, not from habit research.
Here is what the research says, and what you can do to make it faster.
The 66-day study
The most cited study on the question was led by Phillippa Lally at University College London and published in 2009. 96 volunteers chose a new behavior to repeat every day after a cue of their choice, like drinking a glass of water at lunch or running for 15 minutes before dinner. Every day, they rated how automatic the behavior felt.
The median time to get close to the plateau of automaticity was 66 days, with estimates from 18 to 254 days depending on the person and the behavior. And missing a single day did not change the result in any meaningful way (UCL).
Before you quote the number, three details matter:
- It comes from 39 people. 96 took part, 82 gave enough data, and the curve described 39 of them well (Lally et al.).
- It is a median, not a deadline. About half of these 39 people needed more than 66 days.
- The study lasted 84 days. Everything above, up to 254 days, is a projection of the model.
What the 2024 review found
In 2024, a review of 20 studies on health habits, with 2,601 participants, put the few available numbers side by side (Singh et al., 2024):
| Habit | Time to form | Study |
|---|---|---|
| Eating, drinking or exercise, every day | 66 days (median) | Lally et al., 2009 |
| Healthy eating plan | 59 days (median), but only 23% of people reached the threshold | Keller et al., 2021 |
| Stretching in the morning | 106 days (mean) | Fournier et al. |
| Stretching in the evening | 154 days (mean) | Fournier et al. |
Between individuals, the range went from 4 to 335 days. The review also found that morning habits and habits people chose themselves were generally stronger. Its authors call the evidence modest: few studies, often small, and very different from one another.
The gym takes months
In 2023, researchers at Caltech and other universities published a study in PNAS using machine learning on huge datasets: more than 30,000 gym members followed over four years, and more than 3,000 hospital workers whose hand-washing was recorded.
Going to the gym took about six months to become a habit on average. Hand-washing at work took a few weeks. The study also showed what predicts the gym habit: 69% of members were more likely to go on the same days of the week, and for 76%, the time since the last visit mattered. Time of day had no effect on this gym habit (Caltech).
The title of the article says it well: there is no magic number.
Why the 21-day rule is wrong
The 21 days come from the 1960 book Psycho-Cybernetics, by the plastic surgeon Maxwell Maltz. He noticed that his patients needed at least 21 days to get used to their new appearance. The sentence was repeated, shortened and turned into "it takes 21 days to form a habit". It was never a study of habits, and the research since then shows most habits take longer.
The danger of the 21-day rule is what happens on day 22: when the habit still takes effort, people think they failed, and they stop.
What changes how fast a habit forms
From these studies, the same factors come back:
- The behavior. Small, simple actions become automatic faster. Make the habit smaller if you want it to stick sooner.
- The cue. The same cue, at the same moment, every day. Tying the habit to something you already do is the easiest way: that is habit stacking.
- Repetition. Each repetition counts; the days you skip do not erase the previous ones.
- You. Part of the difference is simply between people, which is why comparing yourself to someone else's timeline does not help.
For more numbers with their sources, see our habit statistics.
How to know when it is a habit
Researchers do not count days to decide if something is a habit: they ask how automatic it feels. Our habit formation calculator uses a short test from habit research: four questions, a score out of 7, and the expected date from the studies.
A realistic plan
- Plan for 66 days, and write the date on your calendar. Our 66-day challenge sheet counts them for you.
- Make the habit small enough for your worst day.
- Attach it to the same cue every day.
- Miss a day? Start again the next one. Never miss twice in a row.
- Only add a new habit when the first one feels automatic: see how many habits to track at once.
Habits, our habit tracker for iPhone, iPad, Apple Watch and Mac, counts your days and your streak for you, and reminds you at the moment you choose. The free version tracks up to 3 habits.
Frequently asked questions
Related articles
How Many Habits Should You Track at Once?
Start with one to three habits, then add more once they run on their own. Why fewer is better, how to choose them, and when to add a new one.
2 min read
How to Break a Bad Habit: 9 Strategies That Work
How to break a bad habit: find the cue, make it harder, replace the routine, use if-then plans and life changes, and track your progress. With examples.
3 min read
Keystone Habits: What They Are and 12 Examples to Start With
Keystone habits are habits that pull others along, like exercise, sleep or planning your day. What they are, 12 examples, and how to find your own.
2 min read