Sub topic 12
Shaping the environment to support the swap
This chapter assumes you already know the habit loop (cue, routine, reward). It also assumes you have named the old routine, isolated its cue, and drafted a replacement routine that delivers the same reward. Here you will adjust the physical and digital surroundings so the new routine is the easiest thing to do when the cue appears.
Why the environment matters
An if-then plan works on your intention. The environment works on your effort. At 3 pm, with a restless body and a full inbox, you are not at your most deliberate. If the old routine takes five seconds and the new one takes five minutes of setup, the old routine will win often enough to keep the habit alive.
Shaping the environment is usually called friction design. Friction is any extra step, delay, or decision between you and a behavior. The idea is simple:
- Lower friction for the replacement routine.
- Raise friction for the old routine.
- Leave the cue and the reward alone, because they are the parts you are keeping.
That last point needs care. Some environmental changes remove the cue itself, such as hiding every trigger so you never feel restless. That is a different strategy. In this tutorial the cue stays, because the swap depends on it. You are changing what the cue leads to, not the cue.
Friction is measurable
Friction feels vague until you count it. List the steps from the cue to the first moment of the routine, and estimate the time each takes. You do not need precision. You need to see which route is cheaper.
def total_seconds(steps: dict[str, int]) -> int:
return sum(steps.values())
old_before = {
"open desk drawer": 5,
"unwrap snack": 10,
}
old_after = {
"take elevator to the lobby vending machine": 120,
"choose and pay": 30,
}
new_routine = {
"stand up and leave desk": 5,
"walk to a colleague's desk": 30,
}
print("Old routine, before:", total_seconds(old_before), "seconds")
print("Old routine, after: ", total_seconds(old_after), "seconds")
print("New routine: ", total_seconds(new_routine), "seconds")Running it prints:
Old routine, before: 15 seconds
Old routine, after: 150 seconds
New routine: 35 secondsBefore the change, the old routine took 15 seconds and the new one took 35, so the old one won on effort. After you stop keeping snacks in the desk drawer, the old routine takes 150 seconds and the new one is the cheaper path. Nothing about your willpower changed. Only the cost of each path did.
A loop with the environment added
The environment acts on the two routines, not on the cue or reward.
Raising friction for the old routine
Aim to add steps or delay, not to make the old routine impossible. Total bans tend to produce rebellion or a single large slip. Small obstacles are easier to live with and still shift behavior.
Useful moves:
- Add distance. Move the item or the app out of reach. A snack in a locked cabinet in another room is a different habit from a snack in your drawer.
- Add steps. Log out of a site after each use, remove saved passwords, or delete the app and use the browser version.
- Add a pause. A 30-second delay before an app opens gives you time to notice the cue and apply your if-then plan.
- Remove the trigger object when it is not the cue you need. If the cue is "restless at 3 pm", you cannot remove it. If the cue also includes "the vending machine is in my line of sight", you can often change the route you walk.
Be honest about what counts as the cue. If you remove an object that was part of the cue, the craving may weaken, which is fine, but your if-then plan may no longer fire either. Check that the plan still has something to attach to.
Lowering friction for the new routine
The goal is that the new routine requires no preparation at the moment the cue appears. Do the preparation earlier, when you have energy.
- Stage the equipment. Put walking shoes by the door, a water bottle on the desk, or a book on the pillow.
- Pre-arrange the social part. If the reward includes contact with others, schedule it. A standing "3 pm walk" with a colleague removes the need to decide whom to ask.
- Make the first step tiny. "Stand up and put on shoes" is easier to start than "go for a run". Once you start, continuing is easier than starting.
- Put the new routine in the cue's location. If the cue happens at your desk, a routine you can begin from your desk, such as a stretch or a call, has less friction than one that requires travel.
The table below compares typical swaps.
| Old routine | Cue | Friction added to old | Friction removed from new |
|---|---|---|---|
| Check social media on the phone at 3 pm | Boredom at the desk | Delete the app, keep the browser version logged out | Keep a paper notebook open on the desk for a short list or doodle |
| Snack from the vending machine | Restlessness at 3 pm | Stop stocking the desk drawer | Pre-arranged walk with a colleague |
| Late-night scrolling in bed | Getting into bed | Charge the phone across the room | Book on the pillow, reading lamp already on |
| Skipping the morning stretch | Alarm rings | None needed | Mat unrolled beside the bed |
The last row shows a case where there is no old routine to obstruct. Not every swap needs both halves of friction design.
Matching the change to the reward
Friction design works only if the replacement still delivers the reward you identified in your reward experiments. If you raise friction on the vending machine and the walk does not actually relieve restlessness, you have not swapped a routine. You have removed a reward, and the craving will push you back.
Before you commit to environmental changes, check three things:
- Did your craving test show that movement or social contact, not sugar, ended the restlessness?
- Does the new routine, set up as you plan, actually deliver that reward within a similar time?
- Will the changed environment still present the cue? If you moved your desk away from the window and the cue was "sunlight dropping in the afternoon", the cue may have changed with it.
Common errors
- Making the old routine impossible. A total block invites workarounds, such as buying snacks on the way in. Prefer friction you can tolerate for months.
- Adding friction to the new routine by accident. A walk that requires changing clothes, finding a colleague, and locating a route is a high-friction routine. Simplify it.
- Changing too many things at once. If you move the snacks, rearrange the desk, and start a walking club in the same week, you will not know which change helped. Change one or two things and watch.
- Forgetting that environments change. Travel, a new office, or a holiday resets the layout. Your friction design needs rebuilding in each new setting. Your if-then plan travels with you; your drawer does not.
- Treating friction as a substitute for the plan. Friction nudges. The if-then plan names what you do. Use both.
Putting it together
A short procedure for any swap:
- Write the cue-to-routine steps for the old routine and estimate seconds for each.
- Do the same for the replacement routine.
- Pick the smallest change that makes the replacement cheaper than the old routine, either by raising friction on the old, lowering it on the new, or both.
- Make the change in advance, away from the cue.
- Confirm the cue still appears and the reward is still delivered.
- Track the result, as the next chapter describes, and adjust one thing at a time.
Exercise
Your cue is "I sit down on the sofa after dinner", the old routine is scrolling on your phone, and the reward is winding down. You plan to swap in 10 minutes of reading. Name one way to raise friction for the old routine, one way to lower it for the new one, and one check you should make before relying on the plan.
Show answer
Raise friction: charge the phone in another room or log out of the main apps so that scrolling needs several extra steps. Lower friction: leave the book open on the sofa cushion with a lamp already on, so reading starts with no preparation. Check: confirm that reading delivers the same reward (winding down) in a comparable time, for example by trying it for a few evenings, and confirm that the cue (sitting on the sofa) still occurs so your if-then plan has something to attach to.
Exercise
Using the style of the code example, list three steps for the old routine "grab a biscuit from the kitchen counter" with estimated seconds, then describe one environmental change that raises the total, and say why a total ban might be a worse choice.
Show answer
For example: walk to the counter (10), open the tin (5), take a biscuit (3), total 18 seconds. Moving the tin to a high cupboard and keeping it closed adds a step stool and reaching, perhaps 40 more seconds. A total ban, such as never having biscuits in the house, is harder to sustain and can lead to a large slip, such as buying a whole packet outside. A small, tolerable obstacle changes the easiest path without provoking resistance.