How to quit a bad habit: a 21-day plan that is honest about what 21 days can do
To quit a bad habit you need five things: a start date, a clear picture of your triggers, less access to the habit, something to do in the moments it used to fill, and a plan for urges and slips. Three weeks is enough time to put all of that in place.
It is not enough time to make the change automatic. Twenty-one days is a practical starting block, not a scientific threshold, and the plan below is built on that understanding.
Is 21 days really how long a habit takes?
No. A paper in the British Journal of General Practice calls the 21-day figure a myth, and traces it to anecdotes about plastic surgery patients who took about that long to get used to their new appearance.
The same paper describes what happened when researchers did measure. Volunteers repeated a healthy behaviour of their choice every day in the same setting, and rated how automatic it felt. On average, that feeling levelled off after about 66 days, with a lot of variation between people and between behaviours. The authors suggest telling people to expect around ten weeks.
A 2024 systematic review pulled together 20 studies with 2,601 participants. Where studies reported a time, the median was 59 to 66 days and the average 106 to 154 days, with individuals ranging from 4 to 335 days. The review also reports the range from the earlier study, 18 to 254 days. Its conclusion is that habits can start to form within about two months, and that brief 21-day challenges are unlikely to be enough to make a new habit stick.
There is one more thing to be straight about. All of this research is about building new healthy behaviours, such as exercise, drinking water or flossing. The 2024 review left out studies that were about stopping an unhealthy behaviour. The British paper notes that you cannot form a habit of not doing something, and that breaking an existing habit takes different and more effortful strategies. So there is no research-based number of days for breaking a habit that we can honestly give you.
Why three weeks is still a useful block
For nicotine, the early weeks are the hard ones. The NHS says withdrawal symptoms are usually strongest in the first week, especially the first 3 days, and last 3 to 4 weeks on average. It describes cravings as hardest in the first 28 days. A 21-day plan covers most of that stretch. We did not find an equivalent official timeline for sugar, social media or gambling.
Three weeks is also short enough to commit to and long enough to set up everything that makes the following months easier.
Before day 1: prepare
- Check whether you need medical advice first. If you drink heavily every day, the NHS warns that stopping overnight could be harmful. Benzodiazepines are similar: the US Food and Drug Administration says stopping them abruptly can cause serious withdrawal reactions, including seizures. In both cases, see a doctor before you change anything.
- Pick a date within the next week or two.
- Write down your reasons. Keep them on your phone or on a card. Put a number on the money with our habit cost calculator.
- List your triggers. The NHS sorts them into routines, emotions and situations.
- Clear out the supply. The NHS says to throw away cigarettes, lighters and ashtrays. For gambling it suggests blocking software and asking your bank to stop payments to gambling sites.
- Tell one person what you are doing and when you start.
- If you smoke, ask about support. The US Centers for Disease Control and Prevention (CDC) says counselling and medication together give the best chance of quitting for good. A doctor, pharmacist or quitline can tell you what is suitable.
Days 1 to 7: get through the urges
The goal this week is not to feel good. It is to get through urges one at a time.
- Expect the peak early. The first three days are often the roughest for nicotine.
- Use the same routine for every urge. Ireland's health service teaches four steps: delay, distract, deep breaths and a drink of water. The NHS says a craving usually lasts only a few minutes.
- Stay away from your top triggers. The NHS suggests avoiding the places and situations that make you want to smoke for the first 28 days.
- Check the basics. The US National Cancer Institute suggests asking whether you are actually tired, lonely, bored or hungry, and dealing with that first.
- Write two lines each evening. When did the urges come, and what helped? The US National Institute on Alcohol Abuse and Alcoholism (NIAAA) recommends tracking your urges for a couple of weeks to see the pattern.
Days 8 to 14: rebuild the routine
By now you know when the habit used to happen. This week you put something else there.
- Choose a replacement and tie it to a cue. The habit research is clear on the method: pick a simple action and repeat it in the same context every day. "After lunch, I walk round the block." The NHS examples are similar: chew gum or brush your teeth after a meal instead of smoking.
- Write three if-then plans. "If X happens, then I will do Y," for your three riskiest moments. A meta-analysis of 12 studies in smokers found that if-then plans increased quit rates, though the studies were few and varied.
- Practise a one-sentence no. The NHS suggests lines such as "No thanks, I don't smoke anymore." Adapt it and say it out loud twice.
- Find a new way to come down from stress. The NHS teaches a simple calming breathing exercise and says it works best when practised regularly.
Days 15 to 21: make it last
- Write a slip plan. Decide now what you will do in the first hour if you slip. NIAAA's advice is to stop and get back on track as soon as possible and to contact someone supportive. Smokefree.gov says to restart today or tomorrow at the latest.
- Reward yourself. Work out what you have saved so far and spend part of it on something you can see.
- Notice what the habit was covering. Some people find that feelings such as sadness or restlessness become more visible around now. If they feel too heavy to carry alone, talk to a health professional.
- Add one thing you look forward to, with a time in your calendar.
After day 21
Keep the replacement routine going. If the habit formation research is a guide, expect it to take two to three months before it feels automatic. Missing one day does not undo it: in the study described above, an occasional missed day did not seriously set back the process.
Urges will still visit. The National Cancer Institute notes that occasional mild cravings can appear months or even years after quitting tobacco.
Notes for specific habits
Smoking. The body responds quickly. The World Health Organization says that within 20 minutes of quitting your heart rate and blood pressure drop, and that within 12 hours the carbon monoxide level in your blood returns to normal.
Alcohol. Use this plan only if you are not physically dependent. If you are unsure, ask a doctor before day 1.
Sugar, scrolling and other habits. The same structure applies: triggers, access, replacement, risky moments. We found no official timelines for these.
If at any point you are in crisis or feel unsafe, contact your local emergency services.
Where Urgeless fits
Urgeless, the app we are building at Okso Labs, has its own 21-day program: one short lesson a day, about three minutes, each ending with a small action. The lessons cover how habits work, why urges fade, how to plan for risky moments and what to do after a slip. The app also has a streak clock, a daily check-in and an SOS toolkit for cravings. Like this plan, the program is a starting block. It is a self-help tool, not medical treatment.
Frequently asked questions
Does it really take 21 days to break a habit?
No. The 21-day figure is a myth that did not come from habit research. Studies of building new habits found it usually takes around two months, with wide variation, and there is no reliable figure for breaking one. Twenty-one days is a useful block for getting started.
How long does it take to form a new habit?
In a 2024 review of 20 studies, the median time was 59 to 66 days and individual results ranged from 4 to 335 days. Simple actions repeated daily in the same context become automatic fastest.
What if I slip during the 21 days?
Stop, get back on track the same day or the next, and work out what triggered it. A slip does not cancel the days before it. Add an if-then plan for that trigger and carry on from where you are.
Can I use this plan to stop drinking?
Only if you are not physically dependent on alcohol. If you drink heavily every day, or feel unwell when you go without a drink, stopping suddenly can be dangerous. See a doctor first and follow their advice.
Sources
- Making health habitual: the psychology of habit-formation and general practice — Gardner, Lally and Wardle, British Journal of General Practice, 2012
- Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its Determinants — Singh et al., Healthcare, 2024
- Managing nicotine withdrawal symptoms — NHS Better Health
- Understand your smoking triggers and cravings — NHS Better Health
- Cravings and withdrawal when you stop smoking — HSE, Ireland
- Handling Nicotine Withdrawal and Triggers When You Decide To Quit Tobacco — National Cancer Institute
- How to Stop Alcohol Cravings — Rethinking Drinking, NIAAA
- Recovering from A Drinking Episode When Your Goal is to Quit — Rethinking Drinking, NIAAA
- Get Back on Track After a Setback — Smokefree.gov, National Cancer Institute
- Beyond "planning": A meta-analysis of implementation intentions to support smoking cessation — McWilliams et al., Health Psychology, 2019
- How to Quit Smoking — CDC
- Breathing exercises for stress — NHS
- Help for problems with gambling — NHS
- Tobacco: Health benefits of smoking cessation — World Health Organization
- Alcohol support — NHS
- FDA requiring Boxed Warning updated to improve safe use of benzodiazepine drug class — US Food and Drug Administration
This article is general information, not medical advice. If you drink heavily or use other substances, talk to a doctor before you stop: sudden withdrawal can be dangerous.
The app for the hard minute
Urgeless
Quit a bad habit one urge at a time, with an SOS toolkit for the moment it gets hard.