Is It Better to Have the Lights On or Off When on the Computer?

Having some room lighting on while you use a computer is almost always better than sitting in total darkness. Research consistently shows that the high contrast between a bright screen and a pitch-black room strains your eyes, forces your pupils to work harder, and can degrade both comfort and reading performance. But the answer is not simply “turn all the lights on,” because too much ambient light introduces glare and reflections that create their own set of problems. The sweet spot lies in moderate, well-placed lighting that narrows the brightness gap between your screen and your surroundings without bouncing light off the display.

Why a Dark Room Feels Wrong

When you stare at a glowing screen in an otherwise dark room, the luminance difference between the bright display and everything around it becomes extreme. Your pupils try to adjust to both the bright center of your visual field and the dark periphery at the same time, and neither task goes well. A study on desktop lighting found that this contrast between a bright computer screen and a dark ambient environment directly influences visual comfort, particularly the sensation of eye strain and fatigue.1PubMed Central. Desktop lighting for comfortable use of a computer screen Your eyes never fully settle, which is part of why extended nighttime computing sessions often leave people with sore, tired eyes and sometimes headaches.

The underlying issue is that your visual system is constantly negotiating between two very different brightness levels. In a dark room, your pupils dilate to let in more light from the surroundings. But the screen is pumping out far more light than a dilated pupil needs, so your iris muscles end up in a tug-of-war. Research on accommodation and pupil dynamics under different lighting conditions found that changes in ambient illumination significantly affected both pupil diameter and the eye’s focusing effort, with differences of about 1.0 diopter across a range of light levels.2MDPI / International Journal of Environmental Research and Public Health. Is Ocular Accommodation Influenced by Dynamic Ambient Illumination and Pupil Size? That constant refocusing effort adds up over hours of use.

What Both Children and Adults Actually Prefer

When given a choice, people overwhelmingly reject total darkness as a computing environment. A study that tested both children and adults asked participants to select their preferred background brightness while watching a computer display. Both groups chose a non-dark background as their comfortable lighting condition, and the preference was statistically robust in both age groups. The researchers concluded that varying the background brightness to maintain a reasonable ratio between the screen and its surroundings benefits visual comfort.3Chinese Medical Journal. Study of preferred background luminance in watching computer screen in children

This makes intuitive sense if you think about how a movie theater works. The screen is bright, but the room is not completely black: exit signs, aisle lighting, and the screen’s own reflected glow provide some ambient illumination. If theaters were pitch-dark with a blinding screen, the experience would be uncomfortable rather than immersive. Your desk or home office works the same way.

The Glare Problem on the Other Extreme

Turning on every available light is not the solution either. Overhead fluorescents, desk lamps pointed at the screen, and uncovered windows can all create reflections on the display surface. Early research on office environments with CRT screens found that discomfort glare came from the luminance difference between the dark screen and bright room surfaces, while reflections from windows and ceiling lighting often had higher luminance values than the text on the screen itself.4PubMed. Discomfort glare and disturbances from light reflections in an office landscape with CRT display terminals Modern screens have anti-glare coatings that help, but the basic physics has not changed: a bright light source visible in or near the screen’s surface competes with the content you are trying to read.

Glare does not just cause discomfort. It measurably slows you down. Research on reading under glare conditions found that both direct glare (a bright light in your field of vision) and indirect glare (reflections on the screen) significantly increased fixation durations, meaning readers spent longer on each word and read more slowly as the lighting conditions worsened.5IOS Press (Work). The effect of glare on eye movements when reading The practical takeaway is that poorly positioned room lighting can be worse than no lighting at all.

How to Set Up Room Lighting That Actually Helps

The goal is to bring the brightness of your surroundings closer to the brightness of your screen without creating reflections on the display. A few principles make this easier than it sounds.

  • Position lights behind or beside you: A lamp placed behind your monitor or to the side of your desk illuminates the wall and surfaces around the screen without bouncing off the display itself. This is sometimes called bias lighting, and it directly reduces the luminance ratio that causes strain.
  • Avoid overhead lights directly above the screen: Ceiling fixtures that shine down onto the display surface create the worst reflections. If your only option is an overhead light, dimming it and supplementing with a side lamp helps.
  • Cover or angle windows: Natural light is great for general well-being, but a window directly behind or in front of you while computing creates either screen washout or silhouette glare. Blinds, curtains, or simply repositioning the desk so the window is to one side make a real difference.
  • Match screen brightness to the room: If your room is dimly lit, turn the screen brightness down. If the room is well-lit, turn it up. The idea is to keep the ratio between the two moderate rather than letting either dominate.

