How long does it take to form a habit?
Usually about two months, but with a very wide range. In the best-known study, the median time for a new daily habit to feel close to automatic was 66 days, with individuals ranging from 18 to 254 days.
It takes about two months for a typical new habit to become automatic, not 21 days. A 2010 study by Phillippa Lally and colleagues found a median of 66 days, and a 2024 review of 20 studies found medians of 59 to 66 days, with individual times ranging from a few days to most of a year.
That range matters more than the headline number. Here is what the research actually measured, where the 21-day figure came from, and how to use the findings.
The 66-day study (Lally et al., 2010)
Researchers at University College London asked 96 volunteers to pick one new daily behavior tied to a cue, such as eating a piece of fruit with lunch or going for a run before dinner. Every day for 84 days, participants rated how automatic the behavior felt, using questions such as whether they did it without having to consciously remember.
For most people, automaticity rose quickly at first and then levelled off, like a curve approaching a ceiling. The researchers measured how long it took each person to reach 95% of their own plateau.
- The model fitted the data well for 39 participants, not all 96.
- Among them, the median was 66 days.
- The range was 18 to 254 days. Because the study ran for 84 days, the longer times were estimated by extending each person's curve, not observed directly.
- The behaviors people chose differed in effort, and how long they took to become automatic differed widely too.
One finding is especially useful: missing a single opportunity did not materially affect the habit-forming process. A missed day is not a reset. We cover that in detail in what to do when you miss a day.
The 2024 review: 20 studies, 2,601 people
A systematic review by Singh and colleagues, published in Healthcare in 2024, pulled together 20 studies with 2,601 participants looking at how long health habits take to form.
- Median times ranged from 59 to 66 days across the studies that reported them.
- Mean times were longer, 106 to 154 days, because a few people who took a very long time pull the average up.
- Individual times ranged from 4 to 335 days.
The authors are cautious. Only a few studies reported timing at all, and most carried a high risk of bias. So treat "about two months" as a reasonable expectation, not a promise. That is also why we say median rather than average: the median is the middle person, while the average is stretched by the slow cases.
Where the 21-day myth comes from
The 21-day figure is commonly traced to Psycho-Cybernetics, a 1960 book by plastic surgeon Maxwell Maltz. He observed that people seemed to need a minimum of about 21 days to adjust to a change, such as a new face after surgery or the loss of a limb.
Over the decades, "a minimum of about 21 days" to adjust appears to have been shortened into "it takes 21 days to form a habit". That was never a research finding. Three weeks can be a fine first milestone, but if a habit still feels like effort on day 22, nothing has gone wrong.
What makes a habit form faster or slower
- Complexity. A glass of water after waking forms faster than a 30-minute workout.
- A stable cue. Linking the habit to the same time, place or existing routine ("after I pour my coffee") helps it become automatic. This is the idea behind habit stacking.
- Repetition in a similar context. Automaticity grows with repetitions, so a daily habit usually forms faster than a weekly one.
- Personal differences. The spread from 18 to 254 days shows how much people vary. Compare yourself with your own last month, not with a number.
Estimate your own timeline
If you want a rough date to aim for, our habit formation calculator uses these research figures to give you a rough window for when a habit might start to feel automatic. Treat the result as a guide, not a deadline.
How to get through the first two months
The hard part is the long middle, when the novelty has gone and the habit is not yet automatic. A few things help:
- Make it small. Two pages a day that you actually read beats twenty you skip; our guide to building a reading habit does the math.
- Track it visibly. Watching a day-by-day grid fill in gives you proof of progress before the habit feels easy. Habit Forever shows a colorful grid for each habit, along with your current and best streak and a consistency figure.
- Use weekly targets where daily is unrealistic. If you train three times a week, a weekly goal keeps rest days from breaking your record. Habit Forever supports daily and weekly goals.
- Keep a reminder at your cue time. A reminder tied to your routine prompts you until the cue does the work by itself.
- Plan for the miss. You will miss days. The research says one miss does not undo your progress, so just do the next one.
New to tracking? Start with how to track habits on iPhone.
FAQ
Does it really take 21 days to form a habit?
No, research suggests a median of about 59 to 66 days, and the 21-day figure is commonly traced to a 1960 observation by Maxwell Maltz about adjusting to change, not to habit research.
What did the 66-day study find?
Lally and colleagues found that among 39 participants whose data fitted their model well, the median time to reach 95% of their automaticity plateau was 66 days, ranging from 18 to 254 days.
Why do some habits take almost a year?
Harder or less frequent behaviors, weaker cues and individual differences all slow automaticity down, and the 2024 review found individual times as long as 335 days.
Does missing a day reset habit formation?
No, in the Lally study missing a single opportunity did not materially affect the habit-forming process.
Is the median the same as the average time?
No, the median is the middle value, while the average is pulled up by people who take a very long time, which is why the 2024 review reports means of 106 to 154 days but medians of 59 to 66 days.
Sources
- Lally P, van Jaarsveld CHM, Potts HWW, Wardle J. How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 2010.
- Singh B, et al. Systematic review of the time taken to form health behaviour habits. Healthcare 12(23):2488, 2024.
About Habit Forever
Habit Forever is a habit tracker for iPhone and iPad (iOS 17 or later) by independent developer Mohamed Elatabany. Track check-off or number habits with goals, reminders, notes, streaks and colorful day-by-day grids, plus Home Screen and Lock Screen widgets and Siri Shortcuts. There is no account, and habit data stays on your device. It is free for up to three habits; Habit Forever Pro (yearly, monthly or a one-time lifetime purchase) adds unlimited habits, deeper insights, widgets for every habit and backup export/import. It is rated 4.6★ on the App Store, from 17 ratings worldwide, where it is listed as “Habit Forever: Streak Tracker” (formerly “Habit Streak Tracker: Routines”).
Spotted something out of date or wrong? Tell me and I’ll fix it.