How Long Does It Take to Build a Habit? The 21-Day Myth Is Wrong


If you're wondering how long does it take to build a habit, you've probably heard the same answer over and over: 21 days.

It sounds reassuring. Give yourself three weeks, stay disciplined, and your new behavior will supposedly become automatic.

There's just one problem: the research doesn't support the 21-day rule.

Modern habit formation research suggests that a new behavior often takes around two months to become substantially automatic, with enormous variation between individuals. One widely cited study found a median of 66 days, while a more recent systematic review of health-related habits found median formation times of roughly 59–66 days. In the studies reviewed, individual results ranged from just 4 days to as long as 335 days.

That distinction matters if you're trying to change the way you eat.

Going vegan isn't simply a matter of deciding what you believe and then repeating one action for three weeks. You're changing meals, shopping routines, restaurant choices, social habits, food preparation, cravings, and sometimes your entire idea of what counts as a normal meal.

So if you're struggling after three weeks, that doesn't necessarily mean you're bad at changing habits.

It may mean your expectations were based on a myth.

The more useful question isn't, "Why haven't I made this automatic in 21 days?"

It's "How can I give a major dietary change enough time and repetition to become my new normal?"

How Long Does It Take to Build a Habit?

There isn't one exact number of days required to form a habit.

Research suggests that health-related habits can begin becoming automatic in roughly two months, but the timeline varies considerably depending on the person, behavior, circumstances, and consistency.

A 2010 study by Phillippa Lally and colleagues examined how people developed everyday habits by asking participants to repeat a chosen behavior in a consistent context. Among participants whose data could be modeled effectively, the median time to reach a high level of automaticity was 66 days, with individual estimates ranging from 18 to 254 days.

More recent research paints an equally nuanced picture. A 2024 systematic review and meta-analysis examining health behavior habit formation reported median formation times of approximately 59 to 66 days across the studies that reported a median. Individual times ranged from 4 to 335 days.

The practical takeaway is simple:

For many people, building a habit takes about two months or longer—not 21 days—but there is no universal habit-formation deadline.

That is particularly important when the behavior you're changing is related to food.

Where Did the 21-Day Habit Myth Come From?

The 21-day idea is often presented as though psychologists discovered a universal law of human behavior.

They didn't.

The number is commonly traced to observations made by plastic surgeon Maxwell Maltz, who wrote in the 1960s about patients taking roughly 21 days to adjust to changes in their self-image or circumstances.

Over time, that observation was simplified, repeated, and transformed into something much more definitive: the claim that it takes 21 days to form a habit.

Those are very different statements.

An observation about how long some people might take to psychologically adjust to a change isn't evidence that every human behavior becomes automatic after exactly 21 repetitions or 21 calendar days.

The 21-Day Myth Debunked

The problem with the 21-day rule isn't simply that the number is slightly inaccurate.

The deeper problem is that it suggests habit formation happens on a fixed schedule.

It doesn't.

Some behaviors become easier relatively quickly. Others take substantially longer. A behavior that requires little effort and happens in a stable environment is very different from one involving multiple decisions, competing cues, emotional associations, and social pressures.

Eating is a perfect example.

You don't just "do" eating once a day under identical conditions. You eat breakfast, lunch, dinner, snacks, meals at home, meals at work, meals while traveling, meals with friends, and meals when you're tired.

That complexity changes the habit-formation challenge.

What the Habit Formation Research Actually Shows

The most useful habit research doesn't ask whether you can force yourself to perform a behavior for exactly 21 days.

It looks at automaticity.

Automaticity is the degree to which a behavior starts happening with less conscious deliberation when the appropriate cue appears.

Think about brushing your teeth.

You probably don't wake up every morning and conduct a detailed internal debate:

"Should I brush my teeth today? What are the benefits? Where is my toothbrush? When should I do it?"

The behavior is tied to familiar cues and routines.

That's what habit formation is moving toward.

The 66-Day Study

The research most often associated with the "66-day" figure involved 96 volunteers who selected a behavior they wanted to repeat daily in a consistent context.

The behaviors included relatively simple actions involving eating, drinking, or physical activity.

Participants tracked their behavior and reported how automatic it felt over time.

The important result wasn't simply "66 days."

The important result was variation.

