Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

SANM vs FLEX

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

Live fundamentals10-year financials5-year price chart
SANM
Sanmina Corporation

Hardware, Equipment & Parts

TechnologyNASDAQ • US
Market Cap$12.95B
5Y Perf.+791.0%
FLEX
Flex Ltd.

Hardware, Equipment & Parts

TechnologyNASDAQ • SG
Market Cap$48.92B
5Y Perf.+1270.2%

SANM vs FLEX — Key Financials

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

Company Snapshot
SANM logoSANM
FLEX logoFLEX
IndustryHardware, Equipment & PartsHardware, Equipment & Parts
Market Cap$12.95B$48.92B
Revenue (TTM)$11.34B$26.84B
Net Income (TTM)$260M$852M
Gross Margin8.5%9.1%
Operating Margin4.0%4.9%
Forward P/E21.2x41.0x
Total Debt$394M$4.15B
Cash & Equiv.$966M$2.29B

SANM vs FLEXLong-Term Stock Performance

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

SANM
FLEX
StockMay 20May 26Return
Sanmina Corporation (SANM)100891.0+791.0%
Flex Ltd. (FLEX)1001370.2+1270.2%

Price return only. Dividends and distributions are not included.

Quick Verdict: SANM vs FLEX

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

Bottom line: SANM and FLEX are tied at the top with 3 categories each — the right choice depends on your priorities. Flex Ltd. is the stronger pick specifically for profitability and margin quality and recent price momentum and sentiment. As sector peers, any of these can serve as alternatives in the same allocation.
SANM
Sanmina Corporation
The Income Pick

SANM has the current edge in this matchup, primarily because of its strength in income & stability and growth exposure.

  • Dividend streak 1 yrs, beta 1.92
  • Rev growth 7.4%, EPS growth 14.1%, 3Y rev CAGR 0.9%
  • Lower volatility, beta 1.92, Low D/E 15.5%, current ratio 1.72x
Best for: income & stability and growth exposure
FLEX
Flex Ltd.
The Long-Run Compounder

FLEX is the clearest fit if your priority is long-term compounding and valuation efficiency.

  • 10.0% 10Y total return vs SANM's 8.8%
  • PEG 0.63 vs SANM's 1.20
  • 3.2% margin vs SANM's 2.3%
Best for: long-term compounding and valuation efficiency
See the full category breakdown
CategoryWinnerWhy
GrowthSANM logoSANM7.4% revenue growth vs FLEX's -2.3%
ValueSANM logoSANMLower P/E (21.2x vs 41.0x)
Quality / MarginsFLEX logoFLEX3.2% margin vs SANM's 2.3%
Stability / SafetySANM logoSANMBeta 1.92 vs FLEX's 2.03, lower leverage
DividendsTieNeither stock pays a meaningful dividend
Momentum (1Y)FLEX logoFLEX+250.6% vs SANM's +197.6%
Efficiency (ROA)FLEX logoFLEX4.4% ROA vs SANM's 3.4%, ROIC 13.0% vs 13.0%

SANM vs FLEX — Revenue Breakdown by Segment

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

SANMSanmina Corporation
FY 2025
IMS
80.1%$6.5B
CPS Third Party Revenue
19.9%$1.6B
FLEXFlex Ltd.
FY 2025
Flex Agility Solutions (FAS)
54.5%$14.1B
Flex Reliability Solutions (FRS)
45.5%$11.7B

SANM vs FLEX — Financial Metrics

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

BEST OVERALLSANMLAGGINGFLEX

Income & Cash Flow (Last 12 Months)

Evenly matched — SANM and FLEX each lead in 3 of 6 comparable metrics.

FLEX is the larger business by revenue, generating $26.8B annually — 2.4x SANM's $11.3B. Profitability is closely matched — net margins range from 3.2% (FLEX) to 2.3% (SANM). On growth, SANM holds the edge at +102.3% YoY revenue growth, suggesting stronger near-term business momentum.

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
RevenueTrailing 12 months$11.3B$26.8B
EBITDAEarnings before interest/tax$542M$1.7B
Net IncomeAfter-tax profit$260M$852M
Free Cash FlowCash after capex$734M$1.2B
Gross MarginGross profit ÷ Revenue+8.5%+9.1%
Operating MarginEBIT ÷ Revenue+4.0%+4.9%
Net MarginNet income ÷ Revenue+2.3%+3.2%
FCF MarginFCF ÷ Revenue+6.5%+4.3%
Rev. Growth (YoY)Latest quarter vs prior year+102.3%+7.7%
EPS Growth (YoY)Latest quarter vs prior year+46.6%-4.5%
Evenly matched — SANM and FLEX each lead in 3 of 6 comparable metrics.

