You sit down to work. The document is open, the intention is real, and for a while it holds. Then you surface, twenty minutes later, three tabs into a search that started with a question you don't remember asking. Nobody decided to stop. The attention simply left.

The usual advice treats this as a grip problem: try harder, block sites, train your willpower. The research points somewhere less flattering and more useful. Attention leaves for three different reasons, and each one has its own lever:

  • the task's payoff looks smaller than the payoff of whatever your mind proposes instead;
  • an unfinished task is still running in the background and interrupts you;
  • the task has been running too long and the goal itself has gone stale.

Most failed attempts at focus apply one lever — usually willpower — to all three problems. Telling them apart is most of the skill.

Why does attention drift even when you want to focus?

Attention rarely goes blank. It goes somewhere, usually toward your own goals, plans, and unfinished conversations, which is why the thoughts that carry you away feel urgent and specific rather than random.

A leading explanation is that this switch is produced by the same control system that keeps you on task. On the opportunity-cost model, mental effort is the felt result of comparing what you are doing with the next-best use of the same mental machinery. When the current task looks worth less than the alternatives, that comparison shows up as boredom or effort, and the control system starts searching for a better goal 12.

That reframes the problem. "I want to focus" is a statement about your priorities over the next hour. The switch is decided by a valuation that happens moment to moment. It is why the same task is easy at nine in the morning and impossible at four, and why deciding to concentrate harder changes so little.

Lever one: change the comparison, not your grip

If drift is a value comparison, there are two ways to win it: make the current task look more valuable now, or make the alternative less available.

Shorten the distance to feedback. Research on flow identifies three conditions under which people report deep, absorbed engagement: clear proximal goals, immediate feedback about progress, and a challenge matched to skill 3. These conditions don't guarantee the state — plenty of well-designed work is still dull — but they shift the comparison. A goal like "write the report" offers no feedback for hours. "Draft the three bullets for section two, then reread them" offers feedback in ten minutes.

The value side is not just a metaphor. In sustained-attention experiments, promising people a possible reward eliminated the usual decline in performance over time — the slide looked less like a drained tank than a recalculation of whether attending was worth it 4.

Add distance to the alternative. In one study, nearly 800 people took tests of working memory and fluid intelligence with their phone on the desk, in a pocket or bag, or in another room. The other-room group outperformed the desk group, and the pattern was linear: the more noticeable the phone, the less available cognitive capacity 5. Turning it face down or off made no difference. The cost was being paid for holding yourself back from it.

Two caveats: the average effect was small, and it was largest for people who described themselves as most dependent on their phone. But the mechanism is the useful part. If inhibition is itself expensive, then putting the thing in another room beats out-arguing it, and white-knuckling is a poor use of the capacity you are trying to protect.

Lever two: close the open loops before they interrupt you

Some drift isn't about the task being boring. It's your own unfinished business breaking in — the email you haven't sent, the form you haven't printed.

In a series of experiments, people reminded of two important unfinished tasks were more distracted during a later reading task, recalled more goal-related words, and comprehended less of what they read. Then came the interesting part: participants who first wrote a specific plan for when, where, and how they would complete those tasks showed no more intrusions than people with nothing pending — and no one had actually done any of the work 6. The plan, not the progress, quieted the loop.

Switching away has a second cost. When you leave a task unfinished and move to another, part of your attention stays behind, and performance on the new task suffers. Sophie Leroy called this attention residue. In her experiments, people who had to switch away from an incomplete task did worse on the next one, and a brief "ready-to-resume" plan — noting where you were and what comes next — reduced the residue and protected the interrupting task 78.

This is the practical answer to "I'll just check quickly." The check is not the expensive part. The part that stays with you afterward is.

Two habits follow directly:

  • Before you start, spend two minutes writing down everything you're holding, with one line of when and where for each. The point is not the list. It is that a specified plan is what stops the item from resurfacing.
  • Before you stop, leave one line saying exactly where you stopped and what the next physical action is.

Lever three: take the break before the drift wins

Even with an engaging task and no open loops, performance declines with time on task. This is the vigilance decrement: detection accuracy and speed fall off over a sustained task, and it happens to almost everyone.

One lab demonstration suggests the decline is at least partly a stale goal rather than empty fuel. Participants watching for rare targets while holding digits in memory showed the usual steep drop over time — unless they were occasionally asked to recall the digits. Briefly switching to a second mental task, then returning, prevented the decline 9.

The honest version of the break advice is more modest than the internet's. A meta-analysis of micro-breaks (pauses of ten minutes or less) across 22 samples and about 2,300 people found small improvements in vigor (d=0.36d = 0.36) and reductions in fatigue (d=0.35d = 0.35). The effect on performance was smaller and not statistically significant overall (d=0.16d = 0.16), appeared only for less cognitively demanding tasks, and grew with break length; the authors concluded that recovering from highly depleting work may take more than ten minutes 10.

So breaks reliably change how you feel, and only sometimes how much you produce. That still makes them worth scheduling, for one reason: a break taken deliberately, at a point you choose, is cheaper than the unplanned drift that happens later.

Attention training helps less than the environment does

Mindfulness practice does appear to produce small-to-moderate improvements in executive attention, working-memory accuracy, and sustained attention — across 111 randomized trials, effects against active control conditions were roughly g=0.19g = 0.19 to 0.390.39 11. Real, but slow and modest. It won't compensate for a phone on the desk.

How to improve focus: put the three levers into one block

What's pulling you awayWhat it feels likeWhat to change
The task's payoff is far awayboredom, restlessness, urge to check somethingdefine the next 10-minute unit of visible progress; move the alternative out of reach
An unfinished task is still opena specific thought about something you owe someonecapture it with a when and where; leave a resume line before switching
Time on task has worn the goal outattention thins, rereading the same sentencestop before the slide, take a real break

In practice:

  1. Empty the loops: two minutes, everything you're holding, one line of when and where for each.
  2. Set the comparison: one concrete next action in front of you, the phone in another room, one window open.
  3. Pick a length shorter than your usual drift point — if you reliably fade at forty minutes, set thirty.
  4. When you notice you've drifted, don't scold yourself. Ask which of the three it was. A thought about an unfinished thing means capture it. Boredom means the feedback is too far away. Thin, flat attention means you're past your limit.

What this explains, and what it doesn't

Attention returning to your own concerns is normal; the target is a short recovery, not a blank mind. If the problem is that you can't start at all, that's a different mechanism, covered in the piece on task paralysis. And if attention scatters across everything, all day, alongside low mood or loss of interest, that's worth treating as its own question rather than a productivity problem.

For the ordinary case — you intended to work and ended up elsewhere — the diagnosis is usually one of three, and each has a lever that isn't trying harder.