Pomodoro for coding: set the block to the work, not to 25

For coding, we’d make the block long enough to get back into the code, and let the bell leave you a moment to note where you were before you stop. For implementation and debugging, set 50/10 with a 20-minute long break after two blocks: a three-hour afternoon then holds 2 h 30 min of focus in 3 sittings, against 2 h 5 min in 5 at the classic 25/5. Keep 25 for code review, triage and the ticket you’ve been avoiding. Leave Auto-advance off, so the bell ends the block but the break waits until you’ve written down your next step. Both start from one finding: after a real stop, programmers mostly move around the code before they type again (Parnin and Rugaber).

What getting back into code costs

The most useful measurement we found of what a stop costs a programmer comes from Chris Parnin and Spencer Rugaber at Georgia Tech. They analyzed about 10,000 recorded programming sessions from 85 developers, using IDE interaction logs from Eclipse and Visual Studio, and measured what they call edit lag: the time from coming back to a task to the first edit (Parnin and Rugaber, ICPC 2009). Only 10% of sessions had coding start in under a minute, and only 7% involved no navigation to other parts of the code before the first edit. In about 30% the first edit came more than 30 minutes in, which the authors think may be debugging that needs a longer look before anything can change.

Read it with its limits. A new session began after a pause in IDE activity of 15 minutes or more, so a 5-minute Pomodoro break wouldn’t register as a stop in this data at all. The logs only see the IDE: time spent searching for an example online or checking code in looks like a gap. And the authors treat their figures as an upper bound, because edit lag can’t tell resuming a task from starting a new one (Parnin and Rugaber).

The paper never looked at block lengths or at the Pomodoro technique. What it shows is that after a real stop, programmers mostly read and move around the code before they type: in its summary of session starts, 83% navigated to a new location in the code first (Parnin and Rugaber). Whether a 5-minute break costs any of that wasn’t measured. The rest is our reasoning: if it does, a short rhythm pays that cost more often, because it has more restarts in the same gap. We found no controlled trial of the Pomodoro technique with programmers. The trials closest to it gave students fixed or free breaks during self-study, and Pomodoro doesn’t work for me goes through what they found.

A developer’s day, laid out by Pomo

Take a made-up Tuesday. Stand-up runs from 9:30 am to 9:45 am, lunch is at 12:00 pm, a planning meeting takes 2:00 pm to 2:30 pm, and the day stops at 5:30 pm. That leaves three gaps for code. Each is laid out the way Pomo runs a session: Begin pressed the moment each phase ends, and no block started that can’t finish before the gap closes.

Gap 25/5 50/10, long 20 after 2
9:45 am to 12:00 pm 4 blocks, 1 h 40 min 2 blocks, 1 h 40 min
1:00 pm to 2:00 pm 2 blocks, 50 min 1 block, 50 min
2:30 pm to 5:30 pm 5 blocks, 2 h 5 min 3 blocks, 2 h 30 min
Whole day 11 blocks, 4 h 35 min 6 blocks, 5 h

The morning is a tie on minutes. At 50/10 the second block ends at 11:35 am, which leaves 25 min before lunch: about the size of one small pull request to review, with no timer running. The midday hour holds the same 50 min either way, so the choice there is about the work. Two 25s suit two separate reviews, or the bug report nobody has triaged; one 50 suits a single change you want finished before the meeting.

The afternoon is where the rhythm matters:

Look at the right-hand end of each row: only the middle one runs to the stop.

At 50/10 the third block ends at 5:30 pm, exactly as the day stops, with the long break between the second and third. At 25/5 the fifth block ends at 5:05 pm, and the last 25 min can’t hold a break and another 25. A 90-minute block fits once. A second would need the 20-minute break and another 90, running to 5:50 pm, so the row ends at 4:00 pm with 1 h 30 min unused.

Over the whole Tuesday, 50/10 holds 25 min more focus than 25/5 with 5 fewer restarts. To set it, open Settings, then Session: Focus 50, Short break 10, Long break 20, Long break after 2. The 50/10 long-break post explains why the long break moves to after two blocks once they get this long. The presets under the face set only the next block, so with Settings at 50/10 the 25 preset is the quick way to run the midday hour short.

