Best Stock to Buy Right Now: Walmart vs. Amazon

By Chris Neiger | July 03, 2025, 4:40 AM

Two popular stocks that some investors might have on their radar right now are the retail juggernaut Walmart (NYSE: WMT) and e-commerce leader Amazon (NASDAQ: AMZN). Both companies offer investors exposure to retail spending, and each has managed to dominate its niche, becoming fantastic long-term investments along the way. But which one looks like the better stock to buy right now?

Let's look at the case for both to see why this matchup looks pretty even across the board.

A person with a shopping cart.

Image source: Getty Images.

The case for Walmart

Walmart's stock has been on a tear lately, skyrocketing 44% over the past year. Those gains come as the company continues to dominate the retail market, increase sales and earnings, and expand its services. Walmart's revenue rose about 5% in fiscal 2025 (which ended Jan. 31) to $681 billion, and its non-GAAP earnings rose 26% to $2.41 per share.

The company's e-commerce sales surged 20% in the U.S., proving that Walmart is successfully expanding its business beyond its brick-and-mortar locations. It is also seeing strong growth from its advertising segment (up 24% in the U.S.).

One of the biggest draws of owning Walmart stock is that its business is nearly recession-proof. The company holds about 21% of the grocery market in the U.S., and even during tough times, Americans buy groceries. There's also evidence that higher-income shoppers are moving toward Walmart as well, as they look for better deals in an uncertain economy.

With its strong position in retail, groceries, and its impressive sales and earnings, there's a lot to like about Walmart stock. Add to all of this the fact that Walmart pays a 1% dividend yield and has raised its dividend annually for over 50 years, and it's easy to see why this value stock is a mainstay in so many portfolios.

The case for Amazon

Amazon is an equally popular consumer goods stock, but the company has several business segments that have little to do with consumer goods, but a lot to do with the profits the company makes. For example, its North American e-commerce revenue accounts for about 61% of overall revenue last year, but just 36% of operating income. Meanwhile, the company's Amazon Web Services (AWS) cloud computing segment accounted for almost 17% of overall revenue, but it brought in about 58% of all operating income.

Amazon controls about 30% of the cloud computing market, and it's an important business for Amazon, considering that artificial intelligence could push global cloud computing sales up to $2 trillion over the next five years. It is also making multiple investments in AI that are likely to pay off (and already paying off in some cases) in the coming years.

And then there's Amazon's fastest-growing business: Advertising. Sales from this high-margin segment popped 18% year over year in the first quarter (which ended March 31) and generated nearly $14 billion in revenue. Amazon is benefiting from its massive e-commerce platform of more than 200 million Prime members, which will likely continue to attract a lot of ad dollars in the future. eMarketer estimates Amazon could take 17% of the digital ad market in 2026, up from 11% in 2021.

While Amazon doesn't pay a dividend, the company does have impressive financial growth. Total revenue rose 11% to $638 billion in 2024, and its non-GAAP earnings per share jumped 91% to $5.53. The company also ended the year with $38.2 billion in free cash flow, an increase of about 4% from the previous year.

Which is the better stock? It depends on your goals

Both Amazon and Walmart deserve a place in your portfolio, but deciding which one is better for you depends on what type of stock you're looking for. If you want to invest in a company that's essentially recession-proof and that has a long history of consistent (and growing) dividend payments, then Walmart is a no-brainer choice. On the other hand, if you want a strong e-commerce growth stock that's also benefiting from cloud computing, AI, and advertising, then go with Amazon.

Walmart has a price-to-earnings ratio of about 41, while Amazon's is about 36. That's not much of a difference when it comes to deciding which is the better value. Which means that if you have enough to buy both stocks right now, it's probably a smart move. If not, then pick the one that best fits your investment goals.

Should you invest $1,000 in Walmart right now?

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 $697,627!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $939,655!*

Now, it’s worth noting Stock Advisor’s total average return is 1,045% — a market-crushing outperformance compared to 178% 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 June 30, 2025

John Mackey, former CEO of Whole Foods Market, an Amazon subsidiary, is a member of The Motley Fool's board of directors. Chris Neiger has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon and Walmart. The Motley Fool has a disclosure policy.

Latest News