It takes about two months to form a habit for a typical person, but the range is huge: from under three weeks to most of a year. In the best-known study, from University College London, a new daily habit took a median of 66 days to feel automatic, and individual people took anywhere from 18 to 254 days. So how long does it take to form a habit for you? Plan on two months or more, and don't give up at day 21.
The short answer
- Typical time: around 59 to 66 days, the medians found in the studies that measured it.
- Range: a few days to around 300, depending on the person and the habit.
- Missing one day doesn't reset the clock.
What the research found
In 2010, Phillippa Lally and her colleagues at University College London published a study of how habits form in everyday life. 96 volunteers each chose one healthy eating, drinking or exercise habit. They did it once a day in the same situation, and every day for 12 weeks they rated how automatic it felt.
For most people, automaticity rose quickly at first and then levelled off, like a curve flattening out. The researchers measured how long it took each person to reach 95% of their own plateau. For the people whose data fitted that curve well, the median was 66 days, and the range ran from 18 to 254 days. Some of the longer times are projections, because the study itself lasted 84 days.
One more finding matters for anyone starting a habit: missing one chance to do the habit didn't materially affect how it formed.
A 2024 review by Ben Singh and colleagues pulled together 20 studies with 2,601 participants. Four of them reported how long habits took to form. Their medians were 59 to 66 days, and individual times ranged from 4 to 335 days. Much of the evidence is limited, so treat these numbers as a guide.
Where the 21 days idea came from
The "21 days" figure goes back to a 1960 book, Psycho-Cybernetics, by Maxwell Maltz, a plastic surgeon. He wrote that it takes a minimum of about 21 days for people to adjust to a change, such as a new face after surgery. UCL's own health behaviour researchers point out that this was about getting used to a change, not about forming a habit. The studies that measured habits found it takes about three times as long.
What is a habit?
A habit is something you do automatically when a familiar situation comes up, because you've done it there many times before. You reach for the toothbrush after waking; you check your phone when you sit on the bus. The situation is the cue, and the action follows with little thought.
That's why the UCL volunteers tied their habit to a fixed moment in their day. Repeating the same action after the same cue is what turns it into a habit.
How long does it take to break a habit?
There's no reliable number for breaking a habit. The studies above looked at building healthy habits, and the 2024 review left out studies about stopping a behaviour, such as quitting smoking. So be wary of any article that gives you an exact count of days.
What helps, from the same idea of cues:
- Find the cue. When does the habit happen? After lunch, when you're bored, when you sit on the sofa with the phone?
- Change or remove the cue. Keep the phone in another room while you study; don't keep biscuits in your desk drawer.
- Put a new action in its place. Feeling bored at 4 pm? Walk to the window or drink water before reaching for a snack.
- Track it. A tick for every day you didn't do the old habit shows progress you'd otherwise miss.
If the habit is an addiction, such as smoking, alcohol or gambling, get support from a doctor or a local helpline. Willpower and a tracker aren't enough on their own.
Habit stacking
Habit stacking means attaching a new habit to one you already do every day. The old habit becomes the cue. It's the same thing the UCL volunteers did when they chose a fixed point in their day.
- After I pour my morning tea, I'll read one page.
- After Fajr, I'll read the Quran for five minutes.
- After I lock the shop, I'll write today's sales in the book.
- After I sit on the bus, I'll revise five flashcards.
Write each stack as "After I..., I'll...". The more specific the first part, the better it works as a cue.
How to build a habit that lasts
- Make it small. "Walk for ten minutes" is easier to repeat on a bad day than "go to the gym".
- Tie it to a cue, as in habit stacking.
- Do it at the same time and place each day.
- Plan for two months, not three weeks.
- When you miss a day, start again the next day. One miss doesn't undo your progress.
- Track it so you can see the run of days build up.
For ideas on what to track, see our list of habit tracker ideas.
Track a habit until it sticks
Seeing your progress helps you keep going through the slow middle weeks. Memlow, a free notes app for Android and the web, has habit goals with streaks.
Make a habit goal
- Open Goals. On Android, tap the checklist icon in the bar along the bottom, then Goals at the top. On a computer at app.memlow.com, choose Goals in the sidebar.
- Tap the + on Android, or choose New goal on the web, then pick Habit.
- Name it, such as "Walk 30 minutes". Under How often, choose Daily and the days, or Weekly with Times a week.
- Choose Create goal.
Each day, open the goal and tap Check in today. If you forgot to log yesterday, use Another day or a note. The goal page shows your Streak, your Best run and a calendar of the last 12 weeks, so you can watch day 30, day 50 and day 66 go by.

A streak counts days, weeks or months in a row that met the target. The day you're in doesn't break it until it ends, so it doesn't drop to zero in the morning. If a daily habit feels too strict, make it weekly with a number of times a week, so one off day doesn't end the run. Memlow works out On track or Behind with fixed rules about your dates, with no AI. The full steps are in Track goals, habits and streaks.

Remind yourself at the cue
Open the goal and tap the bell. For a habit, the reminder repeats on the habit's days. Set it for just after your cue: 7:15 am if the habit follows breakfast. On Android, the Goals widget shows your goals on the home screen, and the One goal widget lets you check in without opening the app. See Home-screen widgets.

Prefer ticking a list? The habit tracker template is a daily checklist, and the Habit tracker sheet in Sheets puts a whole week on one page. More on the Goals feature page.
Memlow has no paid plan. The Android app shows a few ads, and the web app shows none.
How long does it take to form a habit?
About two months for a typical person. In a University College London study, a daily habit took a median of 66 days to feel automatic, with a range from 18 to 254 days. A 2024 review found medians of 59 to 66 days.
How many days does it take to form a habit?
There's no single number. Studies found typical times of 59 to 66 days, but individual people took anywhere from 4 to 335 days, depending on the person and how hard the habit is.
Is it true that it takes 21 days to form a habit?
No. The 21-day idea comes from a 1960 book by a plastic surgeon about adjusting to changes. Studies that measured habit formation found it usually takes around three times as long.
How long does it take to break a habit?
There's no reliable figure: the research measured building habits, not breaking them. Removing the cue, replacing the old action with a new one and tracking your progress all help.
Does missing a day ruin a habit?
No. In the UCL study, missing one opportunity didn't materially affect how the habit formed. Start again the next day.
What is habit stacking?
Tying a new habit to something you already do every day, such as "After I pour my morning tea, I'll read one page". The old habit becomes the cue for the new one.
Sources
Checked on 25 October 2026.
- Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W. and Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998-1009.
- UCL Health Behaviour Research Centre: Busting the 21 days habit formation myth (29 June 2012).
- Singh, B., Murphy, A., Maher, C. and Smith, A. E. (2024). Time to form a habit: a systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare, 12(23), 2488.





Comments
No comments yet. Be the first to share a thought.