The Psychology of Habit Formation: Why Good Habits Stick and Bad Ones Are So Hard to Break
- 1 day ago
- 6 min read
Every day, we make thousands of decisions, yet many of our behaviours happen almost automatically. Brushing your teeth, checking your phone after waking up, putting on a seatbelt, or making a cup of coffee often require little conscious thought. These are habits: behaviours that have become so ingrained through repetition that they are performed with minimal mental effort.

Habits can work for us or against us. Healthy habits such as exercising regularly or preparing nutritious meals can improve our physical and mental wellbeing, while less helpful habits, such as procrastinating or mindlessly scrolling through social media, can be difficult to change despite our best intentions.
Understanding how habits are formed and maintained is the first step towards changing them. Fortunately, psychology and neuroscience have taught us a great deal about why habits develop and how we can reshape them.
What Is a Habit?
A habit is a behaviour that is triggered automatically by a particular context or cue because it has been repeated many times before. Unlike deliberate decisions, habits require relatively little conscious effort.
When we first learn a new behaviour, it requires attention and self-control. Over time, however, the brain becomes more efficient. The behaviour gradually shifts from conscious decision-making to automatic execution.
This efficiency is one of the brain's greatest strengths. If every daily action required careful thought, we would quickly become mentally exhausted. Habits free up cognitive resources so we can focus on new or more complex tasks.
Why the Brain Forms Habits
From an evolutionary perspective, habits help us conserve energy. The brain is an energy-intensive organ, and automating frequently repeated behaviours reduces the mental effort required to navigate everyday life.
Research suggests that habit formation involves a gradual shift in activity from areas of the brain associated with conscious planning, such as the prefrontal cortex, towards the basal ganglia, a group of structures involved in learning, routine behaviours, and automatic actions.
This is why habits often continue even when we are no longer actively thinking about them.
The Habit Loop
One of the best-known models of habit formation is the habit loop, originally described in behavioural psychology and later popularised by Charles Duhigg. It consists of three components:
Cue
A habit begins with a cue, something that signals the brain to initiate a behaviour. Common cues include:
a particular time of day
a location
an emotional state
another person
a preceding behaviour
For example, walking into the kitchen may trigger making coffee, or feeling stressed may prompt reaching for snacks.
Routine
The routine is the behaviour itself. This may be physical, such as going for a run, or mental, such as worrying about tomorrow's meeting.
Reward
Finally, the behaviour produces some form of reward. Rewards do not always have to be pleasurable. They simply need to satisfy a need or reduce discomfort. For example:
coffee reduces tiredness
exercise creates feelings of accomplishment
checking your phone reduces curiosity or boredom
procrastination temporarily relieves anxiety about a difficult task
The brain gradually learns to associate the cue with the reward, strengthening the habit over time.
Why Bad Habits Are So Difficult to Break
Many people assume that breaking habits is simply a matter of willpower. In reality, habits persist because they are deeply embedded neural patterns.
Importantly, the brain rarely erases old habits completely. Instead, new habits compete with older ones.
This explains why stressful situations often cause people to revert to previous behaviours, even after months of progress.
Bad habits also tend to provide immediate rewards, while the benefits of good habits are often delayed.
For example:
eating sugary food produces immediate pleasure
avoiding difficult work provides immediate relief
scrolling social media offers instant stimulation
By contrast:
regular exercise improves health gradually
saving money produces benefits months or years later
learning a language requires sustained effort before noticeable progress appears
Our brains naturally favour immediate rewards over delayed ones, making unhealthy habits surprisingly attractive.
The Role of Context
Habits are strongly linked to environmental cues. Many people believe behaviour is determined primarily by motivation, yet research suggests our surroundings play a major role in shaping what we do.
Consider someone trying to eat more healthily.
If fresh fruit is visible on the kitchen counter while sweets are stored out of sight, healthy choices become easier.
Likewise, keeping your phone in another room while working reduces the likelihood of checking it automatically.
Rather than relying entirely on self-control, changing the environment often changes behaviour.
How Long Does It Take to Form a Habit?
One of the most common myths is that it takes exactly 21 days to form a habit.
There is no scientific evidence supporting this claim.
A well-known study by Phillippa Lally and colleagues found that habit formation varied considerably between individuals and behaviours. On average, automaticity developed over approximately 66 days, although the range extended from 18 to 254 days.
This highlights an important point: consistency matters far more than speed.
Missing one day is unlikely to undo progress, but regularly repeating the behaviour is what gradually strengthens the habit.
Evidence-Based Strategies for Building Better Habits
Psychological research suggests several strategies that increase the likelihood of successful habit formation.
Start Small: One of the biggest mistakes people make is trying to change too much at once.
Small behaviours are easier to repeat consistently than ambitious goals. Instead of committing to an hour at the gym every day, begin with ten minutes of walking.
Success builds momentum.
Make the Desired Behaviour Easy: According to behavioural scientist B. J. Fogg, habits are more likely to develop when they require little effort. Prepare gym clothes the night before.
Place a book on your pillow if you want to read before bed. Reduce as many barriers as possible.
Attach New Habits to Existing Ones: A technique known as habit stacking involves linking a new behaviour to one that already happens automatically. For example:
After brushing my teeth, I will meditate for two minutes.
After making coffee, I will write tomorrow's priorities.
After dinner, I will take a short walk.
Existing habits provide reliable cues for new behaviours.
Focus on Repetition Rather Than Motivation: Motivation naturally fluctuates. Habits develop through repetition, not through feeling inspired every day. Even on low-motivation days, completing a very small version of the behaviour helps strengthen the underlying neural pathway.
Expect Setbacks: Breaking a habit or building a new one is rarely a straight line. Missing one workout, eating unhealthily for one day, or forgetting a meditation session does not erase previous progress. Research suggests self-compassion after setbacks is often more effective than self-criticism because it increases the likelihood of returning to the desired behaviour.
Habits and Mental Health
Habits also play an important role in mental wellbeing. Regular sleep schedules, physical activity, social connection, relaxation practices, and mindfulness can all become automatic habits that support emotional resilience.
Conversely, repeated patterns of rumination, avoidance, excessive reassurance-seeking, or constant checking behaviours can become habitual and contribute to stress and anxiety.
This is one reason why approaches such as cognitive behavioural therapy (CBT) often focus on changing behavioural patterns alongside thoughts. By repeatedly practising healthier responses, individuals gradually establish new habits that support psychological wellbeing.
Final Thoughts
Habits are not simply matters of discipline or willpower. They are the result of repeated interactions between our brains, our environment, and our behaviour.
The encouraging news is that habits are not fixed. While old patterns may never disappear completely, new ones can be built through consistent repetition, supportive environments, and realistic expectations.
Small changes, repeated over time, often produce the greatest transformations. By understanding how habits work, we can stop relying solely on motivation and begin designing daily routines that make healthy behaviours easier and more automatic.
References
Duhigg, C. (2012). The Power of Habit: Why We Do What We Do in Life and Business. Random House.
Fogg, B. J. (2019). Tiny Habits: The Small Changes That Change Everything. Houghton Mifflin Harcourt.
Gardner, B. (2015). A review and analysis of the use of 'habit' in understanding, predicting and influencing health-related behaviour. Health Psychology Review, 9(3), 277–295. https://doi.org/10.1080/17437199.2013.876238
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
Wood, W., & Neal, D. T. (2007). A new look at habits and the habit-goal interface. Psychological Review, 114(4), 843–863. https://doi.org/10.1037/0033-295X.114.4.843
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


