MetaCap

Flex (FLEX) vs Sanmina (SANM)

Head-to-head comparison of performance, valuation, growth, profitability and dividends. Prices delayed 15 minutes; data as of Nov 22, 2026.

Summary

Flex (FLEX) has outperformed Sanmina (SANM) over the past year, gaining 19.8% versus a loss of 4.8%. Over five years, FLEX leads with a +400.6% price change compared with +272.9% for SANM. Flex is the larger company by market cap ($24.47 billion vs $7.38 billion), about 3.3 times the size, while Sanmina is growing revenue faster (+78.7% vs +8.1%).

On valuation, Sanmina trades at a lower forward P/E (7.1x vs 8.4x for Flex). Flex converts more of its revenue into profit, with a net margin of 3.2% versus 2.6%.

Summary generated from market data by MetaCap's automated system. Methodology

Relative performance

FLEX+19.80%SANM-4.85%
+204%+88%-27%
Nov 21, 20251 yearNov 20, 2026
FLEX+394.38%SANM+261.32%
+1087%+507%-73%
Nov 15, 20215 yearsNov 16, 2026

Percent change in share price from the first common trading day shown; excludes dividends.

Head-to-head

FLEX versus SANM key metrics
MetricFLEXSANM
Share price$66.24$139.76
Market cap$24.47B$7.38B
1-day change-10.75%-9.69%
YTD return+9.63%-6.87%
1-year return+19.80%-4.85%
5-year return+400.57%+272.89%
P/E ratio (TTM)23.8320.40
Forward P/E8.457.12
EPS (TTM)$2.78$6.85
Dividend yield0.00%0.00%
Annual dividend$0.00$0.00
Revenue (latest FY)$27.91B$14.53B
Revenue growth (YoY)+8.14%+78.69%
Net income (latest FY)$880.00M$378.02M
Gross margin9.20%9.60%
Operating margin4.90%4.69%
Net margin3.15%2.60%
52-week high$166.86$288.68
52-week low$55.16$118.10
Distance from 52-week high-60.30%-51.59%
Analyst consensusstrong_buybuy
Avg. price target upside+133.09%+78.88%
Average volume4.72M804.57K
Shares outstanding369.46M52.78M
Employees149,68638,000
SectorTechnologyTechnology
IndustryElectrical ProductsElectrical Products

Highlighted cells mark the higher value for growth, returns, margins and yield, and the lower value for P/E ratios. Highlighting is a mechanical comparison, not a recommendation.

Key differences

  • Flex is about 3.3 times larger than Sanmina by market value ($24.47B vs $7.38B).
  • FLEX has outperformed SANM by 24.7 percentage points over the past year.
  • Sanmina grew revenue faster in its latest fiscal year (+78.69% vs +8.14%).

About Flex

FLEX stock →

Flex Ltd. provides technology innovation, supply chain, and manufacturing solutions to data center, communications, enterprise, consumer, automotive, healthcare, industrial, and power industries in the Americas, Asia, and Europe.

Technology · Electrical Products · 149,686 employees

About Sanmina

SANM stock →

Sanmina Corporation provides integrated manufacturing solutions, components, products and repair, logistics, and after-market services in the Americas, the Asia Pacific, Europe, the Middle East, and Africa. The company operates through two businesses: Integrated Manufacturing Solutions; and Components, Products and Services.

Technology · Electrical Products · 38,000 employees

FLEX vs SANM FAQ

Which is bigger, Flex or Sanmina?

Flex (FLEX) is larger, with a market capitalization of $24.47B compared with $7.38B for Sanmina (SANM).

Which stock has performed better over the past year, FLEX or SANM?

FLEX returned +19.80% over the past 12 months, compared with -4.85% for SANM (price return, excluding dividends). Past performance does not predict future results.

Which has the lower P/E ratio, FLEX or SANM?

SANM has the lower trailing P/E at 20.4, versus 23.8 for FLEX. A lower P/E is not by itself a sign of a better investment; it can reflect slower expected growth or higher risk.

Are Flex and Sanmina in the same industry?

Yes. Both are classified in the Electrical Products industry within the Technology sector.

More comparisons