Valuation Metrics

SANM leads this category, winning 6 of 7 comparable metrics.

At 53.2x trailing earnings, SANM trades at a 16% valuation discount to FLEX's 63.1x P/E. Adjusting for growth (PEG ratio), FLEX offers better value at 0.96x vs SANM's 2.99x — a lower PEG means you pay less per unit of expected earnings growth.

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
Market CapShares × price$12.9B$48.9B
Enterprise ValueMkt cap + debt − cash$12.4B$50.8B
Trailing P/EPrice ÷ TTM EPS53.16x63.05x
Forward P/EPrice ÷ next-FY EPS est.21.24x40.98x
PEG RatioP/E ÷ EPS growth rate2.99x0.96x
EV / EBITDAEnterprise value multiple26.10x29.73x
Price / SalesMarket cap ÷ Revenue1.59x1.90x
Price / BookPrice ÷ Book value/share5.15x10.59x
Price / FCFMarket cap ÷ FCF27.35x45.85x
SANM leads this category, winning 6 of 7 comparable metrics.

Profitability & Efficiency

FLEX leads this category, winning 5 of 9 comparable metrics.

FLEX delivers a 16.8% return on equity — every $100 of shareholder capital generates $17 in annual profit, vs $7 for SANM. SANM carries lower financial leverage with a 0.16x debt-to-equity ratio, signaling a more conservative balance sheet compared to FLEX's 0.83x. On the Piotroski fundamental quality scale (0–9), SANM scores 7/9 vs FLEX's 5/9, reflecting strong financial health.

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
ROE (TTM)Return on equity+7.1%+16.8%
ROA (TTM)Return on assets+3.4%+4.4%
ROICReturn on invested capital+13.0%+13.0%
ROCEReturn on capital employed+12.0%+12.8%
Piotroski ScoreFundamental quality 0–975
Debt / EquityFinancial leverage0.16x0.83x
Net DebtTotal debt minus cash-$572M$1.9B
Cash & Equiv.Liquid assets$966M$2.3B
Total DebtShort + long-term debt$394M$4.1B
Interest CoverageEBIT ÷ Interest expense6.35x6.38x
FLEX leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

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

A $10,000 investment in FLEX five years ago would be worth $71,185 today (with dividends reinvested), compared to $56,450 for SANM. Over the past 12 months, FLEX leads with a +250.6% total return vs SANM's +197.6%. The 3-year compound annual growth rate (CAGR) favors FLEX at 85.5% vs SANM's 64.4% — a key indicator of consistent wealth creation.

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
YTD ReturnYear-to-date+48.8%+108.9%
1-Year ReturnPast 12 months+197.6%+250.6%
3-Year ReturnCumulative with dividends+344.6%+538.7%
5-Year ReturnCumulative with dividends+464.5%+611.9%
10-Year ReturnCumulative with dividends+875.3%+998.6%
CAGR (3Y)Annualised 3-year return+64.4%+85.5%
FLEX leads this category, winning 6 of 6 comparable metrics.

Risk & Volatility

SANM leads this category, winning 2 of 2 comparable metrics.

SANM is the less volatile stock with a 1.92 beta — it tends to amplify market swings less than FLEX's 2.03 beta. A beta below 1.0 means the stock typically moves less than the S&P 500.

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
Beta (5Y)Sensitivity to S&P 5001.92x2.03x
52-Week HighHighest price in past year$241.24$139.39
52-Week LowLowest price in past year$78.12$34.94
% of 52W HighCurrent price vs 52-week peak+98.3%+95.4%
RSI (14)Momentum oscillator 0–10080.690.9
Avg Volume (50D)Average daily shares traded812K3.8M
SANM leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

SANM leads this category, winning 1 of 1 comparable metric.

Wall Street rates SANM as "Hold" and FLEX as "Buy". Consensus price targets imply -15.6% upside for SANM (target: $200) vs -39.9% for FLEX (target: $80).