Typing performance data supports the idea that moderate illumination beats both extremes. One experiment found that an illumination level around 340 lux produced the most efficient typing performance, with 420 lux close behind.6Turkish Journal of Computer and Mathematics Education (TURCOMAT). Effect of Ambient Illumination, Screen Resolution and Zoom Level on Performance of Typing on Computers For reference, 300 to 500 lux is roughly the brightness of a standard office, while a fully lit kitchen is often closer to 500 to 700. A single desk lamp in an otherwise dim room might give you 150 to 250 lux at the desk surface. The specific number matters less than being in the ballpark: enough light to see your keyboard and surroundings, not so much that your screen looks washed out.

Dark Mode Changes the Equation

If you use dark mode on your operating system or apps, the screen itself emits less light. That shrinks the brightness gap between the display and a dark room, which is partly why dark mode feels more comfortable at night. But it does not eliminate the problem entirely. Even a dark-mode interface has bright elements: white text, colored icons, notification badges, and video content all create localized bright spots against a dim background.

Research on display modes and ambient lighting found significant differences in both subjective comfort ratings and reading performance when participants used light mode versus dark mode under different room lighting conditions.7Journal Mobile Technologies (JMS). Dark Mode vs Light Mode: Impact on User Experience and Visual Comfort in Mobile Applications The interaction matters: dark mode in a bright room can feel low-contrast and hard to read, while light mode in a dark room maximizes the very strain you are trying to avoid. Matching your display mode to the room’s ambient light level gives the best results in either direction.

A study on visual fatigue during reading under different text and lighting combinations adds a useful wrinkle. Researchers found that improvements in ambient lighting reduced visual fatigue overall, but the benefit varied depending on what colors were on screen. Cognitive performance was better with yellow and white text than with red text, and red text caused the highest fatigue regardless of lighting.8PubMed Central. The Effect of Ambient Illumination and Text Color on Visual Fatigue under Negative Polarity The lesson is that ambient lighting helps, but what your screen is displaying also matters. High-contrast text on a well-lit background tends to be the least fatiguing combination.

The Color Temperature of Your Room Light Matters Too

Not all light is created equal when it comes to pairing with a screen. The “warmth” or “coolness” of your room lighting, measured in color temperature, affects how natural the visual environment feels. A computer screen typically runs somewhere between 5,000 and 6,500 Kelvin (a cool, bluish white), while a warm incandescent bulb is closer to 2,700 K and a standard LED might be 3,000 to 4,000 K.

Research on screen-based tasks in bedroom environments found that task-light color temperatures in the 3,000 to 4,000 K range reduced the spectral contrast between the laptop screen and the surrounding room surfaces. Lower color temperatures, particularly around 3,000 K, also produced higher color rendering quality and smaller differences between the task zone and the ambient environment.9Frontiers in Built Environment. Achieving visual balance for screen-based tasks in multifunctional bedrooms: roles of task illuminance, correlated color temperature, and color rendering In plain terms, a warm-white desk lamp or overhead bulb creates a more uniform visual field alongside your screen than a cool daylight bulb does. Your eyes do not have to adapt as aggressively between the screen’s bluish glow and a similarly toned surrounding.

What About Sleep and Melatonin?

The nighttime lighting question extends beyond eye comfort. A common concern is that screen light suppresses melatonin and disrupts sleep. The evidence here is more nuanced than many headlines suggest. A study on college students measured melatonin levels after exposure to a computer monitor alone versus exposure to concentrated blue light delivered through goggles. The blue-light goggles significantly reduced melatonin compared to sitting in darkness, but the computer monitor on its own produced only a slight, non-significant reduction.10PubMed. The impact of light from computer monitors on melatonin levels in college students

That finding suggests the screen itself, at normal viewing distances, is not the melatonin-suppressing monster it is sometimes made out to be. The bigger factor is likely total light exposure in the hours before bed, including room lighting. A bright overhead light at 11 PM exposes your retinas to far more total photons than a laptop screen at arm’s length. If you are concerned about sleep, dimming the room lights in the evening is probably more impactful than obsessing over screen brightness alone, though combining both strategies is reasonable.

