Back to blog

How to build health habits that last longer than a few weeks

Sonia Biecka

Sonia Biecka

Dietitian

lek. Wojciech Sierocki

Medical review: lek. Wojciech Sierocki

Content medically reviewed by an Optimals team physician.

How to build health habits that last longer than a few weeks

The beginning usually looks the same.

You start exercising on Monday. You prep meals for a few days. You buy a water bottle, set the alarm earlier, log your steps, and for the first two weeks everything works surprisingly well.

Then a harder day arrives. A later finish at work. A bad night. A trip. An illness. A weekend.

One workout falls through, then a second, and suddenly the thought appears:

"I can never stick to a plan."

Except the problem very often has nothing to do with willpower. The difficulty is that we try to sustain a new behaviour mainly through motivation, which naturally shifts from day to day.

A durable habit works differently.

Over time, performing a given action requires less and less conscious decision-making, because a specific situation starts to trigger a specific behaviour automatically.

That is exactly why effective lifestyle change is not about being more motivated every day.

It is about creating conditions in which the healthy behaviour becomes easier to repeat.

Habits do not form in 21 days

This is probably one of the most popular myths about behaviour change.

There is no universal moment after which a new action suddenly becomes a habit.

A systematic review and meta-analysis published in 2024 covered 20 studies on health habit formation. In the studies that allowed habit formation time to be estimated, the median was around 59–66 days, while the mean values reached 106–154 days.

The range of individual results matters even more.

For individual people the process took anywhere from 4 to 335 days. The authors also stressed that the quality of some of the available studies was limited, so even these numbers should not be treated as a precise "expiry date" for habit building.

The conclusion is simple:

if after three weeks you still have to consciously remind yourself about the walk, the prepared breakfast or the earlier bedtime, it does not mean you are doing something wrong.

Behaviour change simply takes time.

What is a habit, exactly?

A habit is not just a behaviour we perform often.

One of its most important elements is automaticity.

If every day you take a medication after your morning coffee, or go for a walk after dinner, over time the situation itself can start reminding your body about the next action.

You no longer have to negotiate with yourself every day:

"Do I feel like it today?"

Research on habit formation shows that frequent repetition of the behaviour and a stable context in which it is performed are particularly important. In a study on eating habits, more frequent performance of the behaviour, greater context stability and positive feelings associated with the action were all linked to a stronger habit.

That points to a very practical rule.

If you want a given action to become easier, stop reinventing when you will do it every single time.

"I'll exercise more" is not enough

Compare two goals.

"I want to move more."

versus:

"On Monday, Wednesday and Friday after work I change clothes and go for a 30-minute walk."

The second plan answers three questions:

what I will do, when I will do it, and in what situation I will start.

In behavioural psychology this kind of solution is described, among other terms, as an implementation intention.

It usually takes a simple form:

"If X happens, I will do Y."

For example:

"When I finish lunch, I will go for a 10-minute walk."

"After brushing my teeth in the evening, I will prepare a water bottle for the next day."

"When I get home from work on Tuesday, I will change into workout clothes right away."

Systematic reviews show that this kind of concrete planning can support increases in physical activity and improvements in eating behaviour.

"I have to start living healthier" leaves too many decisions for later.

And every additional decision is another moment where we can give up.

Start with a behaviour you can genuinely repeat

A new habit very often loses at the planning stage.

Not because the goal is bad.

Because it is too big.

Someone who has barely moved until now plans five workouts a week.

Someone who ordered takeaway every day wants to cook every meal from scratch starting tomorrow.

Someone sleeping six hours decides to fall asleep at 9:30 pm every night from now on.

Such a plan can work for a few days. The problem shows up once the initial enthusiasm runs out.

When building a habit, it is worth asking a different question:

"What is the smallest version of this behaviour that I can also do on an average, not particularly good day?"

If the goal is activity, a 10-minute walk can be the beginning. If you are returning to movement after a longer break, it is worth reading how to start exercising after a long break.

If you want to eat more vegetables, the first step can be adding them to one specific meal a day.

