Medicine & Health
How do habits form?
A habit forms when your brain turns a repeated behavior into an automatic routine to save effort. It follows a loop — a cue triggers a routine, which delivers a reward — and the more the loop repeats, the more automatic it becomes.
See it in motion.
Watch a 2-minute animated lesson that shows exactly how a habit works.
Step by step
- 1Habits run on a loop: cue (trigger) → routine (the behavior) → reward (the payoff).
- 2Repetition strengthens the brain pathways, so the routine needs less conscious effort.
- 3The brain chemical dopamine reinforces behaviors that bring a reward.
- 4Over time the cue alone can trigger the craving, making the habit automatic.
- 5To change a habit, it's often easiest to keep the cue and reward but swap the routine.
Frequently asked questions
- How long does it take to form a habit?
- There's no fixed number — the popular '21 days' is a myth. Research suggests it varies widely, often around two to three months, depending on the person and the behavior.
- What is the habit loop?
- A three-part cycle: a cue triggers a routine, which delivers a reward. Repeating it wires the behavior in until it becomes automatic.
- How do you break a bad habit?
- Identify the cue and the reward, then replace the routine with a better one that gives a similar payoff. Removing the cue, or making the habit harder to do, also helps.

