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

Source 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 Price Prediction: What To Expect From ETH In March 2026The Ethereum price enters March after a brutal February that delivered close to 20% losses. ETH has now posted six consecutive red months starting from September 2025, a streak unprecedented in the to
Author  Beincrypto
Mar 03, Tue
The Ethereum price enters March after a brutal February that delivered close to 20% losses. ETH has now posted six consecutive red months starting from September 2025, a streak unprecedented in the to
placeholder
Ethereum (ETH) Whales Offset a Critical Transfer — Yet the $1,800 Zone Remains at RiskEthereum price has come under renewed pressure after a major on-chain event shook the market. Since March 6, ETH has dropped nearly 8%, even though it is down only about 1.4% over the past 24 hours.Th
Author  Beincrypto
Yesterday 02: 25
Ethereum price has come under renewed pressure after a major on-chain event shook the market. Since March 6, ETH has dropped nearly 8%, even though it is down only about 1.4% over the past 24 hours.Th
placeholder
Expert Flags $63,000 Bitcoin Risk While Charts Eye 18% Rally — Which Comes First?Bitcoin price is approaching a critical decision zone. One analyst warns the market cannot afford to lose the $63,000 zone ($63,700 to be exact), a break that could trigger a deeper decline.Yet at the
Author  Beincrypto
Yesterday 02: 26
Bitcoin price is approaching a critical decision zone. One analyst warns the market cannot afford to lose the $63,000 zone ($63,700 to be exact), a break that could trigger a deeper decline.Yet at the
placeholder
Iran War Could End Soon as Oil Drops, Stocks Rally, and Bitcoin ReboundsGlobal markets rallied on Monday after US President Donald Trump said the war with Iran could end soon, easing fears of a prolonged energy shock. Oil prices fell sharply while stocks climbed and crypt
Author  Beincrypto
1 hour ago
Global markets rallied on Monday after US President Donald Trump said the war with Iran could end soon, easing fears of a prolonged energy shock. Oil prices fell sharply while stocks climbed and crypt
placeholder
MicroStrategy Shares are Performing Better than Bitcoin In 2026, But How?MicroStrategy stock is up nearly 3% at press time, trading above $137 as markets opened on March 9. Strategy just announced another 17,994 BTC purchase for $1.28 billion.The stock trades 57% lower ove
Author  Beincrypto
1 hour ago
MicroStrategy stock is up nearly 3% at press time, trading above $137 as markets opened on March 9. Strategy just announced another 17,994 BTC purchase for $1.28 billion.The stock trades 57% lower ove
goTop
quote