If you are working on hydration, you can start with a glass of water at breakfast instead of trying to track an arbitrary number of litres all day.

Early in habit building, repeatability is far more valuable than an impressive size of any single action.

A meta-analysis of interventions targeting physical activity habit formation showed that such strategies do increase habit strength. Interestingly, one of the elements associated with greater effectiveness was also solving problems that came up while following the plan.

Do not build a habit on a clock time alone

"I will exercise every day at 6 pm" works beautifully as long as every day looks similar.

An event that already occurs regularly is often a better anchor.

For example:

after breakfast,

after coming home from work,

after dropping the child off at nursery,

after closing the laptop,

after dinner.

Morning coffee and a book on the terrace as a fixed point of the day that a new habit can be attached to

This way the new behaviour gets "plugged into" something that already exists in your daily rhythm.

The most recent systematic review on context stability and physical activity, published in 2026, confirms the link between repeating a behaviour in a stable context and habit strength. At the same time, the authors point out that different elements of the environment and situation can act as effective cues for different people.

So there is no single perfect "trigger".

The best one is the one that actually occurs regularly in your life. If you are building a sleep-related habit, the morning is often a good anchor – more on that in the article about morning light, sleep and energy.

Change the environment instead of fighting yourself every day

A healthy behaviour is far easier when performing it requires little organisational effort.

If you want to run in the morning, laying out your clothes the evening before removes one obstacle.

If you want to bring food to work more often, you need more than the decision "I will cook": you also need groceries at home, containers, and a moment set aside for preparing meals.

If you want to eat more fruit, keeping it somewhere visible rather than in the bottom drawer of the fridge helps.

If you want to cut down on evening phone use, a charger next to the bed is not necessarily your ally.

A review of planning interventions for activity and diet showed that, over the longer term, effective strategies often included not only planning but also self-monitoring, problem solving, instruction on how to perform the behaviour, and adding relevant objects to the environment.

That is a very practical lesson.

Sometimes the best change strategy is not "watch yourself more closely".

It is to remove one thing that makes the behaviour harder every day.

Tracking helps, but not everything needs measuring

Steps. Sleep. Calories. Protein. Water. Workouts. Body weight. Heart rate.

Today we can monitor almost every element of our lifestyle.

That does not mean we should.

Self-monitoring can be an effective behaviour change technique. A 2021 meta-analysis showed that digital monitoring of diet and activity in people with overweight or obesity supported, among other things, increased physical activity and weight reduction.

A large meta-analysis of apps and activity trackers likewise showed that tools using continuous monitoring and feedback can increase movement.

But tracking should help you make a decision, not turn into another obligation.

If your goal is a regular walk, the information you need is whether the walk happened.

You do not always need an analysis of pace, heart rate, calories burned and the length of every route.

A good question is:

"Does this information help me change my behaviour?"

If not, perhaps you do not need to collect it.

Motivation matters. So does its type

Why do you actually want to change something?

"Because the doctor said I have to."

"Because I look bad."

"Because there are three months left until the holidays."

"Because I genuinely want more energy and to function better."

Each of these reasons can start an action, but they do not all support long-term maintenance equally well.

A 2021 meta-analysis covering 67 publications showed that increasing autonomous motivation, meaning the sense that a behaviour aligns with your own values and decisions, was associated with improved health behaviours. Increasing the sense of competence, the belief "I can do this", mattered too.

In practice this means a better foundation may be:

"I go for walks because it helps me sleep better and my back hurts less"

rather than:

"I have to hit 10,000 steps or the day does not count."

The more a behaviour fits your life and carries personal meaning for you, the less likely it is to remain a project that lasts a few weeks.

Choose an activity you do not hate

This may sound obvious, but it matters.

If every training session requires an hour of talking yourself into it, it is hard to expect the behaviour to stay easy to maintain for years.

Trainers and a racket on a tennis court – an activity chosen because it is enjoyable

Research on habit formation indicates that positive feelings associated with the behaviour can support its automation. In a 2024 systematic review, individual choice of the behaviour and the feelings connected with it were among the relevant factors.

This does not mean every workout has to be a pleasure.

