Eye CareScience

What Is the 20-20-20 Rule for Eye Strain?

August 6, 2026·6 min read

The 30-Second Version

The 20-20-20 rule is simple: every 20 minutes, look at something 20 feet away for 20 seconds. That's it. No apps to install, no equipment to buy, no complicated routine to follow.

If you've ever finished a coding session with dry, tired eyes or a dull headache behind your sockets, this rule was designed for you.

Why It Exists

The rule was popularized by Dr. Jeffrey Anshel, an optometrist who noticed that computer workers were reporting eye strain at unprecedented rates. The problem wasn't that screens were inherently dangerous — it was that we stare at them without blinking enough, and our eyes never get a chance to refocus at a natural distance.

When you look at a screen, your eyes are locked at a fixed focal distance of roughly 20–30 inches for hours on end. The ciliary muscles inside your eyes — the ones responsible for focusing your lens — are held in a constant state of contraction. Imagine clenching your fist for 8 hours straight. That's essentially what your eyes are doing.

The Science Behind Each "20"

Every 20 Minutes

Why 20 minutes and not 10 or 30? Research from the ophthalmology community suggests that visual discomfort begins to accumulate noticeably after about 20 minutes of continuous near-work. Taking a break at this interval prevents the buildup of strain before it becomes symptomatic.

Studies referenced by the American Academy of Ophthalmology (AAO) recommend the 20-20-20 rule as a practical guideline, though the exact interval isn't magical — it's a balance between "frequent enough to work" and "rare enough that people will actually do it."

20 Feet Away

Twenty feet (about 6 meters) is the distance at which your eyes' focusing muscles can fully relax. At this distance, your ciliary muscles don't need to contract to keep the image sharp — the light rays arrive nearly parallel, and your lens can rest in its default state.

You don't need to measure exactly 20 feet. Looking down a hallway, out a window, or across the room is usually sufficient. The key is that the object is far enough that your eyes stop trying to focus up close.

For 20 Seconds

Twenty seconds gives your focusing muscles enough time to fully relax and "reset." It also gives you a chance to blink naturally — when staring at screens, our blink rate drops from about 15 times per minute to 5–7 times per minute, leading to dry eyes.

Twenty seconds is also short enough that it doesn't disrupt your workflow. You're not stepping away from your desk or breaking your concentration. You're just giving your eyes a micro-break.

Why Developers Need This More Than Most

As developers, we have a unique relationship with screens:

  • Deep work sessions — We get into flow states that can last 2–3 hours without interruption. During these sessions, we're not just looking at a screen; we're intensely focused on tiny text, syntax, and diffs.
  • Multiple monitors — Many of us use 2–3 monitors at different distances and angles. Our eyes are constantly refocusing between them, which is even more fatiguing.
  • Dark themes — Dark mode is easier on the eyes in low-light conditions, but the high contrast between bright text and dark backgrounds can actually increase strain in well-lit environments.
  • Long sessions — A 10-hour coding session isn't unusual during a crunch or a bug fix marathon.

The cumulative effect? By the end of a workday, many developers experience what's clinically known as Computer Vision Syndrome (CVS) — a combination of eye strain, dry eyes, headaches, and blurred vision. Studies estimate that 50–90% of people who work at computers experience some symptoms of CVS.

How to Actually Stick to It

Knowing the rule and following it are two different things. Here's what works:

  1. Use a timer — You won't remember to take breaks on your own. That's literally why we built the 20-20-20 Eye Care Timer. It runs in your browser tab, updates the title with the countdown, and gives you a full-screen green overlay when it's time to look away.
  2. Make it frictionless — Don't set an alarm on your phone. Don't use a separate app. Use something that's already in your workflow. A browser tab you keep open while coding is ideal.
  3. Look at something specific — Don't just "look away." Pick an object 20+ feet away and actually focus on it. A tree outside your window. A clock on the far wall. A coworker's desk (maybe not that last one). The point is to give your eyes a real focal target.
  4. Blink deliberately — During your 20-second break, blink a few times consciously. It sounds silly, but it helps re-lubricate your eyes.

The Bottom Line

The 20-20-20 rule isn't a cure-all, and it won't reverse serious vision problems. But it's one of the simplest, most effective habits you can build to reduce daily eye strain. No cost, no equipment, no medication — just 20 seconds of your time every 20 minutes.

If you spend more than 4 hours a day in front of a screen (and as a developer, you almost certainly do), this is the single highest-ROI eye care habit you can adopt.

Ready to try it? Open our free 20-20-20 timer and keep it running in a tab while you code. Your eyes will thank you.


Want to dive deeper? Check out our developer's guide to healthy eyes for a comprehensive look at screen ergonomics, lighting, and long-term eye health.

Try This Tool

Related Articles