A teaching

Working with Patterns

In the Unloop app, every loop becomes one of these five characters.

  • FoxVigilance
  • OctopusPerformance
  • HummingbirdScatter
  • BearRetreat
  • TravelerBelonging

Working with Patterns18 min read

How Long Does It Take to Break a Bad Habit? (Not 21 Days)

There is no set number of days, and 21 does not come from habit research. What studies on forming and breaking habits found, and what to try.

The Short Answer

There is no fixed number of days it takes to break a bad habit. The 21-day rule did not come from a study of habits: researchers trace it to a plastic surgeon's 1960 book and his observation of patients getting used to a new face.

Until recently, the studies that timed habits were about forming a new one, not breaking an old one. In the first studies to track day by day how automatic an old habit feels, that feeling tended to fade over time, fastest early on, but for some people the habit did not weaken at all. A leveling-off time could be worked out for only about one person in five. In one snacking trial those times happened to average about 22 days, but ran from 1 to 79, and leveling off was not the same as the habit being gone.

When It's More Than a Habit

Some things called habits deserve real help, not a countdown. Talk to a doctor if any of these fit:

  • Alcohol or drugs. The UK's National Health Service (NHS) says you may need help with drinking if you often feel the need to have a drink, other people warn you about how much you drink, or you think it's causing you problems. In the US, SAMHSA's National Helpline, 1-800-662-4357 (1-800-662-HELP), is a free, confidential treatment referral and information service, open 24/7 in English and Spanish. It is not a crisis line. If your body has come to depend on alcohol, don't stop all at once on your own: the NHS says "stopping overnight could be harmful" and advises getting advice on stopping safely. Withdrawal signs that suggest you may need medicine include anxiety after waking, sweating, mild shaking, or feeling sick in the morning. Seeing or hearing things that aren't there, severe shaking or a seizure is an emergency: call 911, or your local emergency number. If what you take is a medicine you were prescribed, don't stop it on your own. Ask the doctor who prescribed it, or a pharmacist.
  • Smoking or vaping. A doctor or pharmacist can tell you what support there is to stop.
  • Gambling. You bet more than you can afford to lose, or try to win back what you lost. Both are questions in the NHS gambling check. In the US, call or text the National Problem Gambling Helpline at 1-800-MY-RESET (1-800-697-3738).
  • Eating that feels out of control. You lose control over how much you eat, regularly eat large amounts until you're uncomfortably full, make yourself sick, or eat very little to control your weight. The NHS describes an eating disorder as "a mental health condition where you use the control of food to cope with feelings and other situations."
  • Hair pulling or skin picking. The NHS says to see a doctor if you're pulling your hair out. For skin picking, it says to see one if you can't stop, if it causes cuts that don't heal within a few days, or if it upsets you or gets in the way of daily life. Both can be treated with talking therapy.
  • Compulsions. You feel you have to check or repeat something to ease an unpleasant thought, and the relief doesn't last. The NHS calls this a compulsion, part of obsessive compulsive disorder (OCD), and says OCD is unlikely to get better without proper treatment and support.
  • Anything you can't control that is harming you. The NHS defines addiction as "not having control over doing, taking or using something to the point where it could be harmful to you," and says it can include things like gaming, shopping or sex.
  • The habit is how you get through feeling low. The US National Institute of Mental Health says diagnosing depression takes symptoms "most of the day, nearly every day, for at least 2 weeks," including a low mood or a loss of interest. If that sounds like you, tell a doctor.

A web page can't tell you which of these, if any, fits. A doctor can.

If you are having thoughts of suicide or of harming yourself, in the US call or text 988 to reach the 988 Suicide & Crisis Lifeline. If you are in danger now, call 911. Outside the US, call your local emergency number.

Does It Take 21 Days to Break a Habit?

The 21-day rule did not come from a study of habits.

In a 2012 account by two researchers at University College London (UCL), the likely source is the preface of Psycho-Cybernetics, a 1960 book by Maxwell Maltz, a plastic surgeon. Maltz wrote that it takes "about 21 days for the average patient to get used to his new face," and that "it requires a minimum of about 21 days for an old mental image to dissolve and a new one to jell."

So it was about getting used to a change, like a new face or a new house, not about habits, and it said "a minimum."

How it became a rule about habits is unclear, the researchers wrote, perhaps because the difference between getting used to something and forming a habit "was lost in translation somewhere along the line." Their verdict: "it is unfounded as a basis for habit formation." One recent trial of one snacking habit, below, did happen to average about 22 days to level off, in one person in five and with a wide spread.

What the Timing Studies Measured

Forming a New Habit

