What If Thoughts: Why Your Brain Gets Stuck in Worst-Case Scenarios

Articles · · 10 min read
Dr. Jud Brewer
Dr. Jud Brewer, MD, PhD

Psychiatrist • Neuroscientist • Brown University Professor

NYT bestselling author · 20M+ TED views · Featured on 60 Minutes

As Featured In
TIMEThe Washington PostForbesCNNHuffPostNPR

What if I say the wrong thing in the meeting tomorrow? What if they think I’m not qualified? What if I lose the job? What if I can’t pay rent? What if…

You’ve done this. One small worry opens a door, and your brain walks through it into a hallway of increasingly terrible rooms. Each “what if” feels urgent. Each one feels like preparation, like you’re doing something responsible by thinking it through.

You’re not. You’re running a habit loop.

If your brain plays this game, you’re not being irrational. You’re being human. Your brain is doing exactly what it evolved to do: scan for threats. The problem is that it learned to scan constantly, even when there’s nothing to find.

“What if” thoughts aren’t random. They’re a habit. And habits can be changed.

As a psychiatrist and neuroscientist, I’ve spent 20+ years studying how the brain gets stuck in loops like this, and more importantly, how to get unstuck. In my clinical trial at Brown University, participants using the method I’ll describe here reduced their anxiety symptoms by 67% (DOI: 10.2196/26987). That method works because it targets the exact mechanism that keeps “what if” thoughts running.

What Are “What If” Thoughts?

“What if” thoughts are repetitive, future-oriented anxious thoughts that begin with “what if” and spiral toward worst-case scenarios. They are a form of worry where the brain rehearses potential threats as if anticipating danger will protect against it.

This is different from productive planning. Planning has an endpoint: you consider options, make a decision, and act. “What if” thinking has no endpoint, because the goal isn’t solving a problem. The goal is avoiding uncertainty. You can plan your way out of “what should I pack for the trip?” You cannot plan your way out of “what if something terrible happens on the trip?”

It’s also worth distinguishing “what if” thoughts from OCD intrusive thoughts. “What if” thoughts in anxiety are about plausible (if unlikely) future scenarios: what if I fail, what if I get sick, what if they leave. OCD intrusive thoughts involve unwanted, ego-dystonic content (thoughts that conflict with your values) and are often paired with compulsions. There’s overlap, but the mechanisms differ. If your “what if” thoughts are about rehearsing futures, you’re likely dealing with an anxiety habit loop.

Why Your Brain Gets Hooked on “What If”

Your brain treats uncertainty as a threat. Not knowing what will happen activates the same neural circuitry as physical danger. “What if” thinking is your brain’s attempt to resolve that threat by rehearsing every possible outcome.

Here’s the habit loop:

  1. Trigger: Uncertainty. An upcoming event, an ambiguous interaction, an unresolved decision, or just a quiet moment with nothing else to focus on.
  2. Behavior: Generate a “what if” scenario. Mentally rehearse the worst case. Follow the thread deeper.
  3. Result: A brief sense of control. “At least I’m preparing.” This is the reward, and it’s what keeps the loop running.

Your brain learns: uncertainty feels bad, “what if” thinking feels productive, so do more of it.

The tricky part is that the “reward” here isn’t pleasure. It’s relief. A brief reduction in the discomfort of not knowing. That’s enough. Your brain doesn’t distinguish between “this genuinely helped” and “this briefly made me feel less helpless.” Both register as reward. Both reinforce the behavior.

This is why the thoughts escalate. Each “what if” answer generates a new question. “What if I fail the presentation?” leads to “What if I get fired?” which leads to “What if I can’t find another job?” Your brain treats each new scenario as a new threat, restarting the loop at higher intensity. One door leads to another, and the hallway never ends.

Your Brain’s Autopilot Mode

There’s a reason “what if” thoughts flood in when you’re lying in bed, sitting in traffic, or waiting in a quiet room. When you’re not focused on a task, your brain’s default mode network activates. This is the network associated with self-referential thinking, mind-wandering, and (in anxious brains) worry.

My lab’s research on meditation and the default mode network (DOI: 10.1073/pnas.1112029108) showed that this network drives repetitive self-referential thinking. Think of the default mode network as your brain’s autopilot mode. When there’s no task demanding your attention, autopilot takes over. And for anxious brains, autopilot has one setting: scan for threats.

In other words, “what if” thoughts aren’t random noise. They’re your brain’s idle mode doing what it learned to do. When your brain has nothing to chew on, it chews on uncertainty. And it’s gotten very good at it. This is why “what if” spirals hit hardest at night, in the shower, during your commute, any moment your brain doesn’t have a specific problem to solve.

Amy’s Story: When “What If” Meets “Why”

One of my patients (I’ll call her Amy) was a working mom of three teenagers. Everything felt huge. Her brain’s default was “what if” layered on top of “why.” What if I can’t cope? Why am I anxious? What if this never stops? Why can’t I just be normal?

She was snapping at her kids for no reason. Anxious about driving to work. Overwhelmed by her to-do list. Napping half the day just to escape the noise in her head.

When Amy sat in my office, I asked her to describe what was happening. She got stuck in the loop three times in a single session just trying to explain it. Her brain kept pulling her back into “what if” and “why” spirals mid-sentence.

Her habit loop looked like this: Trigger (anxiety shows up) leads to behavior (figure out why, rehearse what-ifs, try to think her way to safety) leads to result (more anxiety). The “thinking it through” that felt like problem-solving was actually generating more fuel for the fire.

I asked her: “What does it feel like when you can’t figure out why?”

“It makes it worse,” she said.

“What if the ‘what if’ doesn’t matter?”

That landed. She didn’t need to answer every what-if. She needed to see that answering them was the loop. The answers weren’t the point. The searching was the habit. And the searching always made things worse.

