Walmart vs. Costco: Which Stock Is the Better Buy?

Source The Motley Fool

Key Points

  • Walmart's e-commerce and high-margin advertising businesses are growing rapidly.

  • Costco continues to deliver exceptional comparable sales and membership metrics, demanding a premium valuation.

  • While both businesses are executing at a high level, one stock's valuation and diversified revenue streams make it the better buy.

  • 10 stocks we like better than Walmart ›

Comparing Walmart (NASDAQ: WMT) and Costco Wholesale (NASDAQ: COST) is a good exercise for investors seeking a durable business, as both companies are arguably exceptionally durable. Both have proven their ability to attract shoppers and grow sales across different economic environments.

But Wall Street has already recognized this durability, giving both stocks very high valuations. This means investors have to carefully weigh the two companies' growth trajectories against the expectations baked into their share prices before investing.

Will AI create the world's first trillionaire? Our team just released a report on the one little-known company, called an "Indispensable Monopoly" providing the critical technology Nvidia and Intel both need. Continue »

A good way to take a close look at the stocks of these two high-quality companies is to compare them. Which of these two market leaders is the better buy?

The Costco logo next to the Walmart logo.

Image source: The Motley Fool.

Walmart's high-margin momentum

Walmart's latest results do a good job of capturing the company's current state. The results highlight a business that is steadily becoming more digital and more profitable.

In its fiscal fourth quarter (ended Jan. 31, 2026), Walmart's revenue rose 5.6% year over year. And adjusted earnings per share in the period came in at $0.74 -- up more than 12% year over year. And Walmart U.S. comparable store sales increased 4.6%, driven by a healthy 2.6% increase in customer transactions. Sam's Club -- a membership-based wholesale retailer that is a Walmart subsidiary -- also saw comparable sales growth in the U.S., rising 2.8%.

Further, Walmart's global e-commerce sales surged 24% in the quarter, now representing a meaningful 23% of total net sales. And Walmart's global advertising business jumped 37%.

This shift toward higher-margin revenue streams is already impacting the bottom line.

Operating income rose 10.8% in the quarter, outpacing top-line growth, with management explicitly calling out improved economics in e-commerce as one of the drivers of this outsize growth.

Looking ahead, management expects this trend to persist, guiding for fiscal 2027 constant-currency-adjusted operating income to grow 6% to 8% -- a rate that meaningfully outpaces its projected 3.5% to 4.5% net sales growth.

Of course, buying into this growth story isn't cheap. As of this writing, Walmart trades at about 44 times the midpoint of management's fiscal 2027 adjusted earnings-per-share guidance. At this valuation, the company must maintain strong comparable sales growth and continue expanding its margins not just for the next few years but for the next decade and beyond.

Costco's steady execution

Costco is executing just as impressively, if not more so.

The membership-based warehouse retailer recently reported net sales of $68.2 billion for its fiscal second quarter (ended Feb. 15, 2026), up 9.1% year over year. When adjusted for changes in gasoline prices and foreign exchange, total company comparable sales rose 6.7% for the period.

This robust growth rate is a testament to the company's incredibly loyal customer base and its recurring revenue stream from membership fees.

Highlighting the power of its recurring revenue engine, Costco's membership fee income grew a stellar 13.6% year over year to $1.36 billion during fiscal Q2. This line item, however, benefited from a membership fee increase that the company rolled out in late 2024.

Even more encouraging is Costco's recent digital momentum.

The retailer's adjusted digitally enabled comparable sales soared 21.7% in fiscal Q2, and the momentum persisted with 20.8% adjusted digital sales growth in the retail month of February.

But the market is well aware of Costco's consistently strong growth. This is why the stock currently trades at a staggering price-to-earnings ratio of about 54. A valuation like this leaves essentially no room for error, requiring years of mid-single-digit comparable sales growth, a steadily expanding operating margin, and continued membership fee increases just to justify the current price.

Which stock is the better buy?

So, which stock is the better buy today?

Both companies are firing on all cylinders. But Walmart looks like the slightly better choice for investors right now.

While both retailers command premium valuations, Walmart seems more deserving of its slightly lower premium valuation. I like the company's aggressive push into highly profitable alternative revenue streams -- particularly its advertising business -- giving it a clearer path to sustained margin expansion.

Costco is certainly ramping up its own digital efforts, and its recent e-commerce growth figures are promising.

But at 54 times earnings, Costco's stock is priced for near perfection. Walmart's valuation, while still demanding, offers a slightly more attractive setup given its increasingly diversified business and lower price-to-earnings ratio multiple.

Of course, I could be wrong, and Costco's loyal membership base could continue to defy valuation concerns. But at these prices, I'd rather bet on Walmart's evolving business model.

Should you buy stock 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 $534,008!* 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,090,073!*

Now, it’s worth noting Stock Advisor’s total average return is 949% — a market-crushing outperformance compared to 190% 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 March 9, 2026.

Daniel Sparks and his clients have no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Costco Wholesale and Walmart. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Ethereum (ETH) Price Closes Above $3,900 — Is a New All-Time High Possible Before 2024 Ends?Once again, the price of Ethereum (ETH) has risen above $3,900. This bounce has hinted at a further price increase for the altcoin before the end of the year.
Author  Beincrypto
Dec 17, 2024
Once again, the price of Ethereum (ETH) has risen above $3,900. This bounce has hinted at a further price increase for the altcoin before the end of the year.
placeholder
Markets in 2026: Will gold, Bitcoin, and the U.S. dollar make history again? — These are how leading institutions thinkAfter a turbulent 2025, what lies ahead for commodities, forex, and cryptocurrency markets in 2026?
Author  Insights
Dec 25, 2025
After a turbulent 2025, what lies ahead for commodities, forex, and cryptocurrency markets in 2026?
placeholder
ECB Policy Outlook for 2026: What It Could Mean for the Euro’s Next MoveWith the ECB likely holding rates steady at 2.15% and the Fed potentially extending cuts into 2026, EUR/USD may test 1.20 if Eurozone growth proves resilient, but weaker growth and an ECB pivot could pull the pair back toward 1.13 and potentially 1.10.
Author  Mitrade
Dec 26, 2025
With the ECB likely holding rates steady at 2.15% and the Fed potentially extending cuts into 2026, EUR/USD may test 1.20 if Eurozone growth proves resilient, but weaker growth and an ECB pivot could pull the pair back toward 1.13 and potentially 1.10.
placeholder
Gold rises as safe-haven demand increases on Iran warGold price (XAU/USD) extends its gains for the second successive session on Thursday as traders seek safety amid the ongoing war in the Middle East.
Author  FXStreet
Mar 05, Thu
Gold price (XAU/USD) extends its gains for the second successive session on Thursday as traders seek safety amid the ongoing war in the Middle East.
placeholder
Gold slumps to near $5,050 on oil-driven inflation fears, stronger US DollarGold price (XAU/USD) falls to around $5,065 during the early Asian session on Monday, pressured by a stronger US Dollar (USD) and inflationary risks. Traders will closely monitor the developments surrounding the US-Iran conflicts and geopolitical risks in the Middle East.
Author  FXStreet
Yesterday 01: 41
Gold price (XAU/USD) falls to around $5,065 during the early Asian session on Monday, pressured by a stronger US Dollar (USD) and inflationary risks. Traders will closely monitor the developments surrounding the US-Iran conflicts and geopolitical risks in the Middle East.
goTop
quote