<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc" -->

---
title: You can code only 4 hours per day. Here’s why. | daily.dev
description: Research shows developers can only sustain 3-4 hours of deep, focused coding per day due to cognitive limits. Studies reveal the median developer codes just 52...
canonical: https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: You can code only 4 hours per day. Here’s why. | daily.dev
og:description: Research shows developers can only sustain 3-4 hours of deep, focused coding per day due to cognitive limits. Studies reveal the median developer codes just 52...
og:url: https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc
og:image: https://api.daily.dev/og/posts/6CCjFqKqC.png
og:image:alt: You can code only 4 hours per day. Here’s why.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# You can code only 4 hours per day. Here’s why.

**[Tech World With Milan](https://daily.dev/sources/techworld-with-milan)** · 17 min read · 422 upvotes · 26 comments

## Summary

Research shows developers can only sustain 3-4 hours of deep, focused coding per day due to cognitive limits. Studies reveal the median developer codes just 52 minutes daily, with 11+ hours weekly consumed by meetings. Interruptions cost 23+ minutes to recover from, and achieving flow state requires 15-25 uninterrupted minutes. Practical strategies include time-blocking, eliminating context switching, protecting morning hours, and setting no-meeting days. AI coding assistants don't extend deep work capacity but can handle shallow tasks. Engineering managers should prioritize removing meetings over adding processes to maximize team productivity.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://newsletter.techworld-with-milan.com/p/you-can-code-only-4-hours-per-day>

## Community discussion

Top comments from developers on daily.dev.

**@akkitto** · 16 upvotes

> I've been saying this since ever. Same reason why all the crying about reducing the default working amount per week for employees is unjustified....

**@sparviero19** · 11 upvotes

> Nice article, I enjoyed reading it. While checking some of the references, I noticed that [3] may not be the appropriate source for the claim that "An interruption, however, comes with a hidden cost. According to Gloria Mark’s research [3], it takes a person exactly 23 minutes and 15 seconds to fully resume a prior task after an interruption." This specific figure doesn't appear in that paper.
>
> Paradoxically, the research actually demonstrates that interruptions don't change the time required to complete tasks like writing an email, but rather increase the stress levels of interrupted...

**@byteoutlaw** · 10 upvotes

> But we arent really coding anymore? 🙃

**@hardik15** · 8 upvotes

> This is where the planning of man hours in the project get conflicts. Manager plan for more hours and dev are able to complete less task, to complete more it affects the quality.

**@aboel3z** · 6 upvotes

> I agree with the title but the first line makes me think this was written by AI.

---

Tags: [#productivity](https://daily.dev/tags/productivity), [#leadership](https://daily.dev/tags/leadership)

[View this post on daily.dev](https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"You can code only 4 hours per day. Here’s why.","url":"https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc"},"datePublished":"2026-01-29T16:13:48.625Z","dateModified":"2026-01-29T16:14:12.840Z","description":"Research shows developers can only sustain 3-4 hours of deep, focused coding per day due to cognitive limits. Studies reveal the median developer codes just 52...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc19c9874e7dd22da72823cc408785b0?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc19c9874e7dd22da72823cc408785b0?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Tech World With Milan","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Tech World With Milan","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/737f436491ef436dba1bbab9052e4a04","url":"https://daily.dev/sources/techworld-with-milan"},"commentCount":26,"discussionUrl":"https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":422},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":26}],"keywords":"productivity,leadership","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tech World With Milan","item":"https://daily.dev/sources/techworld-with-milan"},{"@type":"ListItem","position":3,"name":"You can code only 4 hours per day. Here’s why."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/you-can-code-only-4-hours-per-day-here-s-why--6ccjfqkqc","comment":[{"@type":"Comment","text":"I’ve been saying this since ever. Same reason why all the crying about reducing the default working amount per week for employees is unjustified…","datePublished":"2026-01-29T20:46:45.265Z","url":"https://daily.dev/posts/6CCjFqKqC#c-wMKgjI7sE","author":{"@type":"Person","name":"Daniel","url":"https://daily.dev/akkitto","image":"https://media.daily.dev/image/upload/s--FtwJqX4c--/f_auto/v1754900041/avatars/avatar_29TCpY2hJR72V3BlxPXzX?_a=BAMClqZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16}},{"@type":"Comment","text":"Nice article, I enjoyed reading it. While checking some of the references, I noticed that [3] may not be the appropriate source for the claim that “An interruption, however, comes with a hidden cost. According to Gloria Mark’s research [3], it takes a person exactly 23 minutes and 15 seconds to fully resume a prior task after an interruption.” This specific figure doesn’t appear in that paper.\nParadoxically, the research actually demonstrates that interruptions don’t change the time required to complete tasks like writing an email, but rather increase the stress levels of interrupted individuals. The use of the word “exactly” initially caught my attention, as it seems unusual in this context. I haven’t had time to verify the other references yet.","datePublished":"2026-02-02T10:04:59.034Z","url":"https://daily.dev/posts/6CCjFqKqC#c-5eTis6iUQ","author":{"@type":"Person","name":"Thomas","url":"https://daily.dev/sparviero19","image":"https://media.daily.dev/image/upload/s--4J6YrlF1--/f_auto/v1769026248/avatars/avatar_XVRU6av5Ew1Ww2e4G8QmB?_a=BAMAMiiu0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11}},{"@type":"Comment","text":"But we arent really coding anymore? 🙃","datePublished":"2026-01-30T13:50:07.207Z","url":"https://daily.dev/posts/6CCjFqKqC#c-MlH9KafDI","author":{"@type":"Person","name":"Jacob B. Bonde","url":"https://daily.dev/byteoutlaw","image":"https://media.daily.dev/image/upload/s--veTChHK7--/f_auto/v1733220070/avatars/avatar_5cQvIZKr5tDFDotVDjulg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10}},{"@type":"Comment","text":"This is where the planning of man hours in the project get conflicts. Manager plan for more hours and dev are able to complete less task, to complete more it affects the quality.","datePublished":"2026-01-31T08:28:05.851Z","url":"https://daily.dev/posts/6CCjFqKqC#c-fVlJulPc5","author":{"@type":"Person","name":"Hardik","url":"https://daily.dev/hardik15","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8}},{"@type":"Comment","text":"I agree with the title but the first line makes me think this was written by AI.","datePublished":"2026-01-31T13:29:00.450Z","url":"https://daily.dev/posts/6CCjFqKqC#c-od4t5M1L4","author":{"@type":"Person","name":"Mohamed Aboelez","url":"https://daily.dev/aboel3z","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}}]}
```

