You’ve probably heard it takes 21 days to build a habit. Maybe you even tried it. Three weeks of morning runs, or no sugar, or reading before bed, and then day 22 shows up and it still feels like work. So you figure something’s wrong with you.
Nothing’s wrong with you. The 21 day number is just wrong. When researchers actually sat down and measured how long habits take, the answer was a lot longer, a lot messier, and honestly a lot more forgiving than the internet version.
In the best known study, a simple daily habit took a median of about 66 days to become automatic, but real people ranged from 18 to 254 days. A 2024 review of 20 studies found typical times of 2 to 5 months. Bigger habits take longer: going to the gym took about six months for most people. And missing one day doesn’t reset the clock.
So where did 21 days come from?
Not from a habit study. It traces back to Maxwell Maltz, a plastic surgeon who wrote a bestselling self help book in 1960. He noticed his patients took about 21 days to get used to their new faces, and wrote that it usually takes “a minimum of about 21 days” to see a change in a mental image.
Notice the word minimum. And notice he was talking about getting used to something that already happened, not building a new behavior from scratch. Researchers at University College London put it plainly: 21 days might describe adjusting after surgery, but it’s “unfounded as a basis for habit formation.” Somewhere along the way the minimum turned into a promise, and the promise stuck.
What the 66 day study actually measured
In 2010, Phillippa Lally and her team at UCL ran the study most people mean when they say 66 days. They recruited 96 volunteers and asked each one to pick a single healthy thing to do every day in the same situation. Think drinking a glass of water after breakfast, or going for a walk before dinner. For 12 weeks, people logged whether they did it and rated how automatic it felt.
The results made a curve. Automaticity climbed fast in the first few weeks, then the gains got smaller and smaller until the line went almost flat. The 66 days is how long it took, in the middle of the pack, to get 95% of the way to that flat part. That was among the people whose data fit the curve well, which was not everyone.
Here’s the part that usually gets cut from the headlines: the fastest person got there in 18 days. The slowest was on track to need 254 days, which is longer than the study even ran. Same setup, same instructions, a fourteenfold difference. So 66 days isn’t a deadline. It’s a middle point on a very wide spread.
A habit isn’t a countdown. It’s a curve, and the hardest stretch is the long flat middle where it still feels like effort.
Why your number might be much bigger
One study is one study, so it’s worth asking whether the 66 days held up. In 2024 a team in Australia pulled together 20 studies with 2,601 people. The median times landed between 59 and 66 days, so the original figure looks about right for the middle. But the average times were 106 to 154 days, and individual people ranged from 4 days all the way to 335.
When the average is that much higher than the median, it means a lot of people take a really long time. If you’re two months in and it still isn’t automatic, you’re not behind. You’re normal.
The kind of habit matters a lot too. In 2023, researchers used machine learning on data from more than 30,000 gym members, covering over 12 million visits. Going to the gym took around six months to become a habit. In the same paper, handwashing for more than 3,000 hospital workers took just a few weeks. A small action in the same spot every day forms fast. Something that needs you to change clothes, leave the house and push hard takes a lot longer.
That same 2024 review also flagged what tends to help. Habits done more often, habits done in the morning, and habits people chose for themselves (rather than being told to do) generally got stronger.
Does missing a day ruin it?
Good news: no. In the 66 day study, missing a single opportunity didn’t meaningfully hurt the habit forming process. People bounced back. Where things went wrong was with people who were very inconsistent overall. They just never got there.
The gym data tells the same story from the other side. For 76% of gym goers, how long it had been since their last visit was one of the most important clues to whether they’d go again. One skipped day is noise. A skipped week starts to become the new habit.
So the practical rule is simple. Miss a day if life gets in the way. Just don’t let one missed day quietly turn into five.
How to get through the long middle
Knowing it takes months is useful, but only if it changes what you do in week three. Here’s what the research points to.
- Tie it to the same cue every time. The Lally study had people repeat their habit in the same situation every day, like right after breakfast or right after work. Same trigger, same time, is how automatic behavior gets built.
- Pick it yourself, and try mornings. Self chosen habits and morning habits tended to come out stronger in the 2024 review. A goal you actually want beats one you think you should want.
- Make the bad day version tiny. If the habit is a 30 minute workout, decide now that on rough days ten squats counts. You’re protecting the repetition, not the intensity.
- Plan for day 40, not day 1. Motivation is high at the start, which is exactly when you don’t need help. The flat middle of the curve is where people drift off, so that’s where your support system needs to be ready.
- Don’t do it alone. In a weight loss study, people who signed up with friends and got extra social support finished the program 95% of the time, compared with 76% for people who joined alone. Six months later, 66% of them had kept all of their weight off, compared with 24% of the solo group.
Where Goal Buddy fits in
That last point is why we built Goal Buddy. Getting through a couple of months of “still not automatic” is a lot easier when one real person is working on the same kind of goal and notices when you go quiet.
You post your goal, match one on one with someone chasing the same thing, and keep each other honest with regular checkins. Your streak gives you something to protect together. And on the day you want to quit, you can ask your partner for a hand before you disappear, which, if the gym data is right, is exactly the moment that decides whether the habit survives.
One honest note: your streak in the app does reset if you miss a day. Your habit doesn’t. If it breaks, that’s the signal to check in with your partner, not to start over from zero in your head.
Quick answers
Does it take 21 days to form a habit?
No. The 21 day figure comes from a 1960 self help book describing how long plastic surgery patients took to get used to their new faces. It was never a habit study. When researchers actually measured habit formation, the median was about 66 days.
Is 66 days a rule I can count on?
Not really. It is a middle value from one study. People in that study took anywhere from 18 to 254 days, and a 2024 review found individual times from 4 to 335 days. Treat 66 days as a rough guide, not a finish line.
How long does it take to make exercise a habit?
Longer than most habits. A 2023 study of more than 30,000 gym members found that going to the gym took about six months to become a habit, while handwashing at work took a few weeks.
Does missing one day reset a habit?
No. In the 66 day study, missing a single day did not meaningfully slow habit formation. What does hurt is a long gap. In the gym study, time since the last visit was one of the strongest signals of whether someone would come back.
Get through the long middle with someone
Post your goal in under two minutes and find a partner who is building the same habit.