A study reported by ShiftMag puts the return to code at 10–15 minutes after an interruption

Ravi Menon, Developer tooling editor (AI-assisted) · · updated

When a developer is interrupted, getting back on track takes much longer than the interruption itself. The study reported by ShiftMag measured how long it takes to return to editing code and to recover the full context for complex work, and found the cost depends on the task and on who interrupts [2,3]. This article sets out what the sources report, which numbers come from a study and which are developers' own estimates, and a worked example.

Regaining focus takes longer than most teams expect

The study, called Breaking the Flow, had twenty participants perform code writing, code comprehension and code review while experiencing six types of interruption, in person and on screen [2,3]. ShiftMag reports that it found two stages of cost [2]. First, it takes 10–15 minutes to return to editing code after an interruption [2]. Second, as much as 30–45 minutes can pass before the developer recovers the full context they had before breaking focus [2].

The cost is not only those minutes: the source says it also lies in fragmented flow and decreased creativity [2]. Separately, developers' own estimates are lower. ShiftMag notes that Reddit discussions often cite 15–30 minutes lost per interruption, which is an informal estimate, not a measurement [2].

ShiftMag also reports that the Duke study showed higher error rates during fragmented workdays, and that rushed re-entry into complex tasks often leads to sloppy code [2].

Some interruptions cause more stress and disruption than others

Not all interruptions are equally damaging. In the study, interruptions during code writing led to higher stress measures than interruptions during code comprehension and code review [3]. The importance of the requester increased the impact of an interruption [2,3]. Simpler code comprehension problems were more affected by interruptions than complex ones, meaning they took longer, and in-person and on-screen interruptions together significantly extended the time needed for code review [3].

Heart rate variability showed that in-person interruptions were less stressful, but participants perceived them as substantially more stressful than on-screen interruptions [3]. The article that reports this describes remote work as bringing more on-screen notifications and fewer in-person interactions [3].

Developers perceive planned switches as similar to random interruptions

A survey of 141 software developers found that practitioners perceive considerable similarities between the disruptiveness of task switching, planned or unplanned, and random interruptions [1]. Each switch distracts the developer's flow and needs an additional immersion period to get back into it, and the respondents named high cognitive cost and low performance as the main consequences [1]. The authors describe the wasted time as largely invisible and unnoticed by developers and managers [1]. ShiftMag adds that interruptions rarely, if ever, appear on developer productivity dashboards [2].

A worked example: meetings and daily progress

Research cited by ShiftMag says that teams with just one meeting per day maintain daily progress nearly 99% of the time, while adding a third meeting drops progress to 14% [2]. ShiftMag also cites a GitHub study estimating that interruptions can erase up to 82% of productive work time when developers face frequent disruptions from meetings, messages and quick questions [2]. These are reported estimates, and the sources do not give a step-by-step tally for a particular afternoon.

Questions readers ask

How do interruptions affect code quality?

ShiftMag reports that the Duke study showed higher error rates during fragmented workdays, and that rushed re-entry into complex tasks often leads to sloppy code [2].

Do developers notice all the time lost to interruptions?

Not always. The survey authors describe the time lost to task switching as largely invisible and unnoticed by developers and managers [1].

Are some types of interruptions better tolerated than others?

Interruptions during code writing led to higher stress measures than interruptions during code comprehension and code review, and the importance of the requester increased the impact [2,3]. In-person interruptions were less stressful on heart rate variability, though participants perceived them as more stressful [3].

How the numbers work

Computed from the numbered sources and the assumptions named below; change an assumption and the results change with it.

FigureValueWhere it comes from
Shortest time to return to editing code after interruption10 minutessource [2]
Longest time to return to editing code after interruption15 minutessource [2]
Shortest time to recover full context after interruption30 minutessource [2]
Longest time to recover full context after interruption45 minutessource [2]
Share of productive work time erased by frequent interruptions, GitHub estimate82 %source [2]
Midpoint of the 10–15 minute range12.5 minutescomputed: (Shortest time to return to editing code after interruption + Longest time to return to editing code after interruption) ÷ 2
Midpoint of the 30–45 minute range37.5 minutescomputed: (Shortest time to recover full context after interruption + Longest time to recover full context after interruption) ÷ 2

*Corrected 2026-11-21: The article presented developers' Reddit estimates of 15 to 30 minutes lost as if controlled studies confirmed them, reported the study's 10 to 15 and 30 to 45 minute figures as an average of 12.5 minutes, and misstated the meeting findings. The article now separates the study's measurements from the informal estimates, gives the meeting figures as reported (99% of days with one meeting a day, 14% with three), and cites a readable copy of the survey. Headline was: "It takes 10–15 minutes to return to code after an interruption, and up to 45 minutes to fully regain context".*

*Corrected 2026-11-27: The headline stated the 10–15 and 30–45 minute figures as settled fact. They come from ShiftMag's summary of the Breaking the Flow study, and the study's other write-up does not give them, so the headline and the line that introduces them now say who reports them. Headline was: "It takes 10–15 minutes to return to code after an interruption, and as much as 45 to regain full context".*

Sources

  1. Two Sides of the Same Coin: Software Developers' Perceptions of Task Switching and Task Interruption (arXiv)
  2. The Cost of Interrupting Developers: What the Data Shows
  3. How do interruptions impact different software engineering activities?

More articles