Consumers gravitate towards Walmart when they're looking to save money.
Shares of the retailing behemoth tend to overperform the market during recessions.
Amazon is the e-commerce king, but it can't compete with Walmart's physical presence.
I don't generally buy stocks with the intention of selling them within a short period. However, there are situations -- whether business-specific, industry-related, or economy-related -- that cause me to finally cut ties with a stock.
On the other hand, there are a few stocks in my portfolio that I refuse to cut ties with, regardless of the environment. One of those is retail giant Walmart (NASDAQ: WMT). Walmart is a staple in the business and investing world and is a stock that has been battle-tested and stood the test of time.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »
Image source: Getty Images.
There is no truly recession-proof stock in the sense of being completely immune to the negative effects of a recession. However, if we're referring to a company that historically overperforms during a market downturn, Walmart checks the box. And it all comes back to the company's core DNA: Selling everyday items at low prices.
The retail giant has done a great job of expanding its business with its annual membership, growing advertising business, and e-commerce presence, but when it's all said and done, Walmart's bread and butter will likely always be its brick-and-mortar presence throughout the country.
Walmart sells products that consumers buy regardless of economic conditions, and during periods of higher inflation, it's generally the go-to for consumers seeking discounts they likely won't find at retailers focused on more premium brands and experiences. It's true that Amazon also offers lower prices than most retailers, but Walmart stands out because of physical convenience -- especially in more rural areas.
Below is how Walmart's stock has performed since January 1990, with the grey vertical bars representing U.S. recessions (as defined by the National Bureau of Economic Research):

WMT data by YCharts
For perspective, here's a quick rundown of Walmart's performance compared to the S&P 500 during some notable recessions:
Past results don't guarantee future performance, but Walmart has consistently proven it can thrive through tough economic and stock market conditions. It will experience volatility like any other stock, but it remains a reliable long-term anchor.
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 $509,470!* 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,167,988!*
Now, it’s worth noting Stock Advisor’s total average return is 991% — a market-crushing outperformance compared to 196% 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 December 28, 2025.
Stefon Walters has positions in Walmart. The Motley Fool has positions in and recommends Amazon and Walmart. The Motley Fool has a disclosure policy.