Sub topic 1
Why switching between tasks is expensive
Batching rests on one claim: moving between unlike tasks costs more than the tasks themselves. This chapter builds the working model of that cost. It covers where the cost comes from, which switches are expensive and which are cheap, how to estimate it for your own day, and where the common reasoning errors lie. Later chapters use this model to decide what to group and how.
Prerequisites
This chapter assumes you have:
- A basic to-do list or calendar habit, so you can see what you did and when.
- Familiarity with your own recurring tasks, such as email, meetings, admin and focused work.
- Enough Python to read a short script. The one code example is optional, and the rest of the chapter does not depend on it.
You do not need any background in psychology. The terms are defined as they appear.
What a context switch is
A context is everything you need to hold in mind to do a piece of work well. It has several parts:
- The goal and the current state of the work.
- The tool you are using and the files open in it.
- The rules of the task, such as what counts as done.
- The people involved and what you owe them.
- The mental mode, such as careful analysis, quick triage or friendly conversation.
A context switch is a change from one context to another. Moving from a spreadsheet to a chat window is a switch. So is moving from drafting a proposal to approving an expense. Pausing a task to answer a message is a switch, and so is resuming the task afterwards, which makes two switches for one interruption.
The term comes from computing. A processor that changes from one process to another must save the first process's state and load the second's. That work is pure overhead, because no useful output is produced while it happens. Human attention behaves in a similar way, with one important difference. A computer saves and restores state exactly, while a person does it imperfectly and slowly, and sometimes fails to restore it at all.
Where the cost comes from
The cost of a switch has several separate sources. Knowing which one applies helps you decide what to do about it.
Reloading working memory
Working memory is the small mental workspace where you hold the facts you are using right now. It holds only a few items at once. When you stop a task, that workspace is overwritten by whatever you do next. When you return, you must rebuild it. You re-read the last paragraph, find the function you were editing, or recall which figures you had already checked. This rebuilding is the most direct cost, and it grows with the complexity of the task. Resuming a simple form takes seconds. Resuming a half-finished analysis can take many minutes.
Attention residue
Attention residue is the part of your attention that stays on the previous task after you have moved on. The term comes from research by Sophie Leroy on people who switched tasks before finishing the first one. Part of their thinking stayed with the unfinished work, and their performance on the next task suffered. The effect is stronger when the first task was unfinished and when you felt time pressure. Leaving a task in a clear finished state, or writing down exactly where to resume, reduces the residue.
Restart lag
Some tasks need a warm-up. Deep work, such as writing, design or debugging, usually takes a while to reach full productivity. If an interruption arrives every twenty minutes, you may spend a large share of each interval warming up. Studies of office interruptions, including work by Gloria Mark and colleagues, report that workers often take a long time to return to a task after an interruption, with figures of around twenty minutes widely quoted. These numbers come from specific workplaces and measurement methods, so treat them as evidence that the cost is real and large, not as a constant to plug into a formula.
Setup and teardown
Many switches also involve physical or digital setup. You open a different application, log in, find the right folder, or move to a different room. You may need to find a document, charge a device or gather supplies. This cost is easy to see and easy to underestimate, because each instance is small. Five seconds of setup, repeated forty times a day, is more than three minutes. The larger setup costs, such as preparing for a phone call or starting a new project file, are minutes each.
Higher error rates
Switching also raises the chance of mistakes. You may send a message to the wrong person, apply the rules of one task to another, or forget a step you would normally remember. Laboratory studies of task switching, such as the work of Rubinstein, Meyer and Evans, consistently find that people are slower and make more errors right after a switch than when repeating the same task. Errors carry their own cost, because fixing them takes more time than avoiding them would have.
The following diagram shows how these costs add up around a single interruption.
Notice that the interruption itself may be short. The time spent on task B can be two minutes while the total loss is much larger, because the steps before and after it are overhead.
Not all switches cost the same
A common mistake is to treat every switch as equally expensive. The cost depends on how different the two contexts are and on what state the first task is in when you leave it.
| Switch | Typical cost | Why |
|---|---|---|
| Reply to one email, then reply to another | Low | Same tool, same mindset, same kind of output |
| Email, then a short admin form | Low to medium | Different tool, but both are shallow, rule-based tasks |
| Admin, then a phone call | Medium | New tool, new mindset, and other people are involved |
| Email, then writing a report | High | Reactive scanning gives way to sustained, self-directed thinking |
| Debugging mid-problem, then a meeting | Very high | Large working-memory state is lost and the mindset changes completely |
| Leaving a task at a clean stopping point, then starting another | Lower than the same switch mid-task | Little unfinished state remains to carry over |
Two patterns follow from the table. First, similarity lowers the cost. This is the basis for batching, which the next chapters develop. Second, the state of the task at the moment of leaving matters as much as the type of task. The same switch is cheap at a stopping point and expensive in the middle of a thought.
The hidden part of the cost
Some of the cost is invisible when you look at your day, and this is why people underestimate it.
- It is spread out. No single switch feels expensive. A day with sixty small switches can lose hours without any one moment standing out.
- It looks like work. Reloading context feels like working. You are reading, scrolling and thinking, so the time seems productive, though it only recovers ground you already held.
- It shows up as fatigue. Constant switching tends to leave people tired without a clear sense of what they produced. That tiredness is often the only visible sign.
- It delays the whole task. Interruptions stretch the calendar time a task takes, even when the working time is unchanged. A task that needs one hour of focus might take a whole afternoon of fragments.
A rough rule of thumb attributed to Gerald Weinberg says that each additional concurrent project takes about twenty percent of your time to switching overhead. It is a heuristic, not a measured law. Its useful point is that overhead grows with the number of contexts you keep active, and that the loss is a share of your time, not a fixed fee.
A simple model of the cost
You can estimate the cost of a day with a model that has two inputs: the number of switches and an average cost per switch. The model is crude, but it shows why ordering matters even when the tasks stay the same.
def count_switches(sequence):
"""Count how many times the context changes between neighbouring tasks."""
return sum(1 for a, b in zip(sequence, sequence[1:]) if a != b)
def total_time(sequence, minutes_per_task, switch_cost):
"""Work time plus the overhead of every context change."""
work = len(sequence) * minutes_per_task
overhead = count_switches(sequence) * switch_cost
return work + overhead
mixed = ["email", "report", "email", "admin", "report", "admin", "email", "report"]
grouped = sorted(mixed)
for label, sequence in [("mixed", mixed), ("grouped", grouped)]:
switches = count_switches(sequence)
minutes = total_time(sequence, minutes_per_task=10, switch_cost=5)
print(f"{label}: {switches} switches, {minutes} min")Running it prints:
mixed: 7 switches, 115 min
grouped: 2 switches, 90 minBoth orderings contain the same eight tasks of ten minutes each, so the work is 80 minutes either way. The mixed order adds 35 minutes of overhead and the grouped order adds 10. The saving of 25 minutes comes only from the order.
The model has clear limits, and you should keep them in mind:
- It uses one cost for every switch. The table above shows that real costs differ, so a better model would use a cost per pair of contexts.
- It ignores that some tasks cannot be reordered, because one depends on another or has a fixed time.
- It ignores the cost of waiting. Grouping tasks can delay a reply or a decision, and that delay has a cost too.
Even so, the model captures the useful idea. You cannot remove the work, but you can often reduce the number of boundaries between different kinds of work.
Common errors in thinking about switching
These are the mistakes that most often lead people to the wrong conclusion.
- Assuming multitasking works. For tasks that need conscious attention, people mostly alternate quickly between them and do not do them in parallel. Each alternation pays the switching cost. The exceptions are tasks that are automatic, such as walking while talking, and these do not compete for the same attention.
- Counting only the time on the interrupting task. A two-minute question that causes a fifteen-minute recovery is a seventeen-minute event. Measure the cost from the moment you leave to the moment you are fully back.
- Concluding that all switching is bad. Switching has benefits. You may need to respond to a real emergency, hand work to a colleague who is waiting, or take a break when stuck. Some switches are worth their cost. The aim is to stop paying for switches that buy nothing.
- Treating quoted numbers as personal facts. A figure such as twenty-three minutes comes from specific studies. Your own recovery time depends on your task, your environment and your habits, and you can measure it directly.
- Ignoring self-inflicted switches. Many switches come from you, not from others. Checking a phone, opening a new tab or stopping to tidy a desk are all switches you choose. Studies of workplace interruptions suggest that a substantial share of them are self-initiated.
Measuring your own switching cost
You can estimate your own numbers with a short experiment, using only a notebook or a text file.
- Pick one ordinary day, or half a day.
- Each time you change what you are working on, write down the time, the task you left and the task you started.
- For switches that interrupt deep work, also note when you felt fully back on track. The gap is your recovery time.
- At the end of the day, count the switches and sort them into pairs such as email to writing or meeting to coding.
- Compare the pairs. The ones with the longest recovery times are your most expensive switches.
You will often find that a handful of switch types account for most of the loss. Those are the first candidates for batching, which later chapters cover in detail. A caution applies here: logging itself adds a small switch each time, so keep entries short, a few words each.
Putting the model to use
The cost model leads to three practical principles, and the rest of this tutorial builds on them.
- Fewer boundaries. If the same tasks can be arranged so that fewer changes of context occur, the overhead falls without any change in the work. This is the core idea of batching.
- Cheaper boundaries. When a switch is unavoidable, make it cheaper by leaving tasks at clean stopping points and recording where to resume.
- Switch at the right moments. Place switches between tasks, not in the middle of them, and place the expensive ones, such as the move from shallow to deep work, where they happen least often.
A final point connects to later chapters. Because the cost depends on how different two contexts are, the way you define similarity determines how well batching works. The tool, the place, the mindset and the people involved can each make two tasks feel similar or different. Chapters that follow explain how to spot tasks that belong together and how to group them.
Exercise
A day contains six ten-minute tasks in this order: email, email, report, admin, report, email. Assume each change of context costs 6 minutes. How many switches are there, and how much total time does the day take? Then reorder the tasks to minimize switches and give the new total.
Show answer
The changes are email to report, report to admin, admin to report and report to email, so there are 4 switches. Work time is 6 x 10 = 60 minutes and overhead is 4 x 6 = 24 minutes, so the total is 84 minutes. Grouping the tasks as email, email, email, report, report, admin gives 2 switches, so overhead is 12 minutes and the total is 72 minutes. The reordering saves 12 minutes without changing the work.
Exercise
A colleague asks you a question that takes 2 minutes to answer while you are in the middle of writing a report. Afterwards it takes you about 12 minutes to get back to the same pace. List three separate sources of that recovery time and name one way to shrink it.
Show answer
Any three of these: reloading the report's details into working memory, attention residue from the question you just answered, restart lag before your writing flow returns, and setup or teardown of the tool you used to answer. To shrink it, write one line noting what you were about to write next before you answer, or finish the current sentence or paragraph so you leave at a clean stopping point.
Exercise
The chapter says a model with one fixed cost per switch is crude. Give two reasons why using it could give a misleading result for a real day.
Show answer
Switch costs differ by pair of contexts, so replying to one email after another is cheap while moving from email to deep writing is expensive, and a single average hides this. The model also ignores dependencies and fixed times, since some tasks cannot be reordered, and it ignores the delay cost when grouping makes a reply or a decision wait longer.