Skip to content

How long a new habit takes

Not 21 days – and why that's good news.

Ascend – free for AndroidStreak, emergency help for urges and a journal. No account, no ads.

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?
About two months on average, with big differences. In a well-known study it took 66 days on average for a new habit to become automatic, ranging from 18 to 254 days depending on the person. A 2024 meta-analysis arrived at a similar range. How long it takes you depends on how simple the action is and how regularly you repeat it in the same context.
Is the 21-day rule true?
Not for most people. The number probably comes from a self-help book from around 1960, not from a study. When researchers measured it in everyday life, it took 66 days on average for a habit to become automatic. Some made it in under three weeks, many needed much longer. So if it still feels hard after 21 days, that's completely normal.
How long does it take to quit porn?
There's no fixed number, and studies on this are missing. Habit research suggests thinking in months rather than weeks. Many report that after two to three months abstaining no longer feels like giving something up. Urges can still show up after that, for example under stress. If you keep relapsing despite serious attempts and it's causing you distress, therapy can help.
Does a relapse undo my progress?
No. In habit research, a single missed day barely changed the overall progress; what mattered was repetition over time. This hasn't been studied specifically for relapses when quitting, but what you've practised doesn't disappear overnight. More useful than blaming yourself is asking what triggered the relapse. In the Ascend app, the relapse analysis in the journal helps you with that.
What are if-then plans?
If-then plans link a specific situation to a fixed action, for example: "When I go to bed, I leave my phone in the kitchen." In psychology they're called implementation intentions. A meta-analysis showed that they clearly help people follow through on their goals. They work because the decision is made in advance, so you don't have to weigh things up in the difficult moment.
Sources (4)
  1. 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.
  2. 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.
  3. 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.
  4. 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.