Her homework was simple: notice the what-if loop when it starts, take three deep breaths, and remind herself that following the thread won’t lead anywhere new. Not because breathing is magic, but because the pause gave her just enough space to see the loop instead of being inside it.

If you find yourself caught in a similar pattern of overthinking, where analyzing the problem becomes the problem, Amy’s experience is worth sitting with.

How to Break the “What If” Loop: Three Gears

The Three Gears framework is built on reward-based learning (DOI: 10.1177/15598276211008144). Instead of trying to force yourself to stop thinking “what if” thoughts (which requires willpower, which fails under stress), you work with your brain’s learning system to update the reward value of the habit. When your brain sees clearly that “what if” thinking doesn’t deliver what it promises, it naturally does less of it.

This is self-regulation without force (DOI: 10.1177/1745691620931460). You’re not fighting the loop. You’re letting your brain see through it.

Gear 1: Map the Loop

Next time a “what if” thought shows up, don’t try to answer it. Instead, map what’s actually happening.

What’s the trigger? Usually, uncertainty about something specific. What’s the behavior? Mentally rehearsing worst cases. What’s the result? A brief feeling of “at least I’m preparing,” followed by more anxiety.

Write it down if you can. Seeing the loop on paper takes it from invisible autopilot to something concrete. You’re not trying to change anything yet. You’re just looking at it clearly.

If you’re new to habit loops, our habit loop guide explains the Trigger-Behavior-Result framework in more detail.

Gear 2: Get Curious, Not Caught

Once you can see the loop, ask yourself a different question. Not “what if this terrible thing happens?” but “What am I actually getting from this?”

Sit with that. Really sit with it.

Most people discover that the “preparation” is an illusion. The “what if” loop never produces a plan. It never reaches a conclusion. It just produces more what-ifs, which produce more anxiety, which produces more what-ifs.

When your brain sees that clearly, something shifts. The reward value drops. The loop weakens. This is what I call disenchantment: the moment your brain realizes the habit isn’t delivering what it promised. You don’t have to force anything. You just have to look honestly at what “what if” thinking actually gives you.

You don’t have to believe me on this. Just try it and pay attention to what happens.

Gear 3: Find a Bigger Better Offer

Your brain can’t just stop a habit. It needs something more rewarding to replace it. Curiosity is the bigger better offer (BBO) for “what if” thoughts.

Instead of “what if something terrible happens,” try: “Hmm, what does this worry actually feel like right now?” Where is it in your body? Is there tightness in your chest? Heat in your face? What happens when you just notice it instead of feeding it?

Curiosity activates investigation circuits that are neurologically incompatible with the anxiety loop. You can’t be genuinely curious and anxiously spinning at the same time. They run on different networks in the brain. Someone in my clinic described the shift as going from “Oh no, what if?” to a quiet “Hmmm, that’s interesting.” Same sensation in her body. Completely different relationship to it.

This is the core of what makes the Three Gears different from “just relax” or “think positive.” You’re not suppressing the thought. You’re replacing the mental activity of catastrophizing with the mental activity of investigating. And investigation, it turns out, is more rewarding to your brain than rehearsing disasters.

The Research

Generalized anxiety disorder (GAD) is defined by excessive, uncontrollable worry, and “what if” thinking is one of its hallmarks. In a randomized controlled trial my team published (Brewer et al., 2021), participants who used the Three Gears framework through app-based mindfulness training showed a 67% reduction in GAD symptoms, compared to 14% in the control group (DOI: 10.2196/26987).

That’s not a small effect. And the participants weren’t monks or meditation experts. They were regular people with clinical anxiety who learned to work with their habit loops instead of fighting them.

The mechanism is straightforward. “What if” thoughts persist because the brain treats them as rewarding (they feel productive). The Three Gears work by updating that reward value. When the brain sees clearly that “what if” thinking doesn’t deliver what it promises, it naturally does less of it. This is reward-based learning, not willpower. You’re not forcing your brain to stop. You’re helping it learn something new: that the “what if” loop was never actually protecting you.

What to Do Right Now

Here’s a 60-second practice you can try the next time a “what if” thought shows up.

Don’t try to answer it. Instead:

  1. Name it. “That’s a what-if thought.” Just that. Naming it creates a tiny bit of distance between you and the thought.
  2. Notice what it feels like in your body. Tightness, heat, constriction, a knot in your stomach. Don’t analyze it. Just notice.
  3. Get curious. “What am I really getting from following this thread?” Sit with the question. Usually, the honest answer is: nothing. You’re not getting a plan. You’re not getting safety. You’re just getting more anxious.

That noticing is enough to interrupt the loop. Not every time, and not perfectly. But each time you see the loop clearly, your brain updates its model. The reward value of “what if” thinking drops a little. And a little is all it takes to start.

“What if” thoughts are a habit. Map your worry loop with the free Habit Mapper.

If you’re ready to go deeper into how worry works as a habit, start with our anxiety guide or read about the anxiety spiral and how it reinforces itself. If “what if” thoughts are keeping you up at night, you might also find our piece on high-functioning anxiety useful, especially if your “what if” loop is fueling overperformance during the day and collapse at night.

Your brain learned to run this loop. It can learn to run something better.

Free: Dr. Jud's Anxiety Guide

Get Dr. Jud's guide to breaking anxiety habits, plus a 10-minute guided audio exercise based on his research with over 100,000 people.

Get the Free Guide

Going Beyond Anxiety

Dr. Jud's cutting-edge anxiety reduction program that combines the latest neuroscience from his lab with compassionate coaching to help people control their anxiety, end worry habits, and learn to flourish.

Learn More
what if thoughts anxiety worry habit loop catastrophizing