How Long Does It Take to Build a Habit?
Research suggests it takes a median of 66 days to form a new habit, not the popular 21 days. A 2009 study by Phillippa Lally and colleagues at University College London found habit formation ranged anywhere from 18 to 254 days, depending on the habit and the person. Consistency matters more than the exact number.
By Blane Steckline. Last updated: August 2026.
Where the 21-day myth came from
The 21-day rule traces back to a 1960 self-help book called Psycho-Cybernetics by plastic surgeon Maxwell Maltz. He noticed his patients took about three weeks to adjust to changes in their appearance and extrapolated that all behavioral change followed the same timeline.
It was an observation, not a study. The number got repeated so often that it stuck. Decades of self-help books cite it without ever pointing to actual research.
What the research actually says
The most-cited study on habit formation comes from Phillippa Lally and colleagues at University College London. Published in the European Journal of Social Psychology, the study tracked 96 people forming a new daily habit (eating fruit with lunch, drinking water, going for a run) and measured when each behavior became automatic.
The headline number: a median of 66 days. The full range went from 18 days on the fast end to 254 days on the slow end. Some habits never became fully automatic during the 12-week study window.
About the study
Full citation: Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998–1009.
You will see this paper cited as both “Lally 2009” and “Lally 2010.” Both are correct and both mean the same study. It first appeared online in July 2009, and the print issue followed in 2010, so the online-first date gave it the “2009” label that stuck in popular coverage.
The research ran at University College London. 96 volunteers each picked one new eating, drinking, or activity habit to repeat daily in the same context, then filled out a self-report every day for 12 weeks. Automaticity was measured daily with the Self-Report Habit Index, and 82 of the 96 provided enough data to analyze. Time to automaticity was estimated by fitting a curve to each person's data. Among participants whose data fit the model well, the estimates ranged from 18 to 254 days, with a median of 66. The 254-day end is an extrapolation, since the study itself only ran 12 weeks. Missing a single day did not measurably hurt habit formation.
| Key number | Finding |
|---|---|
| Median time to automaticity | 66 days (often quoted as the average) |
| Full range | 18 to 254 days (modeled estimates; the top end extrapolates past the study window) |
| Participants | 96 volunteers (82 provided enough data to analyze) |
| Study length | 12 weeks of daily self-reports |
| Journal | European Journal of Social Psychology, 40(6), 998–1009 |
| Missing one day | No measurable effect on habit formation |
Why the range is so wide
Three things explain the spread:
- Habit difficulty. Drinking a glass of water in the morning becomes automatic faster than doing 50 sit-ups. The harder the action, the more reps it takes.
- Context stability. Habits anchored to a stable cue (right after I brush my teeth, right when I sit down for lunch) form faster than habits with shifting contexts.
- Individual variation. The same habit can take one person a month and another person six. Both showed up in the study, and both are normal.
One useful finding from the study: missing a single day did not measurably hurt habit formation. So if you skip a Tuesday, just pick back up Wednesday. The pattern matters more than the perfection.
What this means for your habit tracking
If habits take roughly two to three months to feel automatic, your tracker needs to make that timespan visible. One missed day does not erase the repetition you have already put in, but a streak counter that resets to zero treats it like it does. A monthly grid you can scroll back through shows the real shape of your progress: mostly consistent, with the occasional gap, and slowly filling in over time.
That's why Keizoku uses a notebook-style monthly grid instead of a streak counter. You can see a whole month at a glance and stack months on top of each other to watch the longer arc.
Tips for the long haul
- Plan for 90 days, not 21. Pick a habit you actually want to keep for that long.
- Anchor to an existing routine. Stable cues form habits faster.
- Expect a slump in the middle. In my experience the novelty wears off around weeks 3 to 5, well before the habit feels automatic. That stretch is the hardest part, so plan for it.
- Miss a day, resume the next. The research says one missed day doesn't reset your progress.
- Track for at least three months before judging. A practical rule of thumb: if a habit still feels like a grind after three months, consider swapping the habit rather than blaming your willpower.
Frequently asked questions
How long does it take to form a habit?
Research from University College London found it takes a median of 66 days for a new daily behavior to become automatic. The full range ran from 18 to 254 days depending on the person and the habit. Plan for two to three months, not three weeks.
Is the 21-day habit rule true?
No. The 21-day figure comes from a 1960 self-help book, Psycho-Cybernetics, based on how long plastic surgery patients took to adjust to their appearance. It was never a study of habit formation, and actual research points to a median of 66 days.
How many weeks does it take to build a habit?
Roughly 9 to 10 weeks, based on the 66-day median from the Lally study. Some habits form faster and hard ones take much longer, so planning for about 12 weeks of consistent repetition is a reasonable buffer.
What did the Lally 2009 habit study find?
The study, published online in 2009 and in print in 2010, tracked 96 people at University College London as each formed one new daily habit over 12 weeks. It found a median of 66 days to reach peak automaticity, a range of 18 to 254 days, and that missing a single day did not measurably hurt habit formation.
About the author
Blane Steckline is the creator of Keizoku, a habit-tracking app built around a simple idea: consistency comes from clean tools, not overcomplicated apps that make you spend more time configuring your habits than actually doing them.
Keizoku is a free habit tracker built around the long arc of habit formation: a notebook-style grid where you can see months of progress at once. Setup takes about two minutes, and a missed day is just an empty box, not a lost streak. Available on iOS and Android.