MetaCap

Flex (FLEX) vs Sanmina (SANM)

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

Summary

Flex (FLEX) has outperformed Sanmina (SANM) over the past year, gaining 108.8% versus a gain of 74.7%. Over five years, FLEX leads with a +733.1% price change compared with +455.2% for SANM. Flex is the larger company by market cap ($44.09 billion vs $11.76 billion), about 3.7 times the size.

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

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

Relative performance

FLEX+108.79%SANM+74.66%
+192%+89%-14%
Oct 7, 20251 yearOct 7, 2026
FLEX+746.40%SANM+455.33%
+1026%+476%-74%
Oct 4, 20215 yearsOct 5, 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$119.34$219.41
Market cap$44.09B$11.76B
1-day change-1.68%-3.80%
YTD return+97.83%+46.21%
1-year return+108.79%+74.66%
5-year return+733.07%+455.19%
P/E ratio (TTM)46.0839.25
Forward P/E16.9115.77
EPS (TTM)$2.59$5.59
Dividend yield0.00%0.00%
Annual dividend$0.00$0.00
Revenue (latest FY)$27.91B$8.13B
Revenue growth (YoY)+8.14%+7.40%
Net income (latest FY)$880.00M$245.89M
Gross margin9.20%8.81%
Operating margin4.90%4.36%
Net margin3.15%3.03%
52-week high$166.86$288.68
52-week low$53.07$118.10
Distance from 52-week high-28.48%-24.00%
Analyst consensusstrong_buynone
Avg. price target upside+34.49%+18.50%
Average volume3.65M684.12K
Shares outstanding369.46M53.60M
Employees149,68635,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.7 times larger than Sanmina by market value ($44.09B vs $11.76B).
  • FLEX has outperformed SANM by 34.1 percentage points over the past year.

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 · 35,000 employees

FLEX vs SANM FAQ

Which is bigger, Flex or Sanmina?

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

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

FLEX returned +108.79% over the past 12 months, compared with +74.66% 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 39.3, versus 46.1 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