Your go-to tech blog

How Much Should an Engineering Manager Code? How to Stay Technical Without the Pain

Nine and a half hours. That is roughly what is left of a 40-hour week for a manager of six engineers once one-on-ones, recurring meetings, hiring, planning and a realistic allowance for interruptions are counted. It is not nothing, and it is far less than most new managers assume when they promise themselves they will “still code half the time”.

The gap between the hours they think they have and the hours they actually have is where the pain comes from: a manager holding a feature nobody else can finish, a team waiting on their pull request, and evenings spent catching up on both jobs.

Asking how much an engineering manager should code produces answers ranging from “never” to “at least 30%”. Both extremes have defenders, and both are describing different jobs. The way out of the uncertainty is to stop looking for a percentage and start counting. Done honestly, the count usually gives a manager of six about a quarter of the week for code, a manager of four about a third, and a manager of nine less than a tenth, which is too little to ship features.

Why the answers range from zero to half

Part of the confusion is that “engineering manager” covers very different roles. At a 30-person startup the title may mean a tech lead with three reports who is still the strongest engineer on the team. At a large company it can mean a people manager of nine with a separate tech lead and no expectation of writing production code at all. Advice from one setting sounds absurd in the other. Whether the team has a separate tech lead matters too. Where a staff or senior engineer owns technical direction, the manager can code very little without the team losing technical judgement. Where the manager is also the de facto tech lead, some hands-on time is part of the job, and the question shifts to protecting it.

The other part is that “coding” covers very different work. Writing the core of a new service, fixing a flaky test, reviewing pull requests, building a prototype to test an idea and reading code to understand an incident are all “coding”, and they have completely different effects on a team. Two terms help.

Critical path work: any task that other people or a deadline depend on directly. If it slips, the team or the release slips with it. A manager’s calendar is interrupted by design, so a manager holding critical path work is a bottleneck waiting to happen.

Off-path work: tasks that create value but that nobody is blocked on. Internal tooling, a test harness, a spike to answer a design question, small bug fixes from the bottom of the backlog, documentation of a system you know well. If an off-path task takes a week longer than planned, nobody waits.

Paul Graham’s 2009 essay “Maker’s Schedule, Manager’s Schedule” describes the underlying problem well: programming needs long uninterrupted blocks, and a manager’s day is cut into hour-long slots. Neither schedule is wrong, but they do not mix. Once you accept that, the useful question becomes “how many uninterrupted hours do I really have, and which work tolerates being interrupted?”

A formula for the hours you actually have

Start by counting. This takes 10 minutes with last month’s calendar.

coding_hours = W - (R x O) - M - H - P - S
coding_share = coding_hours / W

W  working hours per week
R  number of direct reports
O  one on one time per report per week, including preparation
M  recurring meetings: standups, staff meetings, cross-team syncs
H  hiring: interviews, debriefs, screening
P  planning, reviews, writing: roadmap, design reviews, performance cycles
S  slack for interruptions and escalations, often 20% of W

A worked example with illustrative but typical numbers. W is 40. With 6 reports and weekly 30-minute one-on-ones plus 15 minutes of preparation each, R x O is 4.5 hours. Standups, a staff meeting and two cross-team syncs add M of 8 hours. One open role means about 4 hours of interviews and debriefs. Planning, design reviews and writing take 6 hours. Slack at 20% is 8 hours. That leaves 40 minus 30.5, or 9.5 hours, a coding share of about 24%.

Now change the team size. With 4 reports, R x O falls to 3 hours, meetings usually shrink a little to 6, and coding hours rise to about 13, or 33%.

With 9 reports, R x O is 6.75, meetings tend to grow to 10, hiring often increases to 6 because the team is still growing, and coding hours fall to about 3.25, or 8%. At that point “coding” in any meaningful sense is over. Three scattered hours a week cover reviews and reading, and little else.

Two cautions. First, the slack term is the one people set to zero, and it is the reason their plans fail. Incidents, escalations and unplanned conversations happen every week. Second, coding hours are rarely contiguous. Nine and a half hours in 45-minute fragments is worth far less than two 4-hour blocks, so the formula gives an upper bound, not a schedule. Rerun it every quarter, and after any change in headcount or hiring plans, because a single new requisition can remove 4 hours a week.

Deciding which code to take

The number tells you how much. The decision tree below tells you what. Ask in order and stop at the first answer.

  1. Does anyone else depend on this task finishing by a date? If yes, do not take it. Pair on it, review it or unblock it, but let an engineer own it.
  2. Would the team be blocked waiting for your review or your answer if you went heads-down for a day? If yes, clear the queue first. Reviews come before your own code.
  3. Is it something only you can do quickly because of context you hold, such as a migration of a system you built? If yes, write it down and hand it over with the knowledge, instead of doing it yourself.
  4. Would doing it help you understand a real problem the team has, such as slow builds, a confusing deploy, an incident area? If yes, it is a good candidate. Timebox it.
  5. Is it small, off the critical path and finishable within the coding hours from your formula? If yes, take it.
  6. If none of the above apply, skip it and spend the hours on something only a manager can do.

Off-path work that tends to pay off well for managers: fixing friction in the developer workflow (build times, local setup, test flakiness), prototypes that answer a design question before the team commits, small bugs that annoy users but never rise to the top of the backlog, and taking an on-call shadow shift once a quarter so you know what the pager actually feels like.

Code review deserves a special mention. Reading 5 to 10 pull requests a week keeps you close to the codebase at a fraction of the cost of writing features, and it lets you see where the team struggles.

The trap to avoid is taking work because it is enjoyable. Coding is a relief from management, which is exactly why managers drift back into it when the people side gets hard. If you find yourself coding more in a week when a difficult conversation is pending, look at the conversation first.

Staying technical without the pain, and how interviews test it

The painless version has three habits. Set your coding share from the formula, not from aspiration, and recalculate it when team size or hiring load changes. Protect one or two blocks of 3 to 4 hours a week for it, ideally on the same days, and treat them as movable only for incidents. And keep a short list of off-path tasks ready, so a free block does not turn into an hour of deciding what to do.

Your company’s expectations matter more than any general rule. Some organisations explicitly expect managers to stay hands-on and include code contributions in performance reviews. Others expect managers not to write production code at all and see it as a sign they are neglecting the team. Ask your own manager directly, and if you are interviewing, ask the hiring manager.

That question is also one interviewers ask you. “How hands-on are you?” or “How much do you still code?” is a standard question in engineering manager interviews. Interviewers are testing two things: whether you can still hold a credible technical conversation, and whether you will become a bottleneck. A strong answer uses numbers and the kind of work: “With a team of six, I have about 8 to 10 hours a week.

I spend most of it on code review and on off-path work like build tooling. I don’t take features with deadlines, because my calendar would make me the bottleneck.” Then offer one example where your coding helped the team, such as a prototype that settled a design argument in two days. Answers like “I still code 50% of the time” worry interviewers for a manager role, because they suggest the people work is being squeezed.

The trade-off is real either way. Coding less makes you a better manager this quarter and a weaker technical judge in two years. Coding more keeps you sharp and risks your team waiting on you.

The verdict for most managers with five or more reports: code off the critical path, inside the hours the formula gives you, and treat code review as your main technical practice. If the formula leaves you less than 5 hours a week and you miss building badly, that is a career question rather than a scheduling one, and it deserves its own conversation.