Walmart has typically outperformed during market downturns.
It has been on a tear for the past three years.
The valuation is too high right now, given its earnings expectations.
Many investors have historically flocked to the safety of consumer staples stocks like Walmart (NASDAQ: WMT) during market downturns or economic slowdowns.
Over the years, Walmart stock has outperformed the market during corrections, bear markets, periods of high inflation, and challenging economic environments because of its lower prices. It gets more foot traffic as shoppers look for deals, pulling in both its traditional budget-conscious shoppers and higher-income consumers who don't want to overpay.
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 »
Image source: Getty Images.
If you look at the last bear market in 2022, when inflation was running rampant, Walmart stock was only down 2% compared to the 19% drop in the S&P 500 (SNPINDEX: ^GSPC) and the 33% decline in the Nasdaq Composite (NASDAQINDEX: ^IXIC).
In 2008, Walmart stock rose 18% while the S&P 500 was off 38% and the Nasdaq fell 40%. And in 2002, when the S&P 500 dropped 23% and the Nasdaq fell 31%, Walmart stock was only down 12%.
Since the Nasdaq closed at an all-time high of 27,599 on Oct. 6, the tech-heavy index has been down about 4%, to roughly 26,470.
Walmart, on the other hand, has been surging in October, up 9% since Sept. 30. The rally has boosted Walmart's year-to-date return to 13% after a summer swoon.
Are investors once again making a flight to safety during a tech sell-off? And are they right to pick Walmart as the safest defensive stock to own? That's debatable.
Walmart is typically a great defensive play, but it's not that great in this particular market. It has had a strong run over the past three-plus-year bull market, continuing its market-beating performance from 2022.
It has averaged a total annualized return of about 32% over the past three years, beating both the Nasdaq Composite and the S&P 500. It successfully pivoted during this period to appeal to a higher-income clientele through investments in its stores, inventory, and online shopping to improve the overall consumer experience.
At the same time, its main rival, Target (NYSE: TGT), had been struggling to attract customers amid higher prices, among other issues, during the bull market. Walmart was able to take some market share from Target, particularly among higher-income shoppers.
But with that success comes a high valuation. Walmart is trading at around 43 times earnings, which is well above its 10-year average of 32. Its forward P/E is 36, but that's still above its long-term average.
Given that its earnings growth estimates are about 9% for fiscal 2027 and 11% for fiscal 2028, I don't think that's enough to carry the high valuation. Walmart has many attributes that should allow it to perform well in a downturn, but like many tech stocks, it's overvalued right now. For that reason, I wouldn't call it the safest to own if things get worse.
Before you buy stock in Walmart, 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 Walmart 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,793!* 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,257,420!*
Now, it’s worth noting Stock Advisor’s total average return is 874% — a market-crushing outperformance compared to 209% 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 31, 2026.
Dave Kovaleski has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Target and Walmart. The Motley Fool has a disclosure policy.