The S&P 500 has soared in recent years, and AI stocks have been the star of the show.
Various risks today have made investors more cautious, with some even mentioning the possibility of a crash ahead.
Over the past few years, the S&P 500 has been doing something that investors appreciate. It's roared higher, and this year continues to extend the bull market. In fact, since the start of 2023, the major index has delivered a gain of 100%. This is as investors have jumped at the chance to get in on the latest big thing in technology: artificial intelligence (AI). They've bought AI stocks hand over fist, from chip designers Nvidia to memory makers like Micron Technology and cloud service providers such as Microsoft.
These companies and their peers have been generating strong revenue growth thanks to their AI products and services -- and that's prompted investors to get in on these exciting stories. All of this has led the S&P 500 higher, as AI stocks are heavily present in the benchmark. And considering that AI is in its early days of practical use, more growth could lie ahead.
Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. Continue »
This paints a bright picture, yet some investors have started to worry about what's next for stocks -- and the words "market crash" have even emerged. But here's some good news: If a stock market crash is coming, history suggests there are two crucial moves to make.
Image source: Getty Images.
First, let's consider the potential trouble spots investors are noticing in today's market environment. And this starts with the area of AI. Though AI stocks have pushed the index higher in recent years, investors worry that they might end up weighing on the index at a certain point. Tech giants are greatly investing in AI infrastructure, and if they overspend, earnings and their stock prices may suffer. Investors have been thinking of this risk -- and that's prompted some to hesitate before buying AI stocks or even sell their positions.
Meanwhile, though the Federal Reserve left interest rates steady during the latest meeting, higher inflation remains a concern, and the market is predicting another hike. In fact, the probability for an increase at the December meeting is at 83%, according to CME Group's FedWatch tool. A higher interest rate environment generally isn't favorable for companies, as it lifts their borrowing costs, or the stock market -- higher interest rates may prompt some investors to favor bonds over stocks.
Finally, stock prices have climbed, with overall valuations at nearly record-high levels. The S&P 500 Shiller CAPE ratio, a look at stock price and earnings per share, illustrates this point.

Shiller CAPE Ratio data by YCharts
Against this backdrop, some investors worry that a decline -- or even a market crash -- may be next. Now, it's important to note that, even if you're extremely bullish and don't believe that a crash is on the way, it's never too early to plan for a crash. These events happen periodically as part of a normal market cycle, so it's best to be prepared.
With this in mind, what should you do right now? The good news is you can take two steps to favor the growth of your portfolio -- and limit the impact of market crashes along the way. The first step is to take a long-term view when investing. This means buying stocks with the idea of holding on for a number of years, five at a minimum. When you do this, downturns or crashes may not even be noticeable in your performance down the road. History shows us the S&P 500 has always gone on to rebound from difficult times, so if you invest in strong companies, you're likely to see this same pattern.

^SPX data by YCharts
The second thing you can do right now, and particularly during a crash, is buy stocks. Not just any stocks, but quality players at reasonable or even dirt cheap prices. In a market downturn or crash, you'll find plenty of them, and while many investors might not be in a buying mood, this actually is the best time to go shopping for stocks. Even if they fall further after your purchase, that's OK. If you aim to hold on for a number of years, you could score a big win.
So if a crash is coming -- sooner or later -- you can approach that moment with a cool head. By investing when valuations are down and focusing on the long term, you're likely to beat any of these tough moments.
Before you buy stock in S&P 500 Index, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and S&P 500 Index wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $334,308!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,323,413!*
Now, it’s worth noting Stock Advisor’s total average return is 897% — a market-crushing outperformance compared to 213% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
See the 10 stocks »
*Stock Advisor returns as of October 30, 2026.
Adria Cimino has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Micron Technology, Microsoft, and Nvidia. The Motley Fool has a disclosure policy.