Containing the 500 largest publicly-traded U.S. companies by market cap, the S&P 500 is arguably the best indicator of the performance of the overall U.S. stock market. At least, it has been in the past.

But something is happening that's making the index's performance somewhat misleading. As of March 6, the S&P 500 has gained 7.0% year to date. But 6.5 percentage points of that gain are due to the performance of just five companies.

You may be wondering how this is possible, given the index is so massive. Are the other 495 companies really putting up mediocre results?

Let's look at these growth stocks, their impact on the market, and what it means for your portfolio (whether or not you're invested in them).

The letters AI sitting on a microchip.

Image source: Getty Images.

2024 market leaders

The following table showcases why huge gains from overweighted components of the S&P 500 can move the whole index.

Company

YTD Gain

Weight in S&P 500

Percentage Point Contribution to S&P 500

Nvidia (NVDA 6.18%)

79.2%

5.0%

3.9%

Meta Platforms (META 0.43%)

40.2%

2.6%

1.0%

Amazon (AMZN 3.43%)

14.2%

3.7%

0.5%

Eli Lilly (LLY 1.19%)

33.8%

1.5%

0.5%

Microsoft (MSFT 1.82%)

6.6%

7.0%

0.5%

Data sources: Slickcharts and YCharts as of Mar. 6, 2024. YTD = year to date.

Nvidia and Meta Platforms alone are responsible for over half of this year's gains for the index. Microsoft is another interesting case; as the highest-weighted component of the S&P 500 (yes, even more than Apple), it doesn't take a big move for it to affect the index. Drugmaker Eli Lilly makes up just 1.5% of the S&P 500, but it's strong rally this year has been enough to move the index half a percentage point higher.

Combined, these five companies make up 19.7% of the S&P 500. A little math tells us that, on average, the other 495 companies have gained just 0.7% this year (adjusted for their weightings in the index).

Dissecting the S&P 500's moves

There are a few ways to unpack this information. The obvious takeaway is that the market's roaring start really is due to a handful of companies. But a more subtle realization is that the market will have difficulty sustaining these gains from these leading constituents.

Since the beginning of 2023, Nvidia, Meta Platforms, Microsoft, Amazon, and Eli Lilly have put up big numbers. The story has carried over into 2024, but it may soon begin to run out of steam through no fault of these five companies.

NVDA Chart

Data by YCharts.

As we've seen repeatedly in past market cycles, valuations can only expand so much before fundamentals must catch up. The good news is that earnings from this cohort are growing. Nvidia is arguably the best example.

On the surface, its 74.4 price-to-earnings (P/E) ratio looks sky-high, but analysts expect Nvidia's earnings to roughly double over the next year, so its forward P/E ratio is a much more reasonable 36.1. In fact, it's on par with Microsoft while coming in lower than Tesla, Amazon, and Eli Lilly.

Growth can make rapid run-ups in stock prices justifiable. It's just that the faster and higher stock prices run, especially when they have this level of impact on the broader market, the more stretched the market becomes and the more room there is for a sell-off.

The path forward

2023 and 2024 have been fascinating years in the market. The highest-weighted companies are also some of the market's top gainers -- concentrating the gains of the overall index in just a few companies.

It doesn't matter where the gains come from if you own an S&P 500 index fund, but if you don't own these companies, your returns may vary wildly from the broad market's. The tech sector alone makes up 29.5% of the index. In fact, it's the only sector to have outperformed the S&P 500 over the last five years. So, if you didn't own tech or the market's top movers outside of tech, it would have been challenging to beat the market during this period.

No one knows what will happen over the next five years, but we do know what has driven the market over the last five. Market dynamics can help you understand what's happening in the short term -- the trick is to not lose sight of what really matters, which is achieving your financial goals.

Hitching a ride on a hot trend to make a quick buck is a common way to lose money. A better approach is to focus on a long-term investment thesis and compounding wealth over time. The real gains in Nvidia, Meta Platforms, Microsoft, Amazon, and Eli Lilly have come to those who have held the stocks for five years, a decade, or even longer. The road hasn't been easy as most of these companies have endured brutal sell-offs, most recently in 2022's bear market.

If you want to invest in growth but don't know where to start, there are plenty of inexpensive exchange-traded funds (ETFs) worth checking out that achieve diversification and the benefits of a hands-off approach.