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: May 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 2009 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.

Source: Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2009). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998–1009.

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. Some people are wired to form routines quickly. Others take longer. 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. A streak counter that resets to zero every time you miss a day works against the science. 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 plateaus around weeks 3 to 5. The novelty wears off before the automaticity kicks in. This is the dangerous window.
  • 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. If a habit hasn't taken by then, it might not be the right habit, not a willpower problem.

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. Available on iOS and Android.

Download on the App StoreGet it on Google Play