Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

HSY vs WMT

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
HSY
The Hershey Company

Food Confectioners

Consumer DefensiveNYSE • US
Market Cap$37.78B
5Y Perf.+37.4%
WMT
Walmart Inc.

Specialty Retail

Consumer DefensiveNYSE • US
Market Cap$1.04T
5Y Perf.+214.6%

HSY vs WMT — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
HSY logoHSY
WMT logoWMT
IndustryFood ConfectionersSpecialty Retail
Market Cap$37.78B$1.04T
Revenue (TTM)$11.99B$703.06B
Net Income (TTM)$1.09B$22.91B
Gross Margin34.8%24.9%
Operating Margin14.1%4.1%
Forward P/E22.2x44.7x
Total Debt$5.40B$67.09B
Cash & Equiv.$926M$10.73B

HSY vs WMTLong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

HSY
WMT
StockMay 20May 26Return
The Hershey Company (HSY)100137.4+37.4%
Walmart Inc. (WMT)100314.6+214.6%

Price return only. Dividends and distributions are not included.

Quick Verdict: HSY vs WMT

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: HSY leads in 4 of 7 categories, making it the strongest pick for valuation and capital efficiency and profitability and margin quality. Walmart Inc. is the stronger pick specifically for growth and revenue expansion and capital preservation and lower volatility. As sector peers, any of these can serve as alternatives in the same allocation.
HSY
The Hershey Company
The Income Pick

HSY carries the broadest edge in this set and is the clearest fit for income & stability and sleep-well-at-night.

  • Dividend streak 34 yrs, beta -0.03, yield 2.9%
  • Lower volatility, beta -0.03, current ratio 1.19x
  • Beta -0.03, yield 2.9%, current ratio 1.19x
Best for: income & stability and sleep-well-at-night
WMT
Walmart Inc.
The Growth Play

WMT is the clearest fit if your priority is growth exposure and long-term compounding.

  • Rev growth 4.7%, EPS growth 13.3%, 3Y rev CAGR 5.3%
  • 5.0% 10Y total return vs HSY's 144.3%
  • 4.7% revenue growth vs HSY's 4.4%
Best for: growth exposure and long-term compounding
See the full category breakdown
CategoryWinnerWhy
GrowthWMT logoWMT4.7% revenue growth vs HSY's 4.4%
ValueHSY logoHSYLower P/E (22.2x vs 44.7x)
Quality / MarginsHSY logoHSY9.1% margin vs WMT's 3.3%
Stability / SafetyWMT logoWMTLower D/E ratio (67.2% vs 116.5%)
DividendsHSY logoHSY2.9% yield, 34-year raise streak, vs WMT's 0.7%
Momentum (1Y)WMT logoWMT+33.0% vs HSY's +12.9%
Efficiency (ROA)HSY logoHSY8.0% ROA vs WMT's 7.9%, ROIC 11.5% vs 14.7%

HSY vs WMT — Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

HSYThe Hershey Company
FY 2025
North America Confectionery Segment
88.2%$9.5B
North America Salty Snacks Segment
11.8%$1.3B
WMTWalmart Inc.
FY 2025
Walmart U S
68.6%$462.4B
Walmart International
18.1%$121.9B
Sams Club
13.4%$90.2B

HSY vs WMT — Financial Metrics

Side-by-side numbers across 2 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLHSYLAGGINGWMT

Income & Cash Flow (Last 12 Months)

HSY leads this category, winning 6 of 6 comparable metrics.

WMT is the larger business by revenue, generating $703.1B annually — 58.6x HSY's $12.0B. HSY is the more profitable business, keeping 9.1% of every revenue dollar as net income compared to WMT's 3.3%. On growth, HSY holds the edge at +10.6% YoY revenue growth, suggesting stronger near-term business momentum.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
RevenueTrailing 12 months$12.0B$703.1B
EBITDAEarnings before interest/tax$2.0B$42.8B
Net IncomeAfter-tax profit$1.1B$22.9B
Free Cash FlowCash after capex$2.2B$15.3B
Gross MarginGross profit ÷ Revenue+34.8%+24.9%
Operating MarginEBIT ÷ Revenue+14.1%+4.1%
Net MarginNet income ÷ Revenue+9.1%+3.3%
FCF MarginFCF ÷ Revenue+18.1%+2.2%
Rev. Growth (YoY)Latest quarter vs prior year+10.6%+5.8%
EPS Growth (YoY)Latest quarter vs prior year+93.6%+35.1%
HSY leads this category, winning 6 of 6 comparable metrics.

