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

  • Cognitive Bias

    Cognitive Bias

    Systematic shortcuts in thinking that create predictable errors. Know the patterns; design decisions and communication to counter their effects.

  • Inversion

    Inversion

    Think backwards: define failure and remove its causes; ask the inverse question to see blind spots.

  • Munger’s Tendencies

    Munger’s Tendencies

    Munger’s catalogue of 25 psychological tendencies that systematically distort judgement — and how to guard against them.

Preparing reader…