In a UCL study, 96 volunteers each picked a healthy eating, drinking or exercise habit, did it daily in the same situation for 12 weeks, and rated how automatic it felt. Their model fit the ratings of 62, 39 of them well. In people whose ratings fit, getting close to as automatic as it would get took 18 to 254 days, with a median of 66, according to a 2024 review. The 254 days was a forecast. Missing one day "did not materially affect the habit formation process."

That review gathered 20 studies with 2,601 adults forming new healthy habits. Of the four that reported times, two found medians of 59 and 66 days and two found averages of about three to five months. Individual times ran from 4 to 335 days, the longest being forecasts. More than half the studies were rated at high risk of bias.

All of these are about building something new, and the team behind the breaking study below says the two kinds of studies used different methods, so their numbers are hard to compare.

Breaking an Old Habit

That study, from a team in Switzerland, is described by its authors as the first to track habit decay day by day in daily life. In it, 194 adults each picked one habit to weaken: sitting too much, unhealthy snacking, drinking alcohol or smoking. After a week noting what set it off, they chose one cue, wrote an if-then plan, and rated daily for 12 weeks how automatic the habit felt.

Its automatic feel tended to drop fastest at first, then level off. For the 42 people (22%) whose ratings showed a clear drop that fit the model, it leveled off between 1 and 65 days in, about half within 10 days. The authors caution that this did not necessarily mean the habit was broken, and that very short times may reflect problems with the measure. For some people the habit didn't weaken, grew stronger, or dropped and came back. The volunteers were mostly highly educated, strongly wanted to change, and rated their own habits.

A follow-up trial randomly assigned 313 adults with a snacking habit at home, mostly women, to one of three approaches or to a comparison group. People with a diagnosed eating disorder or diabetes could not take part, so none of this is about eating that feels out of control. Each approach was written as an if-then plan: doing something else when the cue came, holding back, or making snacks harder to get. Half also got in-app rewards, which made no measurable difference. The comparison group wrote no plan and only filled in the daily ratings.

Habit strength fell in every group, faster in the first week for the plan groups, but after 12 weeks it was no lower than in the comparison group. No strategy beat another. The authors say that needs larger groups to test, and about a third of plans didn't match the strategy given. For the 66 people (about one in five) whose decline leveled off clearly, it took an average of 22 days, ranging from 1 to 79. That average happens to land near 21, but it is not a rule.

Why Breaking Takes Time

Stopping an action may not erase the link behind it. In a model from a 2007 review, habit links build slowly and don't shift much with doing something different now and then. Researchers writing about weight loss argue, from earlier studies of people's own accounts, that an old link can leave people prone to slipping back when motivation or willpower dips for a moment, or in a familiar setting.

What to Try to Get Rid of a Bad Habit

These steps are for everyday habits, like checking your phone, biting your nails, late-night snacking or putting things off. For drinking, drugs, nicotine or anything else in the section near the top, start with a doctor. If putting things off is the one, Why Am I So Lazy and Unmotivated? What May Be Behind It covers what can sit behind it.

1. Spend a Week Finding the Cue

In both Swiss studies, people spent a week noting what set the habit off before choosing one cue. In the first, the cues included places, people, feelings, thoughts, events and times of day. Try writing down when the habit happens, where you are, who's there and what you felt just before. It was part of the studies' setup, not tested on its own.

2. Change the Setting, or Make the Cue Harder to Meet

When students transferred to a new university, their exercising, newspaper reading and TV watching habits survived only when parts of the setting stayed the same. In a field experiment with 800 people, a program encouraging greener habits made more difference to people who had recently moved house, for about three months after the move. Behavior was self-reported. Neither study had people change their setting on purpose to drop a habit, so for that the evidence is borrowed.

For phones, a trial with 70 young adults, mostly students, had people pick strategies such as turning off non-essential notifications, a grayscale screen, and keeping the phone out of sight and reach. After two weeks, their daily screen time had dropped by 57 minutes, against 11 minutes in a group that only tracked it. The limits: the two groups did not start level, people chose their own mix, and only people who followed at least five strategies were counted.

The other side: avoiding a cue can stop the action while the link stays, and returning to the old setting can bring the habit back, the weight-loss researchers warn. In the snacking trial, making snacks harder to get did no better than the other strategies, though the trial was too small to settle that.

3. Plan What You'll Do Instead, as "If, Then"

An if-then plan names the cue and the new response. The first Swiss study's example: "If I am watching TV in the evening, then I will eat grapes."