Valuation Metrics

HSY leads this category, winning 4 of 6 comparable metrics.

At 43.0x trailing earnings, HSY trades at a 10% valuation discount to WMT's 47.6x P/E. On an enterprise value basis, WMT's 24.8x EV/EBITDA is more attractive than HSY's 29.2x.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
Market CapShares × price$37.8B$1.04T
Enterprise ValueMkt cap + debt − cash$42.3B$1.09T
Trailing P/EPrice ÷ TTM EPS42.95x47.65x
Forward P/EPrice ÷ next-FY EPS est.22.17x44.67x
PEG RatioP/E ÷ EPS growth rate4.33x
EV / EBITDAEnterprise value multiple29.17x24.83x
Price / SalesMarket cap ÷ Revenue3.23x1.45x
Price / BookPrice ÷ Book value/share8.17x10.44x
Price / FCFMarket cap ÷ FCF21.60x24.94x
HSY leads this category, winning 4 of 6 comparable metrics.

Profitability & Efficiency

Evenly matched — HSY and WMT each lead in 4 of 8 comparable metrics.

HSY delivers a 23.7% return on equity — every $100 of shareholder capital generates $24 in annual profit, vs $22 for WMT. WMT carries lower financial leverage with a 0.67x debt-to-equity ratio, signaling a more conservative balance sheet compared to HSY's 1.17x.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
ROE (TTM)Return on equity+23.7%+22.3%
ROA (TTM)Return on assets+8.0%+7.9%
ROICReturn on invested capital+11.5%+14.7%
ROCEReturn on capital employed+14.4%+17.5%
Piotroski ScoreFundamental quality 0–966
Debt / EquityFinancial leverage1.17x0.67x
Net DebtTotal debt minus cash$4.5B$56.4B
Cash & Equiv.Liquid assets$926M$10.7B
Total DebtShort + long-term debt$5.4B$67.1B
Interest CoverageEBIT ÷ Interest expense7.99x11.85x
Evenly matched — HSY and WMT each lead in 4 of 8 comparable metrics.

Total Returns (Dividends Reinvested)

WMT leads this category, winning 6 of 6 comparable metrics.

A $10,000 investment in WMT five years ago would be worth $28,531 today (with dividends reinvested), compared to $12,439 for HSY. Over the past 12 months, WMT leads with a +33.0% total return vs HSY's +12.9%. The 3-year compound annual growth rate (CAGR) favors WMT at 37.5% vs HSY's -9.7% — a key indicator of consistent wealth creation.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
YTD ReturnYear-to-date+3.0%+15.6%
1-Year ReturnPast 12 months+12.9%+33.0%
3-Year ReturnCumulative with dividends-26.4%+160.2%
5-Year ReturnCumulative with dividends+24.4%+185.3%
10-Year ReturnCumulative with dividends+144.3%+505.0%
CAGR (3Y)Annualised 3-year return-9.7%+37.5%
WMT leads this category, winning 6 of 6 comparable metrics.

Risk & Volatility

Evenly matched — HSY and WMT each lead in 1 of 2 comparable metrics.

HSY is the less volatile stock with a -0.03 beta — it tends to amplify market swings less than WMT's 0.12 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. WMT currently trades 96.6% from its 52-week high vs HSY's 77.8% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
Beta (5Y)Sensitivity to S&P 500-0.03x0.12x
52-Week HighHighest price in past year$239.48$134.69
52-Week LowLowest price in past year$150.04$91.89
% of 52W HighCurrent price vs 52-week peak+77.8%+96.6%
RSI (14)Momentum oscillator 0–10034.358.1
Avg Volume (50D)Average daily shares traded1.7M17.2M
Evenly matched — HSY and WMT each lead in 1 of 2 comparable metrics.

Analyst Outlook

Evenly matched — HSY and WMT each lead in 1 of 2 comparable metrics.

Wall Street rates HSY as "Hold" and WMT as "Buy". Consensus price targets imply 21.4% upside for HSY (target: $226) vs 5.4% for WMT (target: $137). For income investors, HSY offers the higher dividend yield at 2.86% vs WMT's 0.72%.

