How long does it take to form a habit? What the research actually says
You’ve probably heard that it takes 21 days to form a habit. So you start going to the gym, or reading before bed, or putting your phone away at night. Three weeks later it still takes effort. Day 22 feels a lot like day 2.
That doesn’t mean you’re doing it wrong. The 21-day rule isn’t backed by research. The short answer is that most new habits take about two months to start feeling automatic, and some take a lot longer. This article explains what the research found, why it varies, and how to keep going through the slow middle without needing a perfect streak.
Key takeaways
- There’s no magic number. In real-world studies, the typical time is about two months, but it can be anywhere from a few days to most of a year.
- The 21-day rule has no research behind it.
- Small actions, done often, at the same point in your day, tend to stick faster.
- Missing one day didn’t break the habit in the best-known study.
- Coming back after a missed day matters more than a perfect streak, and a small bad-day version makes coming back easier.
Where the 21-day rule came from
The number is usually traced to Maxwell Maltz, a plastic surgeon. In his 1960 book Psycho-Cybernetics, he wrote that his patients needed around three weeks at minimum to get used to a change, like a new face (James Clear has a good summary of the history).
Notice two things. He was talking about getting used to a change, not building a habit. And he described it as “a minimum of about 21 days”, not an exact figure. Over the years, that got shortened to “21 days”, and it stuck. Habit researchers now call the 21-day rule a myth (Gardner, Lally and Wardle, 2012).
What the research actually found
The study most people quote
Researcher Phillippa Lally and her team asked 96 adults to pick one healthy habit, such as eating a piece of fruit with lunch or going for a walk, and to do it once a day at the same point in their day for 12 weeks. Every day, each person rated how automatic it felt, meaning how much it happened without having to think about it or push themselves (Lally et al., 2010).
It got easier quickly at first, then levelled off. On average, it took 66 days to reach that point. But people varied a lot. One person got there in 18 days. Another was on track to take about 254 days. Simple habits, like drinking a glass of water, became automatic faster than harder ones, like doing 50 sit-ups (Gardner, Lally and Wardle, 2012).
A 2024 review backed this up
In 2024, researchers pulled together 20 studies with 2,601 people, covering habits like exercise, healthy eating, flossing and drinking water. Only four of those studies measured how long it took. In those, the middle result was 59 to 66 days, the averages were 106 to 154 days, and individuals ranged from 4 days to 335 days (Singh et al., 2024).
Their conclusion: the 21-day rule doesn’t hold up, and health habits usually take around two to five months to feel automatic.
How strong is the evidence?
Fairly consistent, but with limits. Only a handful of studies have measured the timing, and most were small. People rated their own habits, so the results show how automatic something felt, not something measured from the outside. The 2024 review also rated 11 of its 20 studies as having a high risk of bias, meaning the way they were run could have skewed the results. And almost all of the research is about health habits, so it might not apply in the same way to something like studying. Treat “about two months” as a rough guide, not a deadline.
What “formed” really means
A habit isn’t just something you do a lot. It’s something you do almost without deciding to, because the same situation has led to the same action many times (Wood and Rünger, 2016). That situation is called a cue. It might be a time, a place, or something you already do.
Brushing your teeth is a good example. You probably don’t debate it each night. Getting ready for bed is the cue, and brushing just follows. Picking up your phone the moment you wake up works the same way, for better or worse.
That’s why habits are worth building. Once the cue does most of the work, you don’t need to rely on motivation every time. The action is more likely to keep happening on days when you don’t feel like it (Gardner, Lally and Wardle, 2012). In other words, a habit raises the floor on your ordinary days: even when the day goes sideways, the basics still happen.
It also explains a common frustration. Going to the gym every day for a month won’t necessarily make it automatic if you go at a different time and from a different place each day. The cue keeps changing, so there’s nothing consistent to attach the habit to.
Why some habits stick faster than others
Smaller actions stick sooner
Remember the water versus sit-ups result. A small, easy action becomes automatic faster than a big, effortful one. “Do ten push-ups after I get out of bed” will usually stick faster than “do a full workout every morning”.
Doing it more often helps
The more often people repeated a habit, the faster it formed, and the early repetitions made the biggest difference (Singh et al., 2024). One study followed 111 new gym members for 12 weeks. Those who trained at least four times a week for six weeks built an exercise habit, while people who went less often saw the habit fade (Kaushal and Rhodes, 2015). That’s a single study where people reported their own training, so take it as a useful pointer rather than a rule.
Choosing it yourself helps
Habits people picked for themselves tended to stick better than habits someone else gave them (Singh et al., 2024). If you hate running, a running habit will be a harder build than a cycling or gym habit you actually enjoy.
Following through on the same cue matters most
In a trial with 192 adults, linking a new eating habit to something people already did each day worked about as well as linking it to a set time. The thing that mattered most was actually following through, again and again. For people who built the habit, the middle result was 59 days (Keller et al., 2021). So “after I make my morning coffee” and “at 7am” can both work. Pick whichever happens more reliably in your day.
Mornings might help
One study in the 2024 review found a daily stretching habit took an average of 106 days to form when done in the morning, compared with 154 days in the evening (Singh et al., 2024). It’s only one study, so don’t rebuild your whole day around it. But if you’re choosing between morning and evening, it’s a reason to try the morning.
Missing a day won’t undo your progress
This might be the most useful finding of all. In Lally’s study, missing a single day didn’t really affect how the habit formed. People picked up where they left off (Lally et al., 2010; Gardner, Lally and Wardle, 2012).
That matters because a lot of people treat a broken streak as a reason to quit. You miss Monday’s session because work ran late, decide the week is ruined, and start again “next Monday”. The research suggests the missed day isn’t the problem. Not coming back is. The studies looked at missing the odd day, not weeks off, so a long break is a different situation. There’s more on this, including a simple plan for the day after a slip, in does missing a day break a habit?
This is where raising the floor comes in. Instead of aiming for a perfect streak, decide in advance what the smallest acceptable version of the habit looks like. On a good day, you do the full workout. On a bad day, you do one set, or a ten-minute walk. You still show up at the same cue, so the habit keeps building. This is a practical suggestion rather than something the studies tested directly, but it fits what they found: repeating the action at the same cue is what builds the habit, and the occasional lighter day doesn’t undo it.
A simple way to build your next habit
None of this is a guarantee. These steps put the research into practice, and you can adjust them to suit your life.
- Start smaller than feels necessary. If the goal is regular training, the first habit might just be getting changed into your gym gear when you get home. Once that’s automatic, building on it is easier.
- Attach it to something you already do every day. Write it as “After I ___, I will ___”. For example: “After I make my morning coffee, I’ll stretch for five minutes”, or “After I plug my phone in at night, I’ll read ten pages.” Plans that spell out exactly when and where you’ll act make people noticeably more likely to follow through on their goals, across 94 tests (Gollwitzer and Sheeran, 2006). That research is about goals in general, not habits specifically, but the idea is the same: a clear cue makes it easier to start.
- Pick something you actually want. A habit you chose and care about is easier to keep than one you think you “should” have.
- Plan for about ten weeks, not three. Habit researchers suggest expecting around ten weeks, and say it should feel easier along the way (Gardner, Lally and Wardle, 2012). If you know that going in, week three feels like normal progress instead of failure.
- Set your floor before you need it. Write down the smallest version you’ll still do on a bad day. One page instead of a chapter. One set instead of a session. Two minutes of tidying instead of the whole room. This is the idea behind a minimum standard.
- Track the days, then check how automatic it feels. Tick off each day you do it. Once a week, give it a score out of 10 for how automatic it feels. This is a simple version of the tick-sheet idea from Gardner and colleagues. When the score stops climbing and stays high, the habit has probably formed.
Try this
Pick one small habit and one cue that happens every day. Write it down: “After I ___, I will ___.” Underneath, write your floor, the smallest version you’ll still do on a bad day. Then check in on how automatic it feels at around the two-month mark, not on day 21.
What we still don’t know
- Bigger, more complex habits. Most studies look at simple health habits over a few months. There’s much less research on things like a study routine or planning your week.
- Self-rating. People scored their own habits, which is useful but not perfect.
- Long breaks. Missing one day didn’t matter, but there’s less evidence on what happens after a few weeks off.
- Breaking bad habits. This research is about building new habits. Stopping an old one, like late-night scrolling, is a different problem.
- Why people differ so much. We know the range is huge, but not fully why.
The bottom line
If a new habit still feels like work after three weeks, nothing has gone wrong. That’s normal. Keep it small, tie it to something you already do every day, have a bad-day version ready, and come back after a missed day instead of starting over. Give it two to three months before you judge it. You don’t need a perfect streak. You need a floor you’ll keep on ordinary days. For more on routines and the systems behind them, see the Habits and Systems section.
References
- Gardner, B., Lally, P., & Wardle, J. (2012). Making health habitual: The psychology of ‘habit-formation’ and general practice. British Journal of General Practice, 62(605), 664–666. https://doi.org/10.3399/bjgp12X659466
- Gollwitzer, P. M., & Sheeran, P. (2006). Implementation intentions and goal achievement: A meta-analysis of effects and processes. Advances in Experimental Social Psychology, 38, 69–119. https://doi.org/10.1016/S0065-2601(06)38002-1
- Kaushal, N., & Rhodes, R. E. (2015). Exercise habit formation in new gym members: A longitudinal study. Journal of Behavioral Medicine, 38(4), 652–663. https://doi.org/10.1007/s10865-015-9640-7
- Keller, J., Kwasnicka, D., Klaiber, P., Sichert, L., Lally, P., & Fleig, L. (2021). Habit formation following routine-based versus time-based cue planning: A randomized controlled trial. British Journal of Health Psychology, 26(3), 807–824. https://doi.org/10.1111/bjhp.12504
- Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998–1009. https://doi.org/10.1002/ejsp.674
- Singh, B., Murphy, A., Maher, C., & 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. https://doi.org/10.3390/healthcare12232488
- Wood, W., & Rünger, D. (2016). Psychology of habit. Annual Review of Psychology, 67, 289–314. https://doi.org/10.1146/annurev-psych-122414-033417
- Background on the 21-day figure: Clear, J. How long does it actually take to form a new habit? (Backed by science). https://jamesclear.com/new-habit