vs

Side-by-side financial comparison of Hershey Company (The) (HSY) and SANMINA CORP (SANM). Click either name above to swap in a different company.

SANMINA CORP is the larger business by last-quarter revenue ($3.2B vs $3.1B, roughly 1.0× Hershey Company (The)). Hershey Company (The) runs the higher net margin — 10.4% vs 1.5%, a 8.8% gap on every dollar of revenue. On growth, SANMINA CORP posted the faster year-over-year revenue change (59.0% vs 7.0%). Hershey Company (The) produced more free cash flow last quarter ($788.5M vs $91.9M). Over the past eight quarters, SANMINA CORP's revenue compounded faster (31.9% CAGR vs -2.5%).

The Hershey Company, often called just Hershey or Hershey's, is an American multinational confectionery company headquartered in Hershey, Pennsylvania, which is also home to Hersheypark and Hershey's Chocolate World. The Hershey Company is one of the largest chocolate manufacturers in the world; it also manufactures baked products, such as cookies and cakes, and sells beverages like milkshakes, as well as other products. The Hershey Company was founded by Milton S. Hershey in 1894 as the Hers...

Sanmina Corporation is an American electronics manufacturing services (EMS) provider headquartered in San Jose, California that serves original equipment manufacturers (OEMs) in communications and computer hardware fields. The firm has nearly 80 manufacturing sites, and is one of the world’s largest independent manufacturers of printed circuit boards and backplanes. As of 2022, it is ranked number 482 in the Fortune 500 list.

HSY vs SANM — Head-to-Head

Bigger by revenue
SANM
SANM
1.0× larger
SANM
$3.2B
$3.1B
HSY
Growing faster (revenue YoY)
SANM
SANM
+51.9% gap
SANM
59.0%
7.0%
HSY
Higher net margin
HSY
HSY
8.8% more per $
HSY
10.4%
1.5%
SANM
More free cash flow
HSY
HSY
$696.6M more FCF
HSY
$788.5M
$91.9M
SANM
Faster 2-yr revenue CAGR
SANM
SANM
Annualised
SANM
31.9%
-2.5%
HSY

Income Statement — Q4 FY2025 vs Q1 FY2026

Metric
HSY
HSY
SANM
SANM
Revenue
$3.1B
$3.2B
Net Profit
$320.0M
$49.3M
Gross Margin
37.0%
7.6%
Operating Margin
14.4%
2.3%
Net Margin
10.4%
1.5%
Revenue YoY
7.0%
59.0%
Net Profit YoY
-59.8%
-24.2%
EPS (diluted)
$0.89

Green = leading value per metric. Periods may differ when fiscal calendars don't align.

8-Quarter Revenue & Profit Trend

Side-by-side quarterly history. Quarters aligned by calendar period so offset fiscal years line up.

Revenue
HSY
HSY
SANM
SANM
Q4 25
$3.1B
$3.2B
Q3 25
$3.2B
$2.1B
Q2 25
$2.6B
$2.0B
Q1 25
$2.8B
$2.0B
Q4 24
$2.9B
$2.0B
Q3 24
$3.0B
$2.0B
Q2 24
$2.1B
$1.8B
Q1 24
$3.3B
$1.8B
Net Profit
HSY
HSY
SANM
SANM
Q4 25
$320.0M
$49.3M
Q3 25
$276.3M
$48.1M
Q2 25
$62.7M
$68.6M
Q1 25
$224.2M
$64.2M
Q4 24
$796.6M
$65.0M
Q3 24
$446.3M
$61.4M
Q2 24
$180.9M
$51.6M
Q1 24
$797.5M
$52.5M
Gross Margin
HSY
HSY
SANM
SANM
Q4 25
37.0%
7.6%
Q3 25
32.6%
9.1%
Q2 25
30.5%
8.9%
Q1 25
33.7%
8.9%
Q4 24
54.0%
8.4%
Q3 24
41.3%
8.5%
Q2 24
40.2%
8.3%
Q1 24
51.5%
8.4%
Operating Margin
HSY
HSY
SANM
SANM
Q4 25
14.4%
2.3%
Q3 25
13.7%
3.7%
Q2 25
7.4%
4.7%
Q1 25
13.2%
4.6%
Q4 24
32.5%
4.4%
Q3 24
20.5%
4.4%
Q2 24
13.9%
4.5%
Q1 24
32.5%
4.1%
Net Margin
HSY
HSY
SANM
SANM
Q4 25
10.4%
1.5%
Q3 25
8.7%
2.3%
Q2 25
2.4%
3.4%
Q1 25
8.0%
3.2%
Q4 24
27.6%
3.2%
Q3 24
14.9%
3.0%
Q2 24
8.7%
2.8%
Q1 24
24.5%
2.9%
EPS (diluted)
HSY
HSY
SANM
SANM
Q4 25
$0.89
Q3 25
$0.88
Q2 25
$1.26
Q1 25
$1.16
Q4 24
$1.16
Q3 24
$1.09
Q2 24
$0.91
Q1 24
$0.93

Balance Sheet & Financial Strength

Snapshot of each company's liquidity, leverage and book value from the latest quarter.

