Best Performing Sector During the Iran Conflict May Surprise You

In what should be a surprise to no one, energy has been one of the better performing sectors since the joint U.S.-Israel airstrikes on military targets in Iran on February 27, although it has given up some ground since a two-week cease fire was announced last week. The S&P 500 is up slightly during this period (+1.2%) while the energy sector has gained 0.4% (price appreciation, excluding dividends).

What may surprise you is that gain is only good enough for fifth place in the sector rankings since February ended. Technology is on top with a 5.9% gain. Technology beating energy during an oil price spike is surprising enough, but it comes amid selling pressure in the software industry due to fears of artificial intelligence (AI) disruption. The application software group is down about 5% and some widely held names like Salesforce (CRM) and Workday (WDAY) are down more than 10%.

Technology a Surprising Sector Leader During Iran Conflict

How Surprising Is This Technology Strength?

How surprised should we be by this strong performance from technology? Not much, based on the following analysis. Using a hypothetical study of sector performance during oil price spikes over 30%, we find that energy fares best (no surprise). But technology was second in this hypothetical scenario, suggesting that the sector’s relative strength during this period is not an outlier. Technology companies are not a heavy oil users, mitigating the effects of higher oil prices.

Read more: The Economy Takes Multiple Shocks in Stride

Energy Estimates Have Popped, But the Technology Estimate Increases Aren't Too Shabby

The next question you might ask is whether the strong performance by the technology sector is justified by fundamentals. Fueled by the AI buildout, the technology sector will likely grow earnings at least 44% year over year for the soon-to-be-reported first quarter (source: FactSet). But a strong growth outlook didn’t help sector performance from November 2025 through January of this year when technology underperformed.