You open a new tab to look something up. The tab loads. You stare at the search bar.
What was it?
You go back to your editor, see the half-written function, and it comes right back. Every developer I know does this several times a day. I used to think it was a focus problem. It turns out a memory lab spent years studying this exact moment, and they built their experiment in the level editor for Half-Life.
66 rooms and a Half-Life level editor
In 2006, Gabriel Radvansky and David Copeland at the University of Notre Dame published a paper with a title that sounds like a joke: "Walking through doorways causes forgetting" (Memory & Cognition).
They built a virtual building of 66 rooms with Valve Hammer, the map tool used to make levels for Half-Life. Each room had a table. You walked in, put down the object you were carrying, picked up a new one, and walked on. Once you were holding something, you couldn't see it any more. You had to keep it in mind.
Then, at random moments, the screen asked a question. Was the thing you're carrying a red cube? Is that what you just put down?
The finding: people were worse at answering right after walking through a doorway than after walking the same distance inside one big room. Same time. Same distance. The only difference was the door.
It wasn't the screen
The obvious objection is that a video game corridor isn't real life. So in 2011 Radvansky, Sabine Krawietz and Andrea Tamplin went further (Quarterly Journal of Experimental Psychology).
They shrank the display, so people were less immersed. The effect held. They built a real set of rooms with real tables, and had people carry objects hidden inside boxes. The effect held.
Then they tested the most popular piece of folk advice: "go back to the room where you had the thought." People walked through two doorways and ended up either back in the original room or in a new one. Going back didn't help. Memory was no better in the original room than in a second room, and it was worst in the third, unfamiliar one.
So this isn't simply about missing the right cue. Something about crossing a boundary is doing the work.
Your brain stores life in chapters
Radvansky's explanation is called the event horizon model. The short version: your brain doesn't record experience as one continuous stream. It cuts it into events, like scenes in a film, and a doorway is a very clear place to make a cut.
When a new event starts, the brain files the old one away and builds a fresh model of "what's going on now." Whatever you were carrying in your head belongs to the old file. It's still in memory, but it's harder to reach, because now it competes with everything from the new scene.
Doors aren't the only cuts. Lila Davachi's lab, then at NYU, showed that even a phrase in a story works. In a 2011 study by Youssef Ezzyat and Davachi in Psychological Science, people read narratives containing small time jumps like "a while later." Sentences within the same event were bound together more tightly in memory than sentences on either side of a jump, even when the same amount of time had passed. You don't have to walk anywhere. You only have to feel that a new scene has started.
Does a browser tab count? Nobody has run that exact study, as far as I can find. But the theory predicts that any shift your brain reads as "new context" can work as a door. A new window, a new app, or a Slack thread would all count.
Then a replication made it messier
I'd love to tell you this is settled. It isn't.
In 2021, Jessica McFadyen, Oliver Baumann and colleagues (Bond University and UCL) ran four experiments in BMC Psychology, including immersive VR and real-life walking. In the first, 29 people wore headsets and walked between rooms. The doorways did nothing. People rarely forgot the objects either way.
So they made it harder. In the second experiment, 45 people had to count backwards while they walked. Now the doorways mattered, though not quite in the classic way. After crossing a doorway, people were more likely to say yes to a similar-but-wrong object. The memory got fuzzier, and it got easier to confuse.
Writing in The Conversation, the authors suggested two reasons. Their rooms looked identical, so there was no real change of scene. And the effect seemed to need a mind that was already busy.
Honestly, that matches real life better than the original. You don't forget why you opened a tab when you're relaxed and thinking about one thing. You forget when you're holding a stack trace, a variable name and a half-formed fix, and then you cross the boundary.
The twist: boundaries can help you learn
Here's the part almost nobody mentions.
In 2016, Kyle Pettijohn, Radvansky and colleagues at Notre Dame asked the opposite question (Cognition). If boundaries split memory into chunks, could that help when you're learning something?
In one experiment, 37 students memorised lists of 12 words on a computer. On some lists, they closed the window halfway through and opened a new one for the second half. Those lists were recalled a little better, about 37% of words versus 34%. That's a small difference. In a later experiment with stories, though, the gap was bigger. Stories with two event shifts were remembered better than stories with one, and both beat stories with none.
So the same mechanism cuts both ways. A boundary in the middle of a task hurts whatever you were holding in working memory. A boundary in the middle of learning can give the material structure, so each chunk has its own edges.
What I actually do with this now
- Put the intention in front of the door. Before I switch to the browser, I type the question into a comment, or I say it out loud: "searching for the Postgres JSONB index syntax." Then it crosses the boundary in writing, not in my head.
- Don't switch while overloaded. If I'm juggling three things, I write them down first, then switch. McFadyen's data suggest that load is what makes the doorway bite.
- Don't trust "go back to where you were." In Radvansky's 2011 study, returning to the original room didn't restore the memory. A note does more than retracing your steps.
- Use boundaries on purpose when learning. When I go through a long tutorial, I split it into clear sections with a real break between them: new file, new notes heading, stand up. The effect in the research is modest, but it costs nothing.
Carrying things across the boundary
The bigger version of this problem, for me, is what I learn from videos and articles. I watch something useful, close the tab, and that's a boundary too. By next week it's sitting in a closed chapter I never reopen.
That's part of why I built Recl. You save what you watched or read, and it brings each one back later as a short recall question, so the idea gets pulled across the boundary instead of left behind.
Doorways don't erase your thoughts. They close the chapter. The trick is deciding what you take into the next one.
I'm Asutosh. I write about how the brain learns and remembers, and I build Recl, a tool for remembering what you watch and read.
Sources
- Radvansky, G. A., & Copeland, D. E. (2006). Walking through doorways causes forgetting: Situation models and experienced space. Memory & Cognition, 34(5), 1150–1156. https://doi.org/10.3758/BF03193261
- Radvansky, G. A., Krawietz, S. A., & Tamplin, A. K. (2011). Walking through doorways causes forgetting: Further explorations. Quarterly Journal of Experimental Psychology, 64(8), 1632–1645. https://doi.org/10.1080/17470218.2011.571267
- Ezzyat, Y., & Davachi, L. (2011). What constitutes an episode in episodic memory? Psychological Science, 22(2), 243–252. https://doi.org/10.1177/0956797610393742
- McFadyen, J., Nolan, C., Pinocy, E., Buteri, D., & Baumann, O. (2021). Doorways do not always cause forgetting: a multimodal investigation. BMC Psychology, 9, 41. https://doi.org/10.1186/s40359-021-00536-3
- Pettijohn, K. A., Thompson, A. N., Tamplin, A. K., Krawietz, S. A., & Radvansky, G. A. (2016). Event boundaries and memory improvement. Cognition, 148, 136–144. https://doi.org/10.1016/j.cognition.2015.12.013