Individual biology also plays a role. A review of light sensitivity research found strong evidence that traits like age, sex, and chronotype (whether you are naturally a morning person or a night owl) all influence how much evening light exposure affects sleep and circadian rhythms. The authors argued for personalized lighting recommendations rather than one-size-fits-all guidelines.11PubMed Central. Individual differences in light sensitivity affect sleep and circadian rhythms If you find that even dim screen use at night wrecks your sleep, your personal threshold may simply be lower than average.

Age Makes a Bigger Difference Than Most People Realize

The aging eye needs more light. The lens yellows and the pupil’s maximum dilation shrinks with age, so less light reaches the retina. Research testing 150 subjects across different ages found a strong interaction between age and illumination for detail-oriented visual tasks. Older adults performed much worse in dim light but closed much of the gap when illumination was increased. Across all ages, participants reported higher satisfaction and perceived lower task difficulty as the light level went up.12Lighting Research & Technology. Age, illuminance, visual performance and preference

For computing specifically, this means a 60-year-old probably needs noticeably brighter room lighting than a 25-year-old to maintain the same comfort and reading speed. If you have been computing in dim rooms your whole life and only recently started finding it uncomfortable, age-related changes in your eyes might be the explanation rather than the screen itself getting worse.

Digital Eye Strain and the 20-20-20 Rule

Lighting is one piece of the digital eye strain puzzle, but not the only one. A comprehensive review of digital eye strain identified several management strategies: reducing daily screen time, blinking more frequently, improving lighting, minimizing glare, taking regular breaks, periodically focusing on a distant object, and following the 20-20-20 rule, which means looking at something 20 feet away for 20 seconds every 20 minutes.13PubMed Central. Digital Eye Strain- A Comprehensive Review Lighting shows up on that list, but so do behaviors that have nothing to do with the room’s lights.

People who fixate on the lights-on-or-off question sometimes overlook that they have not blinked normally in three hours, their screen is 14 inches from their face, and they have not looked away from it since lunch. Fixing the room lighting helps, but it will not compensate for sitting too close, staring without breaks, or cranking the screen brightness to maximum in any room condition.

Screen Time, Children, and Myopia

For parents wondering whether room lighting affects their child’s eye development, the evidence on screen time and myopia is worth knowing about separately from comfort. A meta-analysis of studies on children and adolescents found that high screen time was associated with roughly double the odds of developing myopia compared to low screen time across both cross-sectional and cohort studies. Computer use specifically carried a stronger association than other devices: when analyzed by device type, computer screen time had an odds ratio around 8 in the categorical analysis, far higher than television or smartphones.14PubMed Central. The association between screen time exposure and myopia in children and adolescents: a meta-analysis

A systematic review of European children echoed these findings, noting associations between screen-related behaviors, prolonged near work, reduced outdoor exposure, and myopia-related outcomes, though the authors cautioned that screen exposure was often measured using broad or inconsistent variables across studies.15PubMed Central. Screen Time and Myopia-Related Outcomes in European Children: A Systematic Review Room lighting has not been isolated as a major factor in screen-related myopia progression in these studies. The bigger risk factors appear to be total near-work duration and lack of outdoor time. Still, good room lighting promotes comfortable viewing distances and reduces the temptation to lean closer to the screen, which indirectly supports better habits.

When Bright Lighting Can Backfire

There is one scenario where more room light may not help: cognitively demanding tasks under already-good visibility. A study comparing pupillometry and subjective measures during workplace tasks found no significant effect of illuminance level on pupillary strain markers, but subjective workload actually increased with illuminance during the most demanding task.16Frontiers in Public Health. Beyond visual comfort: comparing pupillometry and subjective measures of cognitive strain in workplace lighting In other words, once you have enough light to see comfortably, cranking it higher does not make hard mental work easier and might even feel more stressful. The practical implication is straightforward: aim for “enough” rather than “as much as possible.” A comfortably lit room is the target. A blazingly lit room offers no additional benefit for screen work and can feel oppressive during tasks that already tax your brain.

This finding also helps explain why many people instinctively dim the lights when doing focused creative or programming work. They are not wrong to do so, as long as they keep enough ambient light to avoid the extreme contrast problem. A dim, warm lamp behind the monitor can be the ideal compromise: it softens the brightness gap without flooding the room with light that competes for your attention during deep focus.