Psychology of Habits: Formation, Change and Breaking Bad Habits
How repeated behavior in a stable context becomes automatic, why habits outlast good intentions, and what research says about building new ones and breaking old ones.
On this page
- The Habit Loop
- Neuroscience of Habits
- Habit Formation Process
- Types of Habits
- Building Good Habits
- Breaking Bad Habits
- Common Habit Categories
- Habit and Addiction
- Environmental Design for Habits
- Habit Tracking and Measurement
- Willpower and Self-Control
- Cultural and Social Aspects
- Habit Change in Different Life Stages
- Technology and Digital Habits
- Workplace Habits
- Common Challenges and Solutions
- Research and Future Directions
- Practical Habit Experiments
- Conclusion
- Frequently asked questions
- Sources
In psychology, a habit is a behavior that is triggered automatically by a cue in a familiar context, because it has been repeated and rewarded in that context many times. Brushing your teeth after breakfast, reaching for your phone when you sit on the sofa, or taking the same route to work are all habits: once the cue appears, the behavior follows with little conscious thought.
Habits matter because they are so common. In diary studies by Wendy Wood and colleagues (2002), roughly 43% of the everyday actions people recorded were performed almost daily in the same context, usually while they were thinking about something else. The psychology of habits explains how this automaticity develops, why it makes habits so persistent, and how people can use that knowledge to build helpful routines and break unhelpful ones.
The Habit Loop
A widely used way to describe habits is the habit loop, popularized by journalist Charles Duhigg in The Power of Habit (2012): a cue triggers a routine, which leads to a reward. The model simplifies a much older body of learning research. In operant conditioning, behavior followed by reward becomes more likely; in classical conditioning, neutral cues become linked to outcomes. Habits combine both: a context becomes linked to a response through repeated reinforcement.
Cues
Cues can be a location (the kitchen), a time (after lunch), an emotional state (boredom, stress), other people (a particular friend), or a preceding action (finishing a meal). Research shows that the most powerful cues are stable features of the context that occur reliably before the behavior.
Routines
The routine is the behavior itself. It can be physical (snacking, running), mental (a habitual train of worry) or social (always calling a parent on Sunday).
Rewards
Rewards reinforce the link: pleasure, relief from discomfort, social connection or a sense of accomplishment. Immediate rewards are especially powerful, which is why behaviors with instant payoffs, like checking notifications, become habits more easily than those with delayed benefits, like saving money.
Craving and anticipation
Writers such as James Clear add craving as a fourth element. In neuroscience terms, this reflects the distinction Kent Berridge and Terry Robinson drew between "wanting" (anticipation of reward, linked to dopamine) and "liking" (actual enjoyment). Over time, the cue itself can generate wanting, even when the behavior is no longer very enjoyable.
Neuroscience of Habits
Brain regions involved
Research in animals and humans shows a shift in control as behaviors become habitual. Early on, goal-directed behavior relies on circuits involving the prefrontal cortex and the dorsomedial striatum. With repetition, control moves toward the dorsolateral striatum, part of the basal ganglia, which supports automatic stimulus-response behavior. Ann Graybiel's studies in rats found that neurons in the striatum come to fire mainly at the beginning and end of a well-learned sequence, as if the whole routine were packaged into a single "chunk".
Dopamine and prediction error
Dopamine neurons respond strongly to unexpected rewards. Wolfram Schultz's work showed that as learning proceeds, dopamine responses shift from the reward itself to the cue that predicts it. This reward prediction error signal helps stamp in cue-behavior links. Once a habit is established, behavior depends less on the value of the reward.
Automaticity and insensitivity to outcomes
A hallmark of habits in the lab is outcome devaluation: animals trained extensively keep pressing a lever even after the food reward has been made unappealing, while lightly trained animals stop. People show a similar pattern. In a study by David Neal, Wendy Wood and colleagues (2011), people who habitually ate popcorn at the cinema ate about as much stale popcorn as fresh popcorn when in a cinema, but not when watching clips in a meeting room. The context, not the taste, drove the behavior.
Habit Formation Process
How habits develop
Habit formation typically moves from a deliberate decision, through repeated practice in a consistent context, to automaticity, where the behavior happens with little thought. Psychologists Benjamin Gardner, Phillippa Lally and Jane Wardle summarize the recipe simply: decide on a behavior, choose a cue, and repeat the behavior every time the cue occurs.
The 66-day study
Lally and colleagues (2010) asked 96 volunteers to perform a new eating, drinking or exercise behavior once a day in the same context for 12 weeks, rating how automatic it felt. Automaticity rose steeply at first, then levelled off. The median time to reach 95% of the plateau was 66 days, but individual times ranged from 18 to 254 days. Simple behaviors such as drinking a glass of water became automatic faster than doing 50 sit-ups, and missing one day had little effect on the overall curve.
What speeds habit formation
Habits form faster when the behavior is simple, performed frequently (daily rather than weekly), done in the same context each time, and followed by an immediate, satisfying outcome. Personal motivation matters for starting but matters less once the habit is established.
Types of Habits
Keystone habits
Duhigg used the term "keystone habits" for behaviors that seem to trigger changes in other areas. Regular exercise, for example, is associated with better sleep and eating. The idea is intuitive, but evidence for specific keystone effects is limited and mostly correlational.
Tiny habits
Behavior scientist BJ Fogg's "tiny habits" approach starts with a very small version of a behavior, such as one push-up or flossing one tooth, anchored to an existing routine. Small behaviors lower the barrier to starting and still provide repetition in context, which is what habit strength depends on.
Identity-based habits
Some writers suggest framing habits around identity ("I am someone who exercises"). Research on self-concept suggests that behaviors aligned with identity can be more sustainable, though this specific framing has been tested less than cue-based strategies.
Social habits
Many habits are shaped by the people around us. Social norms, shared routines and accountability partners all influence which behaviors are repeated. See social influence.
Building Good Habits
James Clear's popular "four laws" (make it obvious, attractive, easy and satisfying) summarize several research-supported principles. The most robust strategies are:
- Form if-then plans. Peter Gollwitzer's implementation intentions ("If it is 7 a.m. and I have made coffee, then I will walk for ten minutes") had a medium-to-large effect on goal attainment in a meta-analysis of 94 studies.
- Use a stable cue. Attach the new behavior to something you already do every day, a strategy often called habit stacking.
- Reduce friction. Make the behavior easier: lay out exercise clothes, keep fruit visible, set up automatic savings transfers. Wood's research emphasizes that small changes in effort have large effects on repeated behavior.
- Make it rewarding now. Pair the behavior with something enjoyable (Katherine Milkman's "temptation bundling", such as listening to a favorite podcast only while exercising) or track progress visibly.
- Repeat consistently. Frequency in the same context is what builds automaticity. If you miss a day, simply resume; Lally found that occasional misses do not reset progress.
Setting clear, specific goals helps at the start; see goal setting and self-discipline.
Breaking Bad Habits
Because habits are triggered by context, the most effective ways to break them target the cue and the effort involved, rather than relying on resisting the urge each time.
Change or avoid the cue
Removing triggers from the environment, such as keeping snacks out of sight, moving the phone charger out of the bedroom or deleting an app, prevents the habit from being activated. Bas Verplanken's habit discontinuity hypothesis suggests that life changes such as moving house create a window when old cues disappear and new behaviors are easier to establish.
Add friction
Making an unwanted behavior slightly harder (logging out of social media, leaving cards at home) reduces how often it happens.
Vigilant monitoring
Quinn, Wood and colleagues found that "vigilant monitoring", deliberately watching for the cue and thinking "don't do it", was one of the more effective in-the-moment strategies for resisting strong habits, more so than distraction.
Replace the routine
Because habits often meet a need (stress relief, a break, social contact), replacing the routine with a healthier one that meets the same need, in response to the same cue, can be more sustainable than simply stopping.
Expect an extinction burst
In learning theory, when a reinforced behavior stops being rewarded it often increases briefly before declining, known as an extinction burst. A temporary surge in urges is common and does not mean the effort is failing. Skills such as urge surfing can help.
Common Habit Categories
Habit research has been applied most extensively to health (physical activity, eating, sleep, medication routines), productivity (planning, focused work, email routines), learning (regular study and practice) and relationships (regular check-ins, expressions of appreciation). In health care, building simple habits is increasingly recommended because, once established, they persist even when motivation dips.
Habit and Addiction
Habits and addictions share learning mechanisms, and some researchers, such as Barry Everitt and Trevor Robbins, have proposed that addiction involves a transition from goal-directed drug use to habitual and then compulsive use. But addiction is more than a strong habit. Clinical descriptions in the DSM-5-TR include impaired control, continued use despite harm, cravings and, for some substances, tolerance and withdrawal. Only a qualified professional can assess these.
Habit-based strategies such as identifying triggers, changing environments and building alternative rewards are part of many recovery approaches. Anyone concerned about substance use or other addictive behaviors should seek professional support. See the psychology of addiction.
Environmental Design for Habits
Choice architecture, a term from Richard Thaler and Cass Sunstein's work in behavioral economics, describes how the way options are presented shapes behavior. Defaults, proximity, visibility and convenience all influence repeated choices. Practical examples include placing water bottles where you work, keeping a book on your pillow, putting the phone in another room at night, and designating a specific space for focused work. Social environments matter too: shared routines with a partner or friend can support consistency.
Habit Tracking and Measurement
Researchers often measure habit strength with the Self-Report Habit Index (Verplanken and Orbell, 2003) or its shorter automaticity subscale, which asks whether a behavior is something you do "automatically" or "without thinking". In daily life, simple tracking, such as marking a calendar or using a habit app, provides feedback and a visible streak. Self-monitoring is one of the more consistently effective behavior change techniques in health research, though it works best when it informs adjustments rather than becoming a source of guilt.
Willpower and Self-Control
The idea that willpower is a limited resource that runs out (ego depletion) was influential but has not held up well in large replications. Habit research offers a different view: people with good self-control often succeed because they have built helpful habits and avoid temptations, not because they resist harder. Wood and colleagues found that strong habits, good or bad, tend to be performed even when people are tired or stressed, which is a reason to invest in helpful habits during calmer times.
Self-compassion also matters. People who respond to lapses with harsh self-criticism are more likely to give up, while those who treat a slip as information tend to persist. See self-compassion practice.
Cultural and Social Aspects
Many habits, from meal times to greeting rituals to technology use, are culturally shaped. Social networks also influence behavior: research by Nicholas Christakis and James Fowler suggested behaviors such as smoking and weight gain cluster in social networks, though the extent to which these spread causally is debated. Practically, spending time with people whose routines you would like to share makes those routines easier to adopt.
Habit Change in Different Life Stages
Children learn many habits through modelling and family routines, so consistent household structure supports healthy habits such as regular sleep. Adolescence brings new peer-influenced habits and more independence over technology use. In adulthood, major transitions such as starting work, becoming a parent or retiring disrupt old cues and offer opportunities, consistent with the habit discontinuity hypothesis. In later life, established routines can support memory and daily functioning, and habit-based strategies are used to help people keep up activity and medication routines.
Technology and Digital Habits
Many apps are designed to be habit-forming. Notifications act as cues, and feeds deliver unpredictable rewards, a variable-ratio reinforcement schedule that learning research shows produces persistent behavior. Streaks and progress bars add immediate satisfaction. Strategies for managing digital habits include turning off non-essential notifications, moving tempting apps off the home screen, setting device-free times or places, and replacing automatic scrolling with a planned alternative. See social media and mental health.
Workplace Habits
At work, habits shape how people start the day, manage email, run meetings and take breaks. Teams develop shared habits as well: communication norms, feedback routines and ways of handling problems. Changing team habits often works best by changing shared cues and defaults, such as meeting structures or default meeting lengths, rather than relying on individual resolutions.
Common Challenges and Solutions
| Challenge | Research-informed response |
|---|---|
| Trying to change too much at once | Start with one small behavior tied to a clear cue |
| Low motivation | Shrink the behavior until it is easy, then repeat |
| Forgetting | Use a stable existing routine or visible reminder as the cue |
| Missing a day | Resume the next day; occasional misses do not reset progress |
| Life changes disrupt routines | Rebuild cues deliberately in the new context |
| Urges to return to old habits | Avoid cues, add friction, monitor vigilantly, and plan for high-risk situations |
Research and Future Directions
Active research questions include how best to measure automaticity outside self-report, why habit formation times vary so much between people, how digital tools such as reminders and app-based tracking can support habits without creating dependence, and how habit strategies can be built into health care for conditions requiring long-term routines. Researchers are also studying how to make helpful habits resistant to disruption by stress and life changes.
Practical Habit Experiments
A 30-day habit experiment
Pick one simple behavior, choose a specific cue, perform it every time the cue occurs, and track it daily. Note how automatic it feels each week. Remember that 30 days is a starting point; many habits take longer.
A habit swap
Choose one unwanted habit, identify its cue and what need it meets, and plan a replacement behavior that meets the same need in response to the same cue. Practise for a week and review what made it easier or harder.
An environment audit
Walk through your home, workspace and phone. Note which cues prompt behaviors you want and which prompt behaviors you do not. Make one change to each: add a prompt for a good habit and remove or hide a cue for an unwanted one.
Conclusion
Habits are the brain's way of saving effort: behaviors repeated in a stable context gradually shift from deliberate choice to automatic response. That efficiency is why habits are so persistent, and also why they can be shaped deliberately. The research points to a consistent lesson: rather than relying on willpower, choose clear cues, make good behaviors easy and rewarding, make unwanted ones harder, and repeat patiently. Change takes weeks to months, setbacks are normal, and steady repetition does the work. For more on related topics, see behavior change and the psychology of motivation.
Frequently asked questions
How long does it take to form a habit?
The best-known study, by Phillippa Lally and colleagues at University College London (2010), followed 96 people adopting a new daily behavior. Automaticity reached its plateau after a median of 66 days, but the range ran from 18 to 254 days, and simple behaviors such as drinking water formed faster than exercise. Missing an occasional day did not significantly derail progress. The popular '21 days' figure has no scientific basis.
What is the habit loop?
The habit loop is a popular summary, made famous by journalist Charles Duhigg, of how habits work: a cue triggers a routine, which is followed by a reward. With repetition, the cue alone comes to trigger the routine automatically. The idea is grounded in learning research on reinforcement and in neuroscience studies, such as Ann Graybiel's, of how the basal ganglia 'chunk' repeated action sequences.
Why is it so hard to break a bad habit?
Once a habit is established, it is triggered by cues in the environment rather than by conscious goals, so good intentions often fail at the moment of action. Research by Wendy Wood and David Neal found that people continued habitual behaviors, such as eating popcorn in a cinema, even when the popcorn was stale. Changing or avoiding the cues, adding friction and practising a replacement behavior work better than relying on willpower.
Are habits and addictions the same thing?
No, although they share learning mechanisms. Habits are automatic behaviors that can be helpful or unhelpful. Addiction involves compulsive use despite serious harm, strong cravings and loss of control, and clinical diagnoses such as substance use disorder have specific criteria in the DSM-5-TR. Habit strategies can support recovery, but anyone concerned about addiction should seek assessment and support from a qualified professional.
What is habit stacking?
Habit stacking means attaching a new behavior to an existing routine: 'After I pour my morning coffee, I will write my to-do list.' It is a practical application of implementation intentions, the if-then plans studied by Peter Gollwitzer, which consistently improve follow-through. Using a reliable existing habit as the cue gives the new behavior a stable trigger, which is what habit formation depends on.
Sources
- Wood, W., Quinn, J. M., & Kashy, D. A. (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology, 83(6), 1281–1297.
- 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.
- Wood, W., & Rünger, D. (2016). Psychology of habit. Annual Review of Psychology, 67, 289–314.
- Wood, W., & Neal, D. T. (2007). A new look at habits and the habit-goal interface. Psychological Review, 114(4), 843–863.
- Graybiel, A. M. (2008). Habits, rituals, and the evaluative brain. Annual Review of Neuroscience, 31, 359–387.
- Gollwitzer, P. M., & Sheeran, P. (2006). Implementation intentions and goal achievement: A meta-analysis of effects and processes. Advances in Experimental Social Psychology, 38, 69–119.
- Gardner, B., Lally, P., & Wardle, J. (2012). Making health habitual: The psychology of 'habit-formation' and general practice. British Journal of General Practice, 62(605), 664–666.
- Neal, D. T., Wood, W., Wu, M., & Kurlander, D. (2011). The pull of the past: When do habits persist despite conflict with motives? Personality and Social Psychology Bulletin, 37(11), 1428–1437.