How long does it take to form a habit?
There is no fixed number. The best-known study on habit formation found that it took people a median of 66 days for a new daily behavior to become automatic — and anywhere from 18 to 254 days depending on the person and the habit. The famous “21 days” is a myth.
Where the 21-day rule came from
The idea traces back to Maxwell Maltz, an American plastic surgeon, and his 1960 bestseller Psycho-Cybernetics. Maltz noticed that his patients took a minimum of about three weeks to get used to their new appearance, and that people needed a similar time to adjust to other changes. He was describing his own observations of adjustment, not running an experiment on habits — and he spoke about a minimum, not a guarantee.
Over the following decades, self-help books and seminars shortened this to a neat rule: “it takes 21 days to form a habit”. The number was easy to remember and sounded achievable, so it spread. But it was never based on research into habit formation.
What the research actually found
The study most often cited was carried out by Phillippa Lally and colleagues at University College London and published in the European Journal of Social Psychology in 2010 (the data were collected in 2009).
- Who: 96 volunteers.
- What: each person chose one new healthy behavior related to eating, drinking or exercise, and did it once a day in the same situation — for example, eating a piece of fruit with lunch, drinking a bottle of water with lunch, or running for 15 minutes before dinner.
- How: for 12 weeks, participants logged every day whether they did it and rated how automatic it felt — whether they did it without thinking, found it hard not to do it, and so on.
The results:
- Automaticity rose quickly at first and then leveled off — like a curve approaching a plateau, not a switch that flips on a certain day.
- The median time to reach that plateau was 66 days.
- The range was huge: from 18 to 254 days. For some people, the estimate went well beyond the 12 weeks of the study.
- Simpler habits (a glass of water) became automatic faster than more demanding ones (exercise).
- Missing one day did not materially affect the process. Occasional slips did not reset progress.
It is one study, with a modest sample and self-reported data, so treat the exact numbers as a guide rather than a law. But it is the most solid answer we have, and it clearly contradicts the 21-day rule.
Why is the range so wide?
Several things affect how quickly a habit forms:
- Complexity. Drinking water is one action; going to the gym is a chain of actions — packing a bag, getting there, changing, training.
- Context. A habit tied to a stable cue (“after breakfast”) has something to latch on to. A habit done “sometime during the day” does not.
- Pleasure. Habits that feel good right away tend to stick faster than ones whose benefits are delayed.
- Consistency. Doing it in the same place and time strengthens the link between cue and action.
- Personal differences in routine, stress and life circumstances.
What this means in practice
Plan for months, not weeks
If you expect a habit to be automatic after three weeks, day 22 feels like failure: it is still hard, so maybe you are “not the type”. Expecting two to three months — longer for complex habits — removes that false deadline.
The first weeks matter most
Automaticity grows fastest at the start. Early repetitions bring the biggest gains, so this is when it pays most to keep things simple and consistent.
One missed day is fine
The study suggests that a single slip does not undo your progress. What hurts is turning one miss into a week. Get back on the next day — more in what to do if you missed a day.
Make it easier, not harder
Since simpler habits form faster, start with a small version and tie it to a fixed cue. The practical steps are in how to build a habit.
Watch automaticity, not the calendar
A habit is formed not on a particular date but when you notice you do it without deciding, and skipping it feels odd. That is your signal — not day 21 or day 66.
Try a 30-day or 66-day challenge if a round target motivates you — just treat it as a checkpoint, not the finish line. Keep going after it ends.
Tracking the long haul
Two months is long enough to lose track of how far you have come. A habit tracker helps you see it. In Temfy - Habit Tracker, the streak shows how many days in a row you have kept going, the stats show how many times you did the habit this month and overall, and the progress calendar shows each day. A skipped day (a second tap on the circle) does not break the streak, and if you pause a habit while sick or on vacation, paused days do not reset it either — which fits what the research says about occasional misses.
Check off habits with one tap
Temfy - Habit Tracker counts your day streak, shows a progress calendar, reminds you at the right time and puts your habits on the home screen. Free for up to 2 habits.