How Long Does It Take to Form a Habit?

It usually takes longer than 21 days to form a habit. In one well-known study, the median time for a new daily behavior to feel automatic was 66 days, and individual times ranged from 18 to 254 days. So if a habit still feels like effort after three weeks, you are not behind. You are right on a normal timeline.
This guide explains where the numbers come from, why your timeline may differ, and how to plan for the long middle stretch. For more on building habits in general, visit our habits hub.
Where the "21 days" idea came from
The 21-day rule traces back to Maxwell Maltz, a plastic surgeon who wrote a 1960 book called Psycho-Cybernetics. Maltz noticed that his patients took "a minimum of about 21 days" to adjust to changes.
Over the years, people repeated the idea and dropped the word "minimum." A rough observation about the shortest adjustment time turned into a promise about how long every habit should take. That shift matters, because people who expect a habit to be automatic by day 21 often decide they have failed when it isn't.
What the research actually found
The best-known study on this question was published in 2009 by Phillippa Lally and colleagues at University College London, in the European Journal of Social Psychology. Here is what they did and found:
- Who: 96 participants each took on a new daily habit.
- What they tracked: How the behavior progressed over time, and when it started to feel automatic.
- The median: 66 days for the behavior to feel automatic.
- The range: From 18 days for some people to 254 days for others.
- Missed days: Missing a single day didn't seriously derail the process.
The key takeaway is the range, not the single number. Sixty-six days is a middle point, not a deadline. Some habits click in a few weeks. Others take most of a year.
Why your timeline may be different
Several things seem to affect how quickly a behavior becomes automatic. Researchers and psychologists generally point to a few patterns:
| Factor | Tends to be faster | Tends to be slower |
|---|---|---|
| Complexity | One simple action | Many steps or decisions |
| Cue | Same trigger every day | Different time or place each day |
| Effort | Low effort, little setup | Physically or mentally demanding |
| Frequency | Daily | A few times a week |
| Fit with your life | Matches your current routine | Fights your schedule |
This is why "drink a glass of water after brushing my teeth" usually settles in faster than "go to the gym three times a week." Neither is better. They are different kinds of habits with different timelines.
Plan for the long middle
The first week of a new habit often feels exciting. The last stretch, when it is nearly automatic, feels easy. The hard part is the middle, when the novelty is gone and the habit still takes effort. Most people quit here.
Planning for that stage helps. Three tools make the biggest difference.
A smaller starting point. If the habit feels heavy, shrink it. Our step-by-step guide on how to build a habit shows how to design a starting version so small it is hard to skip, which matters most during these middle weeks.
A reliable cue. Linking the habit to something you already do every day gives it a steady trigger. Habit stacking is a simple way to do this, using a formula like "After I make my coffee, I will..."
A visible record. Progress during the middle stretch is easy to miss because the habit still feels hard. A habit tracker lets you see that you have shown up 30 times, even when it feels like you are getting nowhere.
Try this today: set a realistic timeline
Use this short exercise to replace a deadline with a plan.
- Write the habit in one sentence. Be specific. "Walk for 10 minutes after lunch" is clearer than "exercise more."
- Rate its difficulty from 1 to 5. Consider steps, effort and how often it happens.
- Choose a check-in date, not a finish line. For a simple habit, mark a date about 8 weeks out. For a harder one, mark 12 weeks or more.
- Decide what "automatic" means for you. For example: "I do it without having to remind myself most days."
- Write your missed-day rule. For example: "If I miss a day, I do the smallest version the next day."
On your check-in date, ask yourself one question: does this feel easier than it did at the start? If yes, keep going. If no, change the cue, the size or the time of day, and set a new check-in.
Worked example
Priya wants to read before bed. They write, "Read two pages after I plug in my phone at night." They rate it a 2 because it is simple and happens at the same time daily. They set a check-in eight weeks out. Their missed-day rule is "If I skip a night, I read one page the next night." When they check in, the habit isn't fully automatic yet, but it takes much less effort. They keep going without changing anything.
How to think about slow progress
If a habit is taking months instead of weeks, that is consistent with what the research describes. It is not a sign that you lack discipline. Treating slow progress as information rather than failure makes it easier to adjust and keep going.
This way of seeing effort, as something that builds over time instead of a test of fixed ability, overlaps with the idea of a growth mindset. Our guide to growth mindset explains what that idea is and what the research on it does and doesn't show.
Be wary of any course or challenge that promises a new you in a set number of days. Fixed timelines sound motivating, but they don't match how habits actually form. Our list of self-help program red flags covers this and other warning signs.
The short version
- The 21-day rule is a misreading of a 1960 book that described a minimum.
- A 2009 study found a median of 66 days, with a range from 18 to 254.
- Simple habits with clear daily cues tend to become automatic faster.
- Missing one day doesn't seriously set you back. Coming back quickly is what counts.
- Set a check-in date rather than a deadline, and adjust the habit if it still feels hard.
Want a structured program to keep you on track?
Reading gives you the ideas. Some people stick with change better when they follow a guided course day by day. This button opens a self-improvement program from one of our advertising partners.
See the partner program →We may be paid when you click. The program shown can change. Read its terms before you buy anything. How this works
Frequently asked questions
Does it take 21 days to form a habit?
No. The 21-day figure comes from a 1960 book that described a minimum adjustment period, not a typical one. A 2009 study found a median of 66 days, with wide variation between people and habits.
What happens if I miss a day while forming a habit?
In the 2009 study by Phillippa Lally and colleagues, missing a single day didn't seriously derail the process. What matters more is getting back to the habit at your next chance.
Why do some habits form faster than others?
Simpler behaviors tied to a clear daily cue tend to become automatic sooner than complex or effortful ones. Drinking water after breakfast usually settles in faster than a long workout.


