Start your routine
Motivation

Habit formation and the science of habits that stick

By Ultiself Editorial Team Updated 9 min read

Bright kitchen counter in the morning with everyday items

Some behaviors happen almost by themselves, like brushing your teeth or reaching for your phone, while others, like exercising or reading, seem to need a fresh decision every day. The difference lies in how habits form. In this article, we look at what habit formation is, what happens as a behavior becomes automatic, how long the process really takes and which practical steps make new habits more likely to stick.

What is habit formation?

Habit formation is the process by which a behavior becomes automatic through repetition in a stable context. At first, a new behavior takes conscious effort: you have to remember it, decide to do it and push through resistance. With enough repetition in the same situation, the situation itself starts to trigger the behavior, and the effort fades. That shift from deliberate choice to automatic response is what psychologists mean by a habit.

Habits play a much larger role in daily life than most people realize. In diary studies by Wendy Wood, Jeffrey Quinn and Deborah Kashy, people recorded what they were doing every hour. Around 43% of the behaviors in one study were performed almost daily, usually in the same place, and often while people were thinking about something else [1]. Brushing your teeth, making coffee or checking your phone in the same moments each day are all examples.

Habits versus goals and motivation

Goals and motivation get you started, but habits keep you going. Researchers David Neal, Wendy Wood and Jeffrey Quinn describe habits as responses that are triggered automatically by context cues that have repeatedly been linked with them in the past [2]. Once a habit has formed, it no longer depends heavily on how motivated you feel that day.

This explains why willpower alone often fails. Motivation rises and falls with mood, sleep and stress, while a well-formed habit runs with little mental effort. The aim of habit formation is to move a behavior from the motivation system to the automatic system, so it keeps happening even on difficult days.

Good and bad habits form the same way

The brain does not distinguish between helpful and unhelpful habits. The same process that turns a morning walk into an automatic routine also turns late-night scrolling or snacking in front of the TV into a habit. Both are learned through repetition in a stable context and both are triggered by cues rather than fresh decisions.

This is useful to know, because it means unwanted habits are not a sign of weak character. They are simply well-practiced patterns. Changing them usually works better by changing cues and environments, and by building a new behavior in the same slot, than by relying on willpower to resist every time.

How habits are formed in the brain

Most models of habit formation describe a simple loop with three parts. A cue triggers the behavior, the behavior itself is carried out and some form of reward or satisfaction follows. Each time this loop repeats in the same context, the link between the cue and the behavior grows a little stronger.

Psychologists Wendy Wood and Dennis Rünger explain that as habits strengthen, the behavior becomes less dependent on the goal that first started it [3]. Early on, you go for a run because you want to get fitter. Later, putting on your running shoes after work simply leads to running, almost without a decision.

Part of the loopWhat it isExample
CueA time, place, action or feeling that triggers the habitFinishing breakfast
BehaviorThe action you repeatTaking a 10-minute walk
RewardThe satisfaction or benefit that followsFresh air and a clear head

The cue is often the most important and the most overlooked part. A vague intention like "I will exercise more" has no cue, so it relies on remembering and deciding every day. A clear cue, such as "after I drop the kids at school", does the remembering for you.

Why context matters so much

Habits are closely tied to the situations in which they are repeated. This is why habits are often disrupted by travel, moving house or starting a new job, and why those moments can also be good opportunities to start new ones. When the old cues disappear, the old habits lose some of their pull, and there is space for new patterns to form.

You can use this in everyday life by shaping your environment. Keeping a water bottle on your desk, placing a book on your pillow or leaving workout clothes by the door all create cues that make the desired behavior easier to start. Removing cues works in the opposite direction, for example keeping your phone in another room during focused work.

How long does habit formation take?

The popular claim that habits form in 21 days is not supported by research. In the best-known study by Phillippa Lally and colleagues, it took a median of 66 days for a new daily behavior to reach its peak level of automaticity, with individual times ranging from 18 to 254 days [4]. Simpler behaviors, such as drinking a glass of water after breakfast, tended to become automatic faster than more demanding ones like exercising.

A more recent systematic review by Ben Singh and colleagues reached a similar conclusion. Across the studies that reported timelines, median times to form a habit ranged from 59 to 66 days, and individual times ranged from 4 to 335 days [5]. The review also found that how often a behavior was performed, whether it was done in the morning and whether people chose it themselves all influenced how quickly habits formed.

Missing a day now and then does not appear to derail the process. In Lally's study, missing one opportunity did not materially affect habit formation [4]. What matters most is returning to the behavior quickly and keeping the overall pattern consistent. Our guide on [how long it takes to build a habit](https://ultiself.com/blog/how-long-does-it-take-to-build-a-habit) explains these timelines in more detail.

How to form a new habit that sticks

Health psychologists Benjamin Gardner, Phillippa Lally and Jane Wardle suggested a simple approach for building habits: choose a simple action, link it to a cue that happens every day and repeat it consistently in that context [6]. The practices below build on that idea and on the research described above.

You do not need to follow every step perfectly. Most people find that a clear cue and a very small starting version of the habit make the biggest difference, because together they lower the effort needed to repeat the behavior day after day.

Start smaller than you think

Big habits are hard to repeat consistently, and consistency is what drives automaticity. Begin with a version of the habit so small that it feels almost too easy, such as two minutes of stretching or reading one page. Once the behavior happens reliably, you can increase it gradually. A tiny habit done every day usually becomes automatic faster than an ambitious habit done occasionally.

