Amazon continues to dominate cloud computing while maintaining a top spot in global e-commerce.
Walmart remains a retail leader by leveraging its massive brick-and-mortar footprint and essential grocery offerings.
Which stock is the better long-term choice for your portfolio?
Both Amazon (NASDAQ:AMZN) and Walmart (NASDAQ:WMT) could fit in a portfolio. But investing $1,000 into only one of the stocks comes down to what you're seeking most: a company that could be the backbone of artificial intelligence (AI) infrastructure or a reliable retailer that also offers dividend payouts.
Amazon is spending heavily on AI infrastructure and relies on its Amazon Web Services (AWS) segment to fuel growth across its massive logistics network. Spending on infrastructure could be a long-term bet that pays off, but it's risky if AI demand doesn't live up to expectations.
Walmart is pairing low prices with convenience to win over an even broader audience, as more people across all income levels look to save money where they can. With shoppers still becoming more cautious and operational costs rising, however, it's facing its own set of challenges.
Image source: Getty Images.
Amazon mainly serves retail shoppers through its online shopping platform. But it also serves businesses looking to develop, train, and run AI models through AWS. Sales for AWS in the third quarter of 2026 totaled $46 billion, a 39% increase from the prior-year period.
In the 12 months ended Sept. 30, 2026, revenue reached approximately $797.5 billion, representing revenue growth of about 15.4%. The company reported GAAP net income of around $134.8 billion during this period.
Amazon has total cash of $114.2 billion, with total debt of $304.8 billion. Its trailing-12-month operating cash flow totaled $168.3 billion.
Walmart operates as an omnichannel retailer, serving approximately 280 million customers weekly through over 11,000 stores. Walmart has been known for low prices, but it's also making convenience an even bigger part of its offerings through drone deliveries, an AI shopping assistant that makes recommendations, and multiple benefits offered through its Walmart+ membership.
In the 12 months ended Oct. 31, 2026, revenue reached $745.2 billion. During this timeframe, Walmart recorded GAAP net income of $20.9 billion. Walmart also has total cash of $13.4 billion and total debt of $81.1 billion. Its trailing-12-month operating cash flow totaled $43.5 billion.
Amazon faces intense global competition across retail and cloud computing. The company deals with regulatory risks involving antitrust and data privacy, which could impact its international growth. It also manages a complex fulfillment network that is susceptible to operational strain.
Walmart is exposed to significant risks from its reliance on global supply chains and international operations. Regulatory hurdles including pharmacy laws and consumer protection litigation remain constant challenges for the business. The company must also defend against cybersecurity incidents and system failures while working with automation partners like Symbotic (NASDAQ:SYM) to update its distribution centers.
While Amazon trades at a higher sales multiple, its lower forward earnings multiple suggests it might offer more value for every dollar of projected profit.
| Metric | Amazon | Walmart |
|---|---|---|
| Forward P/E | 23.6x | 39.9x |
| P/S ratio | 3.4x | 1.3x |
Choosing between Amazon and Walmart largely comes down to two factors: comfort level with risk and portfolio goals. Amazon's capital expenditures could total $220 billion this year, and the company is likely to spend even more in 2027. For shareholders, the risk that could weigh on the stock price is that spending keeps climbing on investments largely tied to AI but doesn't provide a solid return on investment. If that demand is there and Amazon executes on meeting it, however, the reward for long-term investors is stock price appreciation that could significantly outperform the S&P 500.
In comparison, since Walmart's business is more centered on traditional retail, what you're investing in is stability, dividend payouts, and the potential for stock price appreciation that could outperform the S&P 500, though not to the extent that Amazon may offer. Walmart's challenges are centered on keeping operational costs low, keeping in-store prices competitive, and continuing to attract shoppers even as their budgets tighten. For fiscal 2027, despite those challenges, Walmart appears confident, having recently raised its full-year guidance, forecasting net sales to climb between 4.9% and 5.2%, up from an earlier range of 4% to 5%.
I still feel both of these companies can fit into a portfolio. But if the goal is stock price appreciation, for those willing to take on more risk, Amazon can offer that through AI. In comparison, investing $1,000 in Walmart stock today is more about valuing a business model that faces its own set of challenges but generally offers more predictability and provides shareholders with quarterly income through dividend payments.
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 $328,591!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $924,693!*
Now, it’s worth noting Stock Advisor’s total average return is 791% — a market-crushing outperformance compared to 201% 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 29, 2026.
Jack Delaney has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon, Symbotic, and Walmart. The Motley Fool has a disclosure policy.