The Habit Loop

Habits run on a loop: cue → craving → response → reward. Make good loops easy and satisfying; break bad ones by keeping the cue and reward but changing the routine.

Author

Charles Duhigg (popularised “cue → routine → reward”); expanded by BJ Fogg and James Clear (“craving/identity”)



The habit loop explains how automatic behaviours form and persist. A cue triggers a routine (the behaviour) to gain a reward (state change or outcome). Modern variants add craving (the anticipation that drives action) and emphasise identity (“I’m the kind of person who…”). You engineer habits by shaping cues, simplifying the routine, and ensuring a fast, felt reward—while removing or neutralising cues for unwanted loops.

See my separate write-up on the book Atomic Habits here: https://barnabyrobson.org/atomic-habits-1-better-every-day/

How it works


Cue – time, place, preceding action, emotional state, or social/visual signal.

Craving – the expected state change (relief, stimulation, progress).

Routine (response) – the behaviour you perform (automatic if friction is low).

Reward – closes the loop; releases “this worked” signal and strengthens the link.

Repetition → automaticity – consistent pairing of cue and reward cements the routine (context-dependent).

Identity layer – habits stick when they confirm a chosen identity (“I don’t miss workouts”).

Keystone habits – some routines (sleep, exercise, journalling) cascade positive side-effects.

Use-cases


Personal performance (exercise, deep work, nutrition, sleep).

Team rituals (daily stand-up, incident postmortems, code review).

Product & UX (onboarding cues, streaks, progress bars, reminders).

Safety & reliability (checklists, pre-flight routines, handoff protocols).

Pitfalls & Cautions


Vague cues – “sometime tomorrow” never triggers; anchor to a specific time/place/preceding action.

No immediate reward – distant goals don’t teach the brain; add a near-term win signal.

Too much friction – ambitious starts fail; begin with the two-minute version.

Identity mismatch – “should” habits without identity support fade; define the identity first.

Environment denial – willpower loses to ever-present cues; design the environment.

Variable rewards – powerful for engagement but can tip into compulsion; use ethically.

Related Mental Models

Click below to learn other mental models

  • Agency (high / Low)

    Agency (high / Low)

    A practical lens for how people approach problems: low-agency waits for circumstances; high-agency creates options and moves first.

  • Eisenhower Matrix

    Eisenhower Matrix

    Prioritise by importance, not urgency: Do, Schedule, Delegate, or Eliminate.

  • Pavlovian Conditioning

    Pavlovian Conditioning

    A neutral cue paired with a meaningful event can come to trigger the response on its own.

Preparing reader…