Choose a habit you actually want

Habits are easier to build when they reflect your own choice rather than someone else's expectations. The review by Singh and colleagues found that self-selected habits tended to show stronger results than assigned ones [5]. Before you commit, ask why this behavior matters to you and how it fits the life you want. A habit tied to your own reasons is easier to return to after a missed day.

Link the habit to a clear cue

Attach the new habit to something you already do every day. This approach, often called habit stacking, uses an existing routine as the cue, for example "after I pour my morning coffee, I will write three lines in my journal". The more stable and specific the cue, the stronger the link tends to become. Our guide on [what habit stacking is](https://ultiself.com/blog/what-is-habit-stacking) explains this method step by step.

Make it satisfying

Habits stick more easily when they feel good in the moment, not only in the long run. Choose a version of the habit you enjoy, pair it with something pleasant, such as a favorite podcast during a walk, or give yourself a small sense of completion by ticking it off. Seeing progress build up is a reward in itself.

Track your repetitions

Tracking helps in two ways. It reminds you to do the habit, and it shows you how consistent you have been over time. Looking back at a few weeks of recorded days often reveals patterns, such as which days are hardest, so you can adjust your cue or plan. It also makes it easier to return after a missed day instead of feeling that the effort has been wasted.

Common habit formation mistakes

The most common mistake is relying on motivation instead of design. People start with high energy, choose a demanding habit with no clear cue and stop when motivation fades a week or two later. Designing the habit around a cue, a small action and an easy environment is far more reliable than hoping to feel motivated every day.

Another frequent mistake is trying to build several new habits at the same time. Each new habit needs attention and repetition, and spreading effort across many changes makes it more likely that all of them fall away. Starting with one habit, then adding the next once the first feels automatic, is slower but usually more successful.

Finally, many people give up too early. Because the 21-day myth is so widespread, it is easy to feel discouraged when a habit still feels effortful after three weeks. Knowing that the typical timeline is closer to two months, and often longer, helps you keep going through the phase when the habit has not yet become automatic. Our guide on [how to stay motivated](https://ultiself.com/blog/how-to-stay-motivated) covers what to do in that middle stretch.

How to form a habit step by step

The plan below turns the science of habit formation into small steps, each linked to a habit you can track. Use it to build one new habit at a time. Start with the first step, then add the others as the habit settles into your days.

Give each new habit at least several weeks before judging whether it is working. Some habits will feel natural within a month, while others take longer, and both are normal.

StepWhy it may helpHabit to practice
Choose one habit and set a daily intentionFocusing on one behavior makes repetition easier[Set daily intentions](https://ultiself.com/habits/set-daily-intentions)
Plan when and where you will do itA clear cue links the habit to a stable context [2][Plan next day's tasks ahead](https://ultiself.com/habits/plan-next-days-tasks-ahead)
Start with a tiny version every dayConsistent repetition drives automaticity [4][Self-reinforcement](https://ultiself.com/habits/self-reinforcement)
Reflect on how the habit feltHelps you adjust the cue or the action[Reflecting on the day](https://ultiself.com/habits/reflecting-on-the-day)
Review your progress each weekShows patterns and keeps you consistent[Weekly review and reflection](https://ultiself.com/habits/weekly-review-reflection)
Respond to missed days with kindnessReturning quickly matters more than a perfect streak[Practice self-compassion affirmations](https://ultiself.com/habits/practice-self-compassion-affirmations)

Ultiself is a habit tracking app, and you can add your new habit to a routine and record each day you complete it. Watching the repetitions add up over several weeks shows how a deliberate effort gradually turns into something you simply do.

Common questions

What is habit formation?

Habit formation is the process by which a behavior becomes automatic through repetition in a consistent context, so that the situation itself starts to trigger the behavior with little conscious effort.

How are habits formed in the brain?

Habits form through a repeated loop of cue, behavior and reward. Each repetition in the same context strengthens the link between the cue and the behavior until it becomes largely automatic.

How long does it take to form a habit?

Research suggests a median of around two months, with large individual differences. In one study, times ranged from 18 to 254 days, and a later review found a range of 4 to 335 days.

What is the habit loop?

The habit loop describes three parts of a habit: a cue that triggers the behavior, the behavior itself and a reward or satisfaction that follows.

Does missing a day ruin a habit?

No. Research suggests that missing a single day does not materially affect habit formation. Returning to the habit quickly matters more than a perfect streak.

Sources

  1. Wood W, Quinn JM, Kashy DA. Habits in everyday life: thought, emotion, and action. Journal of Personality and Social Psychology, 2002.
  2. Neal DT, Wood W, Quinn JM. Habits: a repeat performance. Current Directions in Psychological Science, 2006.
  3. Wood W, Rünger D. Psychology of habit. Annual Review of Psychology, 2016.
  4. Lally P, van Jaarsveld CHM, Potts HWW, Wardle J. How are habits formed: modelling habit formation in the real world. European Journal of Social Psychology, 2010.
  5. Singh B, Murphy A, Maher C, Smith AE. Time to form a habit: a systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare, 2024.
  6. Gardner B, Lally P, Wardle J. Making health habitual: the psychology of habit-formation and general practice. British Journal of General Practice, 2012.

Keep reading

More guides from motivation.

Woman planning her daily routine in the Ultiself app at home

Personalize your progress

Get started with Ultiself app

Take the quiz