The planner starts each gap at the first block of a set. In the app that depends on whether Pomo was closed in between. If it’s still open in the background when you sit back down, the break is waiting and the count carries on: press Begin, then Skip break and confirm, then Begin on the Focus. The long break can then land a block earlier in the next gap than the figure shows. If the app was closed in between, Pomo opens on a fresh Focus at the start of a set, the way the figure does.

Make the bell a stopping point

Emory University’s library guide to the technique puts it plainly: “As a rule, once the Pomodoro begins, it has to ring”, and the steps it reproduces from Cirillo’s website have you write down stray to-dos as they come up rather than act on them (Emory Libraries). The second half is what makes the first bearable at a keyboard.

Parnin and Rugaber argue that “the worst type of interruption often comes at an inopportune moment and gives insufficient time to a programmer for preserving mental working state” (Parnin and Rugaber). Their data hints at what a good cue is worth, though this part comes from the Visual Studio data set only, 1,213 sessions with an edit. When the work involved finishing the method a developer had last edited, 35% of those sessions had coding under way within a minute, against 10% of sessions overall. That cue only applied to 17% of sessions. The paper’s review of earlier work adds that what you do at the moment of stopping helps mainly when a cue about where you were is still in front of you when you return, such as an error message on the bug being fixed.

Pomo leaves room for that moment by default. With Auto-advance off, the bell ends the focus and Pomo stops; the break is loaded at its length and waits for you to press Begin. Before you do, leave the code pointing at the next step: a failing test with the next case in it, a one-line comment where the cursor is, or the compiler error you were about to fix, left unfixed. That’s our habit, not something the Georgia Tech study tested. The minutes you spend after the bell finishing a line don’t go in the ledger, because Pomo records the block as planned, ending at the bell. If those minutes stretch to ten every time, the block is too short for the work, and Focus goes up to 120.

One habit only code has: start the slow thing as the bell goes. Kick off the full test suite, the CI pipeline or the container build, then press Begin on the break. The wait happens while you’re away from the desk, and the result is the first thing on screen when the next block starts. A short break you need longer takes +5 min, which leaves the count to the long break alone.

Some work won’t split at all: a bisect, an incident, a migration you have to watch to the end. If you know before you start, drag the face up before you press Begin. It goes a minute at a time to 3 h, applies to that block only, and the session returns to your Session settings after it. If you only find out halfway, Pomo can’t lengthen a running focus; let the bell ring and leave the break waiting until the incident is over.

One label per ticket

Tap Add a label (“What are you holding?”) before Begin and type the ticket key, the branch or the repo. The label rides through the breaks into the next block until you change it, press End, or Pomo starts a fresh set (after being closed, or when an unattended Auto-advance chain stops itself), so check it at the start of each gap. History lets you label an entry afterward if you forgot. Label Tuesday’s morning and afternoon with one ticket and the midday hour Review, and at 50/10 the day adds 4 h 10 min to the ticket’s row in Where focus went and 50 min to Review’s.

That row is the record Cirillo’s site keeps asking for: “Use your records to make more realistic estimates” (pomodorotechnique.com). Set to Week, Where focus went splits the last seven days’ minutes by label, so a ticket you sized as a day shows what it actually took in held minutes, with meetings, lunch and the breaks already left out. A block you End early still counts its minutes if you held it for at least 60 seconds, marked “let go early” in History.

The chat, the bell and the desk

Pomo’s focus shield, part of Pro, blocks the apps you choose on the phone while a focus runs and lifts at every break, so messages come back between blocks rather than in them. It only works on the phone. A chat app open on your laptop is still yours to mute; the blocking guide covers what the shield does on iPhone and Android.

The bell itself is Ring at session end, under Alerts, on by default. It rings like an alarm even with the app closed, through AlarmKit on iOS 26 and a full-screen alarm on Android, so it reaches you with the phone face down beside the keyboard. In a shared office, switch its Sound off: on an iPhone the alarm still buzzes, because the system always vibrates for alarms, and on Android you leave Vibration on. With an Apple Watch, the iPhone’s alarm shows on your wrist too, and Stop there stops both (the Apple Watch guide has the details). To try the afternoon’s rhythm in a tab next to the editor, the web timer takes 50/10 under Timer settings, and the 50/10 timer runs the plain version, with a 10-minute long break after four blocks.

Pomo knows nothing about your code. It has no editor plugin, doesn’t read your commits, and can’t tell a block of typing from a block of reading logs. The ledger knows what you labelled a block and how long you held it, and nothing else.