How long a new habit takes
Not 21 days – and why that's good news.
What is known
In a study with 96 people it took 66 days on average for a new habit to become automatic – between 18 and 254 days depending on the person.
A single missed day hardly changed that. What mattered was repetition in the same context.
What many report
Many report that after two to three months abstinence no longer feels like abstinence.
Where the 21 days come from
The number 21 probably goes back to the plastic surgeon Maxwell Maltz. Around 1960 he wrote that people need a minimum of about three weeks to get used to a change, such as their new face after surgery. Over time, "a minimum of about 21 days" turned into "21 days". He never measured it. The study by Lally et al. (2010) then looked at the question in real everyday life.
Why is it good news that it takes longer? Because it takes the pressure off. If you believe everything should be easy after three weeks, you'll read a hard day 30 as failure. If you know it's more like two months or longer, you stay calm and don't give up too early. The meta-analysis by Singh et al. (2024) confirms this order of magnitude across many studies.
How automaticity builds up
In the study by Lally et al., automaticity didn't grow evenly. At first each repetition added a lot, later less and less, until the curve levelled off. So the first weeks are when the most is happening – even if they feel the hardest. Simple actions, such as a glass of water with breakfast, tended to become automatic faster than more demanding ones like exercise.
What counts is the same action in the same context, as Gardner, Lally and Wardle (2012) describe. The context is the cue: a time, a place, a feeling. That's exactly how the old habit formed – at night, in bed, with the phone. So a new habit works best when it hooks onto that same cue and gives it a different answer.
Stopping is not the same as starting
Most studies look at how people start something new. Quitting porn, on the other hand, means unlearning an old habit – and you can't really repeat a gap. That's why it helps to turn stopping into starting. Instead of "stop watching", the plan becomes: "When the urge comes, I get up and go outside for ten minutes." That gives the brain something it can learn.
These if-then plans are well studied. The meta-analysis by Gollwitzer and Sheeran (2006) found that they clearly help people act on their intentions. The key is to be specific: name the situation and the action so precisely that you don't have to think in the moment. And while a relapse resets your streak, it doesn't reset everything you've learned. This hasn't been studied for relapses specifically, but what you practised for weeks doesn't vanish overnight.
What you can do with it
- Link a new habit to your risk moment: urge → 20 push-ups or two minutes of breathing. The habits in your journal help you keep going.
Fits: Semen retention day 60 · Semen retention day 90
Frequently asked questions
How long does it take to change a habit?
Is the 21-day rule true?
How long does it take to quit porn?
Does a relapse undo my progress?
What are if-then plans?
Sources (4)
- Lally P. et al. (2010). How are habits formed: modelling habit formation in the real world. Eur J Soc Psychol 40(6):998–1009. DOI
96 people: 66 days on average until a habit ran automatically, 18 to 254 depending on the person. - Singh B. et al. (2024). Time to form a habit: a systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare 12(23):2488. PubMed
Meta-analysis: habits start to take hold after about two months, with large differences between people. - Gardner B., Lally P., Wardle J. (2012). Making health habitual: the psychology of 'habit-formation' and general practice. Br J Gen Pract 62(605):664–666. PubMed
Habits form through the same action in the same context, repeated often. - Gollwitzer P. M., Sheeran P. (2006). Implementation intentions and goal achievement: a meta-analysis of effects and processes. Adv Exp Soc Psychol 38:69–119. DOI
Meta-analysis: "if X happens, then I do Y" plans clearly help people follow through on intentions.