For participants whose habit-development patterns could be modeled, the median time to reach 95% of their estimated automaticity plateau was 66 days. Individual estimates ranged from 18 to 254 days.

The researchers also found that performing the behavior more consistently was associated with better habit-development patterns.

And missing one opportunity did not appear to destroy the habit-forming process.

That's a much more useful message than "don't miss day 21."

The More Recent Evidence: 59 to 66 Days

A 2024 systematic review and meta-analysis examined 20 studies involving more than 2,600 participants and looked specifically at health behavior habit formation.

The evidence included behaviors such as physical activity, healthy eating, drinking water, flossing, and other health-related routines.

Among the studies reporting median formation times, the figures fell around 59 to 66 days.

But again, the variation was substantial.

Across the relevant studies, individual habit-formation times ranged from 4 to 335 days.

That doesn't mean everyone should expect to need 335 days.

It means that a single number cannot accurately describe the human habit-formation process.

Why the Range Matters More Than the Average

If you're changing your diet, the range is arguably more useful than the headline number.

Suppose two people decide to eat plant-based.

Person A already eats plenty of vegetables, enjoys cooking, has easy access to vegan foods, and has friends who support the change.

Person B relies heavily on takeout, doesn't know how to prepare plant-based meals, travels frequently, has strong emotional associations with certain foods, and lives with people who eat differently.

Why would their timelines be identical?

They wouldn't.

The behavior itself isn't the only variable. The environment surrounding the behavior matters too.

What Does This Mean for Going Vegan?

This is where the habit formation research becomes especially useful.

Going vegan is often discussed as though it were one habit.

It isn't.

It's better understood as a network of related behaviors that gradually become familiar.

You may need to learn how to:

  • Plan plant-based breakfasts.
  • Shop for vegan groceries.
  • Read ingredient labels.
  • Cook with new ingredients.
  • Find satisfying restaurant meals.
  • Pack food for work.
  • Handle social events.
  • Replace familiar animal-based foods.
  • Navigate travel.
  • Build new go-to meals.
  • Respond to cravings.
  • Make plant-based choices when you're tired or rushed.

Each of these can become easier through repetition.

But they may not all become automatic at the same rate.

Going Vegan Is a Lifestyle Transition, Not a 21-Day Challenge

This is one reason a rigid 21-day expectation can be counterproductive.

If you treat veganism as a 21-day test, you may interpret normal difficulty as failure.

A difficult restaurant experience becomes:

"I can't do this."

A missed meal becomes:

"I ruined my progress."

A craving becomes:

"Maybe I'm not capable of changing."

A more realistic habit timeline produces a different interpretation:

"I'm still learning."

That's a much more productive mindset.

How Long Does It Take to Change Your Diet Habit?

There is no scientifically established number of days required to permanently change your diet.

The available habit research suggests that roughly 8–10 weeks is a reasonable starting expectation for meaningful habit development, not a deadline.

For some dietary behaviors, automaticity may develop faster. For others, it may take several months.

And changing an entire eating pattern can reasonably take longer than establishing one small food-related routine.

Consider the difference between these goals:

Small habit: Eat a piece of fruit with lunch every day.

Larger transition: Stop eating animal products and build a satisfying vegan diet that works at home, at restaurants, during travel, and in social situations.

The second goal contains dozens of smaller habits.

Expecting the entire transition to feel effortless after 21 days doesn't reflect the complexity of what you're asking yourself to learn.

A Better Timeline for Going Vegan

Instead of asking, "How long until I'm completely used to this?" create expectations around stages.

Weeks 1–2: Learning and Disruption

The first couple of weeks may feel surprisingly conscious.

You're reading labels.

You're searching recipes.

You're figuring out which plant milks you like.

You're discovering that some products you assumed were vegan aren't, while other foods you hadn't considered are naturally plant-based.

This is normal.

At this stage, convenience matters enormously.

Build a small collection of meals you can prepare without thinking too hard.

Think:

  • Oatmeal with fruit and nuts
  • Tofu scramble
  • Bean and rice bowls
  • Pasta with vegetables and tomato sauce
  • Lentil soup
  • Chickpea wraps
  • Vegetable stir-fry
  • Baked potatoes with beans and toppings

The goal isn't culinary perfection.

It's reducing decision fatigue.

