These companies have resilient businesses that have been able to do well even as economic conditions haven't always been ideal.
They have achieved impressive results over the years, and there are still plenty of attractive growth opportunities ahead for them.
Stocks that are great long-term investments have solid underlying financials, and there's a great deal of predictability around their futures. What the recent Nvidia scandal has brought to light is the importance of investing in a business that may not be highly dependent on just a single person or the outlook for artificial intelligence (AI).
Three companies that look like unstoppable investments for the long term, regardless of what happens with AI, are Amazon (NASDAQ:AMZN), Microsoft (NASDAQ:MSFT), and Walmart (NASDAQ:WMT). Here's why they can make for excellent buy-and-forget investments.
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.
Amazon's stock hasn't gotten much love over the past year. While it has generated decent 12% returns over the past 12 months, that pales in comparison to some of the gains tech stocks have accumulated over that stretch.
But for a company that's typically at the forefront of any tech innovation, its modest gains can actually be excellent news for investors who buy the stock today. While its financial results have been improving, its valuation hasn't taken off, and thus, it has become a much more attractive investment in the process.
The stock is currently trading at 23 times its expected future profits (based on analyst projections). That's a modest valuation for one of the leading tech companies in the world. It's developing robotaxis, its own AI chips, and deploying drones for delivery, among other opportunities it's pursuing. On top of all that is, of course, its massive e-commerce business.
To buy such a tremendous stock at a low valuation could prove to be a steal of a deal in the future.
Another tech giant that I like for the long haul is Microsoft. It's been a top name in tech for decades, and the reason I don't see that changing is because of how trusted and entrenched its software is within corporate environments. Businesses rely on Microsoft's Office software on a daily basis.
While there have been other options and there will continue to be more competition in the future, I think the reliability that its software offers and the trust it has built up over the years is what gives it a huge competitive advantage. And the company's investments in AI could also pay off significantly, with Microsoft's Office software now able to do much more, with its Copilot assistant helping create spreadsheets and documents in just minutes, potentially saving corporate clients hours each day.
Shares of Microsoft crashed earlier this year due to panic that AI would wreak havoc on software companies. I don't believe that will happen with Microsoft, and I am confident it'll be able to invest in AI effectively to add more value for its customers.
It's up less than 3% this year, and its forward earnings multiple of 24 is also not terribly high, especially for such a solid tech business.
Another business that I'm confident isn't going anywhere decades from now is Walmart. The big-box retailer seems intent on going toe-to-toe with Amazon, as it has ramped up delivery options over the years to also provide customers with day-to-day goods and necessities quickly in order to be more competitive with the tech company.
Walmart continually generates solid, stable growth, as consumers flock to its stores for all types of goods, making it arguably the ultimate one-stop shopping location due to its diverse mix of products. And with a heavy grocery business, it makes it easy for consumers to come in to buy essentials and also purchase other items while they're inside its stores.
The stock has done well this year, rising by around 19%, as investors have loaded up on it for the long-term safety and stability it offers. The only thing I don't like about the stock is that it's trading at a high valuation -- close to 40 times projected future earnings. However, that just means that returns may be limited in the near term. But that becomes a relatively minor issue if investors are prepared to hang on for decades.
Before you buy stock in Amazon, 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 Amazon 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 $313,329!* 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,014,158!*
Now, it’s worth noting Stock Advisor’s total average return is 796% — a market-crushing outperformance compared to 200% 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 November 24, 2026.
David Jagielski, CPA has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon, Microsoft, Nvidia, and Walmart. The Motley Fool has a disclosure policy.