Best Stock to Buy Right Now: Walmart vs. Kraft Heinz?

Source Motley_fool

Key Points

  • Walmart is having another great year and is close to an all-time high.

  • But many of its peers -- like Kraft Heinz -- in the Consumer Staples group are struggling and lagging in a bull market.

  • If sentiment shifts and defensive stocks come back into favor, we'll look at whether Walmart or Kraft Heinz would be the better pick.

  • 10 stocks we like better than Kraft Heinz ›

If size and market momentum were your only stock-picking criteria, then Walmart's (NYSE: WMT) $800+ billion market cap, nearly $700 billion in annual sales, and recent rally to an all-time high would be all you needed to know.

Kraft Heinz (NASDAQ: KHC), on the other hand, is less than 4% the size of the retail giant -- by both sales and market cap -- and is currently about 75% below its all-time high hit back in 2017.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

This year alone, through the close of trade on Oct. 29, shares of Walmart are up 14% while Kraft Heinz is down 17%.

What these two American icons do share in common, however, is that they're both members of the typically defensive Consumer Staples sector. It's a group of companies that has been out of favor for most of the year, not only trailing the S&P 500 but all 10 of the other major large-cap sectors as well.

If and when that sentiment turns -- and I believe it will -- and investors are once again interested in "old-fashioned" things like stable earnings, solid dividends, and attractive valuations, then the sluggish ketchup and macaroni and cheese play starts to look a whole lot more attractive than the red-hot retailer from Arkansas.

Define cheap?

Let's start with the gold standard of valuations, the forward P/E ratio.

At 37x expected earnings for the next 12 months, Walmart is not only trading at a premium to the market (24x) and its peers in the Staples sector (20x), but Koyfin data shows it is currently sitting in the 98th percentile in terms of its own forward P/E ratio over the past 10 years. That means, since October 2015, you would have been able to buy Walmart at a lower P/E 98% of the time.

On the flipside, Kraft Heinz is trading at just 9.6x forward earnings, less than half the market and sector averages, and with a 2nd percentile P/E rank, it is about as cheap as it has been in a decade.

Moving on to the price-to-sales (P/S) ratio -- the comparison gets a little quirky, as both Walmart and Kraft Heinz have similar P/S ratios of 1.1x and 1.2x, respectively. What's noteworthy, though, is that in Walmart's case, that seemingly low P/S ratio still lands it in the 99th percentile for the past 10 years, while the Pittsburgh-based pickle-maker's comparable P/S rate earns it a remarkable 1st percentile ranking.

A woman checks prices in the dairy section of a grocery store.

Image source: Getty Images.

Continuing our comparisons on a gross profit margin basis, the two companies are, coincidentally, both ranked in the 46th percentile -- i.e., about the middle of their respective 10-year ranges. While this is essentially a draw, it's worth noting that Kraft Heinz's gross profit margin is about 34%, whereas Walmart's is roughly 25%.

Lastly, let's look at dividends, where Kraft Heinz's 6.5% yield is the third-highest in the consumer staples sector, while Walmart's 0.9% payout is the lowest.

In fairness, Walmart has increased its dividend for 52 consecutive years, while Kraft Heinz has not increased its $0.40 quarterly payout since 2019, when it reduced it by 35% to its current level.

What the pros think

In terms of earnings, Walmart will report its Q3 results the morning of Nov. 20, while Kraft Heinz just reported on Oct. 29.

Over the past five years, while Kraft Heinz has beat or met analysts' EPS estimates 20 out of 20 quarters, its top-line results have either met or missed expectations nine out of 20 times.

For its part, Walmart has beat sales estimates 18 out of 20 times (although it has missed two of the past three reports) while also topping EPS consensus 17 out of 20 times.

Unsurprisingly, Walmart's run to record levels has not gone unnoticed on Wall Street, where 41 out of 43 analysts currently rate it a buy, with an average 12-month price target of $113, which is about 10% above current levels.

For Kraft Heinz, 18 out of 20 analysts rate the stock a hold, with only one buy and one sell, and an average 12-month price target of $29, or a 19% gain -- which excludes dividends.

So, for long-term investors who are possibly mulling a defensive hedge, this should not be taken as a knock on Walmart, but rather a spotlight on the cost and premium you will have to pay to chase a market and sector leader.

That's why, for me, the relative value, higher dividend income, limited downside risk, and defensive nature of food stocks make Kraft Heinz the better stock pick.

Should you invest $1,000 in Kraft Heinz right now?

Before you buy stock in Kraft Heinz, 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 Kraft Heinz 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 $603,392!* 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,241,236!*

Now, it’s worth noting Stock Advisor’s total average return is 1,072% — 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

Matthew Nesto has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Walmart. The Motley Fool recommends Kraft Heinz. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Hedera Price Analysis: HBAR defies $50B market dip as Nvidia confirms AI partnershipHedera maintains strength above $0.15, signaling investor confidence as NVIDIA’s AI integration boosts long-term bullish sentiment and breakout potential.
Author  FXStreet
Apr 09, Wed
Hedera maintains strength above $0.15, signaling investor confidence as NVIDIA’s AI integration boosts long-term bullish sentiment and breakout potential.
placeholder
Bitcoin Must Clear This Critical Cost Basis Level For Continued Upside, Analyst SaysIn a recent CryptoQuant Quicktake post, contributor Crazzyblockk highlighted key Bitcoin (BTC) cost basis zones that the leading cryptocurrency must clear – or avoid breaking below – to
Author  NewsBTC
Apr 23, Wed
In a recent CryptoQuant Quicktake post, contributor Crazzyblockk highlighted key Bitcoin (BTC) cost basis zones that the leading cryptocurrency must clear – or avoid breaking below – to
placeholder
Bitcoin Moving With Stocks, But Ethereum’s Correlation Is FadingBitcoin has been showing notable correlation to the stock equities recently, but data shows Ethereum is charting a more independent path. Bitcoin & Ethereum Showing Different Degrees Of
Author  NewsBTC
Jul 10, Thu
Bitcoin has been showing notable correlation to the stock equities recently, but data shows Ethereum is charting a more independent path. Bitcoin & Ethereum Showing Different Degrees Of
placeholder
OpenAI Introduces Lowest-Cost ChatGPT Subscription in India with UPI Payment OptionOn Tuesday, OpenAI introduced ChatGPT Go, its most affordable AI subscription tier, targeting the price-sensitive Indian market. Nick Turley, OpenAI’s Vice President and Head of ChatGPT, announced the launch via an X post, highlighting that users can pay through India’s Unified Payments Interface (UPI).
Author  Mitrade
Aug 19, Tue
On Tuesday, OpenAI introduced ChatGPT Go, its most affordable AI subscription tier, targeting the price-sensitive Indian market. Nick Turley, OpenAI’s Vice President and Head of ChatGPT, announced the launch via an X post, highlighting that users can pay through India’s Unified Payments Interface (UPI).
placeholder
ANZ Raises Gold Price Forecast to $3,800/Oz, Predicts Rally to Continue Through 2026Gold is expected to continue its upward momentum throughout 2025 and into early 2026, driven by ongoing geopolitical tensions, macroeconomic challenges, and market anticipation of U.S. monetary easing, according to analysts from ANZ in a research note released Wednesday.
Author  Mitrade
Sept 10, Wed
Gold is expected to continue its upward momentum throughout 2025 and into early 2026, driven by ongoing geopolitical tensions, macroeconomic challenges, and market anticipation of U.S. monetary easing, according to analysts from ANZ in a research note released Wednesday.
goTop
quote