Weeks 3–4: Finding Your Defaults

By the third or fourth week, you may start identifying meals that reliably work.

This is an important transition.

You don't need to ask, "What should I eat?" every time you're hungry.

You have options.

Maybe breakfast is almost always oatmeal or tofu scramble.

Maybe lunch is a grain bowl or leftovers.

Maybe you keep a few frozen meals available for busy evenings.

These recurring choices create the conditions in which habits can develop.

Weeks 5–8: Increasing Automaticity

This is where the research becomes particularly encouraging.

Habit formation isn't an on/off switch.

You don't wake up on Day 59 and suddenly become a completely different person.

Instead, repeated behaviors gradually require less deliberate thought.

Grocery shopping can become easier.

Meal planning can become faster.

You may start automatically checking menus for plant-based options.

Certain meals may become second nature.

The transition is becoming less about constant decision-making and more about routine.

Beyond Two Months: Refinement

For many people, the process doesn't end at two months.

That's okay.

You may still encounter situations that aren't routine:

  • Holidays
  • Business dinners
  • Vacations
  • Weddings
  • Road trips
  • Family gatherings
  • New restaurants
  • Unexpected schedule changes

These situations create new contexts in which you have to practice the behavior.

That's why a realistic habit timeline should include room for continued learning.

Does Missing One Day Ruin a Habit?

No.

Missing one opportunity does not automatically erase the progress you've made.

The 2010 habit study found that missing one opportunity to perform the behavior did not materially affect the habit-formation process.

That's important for dietary change.

Imagine you planned to cook a vegan dinner but ended up eating something else because your schedule fell apart.

That doesn't mean you've returned to Day 1.

The bigger issue is what happens next.

If one missed day becomes a week of abandoning the change, the interruption matters more. But one imperfect decision isn't evidence that your entire behavioral pattern has failed.

Replace "Perfect" With "Consistent"

A useful distinction is:

Perfection: I never deviate.

Consistency: I repeatedly return to the behavior I want to establish.

Consistency is a much better framework for long-term habit formation.

If you're trying to build a vegan eating pattern, the question isn't whether every meal will feel effortless immediately.

It's whether you're repeatedly practicing the behaviors that support the lifestyle.

Why Food Habits Can Take Longer Than Expected

Dietary habits have several characteristics that can make them particularly complex.

Food Is Tied to Emotion

People don't eat solely because they're hungry.

Food can be associated with comfort, celebration, nostalgia, family, stress, reward, culture, and identity.

Changing a food habit can therefore involve more than learning a replacement recipe.

You're sometimes changing a behavior with years of emotional reinforcement behind it.

Food Is Social

You can build a new exercise habit largely on your own.

Food is different.

Other people eat with you.

They may cook for you, invite you to restaurants, bring food to gatherings, ask questions, or have expectations about what meals should look like.

That creates additional contexts in which your new habits have to function.

Food Requires Repeated Decisions

You may make dozens of food-related decisions throughout a normal week.

That can be exhausting early in a dietary transition.

The solution isn't necessarily more willpower.

It's creating more defaults.

How to Make a Vegan Diet Habit Easier to Build

The research points toward repetition and consistency, but you can make repetition much easier by designing your environment around the behavior.

1. Create Reliable Meal Defaults

Choose a few breakfasts, lunches, and dinners you genuinely enjoy.

Don't aim for 50 recipes.

Start with five or ten meals that are easy, satisfying, and repeatable.

When you're hungry, fewer decisions mean less friction.

2. Use Consistent Cues

Habits become easier to automate when behaviors repeatedly occur in the same context.

For example:

  • Meal prep after grocery shopping
  • Pack lunch immediately after dinner
  • Prepare overnight oats before bed
  • Keep fruit visible on the kitchen counter
  • Add a plant-based protein to your standard dinner routine

You're giving the behavior a recognizable place in your day.

3. Make the Vegan Choice Convenient

If the easiest food in your kitchen isn't compatible with your goal, you're creating unnecessary friction.

Keep convenient plant-based options available.

Frozen vegetables, canned beans, tofu, lentils, grains, pasta, nuts, seeds, fruit, plant-based sauces, and other staples can make spontaneous meals easier.

4. Learn Your Restaurant Strategy

A dietary habit has to work outside your kitchen.