But if you dislike running, health does not require you to become a runner.

Walks, cycling, swimming, dancing or strength training may work better.

The same goes for diet.

An eating plan built from foods you dislike can be "perfect" on paper and completely ineffective in real life.

One worse day does not destroy a habit

One of the biggest threats to lasting change is the thought:

"I skipped today's workout, so the whole plan is ruined."

That often triggers a very characteristic pattern.

One instance of the behaviour did not happen, so instead of returning to it the next day, we declare the whole process finished.

Meanwhile, in real life, breaks are unavoidable.

We get ill. We travel. We have more demanding periods at work. Children are born. Schedules change.

A review of lapse and relapse in dietary and physical activity change shows that one of the most consistent factors associated with lower risk of returning to previous behaviours is self-efficacy.

So more useful than perfection is developing the skill of:

"I know how to get back to my behaviour after a break."

A habit that only works during a perfect week is not yet ready for real life.

Prepare a plan for harder days

If you regularly skip training when you get home late from work, you do not need another motivational speech.

You need a plan B.

For example:

Plan A: 45 minutes of training.

Plan B: if I get home late, I do 15 minutes of exercise at home.

Minimum plan: if the day falls apart completely, I go for a 10-minute walk.

The same applies to food.

If you usually cook dinner but have no time on a difficult day, it helps to know in advance which quick meal you can prepare or buy.

Effective behaviour change interventions often use exactly this problem solving: anticipating barriers and preparing ways to cope with them.

Do not design the plan only for your most motivated version.

Design it also for yourself after a badly slept night in the middle of a hard week.

Do not change everything at once

A new way of eating.

Five workouts.

Eight hours of sleep.

Zero sweets.

Daily meditation.

Ten thousand steps.

Two litres of water.

Is it possible to live like that? Of course.

But starting all of these changes on one day requires an enormous number of new decisions and a reorganisation of everyday life.

It is far easier to start with one or two behaviours that bring real benefit.

Only once they become relatively stable is it worth adding more.

Lasting health does not have to be built during one "perfect month".

It is built over months and years. That is, after all, the essence of preventive medicine: action taken before disease appears.

The goal should describe a behaviour, not only an outcome

  • I will lose 10 kg
  • I will lower my cholesterol

These are outcomes influenced by many different factors.

We have far more control over actions:

  • Three times a week I go for a 30-minute walk
  • I add vegetables to lunch and dinner
  • On workdays I make breakfast before leaving the house
  • At 10:30 pm I put the phone outside the bedroom

The health outcome still matters, but day to day it is better to track the behaviours that can lead to it.

Contemporary research on behaviour change highlights three consecutive challenges: building motivation, translating intention into action, and consolidating the behaviour into a habit. "I want to change something" is therefore only the first stage.

How to build a habit in practice

Let's say you want to increase your physical activity.

Instead of "from now on I move more",

set:

Behaviour: a 15-minute walk.

Cue: finishing dinner.

Place: the route around the house.

Plan: I head out right after the meal.

Backup plan: if it rains, I do 10 minutes of movement at home.

Tracking: I mark it off in the calendar.

Review point: after 3–4 weeks I check whether the plan is realistic and whether I want to extend the walk.

It does not look as spectacular as "a new life starting Monday".

And that is exactly why it has a chance of lasting longer.

Summary

Lasting health habits are not built by following a plan perfectly for a few weeks.

They are built through repeated performance of a relatively simple behaviour in conditions that are as stable as possible.

So instead of asking:

"How do I motivate myself to always do this?"

it is worth asking:

"How do I make performing this behaviour simpler?"

Choose a specific action.

Attach it to a specific situation.

Start with a version you can repeat.

Prepare your environment.

Track only what genuinely helps you.

Plan what you will do on a harder day.

And above all, do not treat a single deviation as the end of the whole process.

Because a healthy lifestyle does not come from doing everything perfectly for 30 days.

It comes from healthy behaviours having somewhere to return to, including after the days when nothing went to plan.

Frequently asked questions

How long does it take to build a habit?

