PsychologyLearning and behavior
Habit Formation: How Habits Form in the Brain and Mind

Habit formation is the process by which an action repeated in a stable setting becomes automatic, so that it starts with little conscious thought. Taking the same route to work or reaching for a phone on waking are everyday examples. Psychologists study how this learning happens, which brain systems support it and why the setting matters.
For general education about psychology, not medical or psychological advice. Disclaimer.
Contents
What is habit formation?
In everyday language, a habit is something a person does regularly and almost without thinking. Habit formation is the process by which such a behaviour becomes established, so that the same action follows reliably from the same situation. Psychologists describe the end state as automaticity: the action is set off by the environment rather than by a fresh decision each time.
Habit research uses a more formal definition. A habit is a learned link between a context and a response. Once the link is strong, the context triggers the response, and the person’s current goal plays a smaller part. Researchers therefore separate habitual behaviour from goal-directed behaviour, which depends on the person wanting a particular outcome and expecting an action to produce it.
The idea is old. William James devoted a chapter to habit in The Principles of Psychology (1890), where he called habit “the enormous fly-wheel of society”, meaning that routines keep social life steady. Modern work sits mainly in learning and behaviour psychology and in cognitive psychology. It uses laboratory tasks, diary studies, self-report questionnaires and brain imaging.
How habit formation works
Habit formation rests on learning theory. Edward Thorndike’s law of effect, set out in his early work on animal learning, held that a response followed by a satisfying result becomes more likely to recur. Thorndike’s puzzle box studies of cats were central to this. Ivan Pavlov showed how a cue can come to predict an event, and B. F. Skinner later studied how behaviour is shaped by its consequences, a process called operant conditioning.
Charles Duhigg’s popular account in The Power of Habit (2012) describes a habit loop with three parts: a cue, a routine and a reward. The cue is a signal such as a time of day, a place or an emotional state. The routine is the behaviour itself, and the reward reinforces the link. Duhigg drew on neuroscience research, but the loop is a teaching model rather than a formal law.
Repetition strengthens the link between cue and routine. In the 2010 study by Phillippa Lally and colleagues, the rate at which participants reported an action as automatic rose quickly at first and then levelled off. This pattern suggests that each repetition adds less than the one before, until the action is largely cue-driven. Wendy Wood and David Neal argued that the setting is the key cue, so a stable context speeds the process.
Examples of habit formation
Some examples come from daily routines that most people recognize. A commuter who takes the same route without checking a map, or someone who puts keys in the same bowl each evening, has built habits in which the setting prompts the action.
In school and university life, students often sit in the same seat in a lecture hall and open the same notebook at the start of each study session. Researchers view these as context-triggered routines rather than decisions made fresh each time.
At work, a common habit is opening the same email application first thing in the morning or running the same checklist before a meeting. Habits also shape money matters. A 2001 study by Brigitte Madrian and Dennis Shea found that workers enrolled automatically in a 401(k) retirement plan kept contributing at much higher rates than those who had to opt in. That result shows how a default can turn a choice into a routine.
Relationships also show habit at work. Greeting the same people at the same time each day or calling a family member on the same weekday are repeated actions tied to a stable cue. In each case, the setting does much of the work, and the person’s goal in the moment matters less.
The research behind habit formation
The best-known study is by Phillippa Lally, Cornelia van Jaarsveld, Henry Potts and Jane Wardle, published in the European Journal of Social Psychology in 2010. About 96 volunteers chose one daily behaviour, such as drinking a glass of water with lunch or eating a piece of fruit with breakfast, and reported each day whether they had done it. Automaticity was measured with a self-report index. The researchers reported a median of 66 days before automaticity levelled off, with a range of 18 to 254 days. Missing a single day did not appear to derail the process.
Wendy Wood, Jeffrey Quinn and Deborah Kashy (2002) used diary studies to examine everyday life. They found that about 43 percent of daily actions were performed almost every day in the same context. Their work suggested that habits form a large share of ordinary behaviour, not only unusual or rare routines.
Neuroscience adds a second line of evidence. Ann Graybiel and colleagues recorded neural activity in rats running mazes and found that striatal activity clustered at the start and end of a learned run. The authors linked this pattern to “chunking”, where a long sequence is compressed into one unit. The basal ganglia, a set of structures that includes the striatum, are central to this account.
Replication is partial. The broad finding that repetition in a stable setting builds automaticity has been supported by several studies. The specific timeline is less settled, because the Lally study used self-reports and a small sample, and the length of time needed varies widely between people and behaviours.
Habit and related ideas: goals, routines and planning
Habits are often confused with goals and routines. A goal is an outcome a person wants, while a habit is a response that continues without a fresh decision about that outcome. A routine is a sequence of actions a person plans or follows, and it may or may not be habitual. Someone who follows a planned morning sequence on purpose is following a routine, even if parts of it later become habits.
Peter Gollwitzer’s work on implementation intentions, reported in American Psychologist in 1999, is often discussed alongside habit research. An implementation intention links a situation to an action, such as a plan to do a task when a certain event occurs. Gollwitzer and colleagues argued that such plans help people act on goals, which is a different process from automatic habit.
Willpower research is also related. The ego depletion idea, which proposed that self-control draws on a limited resource, was tested in many studies, and later replication attempts found weaker effects than early reports suggested. Some researchers now regard habit and context as a more useful way to explain repeated behaviour than a fixed store of self-control.
Criticism and limits
The most cited timeline, the median of 66 days, is often misremembered as a fixed rule. The number comes from one study with a specific sample and self-report measures. The popular “21 days” claim came from the plastic surgeon Maxwell Maltz, who wrote in Psycho-Cybernetics (1960) that patients needed at least about 21 days to adjust to a change. Maltz’s observation was about adjustment, not habit learning, and later research did not support 21 days as a general figure.
Researchers also debate whether the habit loop describes all habits. Duhigg’s model is clear and widely used, but it simplifies the research. Some habits involve complex sequences, social rules or emotional cues that a simple loop does not capture. Measurement is another limit. Automaticity is often measured by asking people to rate their own habits, which may not match what they do.
Most early studies used small samples from Western countries, often university students or volunteers. Habits in other cultures, settings and age groups may differ, and the research base is still growing. Critics also point out that many popular books present habit research as a set of simple rules, which goes beyond what the studies show.
Why habit formation matters
Habit research matters in education, where classroom routines and school timetables shape what students do without much thought. It matters in organizational design, because defaults, schedules and workplace layouts create cues that influence repeated behaviour. The 401(k) default study shows how public policy can use the same process to change outcomes.
The concept also matters for the long-running debate about free will and responsibility. If many actions are triggered by context, then the role of conscious choice is a question for philosophers and psychologists alike. The research does not settle that debate, but it explains why the same person can act differently in different settings.
For further reading, the questions on how long a habit takes to form, how habits are broken and the 10,000-hour rule cover related research on repetition and practice. The marshmallow test shows another line of research on self-control that is often discussed alongside habits.
More about Habit formation
Frequently asked questions
What is habit formation?
Habit formation is the process by which a repeated action, performed in a stable setting, becomes automatic. Once established, the action is triggered by the setting rather than by a new decision. Researchers call the end state automaticity.
How long does it take to form a habit?
A 2010 study by Phillippa Lally and colleagues tracked 96 volunteers and found a median of 66 days before their chosen daily behaviour became automatic. The range was from 18 to 254 days, depending on the person and the behaviour.
What is the habit loop?
The habit loop is a model of cue, routine and reward popularized by Charles Duhigg in The Power of Habit (2012). The cue triggers a routine, and the reward reinforces the link between them. Scientists regard the model as a useful summary rather than a complete theory.
Which part of the brain is involved in habits?
Research on rodents and humans links habitual behaviour to the basal ganglia, especially the dorsolateral striatum. Activity in these structures shifts as a learned routine becomes familiar. Goal-directed behaviour depends more on frontal regions of the cortex.
What is the difference between a habit and a goal-directed action?
A goal-directed action depends on the person wanting an outcome and expecting that the action will produce it. A habit is triggered by the context and continues even when the outcome has lost its value. Wendy Wood and David Neal described this as the habit-goal interface.
More on Big World List
- Body Atlas · human bodyBasal Ganglia: Parts and How They Control Movement
Sources and further reading
- Phillippa Lally, Cornelia H. M. van Jaarsveld, Henry W. W. Potts and Jane Wardle, "How are habits formed: Modelling habit formation in the real world", European Journal of Social Psychology (2010)
- Wendy Wood and David T. Neal, "A new look at habits and the habit-goal interface", Psychological Review (2007)
- Ann M. Graybiel, "The basal ganglia and chunking of action repertoires", Neurobiology of Learning and Memory (1998)
- Charles Duhigg, "The Power of Habit" (2012)
- William James, "The Principles of Psychology" (1890), chapter on habit
Cite this page
“Habit Formation: How Habits Form in the Brain and Mind.” Mind & Meaning, https://mind.bigworldlist.com/psychology/habit-formation/.