MetricHSY logoHSYThe Hershey Compa…WMT logoWMTWalmart Inc.
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$226.29$137.04
# AnalystsCovering analysts3564
Dividend YieldAnnual dividend ÷ price+2.9%+0.7%
Dividend StreakConsecutive years of raises3437
Dividend / ShareAnnual DPS$5.34$0.94
Buyback YieldShare repurchases ÷ mkt cap0.0%+0.8%
Evenly matched — HSY and WMT each lead in 1 of 2 comparable metrics.
Key Takeaway

HSY leads in 2 of 6 categories (Income & Cash Flow, Valuation Metrics). WMT leads in 1 (Total Returns). 3 tied.

Best OverallThe Hershey Company (HSY)Leads 2 of 6 categories
Loading custom metrics...

HSY vs WMT: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is HSY or WMT a better buy right now?

For growth investors, Walmart Inc.

(WMT) is the stronger pick with 4. 7% revenue growth year-over-year, versus 4. 4% for The Hershey Company (HSY). The Hershey Company (HSY) offers the better valuation at 43. 0x trailing P/E (22. 2x forward), making it the more compelling value choice. Analysts rate Walmart Inc. (WMT) a "Buy" — based on 64 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — HSY or WMT?

On trailing P/E, The Hershey Company (HSY) is the cheapest at 43.

0x versus Walmart Inc. at 47. 6x. On forward P/E, The Hershey Company is actually cheaper at 22. 2x.

03

Which is the better long-term investment — HSY or WMT?

Over the past 5 years, Walmart Inc.

(WMT) delivered a total return of +185. 3%, compared to +24. 4% for The Hershey Company (HSY). Over 10 years, the gap is even starker: WMT returned +505. 0% versus HSY's +144. 3%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — HSY or WMT?

By beta (market sensitivity over 5 years), The Hershey Company (HSY) is the lower-risk stock at -0.

03β versus Walmart Inc. 's 0. 12β — meaning WMT is approximately -563% more volatile than HSY relative to the S&P 500. On balance sheet safety, Walmart Inc. (WMT) carries a lower debt/equity ratio of 67% versus 117% for The Hershey Company — giving it more financial flexibility in a downturn.

05

Which is growing faster — HSY or WMT?

By revenue growth (latest reported year), Walmart Inc.

(WMT) is pulling ahead at 4. 7% versus 4. 4% for The Hershey Company (HSY). On earnings-per-share growth, the picture is similar: Walmart Inc. grew EPS 13. 3% year-over-year, compared to -60. 3% for The Hershey Company. Over a 3-year CAGR, WMT leads at 5. 3% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — HSY or WMT?

The Hershey Company (HSY) is the more profitable company, earning 7.

6% net margin versus 3. 1% for Walmart Inc. — meaning it keeps 7. 6% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: HSY leads at 12. 1% versus 4. 2% for WMT. At the gross margin level — before operating expenses — HSY leads at 33. 3%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

07

Is HSY or WMT more undervalued right now?

On forward earnings alone, The Hershey Company (HSY) trades at 22.

2x forward P/E versus 44. 7x for Walmart Inc. — 22. 5x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for HSY: 21. 4% to $226. 29.

08

Which pays a better dividend — HSY or WMT?

All stocks in this comparison pay dividends.

The Hershey Company (HSY) offers the highest yield at 2. 9%, versus 0. 7% for Walmart Inc. (WMT).

09

Is HSY or WMT better for a retirement portfolio?

For long-horizon retirement investors, Walmart Inc.

(WMT) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 12), 0. 7% yield, +505. 0% 10Y return). Both have compounded well over 10 years (WMT: +505. 0%, HSY: +144. 3%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

10

What are the main differences between HSY and WMT?

Both stocks operate in the Consumer Defensive sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that outperform both.

Stocks Like

HSY

Income & Dividend Stock

  • Sector: Consumer Defensive
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Net Margin > 5%
Run This Screen
Stocks Like

WMT

Stable Dividend Mega-Cap

  • Sector: Consumer Defensive
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Gross Margin > 14%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform HSY and WMT on the metrics below

Revenue Growth>
%
(HSY: 10.6% · WMT: 5.8%)
Net Margin>
%
(HSY: 9.1% · WMT: 3.3%)
P/E Ratio<
x
(HSY: 43.0x · WMT: 47.6x)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.