Before going to a restaurant, look at the menu if possible.

Identify what you'll order.

If options are limited, know what substitutions are realistic.

This turns an unfamiliar situation into a familiar routine.

5. Plan for Cravings Instead of Being Surprised by Them

A craving doesn't mean your new lifestyle isn't working.

It means your brain has learned associations with certain foods.

Have satisfying alternatives available.

If you miss a particular flavor, texture, or meal experience, focus on reproducing what you actually liked about it.

Was it salty?

Creamy?

Crunchy?

Spicy?

Rich?

Comforting?

The better the replacement meets the original need, the easier it is to make the new choice repeatedly.

6. Track Progress Without Turning It Into Punishment

Tracking can help you notice patterns.

You might record:

  • How often you cooked at home
  • Which meals were easiest
  • Which situations caused difficulty
  • Which foods you enjoyed
  • Which restaurants had good options
  • When cravings were strongest

The purpose isn't to create a perfect score.

It's to identify what makes the behavior easier or harder.

What If Going Vegan Still Feels Difficult After Two Months?

That doesn't automatically mean you've failed.

Remember the range found in habit formation research.

Some people reach strong automaticity relatively quickly. Others take much longer.

More importantly, "still feels difficult" can mean several different things.

Maybe you haven't found enough satisfying meals.

Maybe you're constantly exposed to situations where vegan food isn't readily available.

Maybe your schedule makes meal preparation difficult.

Maybe you're relying on willpower rather than changing your environment.

Maybe the transition is actually progressing, but you're comparing yourself with an unrealistic 21-day standard.

Instead of asking, "What's wrong with me?" ask:

"Which part of the routine is still requiring too much effort?"

Then solve that specific problem.

A Realistic Habit Timeline for Dietary Change

Here's a practical way to think about the process:

Time period What may be happening
Days 1–14 Learning, experimenting, identifying obstacles
Weeks 3–4 Establishing reliable meals and shopping routines
Weeks 5–8 Increasing familiarity and reducing decision-making
Months 3–4 Strengthening routines across different situations
Beyond 4 months Refining habits, handling unusual contexts, and maintaining consistency

This isn't a prescription.

It's a framework.

The research does not justify telling every person that vegan eating will become automatic after 59, 66, or 90 days.

Instead, the evidence supports giving yourself months rather than weeks to establish a complex dietary pattern.

The Identity Side of Going Vegan

There is another piece of dietary change that numbers don't capture very well: identity.

At first, you may think:

"I'm trying to eat vegan."

Later, you may simply think:

"This is what I eat."

That shift can make decisions feel very different.

Instead of repeatedly negotiating with yourself, you begin operating from an established preference.

This doesn't happen because Day 21 has arrived.

It develops through repeated experiences in which the new behavior becomes familiar, practical, and personally meaningful.

For some people, that transition is also connected to compassion, mindfulness, environmental concerns, or a desire to live more consistently with their values. Wearing something that reflects those values can be a small reminder of the lifestyle you're building; for plant-based and ethical designs, The Dharma Store offers Vegan T-Shirts alongside its broader focus on plant-based living, mindfulness, compassion, and ethical lifestyles.

The Most Important Lesson From Habit Formation Research

The biggest mistake isn't taking 90 days instead of 21.

The biggest mistake is believing that a specific number of days determines whether you've succeeded.

Habit formation is gradual.

A behavior becomes more familiar through repetition. Contexts become easier to navigate. Decisions become less effortful. Your environment starts supporting your choices. Eventually, what once required deliberate planning can become part of your normal routine.

That's especially relevant to going vegan.

You're not simply trying to survive a 21-day challenge.

You're building an eating pattern that needs to work on ordinary Tuesday mornings, stressful workdays, lazy Sundays, vacations, birthdays, restaurant dinners, grocery runs, and everything in between.

Give that process the time it deserves.

How to Set Better Expectations When Going Vegan

Instead of setting a deadline, set process goals.

Rather than:

"I'll be completely used to vegan eating in 21 days."

Try:

"I'll spend the next two months building reliable plant-based routines."

Rather than:

"I must never make a mistake."

Try:

"I'll keep returning to the habits I'm trying to establish."

Rather than:

"Why isn't this automatic yet?"

Try:

"Which part of this routine can I make easier?"

