Advertisement
Lifestyle 9 min read

Working From Home Destroyed My Sleep (Here's How I Fixed It)

When your bedroom is your office, your brain stops knowing the difference

Kevin Li
Kevin Li Software Developer, Former Insomniac
Published
Laptop on bed in dimly lit bedroom

Key Takeaways

  • Stimulus control is the reason WFH wrecks sleep: your brain stops associating bed with sleep when it also associates your bedroom with work and stress
  • The commute acted as a decompression buffer — removing it collapsed the transition between work mode and rest mode
  • Blue light after dark delays melatonin by up to 3 hours — laptop screens matter more than your phone
  • A hard shutdown ritual at a consistent time is more effective than any single sleep hack
  • A dedicated workspace (even a desk in the corner) meaningfully separates the cues your brain uses to switch modes

When I went fully remote in early 2020, I thought the sleep situation would fix itself. No commute, no alarm anxiety, work whenever I felt sharp. I lasted about three weeks before I was lying awake at 1am next to my open laptop, reading Slack messages I'd already read twice.

The problem wasn't discipline. I'm pretty disciplined about most things. The problem was that I'd accidentally trained my brain to treat my bedroom as a stress-activation zone — and my brain is very good at learning associations it's never asked to learn. Took me about six months to figure out what was actually happening and another couple of months to fix it.

If remote work has made your sleep worse and you can't figure out why, this is probably why.

01 The Bedroom-Office Association Problem

There's a well-established behavioral principle in sleep medicine called stimulus control. The basic idea is that your brain is constantly building associations between environments and mental states. When you consistently do wakeful, stressful things in bed, your brain learns that bed equals alertness[1].

This is why one of the first things a CBT-I therapist tells you is: don't work in bed, don't watch TV in bed, don't scroll your phone in bed. The bed is for sleep (and sex). Everything else teaches your brain the wrong cue.

Pre-WFH Brain

Office desk Work mode, alert
Commute home Transition, decompression
Bedroom Rest, sleep

WFH Brain (untreated)

Bedroom Work, stress, alerts, email
Bedroom Video calls, deadlines
Bedroom ...also supposed to sleep?

Working from the bedroom — or even having your work laptop on your nightstand — is enough to blur this association. Your brain isn't dumb; it notices the pattern. The laptop means work. Work means alertness. Alertness means not sleeping. You lie down and your brain starts its "work alert" routine because that's what it does in this room now.

02 You Lost Your Decompression Buffer

This one took me an embarrassingly long time to notice. I thought I was gaining an hour by not commuting. I was — but I was also losing the transition period that helped my nervous system shift gears.

Commuting is terrible in many ways. But it did serve a psychological function: it was a clear boundary between work state and home state. By the time you got home, you'd had 20 or 40 minutes of music, audiobook, or just watching scenery go by. Your brain had started the switch-off process[2].

Without that buffer, work ends at 6pm and you're in your bedroom at 6:01pm. Nothing has decompressed. The stress hormones from the last meeting are still circulating. Your nervous system is still in go-mode. And then you expect to be asleep by 10pm.

"I thought I was gaining an hour by not commuting. I was losing the one transition that actually helped me stop working."

— A realization that came about six months too late

03 Screen Time Creep and the One-More-Email Trap

When your work laptop is in the same room where you sleep, it creates a gravity problem. It's right there. You can just check. It takes 30 seconds. This is how 11pm becomes 1am.

Blue light from screens suppresses melatonin production. That's well-documented. But the more insidious problem isn't the light — it's the activation. Reading a work email triggers problem-solving, social evaluation, mild anxiety about tomorrow. Your brain lights up in exactly the way it shouldn't be lighting up 45 minutes before bed[3].

10:00pm

You decide to check one notification

Seems harmless. It's one thing.

10:08pm

You're replying to an email

It just needed a quick response. You're being responsible.

10:34pm

You're now thinking about work

Your brain is in problem-solving mode. Melatonin is suppressed. You don't feel sleepy.

11:55pm

You're lying awake wondering why you can't sleep

You have a meeting at 8am.

The blue light is a real issue but it's secondary to the psychological activation. Wearing blue-light glasses while reading a stressful Slack thread does approximately nothing for your cortisol levels.

04 What Actually Fixed It

I spent a while trying individual tricks — blue light glasses, white noise machines, magnesium supplements. Some helped a little. Nothing really fixed it until I addressed the root problem, which was boundary collapse between work and sleep. Here's what made the actual difference:

01

Get the Laptop Out of the Bedroom

This sounds obvious and I resisted it for months because my apartment was small. But even moving the laptop to the kitchen table and closing the bedroom door made a measurable difference within a week. Physical separation matters because visual cues matter. If you can see the laptop, your brain knows it's there.

02

Create a Dedicated Workspace

Even a desk in the corner of the living room is better than the bedroom. The goal is a consistent place that your brain associates with work — so the bedroom can go back to being associated with rest. It doesn't need to be a separate room, just a separate place.

03

Build a Fake Commute

I started going for a 20-minute walk after I finished work every day. No phone calls, no podcasts about work. Just the walk. Within a couple of weeks my brain had learned that the walk meant the workday was over. It sounds absurd but it works — you're recreating the transition function the commute used to serve.

04

Hard Shutdown at a Fixed Time

I set 6:30pm as my "computer off, notifications off, done" time and I stuck to it even when I didn't feel done. Consistency is the mechanism here — you're training your nervous system that 6:30 means "work is over." After a few weeks, your body starts winding down automatically around that time, like it used to when the commute was the signal.

05

Blue Light Evening Protocol

Two hours before bed: screen brightness down, warm light mode on, no new work tabs opened. One hour before: close the laptop entirely. This matters less than the behavioral boundaries above, but once those are in place, managing blue light exposure in the final stretch genuinely does help the transition to sleep happen faster.

The Notification Problem

Turning off work notifications after your shutdown time is non-negotiable. You don't need to be reachable 24 hours a day. If something is a genuine emergency, someone will call you. The rest can wait until morning. Every time you see a Slack notification at 10pm, your brain activates — even if you don't respond. The solution is not seeing it.

05 Realistic Expectations

None of this is instant. Stimulus control interventions take 2-6 weeks to meaningfully shift associations. You will lie in bed the first week with your laptop in the other room and still think about work. That's normal — the old pattern is still there while the new one is being built.

The change I noticed first, around week two, was that I stopped feeling the activation spike when I got into bed. I'd lie down and my brain would just... start to slow down, the way it used to before remote work scrambled everything. That's the association shifting back to where it belongs.

Your bedroom is not a co-working space

I'm not romanticizing office commutes or saying remote work is bad. Remote work is genuinely good for me in a lot of ways. But the sleep piece requires active management that in-office work handled automatically through physical separation of spaces.

The core insight is simple: your brain learns from your behavior, not from your intentions. If you work in bed, it learns that bed means work. If you sleep only in bed, it learns that bed means sleep. You're in charge of which lesson it gets — but you have to actually change the behavior, not just know about the problem.

Start with the laptop. Get it out of the bedroom tonight. Everything else is secondary to that one change.

Sources & Further Reading

  1. Bootzin, R. R., & Epstein, D. R. "Understanding and treating insomnia." Annual Review of Clinical Psychology, 7, 435-458. (2011) PubMed →
  2. Sonnentag, S., & Fritz, C. "The Recovery Experience Questionnaire: development and validation of a measure for assessing recuperation and unwinding from work." Journal of Occupational Health Psychology, 12(3), 204-221. (2007) PubMed →
  3. Lanaj, K., Johnson, R. E., & Barnes, C. M. "Beginning the workday yet already depleted? Consequences of late-night smartphone use and sleep." Organizational Behavior and Human Decision Processes, 124(1), 11-23. (2014) PubMed →
  4. Morin, C. M., et al. "Cognitive-behavioral therapy for insomnia: a systematic review." Sleep Medicine Reviews, 10(6), 391-398. (2006) PubMed →
Kevin Li
Written by

Kevin Li

Software Developer, Former Insomniac

Former 4-hours-a-night tech guy. Burned out at 31, spent two years fixing my sleep. Built this calculator because all the existing ones looked like they were made in 2005.

Advertisement 728x90
Advertisement