Metric
HSY
HSY
SANM
SANM
Cash + ST InvestmentsLiquidity on hand
$1.4B
Total DebtLower is stronger
$4.7B
$2.2B
Stockholders' EquityBook value
$4.6B
$2.7B
Total Assets
$13.7B
$9.8B
Debt / EquityLower = less leverage
1.01×
0.82×

8-quarter trend — quarters aligned by calendar period.

Cash + ST Investments
HSY
HSY
SANM
SANM
Q4 25
$1.4B
Q3 25
$926.3M
Q2 25
$797.9M
Q1 25
$647.1M
Q4 24
$642.4M
Q3 24
$625.9M
Q2 24
$657.7M
Q1 24
$650.9M
Total Debt
HSY
HSY
SANM
SANM
Q4 25
$4.7B
$2.2B
Q3 25
$4.7B
$300.5M
Q2 25
$5.2B
Q1 25
$5.2B
Q4 24
$3.2B
Q3 24
$3.2B
Q2 24
$3.5B
Q1 24
$3.8B
Stockholders' Equity
HSY
HSY
SANM
SANM
Q4 25
$4.6B
$2.7B
Q3 25
$4.6B
$2.5B
Q2 25
$4.5B
$2.5B
Q1 25
$4.7B
$2.4B
Q4 24
$4.7B
$2.4B
Q3 24
$4.2B
$2.4B
Q2 24
$4.0B
$2.3B
Q1 24
$4.1B
$2.3B
Total Assets
HSY
HSY
SANM
SANM
Q4 25
$13.7B
$9.8B
Q3 25
$13.6B
$5.9B
Q2 25
$13.6B
$5.2B
Q1 25
$14.0B
$5.0B
Q4 24
$12.9B
$4.8B
Q3 24
$12.6B
$4.8B
Q2 24
$12.4B
$4.7B
Q1 24
$12.4B
$4.7B
Debt / Equity
HSY
HSY
SANM
SANM
Q4 25
1.01×
0.82×
Q3 25
1.02×
0.12×
Q2 25
1.15×
Q1 25
1.11×
Q4 24
0.68×
Q3 24
0.76×
Q2 24
0.87×
Q1 24
0.92×

Cash Flow & Capital Efficiency

How much cash each business actually produces after reinvestment. Cash flow is harder to manipulate than net income.

Metric
HSY
HSY
SANM
SANM
Operating Cash FlowLast quarter
$926.6M
$178.7M
Free Cash FlowOCF − Capex
$788.5M
$91.9M
FCF MarginFCF / Revenue
25.5%
2.9%
Capex IntensityCapex / Revenue
4.5%
2.7%
Cash ConversionOCF / Net Profit
2.90×
3.63×
TTM Free Cash FlowTrailing 4 quarters
$1.8B
$518.3M

8-quarter trend — quarters aligned by calendar period.

Operating Cash Flow
HSY
HSY
SANM
SANM
Q4 25
$926.6M
$178.7M
Q3 25
$841.9M
$199.1M
Q2 25
$112.2M
$200.8M
Q1 25
$396.7M
$156.9M
Q4 24
$941.6M
$63.9M
Q3 24
$695.3M
$51.9M
Q2 24
$325.6M
$90.0M
Q1 24
$569.1M
$72.3M
Free Cash Flow
HSY
HSY
SANM
SANM
Q4 25
$788.5M
$91.9M
Q3 25
$756.0M
$136.6M
Q2 25
$27.1M
$163.7M
Q1 25
$251.2M
$126.1M
Q4 24
$807.1M
$46.9M
Q3 24
$567.3M
$27.2M
Q2 24
$195.5M
$67.2M
Q1 24
$355.8M
$42.7M
FCF Margin
HSY
HSY
SANM
SANM
Q4 25
25.5%
2.9%
Q3 25
23.8%
6.5%
Q2 25
1.0%
8.0%
Q1 25
9.0%
6.4%
Q4 24
28.0%
2.3%
Q3 24
19.0%
1.4%
Q2 24
9.4%
3.7%
Q1 24
10.9%
2.3%
Capex Intensity
HSY
HSY
SANM
SANM
Q4 25
4.5%
2.7%
Q3 25
2.7%
3.0%
Q2 25
3.3%
1.8%
Q1 25
5.2%
1.5%
Q4 24
4.7%
0.9%
Q3 24
4.3%
1.2%
Q2 24
6.3%
1.2%
Q1 24
6.6%
1.6%
Cash Conversion
HSY
HSY
SANM
SANM
Q4 25
2.90×
3.63×
Q3 25
3.05×
4.14×
Q2 25
1.79×
2.93×
Q1 25
1.77×
2.44×
Q4 24
1.18×
0.98×
Q3 24
1.56×
0.85×
Q2 24
1.80×
1.74×
Q1 24
0.71×
1.38×

Financial Flow Comparison

Revenue → gross profit → operating profit → net profit for each company.

Revenue Breakdown by Segment

HSY
HSY

Other$1.8B59%
North America Salty Snacks Segment$1.3B41%

SANM
SANM

Industrial And Energy Medical Defense And Aerospace And Automotive And Transportation$1.2B38%
ZT Systems$1.1B34%
Other Segments CPS$434.3M14%
CPS Third Party Revenue$412.7M13%
Change In Accounting Method Accounted For As Change In Estimate$2.7M0%

Related Comparisons