How Long Does It Take to Form a Habit? Why the First 17 Days Matter Most
How long does it take to form a habit? Research says about two months on average, but the biggest gains come early. Here's why the first weeks matter most.
Published · 7 min read

Quick answer
Research suggests a new habit takes about two months on average to feel automatic, with a median of 66 days in one well-known study, and anywhere from 18 to 254 days depending on the person and the habit. The biggest gains come in the first few weeks, and missing a day doesn't undo your progress. So the first two to three weeks matter most: they are where a new habit starts to feel easier.
You started a new habit with good intentions. A morning walk, five minutes of breathing, a page of journaling before bed. Three weeks in, it still takes effort, and you start to wonder if you are doing it wrong.
You're not. The research on habits has a surprisingly encouraging message: the early weeks do the most work, even when it doesn't feel like it yet. Here is what the studies actually found, why the first two to three weeks matter most and how to keep going after them.
How long does it take to form a habit?
The best-known study on this question comes from University College London. Researchers asked 96 volunteers to choose one new daily behaviour, such as drinking a bottle of water with lunch or going for a run before dinner, and to do it in the same situation every day for 12 weeks. Each day, participants rated how automatic the behaviour felt (Lally et al., 2010).
For the people whose progress the researchers could model well, the median time to get close to full automaticity was 66 days. The range was huge: from 18 days to an estimated 254 days.
A 2024 review brought together 20 studies with more than 2,600 participants. The studies that measured timing found median times of 59 to 66 days, with individual times ranging from as little as 4 days to 335 days (Singh et al., 2024).
So the honest answer is: about two months on average, faster for simple habits, longer for complex ones, and very different from person to person.
Where did the 21-day rule come from?
The idea that a habit takes 21 days traces back to a 1960 book, Psycho-Cybernetics, by the plastic surgeon Maxwell Maltz. He noticed that his patients seemed to take around three weeks to get used to a change, such as a new face after surgery, and wrote that it required "a minimum of about 21 days" for an old self-image to give way to a new one.
Notice the word minimum. Maltz was describing roughly how long it took for a change to start to feel normal, not the day a habit is finished. Over the decades, the "minimum" quietly fell away. In that original sense, three weeks is a fair moment to notice that something has started to shift.
Why the first weeks matter most
Here is the part of the research that rarely makes the headlines.
In the UCL study, habit strength didn't build in a straight line. It followed a curve: automaticity rose fastest at the start, then levelled off as the behaviour became more automatic (Lally et al., 2010). In other words, the biggest gains come early. Each repetition in the first weeks adds more than each repetition later on.
That changes how to think about a new habit:
- The first two to three weeks are where the steepest progress happens. It may still feel like effort, but under the surface, your brain is building the link between the situation and the behaviour.
- After that, it keeps getting easier. Gains slow down, but they continue, until the habit runs largely on its own.
- The fastest people in the study reached automaticity in under three weeks. For simple habits, that is realistic.
There's nothing magic about any single number. But a block of around 17 days is a useful first milestone: long enough to cover the steepest part of the curve and build a rhythm, short enough to commit to fully. When you reach it, the right move isn't to stop. It's to keep going, because by then you've done the hardest part.
Why does a new habit still feel hard at week three?
If you are a few weeks in and it still takes effort, that is normal, and it doesn't mean the habit isn't forming. A few reasons it can feel slower than it is:
- Automaticity builds quietly. What changes first is often how quickly you remember, or how little you have to argue with yourself to start. The behaviour itself can still feel like work for a while.
- Some habits are bigger than they look. Going for a run involves getting changed, finding time and dealing with the weather. Each step is a small habit of its own. Drinking a glass of water is one step. Complex habits take longer, and that's expected.
- Your cue might be wobbly. If you do the habit at a different time or place each day, your brain has a harder time linking it to anything. A more consistent cue often makes the next weeks feel noticeably easier.
- Life gets in the way. Travel, illness and busy weeks interrupt routines. The research suggests these interruptions don't erase what you've built, as long as you come back.
A useful check at the three-week mark is to ask: is it easier to remember than it was on day one? Is it easier to start? If the answer to either is yes, the curve is working, even if the habit isn't effortless yet.
Does missing a day reset a habit?
No, and this is one of the most reassuring findings in the research. In the UCL study, missing a single opportunity did not materially affect the habit-forming process (Lally et al., 2010).
All-or-nothing thinking is one of the biggest reasons people give up. You miss one day, decide you've failed, and stop altogether. The research says the opposite: one missed day is a blip. What matters is coming back to it tomorrow.
What makes a habit stick faster?
Habits form when you repeat a behaviour in a consistent situation until the situation itself starts to prompt the behaviour (Wood and Runger, 2016). That gives you several levers.
Use the same time and place
A habit grows strongest when the cue is consistent: the same time of day, the same place, the same preceding action. Researchers describe habit formation as a simple loop: decide on a behaviour, choose a cue you meet every day, and repeat the behaviour every time you meet the cue (Gardner, Lally and Wardle, 2012).
Try mornings
The 2024 review found that morning practices and habits people chose for themselves tended to reach greater strength (Singh et al., 2024). Mornings are often more predictable than evenings, which makes the cue more reliable.
Pick something you enjoy
How much you enjoy a behaviour also influenced habit strength in the review. If you dread it, it will take longer. Choose the version of the habit you can look forward to, even if it seems less impressive.
Plan it
Planning helps too. The review found that how people planned and regulated their behaviour affected habit strength. A simple plan in the form "When I do X, I will do Y" turns a vague intention into a clear cue.
Start small
Simple habits form faster than complex ones. One researcher on the 2024 review noted that something like flossing might settle into a routine within about a week, while bigger changes to diet or exercise take much longer. Start with a version of the habit so small it feels almost too easy, then build up.
What is habit stacking?
Habit stacking means attaching a new habit to one you already have. Your existing habit becomes the cue:
- After I pour my morning coffee, I take three slow breaths.
- After I brush my teeth at night, I write one line in my journal.
- After I sit down at my desk, I drop my shoulders and unclench my jaw.
It works because you don't need to remember the new habit. The old one reminds you, in the same place, at the same time, every day. That is exactly the kind of consistent cue the research says habits need.
How long does it take to break a habit?
There's less research on breaking habits than on building them, and timelines vary even more. But the same principles apply in reverse:
- Change the cue. Habits are triggered by situations. If your phone is the first thing you reach for in bed, charge it in another room.
- Replace, don't just remove. It's easier to swap a habit than to delete it. Replace evening scrolling with a short walk or a few pages of a book.
- Expect the old habit to linger. An old habit doesn't disappear overnight; it fades as the new behaviour gets stronger. A slip is normal, not failure.
A simple plan for your first 17 days
If you're starting something new, here's a gentle way to structure the steepest part of the curve:
- Choose one small habit. One, not five. Make it something you can do in two minutes or less.
- Attach it to a cue you meet every day. Use the "After I..., I will..." formula.
- Do it every day, at the same time and place. Tick it off on a calendar if that motivates you.
- If you miss a day, start again the next day. No restarting from zero, no guilt.
- At day 17, notice what's changed. Does it take less effort to remember? Less willpower to start? That's the curve working.
- Keep going. You've done the steepest part. From here, it keeps getting easier.
Small, calming practices make good first habits, especially ones that help your nervous system settle. Our guides to a calm morning routine and breathwork for nervous system regulation have simple options, and our guide to resetting your nervous system explains how daily practice builds a calmer baseline over time.
The short version
A new habit takes about two months on average to feel automatic, and anywhere from a few weeks to several months depending on you and the habit. But the curve is front-loaded: the biggest gains come in the first weeks, and a missed day doesn't undo them. So give your new habit a committed start of two to three weeks, make it small, tie it to a daily cue and keep going after that. The hardest part comes first, and it's also the part that does the most work.
Frequently asked questions
How many days does it take to form a habit?
There is no single number. In a study at University College London, the median time for a daily habit to feel automatic was 66 days, with a range of 18 to 254 days. A 2024 review of 20 studies found medians of 59 to 66 days. Simple habits can settle in much faster than complex ones.
Is it true that it takes 21 days to form a habit?
The 21-day figure comes from a 1960 book by plastic surgeon Maxwell Maltz, who wrote that it took a minimum of about 21 days for people to adjust to a change. It was an observation of a minimum, not a measured finish line, but it is a reasonable point to notice that something has started to shift.
Does missing a day ruin a habit?
No. In the University College London study, missing one opportunity did not materially affect the habit-forming process. What matters is coming back to it the next day.
How long does it take to break a habit?
There is less research on breaking habits than on building them, and it varies a lot. The most reliable approach is usually to change the cue that triggers the old habit and replace the behaviour with a new one, then repeat the new one in the same situation until it takes over.
What is habit stacking?
Habit stacking means attaching a new habit to something you already do every day, such as three slow breaths after you brush your teeth. The existing habit acts as a reliable cue, which is one of the strongest helps for habit formation.
Sources
- Lally et al. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology.
- Singh et al. (2024). Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its Determinants. Healthcare.
- Gardner, Lally and Wardle (2012). Making health habitual: the psychology of 'habit-formation' and general practice. British Journal of General Practice.
- Wood and Runger (2016). Psychology of Habit. Annual Review of Psychology.
Written by
Akhila Adishwara WijetungaAkhila is the founder of Nyvara and the author of Unf*ck Your Vibe, a framework that blends nervous system science with spiritual practice. She built Nyvara after burning out at the height of her career, to find her way back to herself.
This article is for education and personal growth. It is not medical or psychological advice and does not replace care from a qualified professional. If you are in crisis, contact your local emergency number.