There is no single number. The most recent systematic review indicates that across the available studies the median time to form health habits was around 59–66 days, but differences between people were enormous. For some the process took a few weeks, for others many months.

Are 21 days enough to form a habit?

They may be enough to start a change, but there is no scientific basis for the claim that after 21 days a behaviour automatically becomes a habit. It is one of the most frequently repeated myths about lifestyle change.

Does one day off destroy a habit?

No. A single break does not mean starting the whole process from scratch. What matters far more is whether you can return to the behaviour afterwards, and breaks in real life are unavoidable.

Is a habit tracker worth using?

It can help, especially at the beginning. Self-monitoring is one of the well-described techniques supporting behaviour change. A tracker should simplify the process, though, not add pressure. If the information you collect does not help you make a decision, you probably do not need to collect it.

What if I constantly lack motivation?

Check whether the problem really is motivation. Sometimes the obstacle is an overly ambitious plan, lack of time, missing groceries, a difficult commute to the gym, or no specific moment for performing the behaviour. In that case, changing the system works better than trying to "motivate yourself more".

Is it better to start with one change?

Often yes, especially if the plan requires a major reorganisation of your life. A few simple behaviours can be introduced at once, but attempting a complete overhaul of diet, activity, sleep and recovery on a single day increases the number of things demanding constant attention.

What matters more: motivation or discipline?

Both can help, but the long-term aim is to reduce the number of situations in which every healthy behaviour requires a large dose of either. Repeating a behaviour in a stable context lets its automaticity grow over time.

Do rewards help build habits?

They can help with getting started, but not every behaviour is worth basing on external rewards. Research points to the importance of autonomous motivation and a sense of competence, meaning situations in which we see the point of the action ourselves and feel able to carry it out.

References

  1. Singh B. et al. Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its Determinants. Healthcare, 2024;12(23):2488.
  2. Hagger M.S. et al. Effects of habit formation interventions on physical activity habit strength: meta-analysis and meta-regression. International Journal of Behavioral Nutrition and Physical Activity, 2023.
  3. Kilb M. et al. Effects of behavioral performance, intrinsic reward value, and context stability on the formation of a higher-order nutrition habit: an intensive longitudinal diary study. International Journal of Behavioral Nutrition and Physical Activity, 2022.
  4. Kompf J. Implementation Intentions for Exercise and Physical Activity: Who Do They Work For? A Systematic Review. Journal of Physical Activity and Health, 2020;17(3):349–359.
  5. Zhang C.Q. et al. Making Specific Plan Improves Physical Activity and Healthy Eating for Community-Dwelling Patients With Chronic Conditions: A Systematic Review and Meta-Analysis. Frontiers in Public Health, 2022;10:721223.
  6. Zhang C.Q. et al. Behaviour change techniques that constitute effective planning interventions to improve physical activity and diet behaviour for people with chronic conditions: a systematic review. BMJ Open, 2022.
  7. Berry R., Kassavou A., Sutton S. Does self-monitoring diet and physical activity behaviors using digital technology support adults with obesity or overweight to lose weight? A systematic literature review with meta-analysis. Obesity Reviews, 2021;22(10):e13306.
  8. Laranjo L. et al. Do smartphone applications and activity trackers increase physical activity in adults? Systematic review, meta-analysis and metaregression. British Journal of Sports Medicine, 2021;55:422–432.
  9. Sheeran P. et al. Does increasing autonomous motivation or perceived competence lead to health behavior change? A meta-analysis. Health Psychology, 2021;40(10):706–716.
  10. Roordink E.M. et al. Predictors of lapse and relapse in physical activity and dietary behaviour: a systematic search and review on prospective studies. Psychology & Health, 2023;38(5):623–646.
  11. Zhu L. et al. Not all cues are equal: A systematic review and three-level meta-analysis of context consistency, physical activity and habit strength. Applied Psychology: Health and Well-Being, 2026.
  12. Voelkel J.G., Milkman K.L., Duckworth A.L. Behavior Change. Annual Review of Psychology, 2026. doi:10.1146/annurev-psych-031626-111545.
How to build health habits that last longer than a few weeks