These changes sound small, but they transform the way you interpret difficulty.

A slow transition isn't necessarily a failed transition.

It may be exactly what normal habit formation looks like.

What the 21-Day Myth Gets Wrong About Motivation

The 21-day myth can also create an unfortunate psychological trap.

At the beginning of a dietary change, motivation may be high. You're excited about new recipes, new goals, and the possibility of living differently.

Then reality arrives.

You're busy.

You're tired.

A restaurant has limited choices.

You don't feel like cooking.

You miss a familiar meal.

If you've been told that your new habit should already feel automatic, you may conclude that your motivation has disappeared.

But habit formation isn't simply about staying motivated long enough.

The goal is to gradually rely less on motivation by making the desired behavior easier and more familiar.

That's what successful habit development is supposed to accomplish.

A Simple 8-Week Approach to Building Vegan Eating Habits

If you're looking for a practical starting point, try this:

Weeks 1–2: Build Your Food Foundation

Identify your favorite plant-based breakfasts, lunches, dinners, snacks, and easy emergency meals.

Stock the ingredients you need.

Don't worry about creating a perfect routine yet.

Weeks 3–4: Repeat What Works

Stop reinventing your diet every day.

Repeat meals you enjoy.

Create a grocery list that reflects your actual eating patterns.

Start noticing which decisions cause the most friction.

Weeks 5–6: Expand Your Contexts

Practice your new habits outside your easiest environment.

Try restaurants.

Pack food for work.

Handle a social gathering.

Prepare something simple while traveling or during a busy week.

The goal is flexibility.

Weeks 7–8: Reduce Friction

Look back at the situations that were hardest.

Then redesign them.

Keep better emergency foods available.

Find reliable restaurants.

Improve meal prep.

Learn a few faster recipes.

Create defaults for busy days.

At the end of eight weeks, don't ask whether you're "finished."

Ask what has become easier.

That's a much more meaningful measure of progress.

Frequently Asked Questions

How long does it take to build a habit?

Research suggests that health-related habits often take around two months to develop substantially, but there is no universal timeline. Studies have found median times around 59–66 days, with substantial individual variation.

Is the 21-day habit rule true?

No. The idea that every habit takes exactly 21 days to form is not supported by modern habit formation research. The evidence shows that habit development varies considerably depending on the behavior and individual.

How long does it take to change a diet habit?

There is no fixed number of days for changing an entire diet. A simple food habit may become automatic relatively quickly, while a complex dietary transition can take several months because it involves many behaviors and situations.

How long does it take to get used to eating vegan?

There is no universal timeline. Many people may find their routines becoming substantially easier over several weeks to a few months. The process can take longer when the transition involves major changes to cooking, shopping, social situations, or familiar food preferences.

Does missing one day ruin a habit?

No. Missing one opportunity does not automatically erase habit formation. The more useful response is to return to the behavior rather than treating one interruption as failure.

What is the realistic habit timeline for going vegan?

A realistic expectation is to think in terms of months rather than 21 days. Use the first several weeks to learn and establish routines, the following weeks to strengthen them, and additional time to make the behavior work across restaurants, travel, social situations, and busy days.

Give Yourself More Than 21 Days

So, how long does it take to build a habit?

The honest answer is: it depends.

The research gives us useful benchmarks, but not a magic number. Around 59–66 days is a reasonable median range from the available health habit research, while individual timelines can stretch from days to many months.

That matters when you're going vegan.

If eating differently still requires conscious effort after three weeks, you're not necessarily behind. If it takes several months before grocery shopping, meal planning, restaurant choices, and everyday meals feel natural, that isn't evidence that you've failed.

You're learning a new pattern.

And complex patterns take practice.

Forget the 21-day deadline. Build repeatable meals. Create reliable cues. Make your environment work for you. Expect some difficult situations. Return to the routine when life disrupts it.

Most importantly, judge progress by whether your new choices are becoming easier and more familiar—not by whether an arbitrary number on the calendar says they should already feel automatic.

The goal isn't to win a 21-day challenge.

It's to make your new way of eating sustainable enough that, eventually, it doesn't feel like a challenge at all.

The information in this article is for educational purposes only and should not be considered medical advice. Always consult a qualified healthcare professional regarding dietary or health concerns.