Stock Market Today: Nasdaq, S&P 500, Dow Climb on Iran Peace Optimism and Tech Strength

The major U.S. stock indices are having a good day. According to Yahoo Finance, the Nasdaq, S&P 500, and Dow all moved higher on May 5th, 2026, riding a wave of geopolitical optimism surrounding Iran peace negotiations combined with solid earnings reports from the technology sector.

So why does this matter? Because when investors feel confident about geopolitical risk, they're willing to take on more market exposure. They're not sitting in cash. They're buying.

The Iran peace talks represent a potential reduction in Middle East tensions—something that's been a persistent drag on sentiment for years. Even the hint of diplomatic progress can shift the entire tone of a market session. And when you combine that with tech companies actually delivering on earnings? You get days like today.

Let's break down what happened in the tech sector specifically.

The technology companies that make up a huge chunk of both the Nasdaq and the S&P 500 reported strong quarterly results. This matters because tech earnings drive a disproportionate amount of market movement. These aren't just any stocks—they're the firms that define where growth investors are putting money. When those earnings disappoint, the whole market feels it. When they beat? Markets tend to move up.

But here's what's interesting about the current market environment.

We're watching this play out while cybersecurity concerns continue to haunt corporate America. Reports of cyberattacks against major firms—including incidents affecting companies with infrastructure exposure—have raised questions about whether IT spending will accelerate or contract. Does the U.S. conduct cyber attacks abroad? Yes. Are companies worried about becoming targets themselves? Absolutely. This has actually created some tailwinds for cybersecurity stocks, which are seeing increased demand from corporations looking to protect their systems. Companies in the cybersecurity space are benefiting from this reality, even if the broader market isn't explicitly pricing in elevated cyber risk at this moment.

The real question is whether this optimism sticks or if we're looking at a temporary relief rally.

Geopolitical sentiment can shift on a dime. A single headline from Iran, a tweet from a government official, or a breakdown in negotiations could reverse today's gains just as quickly. That's the thing about markets driven partly by external political events—they're inherently unstable sources of momentum. Tech earnings, though? Those are easier to model. If companies keep beating expectations, that's a more durable reason to own stocks.

What should investors do with their portfolios right now?

If you're holding technology positions, today's rally might be a good moment to rebalance if you're overweight the sector. If you've been sitting in defensive positions waiting for a pullback, the combination of falling geopolitical risk and solid corporate earnings might justify rotating into growth. But don't chase performance—that's how people get hurt. The gains are real, but they're built on sentiment as much as fundamentals.

Keep an eye on how these negotiations actually develop. One month from now, we might look back at today as the peak of relief-rally enthusiasm, or it could mark the beginning of a sustained uptrend. The Nasdaq, S&P 500, and Dow aren't going anywhere—but their next move depends heavily on whether the geopolitical story holds and whether earnings surprises continue.