For goals in general, planning the when, where and how helped people reach them across 94 tests, and a 2024 update covering 642 tests found bigger effects with the if-then format, high motivation and a rehearsed plan. For breaking habits, the picture is more mixed:

  • In three experiments, a plan that swapped the habit for something else took away the old response's head start in the mind, but the new response did not become automatic right away.
  • In an analysis of 23 studies on eating, plans worked better for adding healthy foods than for cutting back on unhealthy ones, though a later analysis of 12 studies on cutting fat found a medium effect.
  • In two experiments, one with people who smoked, plans helped less when the habit was strong, and in the smoking study they did not help people with strong habits at all.
  • In the Swiss snacking trial, the plan groups' habit dropped faster in the first week but was no lower after 12 weeks than in the group with no plan. That trial measured how automatic the habit felt, not how much people snacked, and its authors suggest the daily tracking every group did may itself have had an effect.

One caution on wording: in experiments on eating habits, plans written as "if this happens, then I will not do that" backfired, bringing the old habit to mind and into action more, most of all when it was strong. Name what you will do, not what you won't.

An untested example: "If my hand goes to my mouth while I read, then I squeeze the ball on my desk."

4. Watch Closely in the Moment

In two diary studies, people controlled strong bad habits best by thinking "don't do it" and watching carefully for slipups. That was done in the moment, not written as a "will not" plan. No other strategy they looked at helped with strong habits.

5. Treat a Slip as Information

A slip does not mean you failed or lack willpower. In the UCL forming study, missing one day did not materially affect how the habit formed. We found no study that tested what one slip does to an everyday habit like nail biting or phone checking. The nearest is on quitting smoking, a different problem with its own help: in a study of 133 people who slipped after stopping, those who felt like giving up after the first slip went on to a second one sooner, and those who tried to get back on track were less likely to slip again that day.

In another paper from the same Swiss team, on 194 adults weakening the same four habits, the old habit felt stronger on days they met their cue, a same-day link in their own ratings. As a practical step, not a finding: a slip can tell you where the cue was. Note what happened just before, and go back to your plan.

Common Questions

How long does it take to break a bad habit?

There is no fixed number. In the first studies to track day by day how automatic an old habit feels, that feeling tended to fade over time, but for some people the habit did not weaken. For the roughly one in five whose ratings showed a clear drop, it leveled off from a day to about 11 weeks in, and the researchers urge caution about the shortest times. Leveling off did not always mean the habit was gone.

Does it take 21 days to break a habit?

The 21-day rule does not come from habit research. Researchers trace it to a 1960 book by a plastic surgeon, Maxwell Maltz, who wrote that patients took about 21 days to get used to a new face. In one recent snacking trial, the habit's automatic feel leveled off after an average of about 22 days, but only in the one person in five where a time could be worked out, and their times ran from 1 to 79 days. Leveling off was not the same as the habit being gone, so it is not a rule.

Where does the 21-day rule come from?

Researchers at University College London traced it to Psycho-Cybernetics, a 1960 book by the plastic surgeon Maxwell Maltz, who wrote that it took "a minimum of about 21 days for an old mental image to dissolve and a new one to jell." They called it unfounded as a basis for habit formation.

How long does it take to form a new habit?

In a University College London study, a new daily healthy habit took 18 to 254 days to become about as automatic as it would get, with a median of 66, in volunteers whose ratings fit the researchers' model (62 of the 96, 39 of them well). A 2024 review found medians of 59 and 66 days in two studies, averages of three to five months in two others, and individual times from 4 to 335 days, the longest being forecasts.

How do I get rid of a bad habit?

Start by finding the cue: what happens just before. Then try making that cue harder to meet, and plan what you'll do instead as "if this happens, then I'll do that," naming what you will do, not what you won't. These plans helped less or not at all when a habit was strong, and in one snacking trial a plan sped up the first week without a lower result after 12 weeks. If the habit involves alcohol, drugs, nicotine, gambling, eating that feels out of control, or picking or pulling, talk to a doctor.

What happens if I slip up?

A slip doesn't mean you failed or lack willpower. In a study of forming a new habit, missing one day did not materially affect how the habit formed. We found no study that tested what one slip does to an everyday habit like nail biting or phone checking. Noting what happened just before a slip can show you where the cue was.

Why is it so hard to break a habit?

Stopping the action may not erase the link between cue and action. In one model, that link builds slowly and doesn't shift much from doing something different now and then. Other researchers argue that an old link can make it easy to slip back when motivation or willpower dips for a moment, or in a familiar setting.

When is a bad habit more than a habit?

When it involves alcohol, drugs, nicotine or gambling, when eating feels out of control, when you pull out your hair or pick your skin and can't stop, when you feel you have to do something over and over to ease a fear, or when anything you can't control is harming you. These deserve real help, so talk to a doctor. If your body has come to depend on alcohol, ask a doctor before stopping, because stopping suddenly could be harmful.

If your habit is one of those in the help section near the top of this page, start with a doctor, and leave any change to drinking, drugs or medicine to the plan you make with them.

How Long Does It Take to Break a Bad Habit? (Not 21 Days) | Learn | Unloop