# Cue Routine Reward Model: How Habits Run Through Design

> Learn the three parts of the habit loop, how to map one in a product, and how to change it by keeping the cue and reward.

**In short:** The cue routine reward model is the three-part habit loop, and you change a habit by keeping the cue and reward while swapping the routine.

From "UI/UX basics", a free course by Venkat R. Murty: https://designervenkat.online/learn/ui-ux/cue-routine-reward-model

## What you will learn

This lesson explains the cue, routine, reward model. Many people call it the habit loop. You will learn its three parts, how to read a loop in a product, and how designers try to change one. The model comes from a book about habits, but it fits screens and apps well.

- **Habit loop:** A short cycle that runs a habit. It has a trigger, an action, and a payoff that makes the cycle repeat.
- **Cue:** The trigger. It is the signal that starts the habit.
- **Routine:** The action a person takes after the cue. It is the habit itself.
- **Reward:** The benefit the person gets from the routine. It is what makes the loop worth repeating.
- **Craving:** The pull a person feels toward the reward before they act.

## What are the three parts of the loop?

Charles Duhigg, a journalist, made this model well known in his 2012 book The Power of Habit. He says that a cue starts a routine, and the routine ends in a reward. Each part has its own job. Here they are in order.

- **Cue:** The cue is the trigger. Duhigg groups common cues into five kinds: place, time, emotional state, other people, and the action that just came before. A red dot on an app icon is a cue.
- **Routine:** The routine is the behavior itself. It can be one tap or a longer run of steps. The person does it without much thought once the cue appears.
- **Reward:** The reward is what the brain takes from the routine. It is the reason the habit sticks. A reward can be physical, such as caffeine, sugar, or nicotine, or emotional, such as relief, pride, or novelty.

The loop is a cycle. Each time the reward arrives, the link between cue and routine gets stronger. Then the next cue is more likely to start the routine again.

## How do you read a loop in a product?

This is why it helps to look past the obvious reward.

### How do you map a loop?

1. **Name the routine:** Write the exact action a user takes. Use a verb, such as tap, scroll, or refresh.
2. **Find the cue:** Ask what happened just before. Check the place, the time, the feeling, other people, and the last action.
3. **Name the reward:** Ask what the user gets. Look for the hidden benefit, like feeling up to date, not only the visible result.
4. **Test one change:** Change one part at a time and watch what users do. Keep notes so you know which part caused the change.

### Why do loops feel automatic?

Ann Graybiel, a neuroscientist at MIT, studied how habits form in the brain. She found that as a behavior turns into a habit, control moves toward a deep brain area called the basal ganglia. Graybiel called the packing of a routine into one unit chunking. The brain fires most at the start and end of the sequence, and it is quieter in the middle.

Craving is the piece that links the cue to the reward. Over time, the cue starts to produce a craving for the reward before the routine even begins. James Clear's later book made craving a separate fourth step. Duhigg treats it as the force behind the loop.

## How do you change a loop? The golden rule

Duhigg calls his main idea the golden rule of habit change. To change a habit, keep the old cue and the old reward, and insert a new routine in the middle. You do not try to erase the cue. That is hard to do, so you swap the action instead.

> **Tip:** Before you redesign a screen, write down the old cue, the old reward, and the new routine. If the new routine does not give the same reward, users may feel they lost something.

## How do you use the loop in UI design?

Use the model to ask better questions about a screen. What cue does the design give? What does the user do next? What do they get back? The short program below models one loop. It keeps the cue and reward the same and changes the routine, which is the golden rule in code.

`loop_swap.py`

```python
loop = {"cue": "Red dot on the badge", "routine": "Open the app", "reward": "See new messages"}
better = dict(loop)
better["routine"] = "Tap the preview in the notification"
print("Old:", loop["routine"])
print("New:", better["routine"])
print("Same cue:", better["cue"] == loop["cue"])
print("Same reward:", better["reward"] == loop["reward"])
```

Output:

```text
Old: Open the app
New: Tap the preview in the notification
Same cue: True
Same reward: True

```

This lesson's model is related to the Hook Model lesson in this course. Both describe how actions repeat, but this one focuses on the three parts of a habit.

## Check yourself

**Quick check:** When you want to change a habit, what does the golden rule say to change?

A. The cue and the reward
B. Only the routine
C. The brain itself
D. Nothing, habits cannot change

**Answer:** B. The golden rule keeps the cue and reward the same and inserts a new routine.

**Quick check:** A red dot on an app icon makes a user open the app. Which part of the loop is the red dot?

A. The routine
B. The cue
C. The reward
D. The craving

**Answer:** B. The red dot is the trigger, so it is the cue. Opening the app is the routine.

## Sources

- [The Decision Lab: CAR Model (Cue-Action-Reward)](https://thedecisionlab.com/reference-guide/psychology/car-model)
- [Stanford Gould Design Thinking: The Habit Loop](https://gdt.stanford.edu/the-habit-loop)
- [Penguin Random House: The Power of Habit Teacher's Guide](https://www.penguinrandomhouse.com/books/202855/the-power-of-habit-by-charles-duhigg/9780812981605/teachers-guide/)
- [Wikipedia: The Power of Habit](https://en.wikipedia.org/wiki/The_Power_of_Habit)
- [LitCharts: The Golden Rule of Habit Change](https://www.litcharts.com/lit/the-power-of-habit/terms/the-golden-rule-of-habit-change)
- [Fine Streak: Cue, Routine, Reward, How the Habit Loop Works](https://finestreak.com/blog/habit-cue-routine-reward)
- [Leaders Loop: Habit formation, how behaviour goes automatic](https://leadersloop.com/toolkit/habit-formation/)
- [Fluid Self: The Power of Habit, book summary](https://fluidself.org/books/self-help/the-power-of-habit)
- [Habitbox: The Habit Loop, Cue, Routine, Reward Explained](https://habitbox.app/blog/habit-loop)
- [Writers Review: The Power of Habit](https://writersreview.com/book/the-power-of-habit/)