MetricSANM logoSANMSanmina Corporati…FLEX logoFLEXFlex Ltd.
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$200.00$80.00
# AnalystsCovering analysts1725
Dividend YieldAnnual dividend ÷ price
Dividend StreakConsecutive years of raises10
Dividend / ShareAnnual DPS
Buyback YieldShare repurchases ÷ mkt cap+0.9%+2.6%
SANM leads this category, winning 1 of 1 comparable metric.
Key Takeaway

SANM leads in 3 of 6 categories (Valuation Metrics, Risk & Volatility). FLEX leads in 2 (Profitability & Efficiency, Total Returns). 1 tied.

Best OverallSanmina Corporation (SANM)Leads 3 of 6 categories
Loading custom metrics...

SANM vs FLEX: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is SANM or FLEX a better buy right now?

For growth investors, Sanmina Corporation (SANM) is the stronger pick with 7.

4% revenue growth year-over-year, versus -2. 3% for Flex Ltd. (FLEX). Sanmina Corporation (SANM) offers the better valuation at 53. 2x trailing P/E (21. 2x forward), making it the more compelling value choice. Analysts rate Flex Ltd. (FLEX) a "Buy" — based on 25 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 — SANM or FLEX?

On trailing P/E, Sanmina Corporation (SANM) is the cheapest at 53.

2x versus Flex Ltd. at 63. 1x. On forward P/E, Sanmina Corporation is actually cheaper at 21. 2x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Flex Ltd. wins at 0. 63x versus Sanmina Corporation's 1. 20x — a PEG below 1. 0 traditionally signals the market is underpricing earnings growth.

03

Which is the better long-term investment — SANM or FLEX?

Over the past 5 years, Flex Ltd.

(FLEX) delivered a total return of +611. 9%, compared to +464. 5% for Sanmina Corporation (SANM). Over 10 years, the gap is even starker: FLEX returned +998. 6% versus SANM's +875. 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 — SANM or FLEX?

By beta (market sensitivity over 5 years), Sanmina Corporation (SANM) is the lower-risk stock at 1.

92β versus Flex Ltd. 's 2. 03β — meaning FLEX is approximately 5% more volatile than SANM relative to the S&P 500. On balance sheet safety, Sanmina Corporation (SANM) carries a lower debt/equity ratio of 16% versus 83% for Flex Ltd. — giving it more financial flexibility in a downturn.

05

Which is growing faster — SANM or FLEX?

By revenue growth (latest reported year), Sanmina Corporation (SANM) is pulling ahead at 7.

4% versus -2. 3% for Flex Ltd. (FLEX). On earnings-per-share growth, the picture is similar: Sanmina Corporation grew EPS 14. 1% year-over-year, compared to -7. 5% for Flex Ltd.. Over a 3-year CAGR, FLEX leads at 1. 6% 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 — SANM or FLEX?

Flex Ltd.

(FLEX) is the more profitable company, earning 3. 2% net margin versus 3. 0% for Sanmina Corporation — meaning it keeps 3. 2% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: FLEX leads at 4. 5% versus 4. 4% for SANM. At the gross margin level — before operating expenses — SANM leads at 8. 8%, 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 SANM or FLEX more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, Flex Ltd. (FLEX) is the more undervalued stock at a PEG of 0. 63x versus Sanmina Corporation's 1. 20x. A PEG below 1. 0 is traditionally considered the threshold for growth-adjusted undervaluation. On forward earnings alone, Sanmina Corporation (SANM) trades at 21. 2x forward P/E versus 41. 0x for Flex Ltd. — 19. 7x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for SANM: -15. 6% to $200. 00.

08

Which pays a better dividend — SANM or FLEX?

None of the stocks in this comparison currently pay a material dividend.

All are effectively zero-yield and should be held for capital appreciation rather than income.

09

Is SANM or FLEX better for a retirement portfolio?

For long-horizon retirement investors, Flex Ltd.

(FLEX) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (+998. 6% 10Y return). Sanmina Corporation (SANM) carries a higher beta of 1. 92 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (FLEX: +998. 6%, SANM: +875. 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 SANM and FLEX?

Both stocks operate in the Technology 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

SANM

High-Growth Disruptor

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 51%
Run This Screen
Stocks Like

FLEX

Quality Business

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 5%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform SANM and FLEX on the metrics below

Revenue Growth>
%
(SANM: 102.3% · FLEX: 7.7%)
Net Margin>
%
(SANM: 2.3% · FLEX: 3.2%)
P/E Ratio<
x
(SANM: 53.2x · FLEX: 63.1x)

You Might Also Compare

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