The short answer
A habit is an action we do almost without thinking because we have repeated it many times in the same situation. Researchers at University College London describe habits as behaviours performed automatically because they have been performed frequently in the past. Once a habit is set, the cue alone is enough to start it: walk into the bathroom at night and the toothbrush is in your hand before you have decided anything.
That is useful. Habits free up attention for new problems, so the brain does not have to think through every small step of the day.
The habit loop
Many scientists describe habits as a loop. A cue, such as a time of day, a place or a feeling, triggers a routine, the action itself. A reward, such as a clean feeling, a pleasant taste or a sense of being finished, makes the brain more likely to repeat the loop next time.
What happens in the brain
When we learn something new, areas at the front of the brain that handle planning and decisions do much of the work. With repetition, control gradually shifts towards deeper structures called the basal ganglia, which help run well-practised sequences of movement and behaviour. The action needs less conscious effort each time, which is why a habit can feel effortless and, sometimes, hard to stop.
How long a habit takes
A popular claim says it takes 21 days to form a habit, but there is little evidence for it. In a well-known study published in 2009, psychologist Phillippa Lally and colleagues at UCL asked 96 volunteers to repeat a new healthy action, such as eating a piece of fruit with lunch or going for a short walk, once a day in the same setting.
On average, it took 66 days for the action to become as automatic as it was going to get, but the range was huge: from 18 days to an estimated 254 days. Missing a single day did not undo progress. Repeating the action consistently in the same situation mattered most.
Building helpful habits
Research suggests some simple ideas. Link the new action to an existing cue, for example reading a page of a book straight after dinner. Start small, so the action is easy to repeat. Keep the setting the same. Make the helpful choice easy and visible, such as leaving a water bottle on the desk. And be patient: early repetitions bring the biggest gains, but a habit needs weeks of practice to settle.
Habits in everyday life
Researchers estimate that a large share of everyday behaviour is habitual. Think of the route you take to school or work, the side of the bed you get out of, or the way you tie your shoes. These routines save effort for the decisions that really need attention, which is one reason habits are so powerful, for better or worse.
Why setting matters
Habits are tied to context. A new place, such as a different school or a holiday, can make old habits easier to break and new ones easier to start, because the usual cues have disappeared. That is why many people find it easier to change a routine at the start of a new term or after moving home.
Changing an unhelpful habit
Habits are hard to erase because the cue still triggers the routine. Many people find it easier to change the setting, avoid the cue or swap in a different routine that gives a similar reward. Kindness to yourself helps too: a slip is normal and does not mean starting again from zero.
Questions people ask
How long does it take to form a habit?
In one well-known UCL study, the average was 66 days, but it ranged from 18 to 254 days depending on the person and the habit.
Does it really take 21 days to form a habit?
There is little evidence for the 21-day claim. Research shows the time varies widely between people.
What is the habit loop?
A cue triggers a routine, and a reward makes the brain more likely to repeat the routine next time.
Which part of the brain controls habits?
Deep structures called the basal ganglia play a key role in running well-practised routines.
Does missing a day ruin a new habit?
No. In the UCL study, missing one day did not significantly harm habit formation.
Sources & further reading
- UCL News · How long does it take to form a habit? ↗
- British Psychological Society · How to form a habit ↗
- European Journal of Social Psychology · Lally et al., How are habits formed (2009) ↗
Sources checked 29 November 2026. General information for learning, not medical advice. Illustration: original AI-generated illustration (Adobe Firefly), an artist’s impression rather than a photograph. These organisations do not endorse this website.
