blink! 🫵Get blink! — £14.99
Eye health

How to Reduce Eye Strain When Coding

Coding is one of the most demanding screen tasks for your eyes — small text, fixed focus, long sessions, and a level of concentration that suppresses blinking more than almost anything else. Most of it is fixable.

7 min read

Why coding is hard on eyes

A few things combine to make development work particularly straining. The text is small. The contrast requirements are high. You're often in a dark-themed editor on an otherwise bright monitor, creating luminance mismatch. And the depth of focus required during debugging or complex problem solving suppresses blinking to the point where tear film breaks down faster than in almost any other screen task.

The end-of-day headache that many developers treat as a professional inevitability is mostly addressable. Here's what actually makes a difference.

Editor settings

Font size
14–16pt minimum
Most developers run their editor smaller than is good for them, reasoning that more code on screen is worth it. The cost is that your visual system works harder to resolve fine detail for hours. Try going 2pt larger — after a few days of adjustment, the reduction in strain is noticeable.
Line height
1.5–1.6
Tighter line spacing increases text density and gives the eye less space to parse between lines. A modest increase in line height costs very little visible real estate while meaningfully reducing reading effort across long sessions.
Font
JetBrains Mono, Fira Code, or Cascadia Code
Coding fonts are designed with clear differentiation between similar characters — 1, l, I and 0, O are common sources of parsing errors with general fonts. Reducing character ambiguity reduces the cognitive effort your eyes expend resolving code.
Theme
Match to ambient light
Dark themes reduce overall luminance in dim environments. Light themes can be easier in bright rooms. The rule is consistency between screen and environment — don't use a dark theme in a bright room or a light theme with a dim setup.

Monitor setup

An external monitor at the right position is the highest-impact physical change most developers can make. The correct position is directly in front of you, at arm's length (50–70cm), with the top of the screen at or just below eye level. Coding on a laptop screen below eye level, hunched forward, adds neck strain and forces your eyes to angle downward for hours.

For dual-monitor setups: put the primary screen — the one your eyes spend most time on — directly in front. Looking 30 degrees sideways for hours at a time is a consistent driver of extraocular muscle fatigue.

Blink rate during focus work

This is the largest driver of developer eye strain that goes unaddressed. Deep focus states during debugging, code review, or complex implementation can push blink rate to extremely low levels for extended periods. By the time you notice discomfort, the eye surface has been under-lubricated for a long time.

The simplest intervention: blink deliberately at natural pause points — after a compile, while a search runs, while thinking through a problem. These pauses happen anyway; adding a few deliberate blinks costs nothing and adds up meaningfully over an eight-hour session.

Breaks

The Pomodoro rhythm — 25 minutes of focused work, 5-minute break — maps well to development work and provides natural visual recovery points. During the 5-minute breaks, look out a window rather than at your phone. The point is distance focus and rest from near work. Switching to your phone screen gives your mind a break but your eyes none.

Built for people who stare at code all day

blink! runs quietly on your Mac and monitors your blink rate throughout the day. When it drops — which it does most severely during focus work — you get a nudge before symptoms accumulate. One-time purchase, no subscription.

Get blink! — £14.99
Best Monitor Settings to Reduce Eye Strain
How Many Times Should You Blink Per Minute?
Free Blink Rate Test
Check your blink rate in 60 seconds.