"It takes 21 days to form a habit."
You've probably heard that it takes 21 days to form a habit. Maybe you've even tried it: three weeks of early nights, daily walks or a better breakfast, only to find it still doesn't feel automatic.
If that sounds familiar, here's the good news. You haven't failed.
The time it can take to build a habit is far more flexible than original research suggested.
Here's what recent research actually says about how long it takes to form a habit, and what it means for the small changes you want to make.
If you're just getting started, read our guide to how to build healthy habits that last.

Where The 21-Day Idea Comes From
The 21-day rule doesn't come from a study of habits at all. It traces back to the 1960s and a plastic surgeon called Dr Maxwell Maltz.
Maltz noticed that his patients seemed to take around three weeks to get used to their new appearance after surgery. He saw something similar in himself when adjusting to changes in his own routine. He wrote that it took "a minimum of about 21 days" to adjust.
Over the years, as the idea was repeated, the important words dropped away. "A minimum of about 21 days" to adjust to a change became "it takes 21 days to form a habit". A rough personal observation turned into a rule, and the rule stuck.
The trouble is, when people expect a habit to be permanent after three weeks and it isn't, they often decide they've failed and give up, just when they were making progress.
What More Recent Research Suggests
In 2009, researchers at University College London set out to test how long habits really take to form. In their study, 96 adults each chose one new healthy habit, like eating a piece of fruit with lunch, drinking a glass of water after breakfast or going for a run. They did it every day in the same setting for 12 weeks, and recorded how automatic it felt.
Here's what they found:
It typically took around 66 days for a new habit to feel automatic. That's more than two months, not three weeks.
The range was huge, from 18 days to an estimated 254 days, depending on the person and the habit.
Habits got easier quickly at first, then the progress levelled off. The biggest changes happened in the early weeks.
Missing a day didn't undo progress. Skipping one opportunity had little effect on how the habit formed.

A 2024 review by Singh and colleagues pulled together 20 studies on healthy habit formation and found a similar picture: habits commonly take around two months or more to form, with big differences between people.
So if your new habit doesn't feel automatic after three weeks, don't give up. You're still making progress.
Why Some Habits Stick Faster Than Others
That range of 18 to 254 days tells us something useful: some habits are much easier to build than others.
A few things make the difference:
Simple habits form faster than complicated ones. A glass of water after breakfast becomes automatic far sooner than a 30-minute workout.
Habits tied to a clear cue stick sooner. Doing it at the same time and place, or straight after something you already do, gives your brain a reliable reminder.
It's what you do regularly that matters most. A small action done every day builds a habit faster than a big one done now and then.
That's why starting small makes such a difference: the simpler the habit, the sooner it becomes second nature.
What to Expect Along The Way
There's no single day when a habit suddenly 'switches on'. It gets gradually easier, often in stages like these. Everyone moves through them at their own pace.
The early stage is often the hardest, and it's where most people give up. Knowing that it gets easier with repetition can be enough to keep you going.
Missing a Day Won't Undo Your Progress
This might be the most encouraging finding of all. In the UCL study, missing a single opportunity to do the habit didn't materially affect how it formed. One off day didn't wipe out the progress already made.
That matters, because the all-or-nothing mindset is one of the biggest reasons habits fall apart. So expect the odd miss, and simply pick it back up at the next opportunity rather than waiting for Monday.
Find out more about how to get back on track when healthy habits slip.

How to Make Your Habit Stick Sooner
You can't rush a habit, but you can make it easier to stick with.
Start smaller than you think you need to, like a 10-minute walk rather than "exercise every day".
Do it at the same time and place each day.
Stack it onto something you already do, using "After I [current habit], I will [new habit]".
Think in months, not weeks, and track your progress so you can see how far you've come.
Not sure where to start? Breakfast is one of the easiest habits to build, because you already make time for it. Swap a rushed breakfast for something nourishing, like Purition wholefood nutrition, and stack it onto switching the kettle on. Made from a wholefood blend of real ingredients like almonds, chia, coconut and flax, it's ready in seconds as a smoothie, yoghurt bowl or porridge.
The Bottom Line
There's no magic number of days when a new habit suddenly becomes second nature. Some take weeks, others take months. What matters is finding small, realistic changes you can keep coming back to.
So forget the 21-day rule. Start with one thing, give yourself time and don't worry about the odd missed day. Because when it comes to looking after your health, it's what you do regularly that makes the difference.
For a step-by-step guide to getting started, read how to build healthy habits that last.