Amazon's sales are growing faster than Walmart's, and Amazon is finally in striking distance of the top spot.
AI is its primary growth engine, but e-commerce is also expanding rapidly.
Inflation is still climbing, unemployment has been on the rise, and it's starting to feel like an uncertain economy is just the new normal. One thing that has surprised analysts is that despite whatever's happening in the background, consumers keep spending.
Retailers haven't necessarily had it easy. They, too, are dealing with increased costs, changing trends, and attracting customers to their stores. But there are essentials that everyone has to buy, and customers are increasingly shopping at the large stores that can give them the greatest value.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
Amazon (NASDAQ: AMZN) has drawn a lot of attention for its recent advances in artificial intelligence (AI), but retail, specifically in e-commerce, is still its core business. It's enjoying robust growth in e-commerce, as well as staggering growth in AI, and together, these twin growth engines are propelling it toward becoming the company with the highest sales in the world. It's not quite there yet, but I predict it will happen next year.
Image source: Amazon.
Amazon has spent several years in second place behind perennial leader and longtime competitor Walmart, but it continues to close the gap. Walmart is just that much bigger, but Amazon is on the cusp of overtaking it.

AMZN Revenue (TTM) data by YCharts
Amazon is still reporting double-digit sales growth. These days, retail is strong, and it has the added benefit of the AI business. AI is already bringing in billions in sales, and as of the end of the second quarter, it had a $123 billion run rate. That's likely to increase as Amazon harnesses the opportunity.
CEO Andy Jassy has mentioned several times that 85% to 90% of global information technology spend is still on the premises, but that it's going to switch to the cloud over the next decade or two. Having the ability to engage with AI through Amazon Web Services (AWS) or any cloud provider is speeding that up.
Walmart has been impressing investors with its strong performance, but its increases are in the single digits, which is how Amazon keeps getting closer. In the past two quarters, for example, Walmart has reported higher sales than Amazon, but they were up 4% and 5.6% year over year (currency neutral) vs. 10% and 12% for Amazon.
With Amazon behind by $23 billion, it's likely to overtake Walmart sometime next year.
Amazon has been hard at work improving its value proposition in e-commerce. That means adding more products and reaching more people with faster delivery. If buyers know that their Amazon orders will get to them faster than if they have to run out to their local Walmart or other retailer, and they can get more of the products they need, they'll be more likely to order and have products show up at their door. The company is also benefiting from organic growth as e-commerce continues to increase as a percentage of retail sales.
AWS sales continue to outpace e-commerce, though, up 17% over last year in the second quarter, and that could accelerate with AI. Jassy said it's still early innings, and "It's a very unusual opportunity that we're very bullish about." According to Grand View Research, the AI market opportunity is expected to reach $3.5 trillion by 2033, while according to UNCTAD (United Nations Conference on Trade and Development), it's going to reach $4.8 trillion.
Amazon is trailing the market this year, up only a mediocre 2% as of this writing. But the long-term opportunity is in its favor, and becoming the largest company in the world by sales gives it a dominant position that's hard to ignore.
2026 could be a big rebound year for Amazon, and now is a great time to buy the stock.
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 $587,288!* 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,243,688!*
Now, it’s worth noting Stock Advisor’s total average return is 1,055% — a market-crushing outperformance compared to 194% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.
See the 10 stocks »
*Stock Advisor returns as of October 27, 2025
Jennifer Saibil has positions in Walmart. The Motley Fool has positions in and recommends Amazon and Walmart. The Motley Fool has a disclosure policy.