Guide · Habits
How long does it take to form a habit?
Not 21 days. What the research says about how long habits take to form, why it varies so much, and how to get through the slow middle.
You have probably heard that it takes 21 days to form a habit. It is a tidy number, and it is not what the research found. For most people and most habits it takes longer, often a lot longer, and the time varies enormously from one habit to the next.
That is good news, in a way: if a new habit still feels like an effort after three weeks, nothing has gone wrong. Here is where the 21-day idea came from, what studies have measured since, and how to get through the slow middle.
Where the 21-day idea comes from
The number usually traces back to Psycho-Cybernetics, a 1960 book by the plastic surgeon Maxwell Maltz. He noticed that his patients seemed to take a minimum of about 21 days to get used to a change, such as a new face in the mirror. Over the years “a minimum of about 21 days” for getting used to a change became “21 days to form a habit”, and the word minimum got lost.
What the research found
The best-known study is from University College London, published in 2010 by Phillippa Lally and colleagues. Volunteers picked a new daily behaviour, such as drinking a glass of water with lunch, eating fruit or going for a run, and every day for 12 weeks reported how automatic it felt.
- Automaticity rose quickly at first, then levelled off, like a curve flattening out.
- The typical (median) time to get close to that plateau was 66 days.
- The range was huge: from 18 days to 254 days, depending on the person and the behaviour.
- Simple habits, such as drinking water, tended to become automatic sooner than more demanding ones, such as exercise.
- Missing a single day did not undo the progress.
A 2023 study that used machine learning on gym check-ins and hospital hand-washing data came to a similar conclusion: the gym habit typically took months to form, while hand-washing at work formed in weeks.
Why it varies so much
- How complex the habit is. A glass of water takes seconds; a workout takes planning, energy and time. The more effort, the longer it takes.
- How stable the cue is. A habit done at the same time and place each day becomes automatic faster than one squeezed in wherever it fits.
- How rewarding it feels. Habits with a quick, pleasant payoff stick sooner than habits whose benefits are months away.
- How consistent you are. Not perfect: consistent. A missed day is fine; long gaps reset the routine.
How to get through the slow middle
The first week is carried by motivation. The weeks after that, when the novelty has gone and the habit is not yet automatic, are where most new habits are lost. Plan for them:
- Expect it. If it still takes effort in week five, that is normal, not a sign you are bad at habits.
- Shrink it on hard days. Ten minutes instead of thirty still counts as a repetition, and repetitions are what build the habit.
- Keep the cue fixed. Same trigger, same place, every day. Habit stacking makes this easy.
- Track it. A visible run of ticks is motivating when the habit itself is not yet.
- Never miss twice. One miss is harmless; make the next day the priority.
Signs a habit has formed
- You start it before you have decided to.
- Skipping it feels odd, like leaving the house without your keys.
- It no longer needs a reminder, a note or much willpower.
When that happens, you can stop tracking that habit closely and give your attention to the next one. How to build a habit, step by step.
Set it up in the tracker
- Add the habit in Habits, written as the small daily version (“Walk 10 min after lunch”).
- Tick it each day. The streak beside it shows the days in a row; the month grid shows every day you did it, so a missed day is one gap, not a reset to zero in your mind.
- Give it about two months before judging it: use the arrows on the month grid to look back at the months so far.
Questions
Does it really take 21 days to form a habit?
Usually not. The 21 days comes from a 1960 book that described a minimum of about 21 days to get used to a change. In a 2010 study, the typical time for a daily habit to become close to automatic was 66 days, with a range of 18 to 254 days.
Does missing a day reset habit formation?
No. In the 2010 study, missing a single day did not undo people’s progress. What matters is getting back to it the next day, so the habit keeps its regular cue.
How do I know when a habit has formed?
You start it without deciding to, skipping it feels odd, and it no longer needs reminders or willpower. For many daily habits that takes around two months, sometimes much longer.