ThisCalculator

Everyday

Energy Stocks vs Tech: Why They Rise When Tech Lags

Updated · Standard formula, shown below

Return difference (energy - tech) -4.00 %
Ending value (energy)
2,159 $
Result
Ending value (tech)
3,106 $
Result
Time period (years)
10 years
You entered

Energy stocks often rise when technology stocks lag because they are driven by different fundamental forces: energy prices (oil, gas, and electricity) and the broader economic cycle, while tech stocks depend on growth expectations, interest rates, and innovation cycles. When the economy shows signs of inflation or geopolitical tension, energy becomes a favored hedge, while tech, with its long-duration cash flows, suffers from higher discount rates. This article explains the specific mechanisms, historical context, and practical implications of this rotation.

Formula

The calculator compares the performance of two hypothetical investments over a given period. The key output is the return difference (energy return minus tech return), expressed in percentage points. The formula is simply:

Difference = r – g

Where:

  • r = annual return of energy stocks (in %)
  • g = annual return of tech stocks (in %)

The calculator also shows the ending value of a $1,000 initial investment in each sector, using the compound growth formula:

Ending Value = 1000 × (1 + rate/100)^t

Where t is the number of years. This helps you see how even small annual differences compound into large gaps over time.

Worked Example

Using the default values (10 years, energy returning 8% annually, tech returning 12% annually):

  1. Return difference = 8 – 12 = -4 percentage points (tech outperforms energy by 4% per year).
  2. Ending value of energy investment = 1000 × (1.08)^10 = 1000 × 2.1589 = $2,159.
  3. Ending value of tech investment = 1000 × (1.12)^10 = 1000 × 3.1058 = $3,106.

So after 10 years, the tech investment is worth about $947 more than the energy investment, even though the annual difference seems modest.

What Drives the Divergence?

The primary driver is the macroeconomic environment. When inflation rises, central banks raise interest rates to cool the economy. Higher rates reduce the present value of future earnings, which hits tech stocks harder because their valuations rely on profits expected years down the line. Energy companies, by contrast, have near-term cash flows from selling oil, gas, and electricity at current prices. When inflation is high, energy prices often rise too, boosting revenues and profits immediately. This makes energy a natural inflation hedge.

Another factor is geopolitical risk. Conflicts in oil-producing regions, sanctions, or supply disruptions can spike energy prices. Tech companies, especially those with global supply chains, may face higher input costs and logistics disruptions, while energy producers benefit directly from higher prices.

Historical Context

The 1970s oil crises are the classic example. When OPEC imposed an embargo in 1973, oil prices quadrupled. Energy stocks soared, while the broader stock market, including early tech names, stagnated. More recently, in 2022, as the Federal Reserve aggressively hiked rates to combat inflation, the tech-heavy Nasdaq fell about 33%, while the S&P 500 Energy sector gained over 50%. That year, energy was the only S&P 500 sector with positive returns.

During the 2000-2002 dot-com bust, energy stocks also outperformed as oil prices climbed from $20 to $30 a barrel. These periods show that when growth expectations fade, investors rotate toward sectors with tangible assets and current earnings.

How to Use This Calculator

Use this tool to model different scenarios. For example, if you believe energy will return 10% annually for the next 5 years and tech will return 6%, the calculator will show you the difference in ending wealth. This can help you decide how to allocate your portfolio, but remember that past performance does not guarantee future results. The calculator assumes constant annual returns, which is unrealistic—actual returns fluctuate wildly. Use it as a rough comparison, not a precise forecast.

To read the result, focus on the return difference. A positive number means energy outperformed tech; negative means tech outperformed. The ending values show the cumulative effect. For example, a 2% annual difference over 20 years can mean tens of thousands of dollars on a large portfolio.

Common Mistakes and Limitations

  • Ignoring volatility: Energy stocks are more volatile than tech on average. A higher return often comes with higher risk.
  • Using nominal vs. real returns: The calculator uses nominal returns. Inflation erodes purchasing power, so subtract inflation for real returns.
  • Assuming linearity: The formula compounds, but actual returns are not constant. One bad year can change the outcome significantly.
  • Overlooking dividends: The calculator assumes total return (price appreciation plus dividends). If you use price-only returns, the difference will be understated.

When to Choose Energy vs. Tech

Energy stocks tend to perform well when:

  • Inflation is rising or persistently high.
  • Geopolitical tensions threaten supply.
  • The economy is in a late-cycle phase with strong demand for commodities.
  • Interest rates are high or rising.

Tech stocks tend to perform well when:

  • Interest rates are low or falling.
  • Innovation is accelerating (e.g., AI, cloud computing).
  • Corporate earnings growth is strong.
  • Inflation is low and stable.

There is no permanent winner; the cycle shifts. Diversification across both sectors can reduce risk.

Frequently Asked Questions

Why do tech stocks fall when interest rates rise?

Tech companies are valued on future earnings. Higher interest rates increase the discount rate used to value those future earnings, lowering their present value. Energy companies have more immediate cash flows, so they are less affected.

Is energy always a good inflation hedge?

Not always. Energy prices can be volatile and are influenced by supply shocks, not just inflation. In the 1980s, oil prices fell even during high inflation. However, historically, energy has been one of the better sector hedges against inflation.

Can tech and energy rise together?

Yes, during periods of strong economic growth with low inflation, both can rise. For example, in 2021, both sectors gained as the economy recovered from the pandemic. The divergence is most pronounced during stagflation or rate-hike cycles.

What is a good allocation between energy and tech?

There is no one-size-fits-all answer. A balanced portfolio might have 5-10% in energy and 15-20% in tech, but it depends on your risk tolerance and investment horizon. Younger investors often favor tech for growth, while retirees may prefer energy for income and stability.

Should I time the market based on this rotation?

Market timing is extremely difficult. Instead of trying to predict shifts, consider a buy-and-hold strategy with periodic rebalancing. This ensures you capture gains from both sectors over time.

Does this calculator account for taxes or fees?

No. It assumes a tax-free, fee-free environment. Real-world returns are reduced by capital gains taxes, trading commissions, and expense ratios. Adjust your expected returns accordingly.

Related

Formula used
in t | Time period (years) | years | 10 | 0
in r | Annual return (energy) | % | 8 | -50
in g | Annual return (tech) | % | 12 | -50
out diff | Return difference (energy - tech) | % | r - g | 2
out end_energy | Ending value (energy) | $ | 1000 * (1 + r/100)^t | 0
out end_tech | Ending value (tech) | $ | 1000 * (1 + g/100)^t | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.