Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

FLEX vs SANM

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

Live fundamentals10-year financials5-year price chart
FLEX
Flex Ltd.

Hardware, Equipment & Parts

TechnologyNASDAQ • SG
Market Cap$49.54B
5Y Perf.+1287.5%
SANM
Sanmina Corporation

Hardware, Equipment & Parts

TechnologyNASDAQ • US
Market Cap$13.03B
5Y Perf.+718.6%

FLEX vs SANM — Key Financials

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

Company Snapshot
FLEX logoFLEX
SANM logoSANM
IndustryHardware, Equipment & PartsHardware, Equipment & Parts
Market Cap$49.54B$13.03B
Revenue (TTM)$26.84B$11.34B
Net Income (TTM)$852M$260M
Gross Margin9.1%8.5%
Operating Margin4.9%4.0%
Forward P/E41.5x21.2x
Total Debt$4.15B$394M
Cash & Equiv.$2.29B$966M

FLEX vs SANMLong-Term Stock Performance

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

FLEX
SANM
StockMay 20May 26Return
Flex Ltd. (FLEX)1001387.5+1287.5%
Sanmina Corporation (SANM)100818.6+718.6%

Price return only. Dividends and distributions are not included.

Quick Verdict: FLEX vs SANM

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

Bottom line: FLEX and SANM are tied at the top with 3 categories each — the right choice depends on your priorities. Sanmina Corporation is the stronger pick specifically for growth and revenue expansion and valuation and capital efficiency. As sector peers, any of these can serve as alternatives in the same allocation.
FLEX
Flex Ltd.
The Long-Run Compounder

FLEX has the current edge in this matchup, primarily because of its strength in long-term compounding and valuation efficiency.

  • 10.1% 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
SANM
Sanmina Corporation
The Income Pick

SANM is the clearest fit if your priority is 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
See the full category breakdown
CategoryWinnerWhy
GrowthSANM logoSANM7.4% revenue growth vs FLEX's -2.3%
ValueSANM logoSANMLower P/E (21.2x vs 41.5x)
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+266.4% vs SANM's +203.1%
Efficiency (ROA)FLEX logoFLEX4.4% ROA vs SANM's 3.4%, ROIC 13.0% vs 13.0%

FLEX vs SANM — Revenue Breakdown by Segment

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

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

FLEX vs SANM — 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 — FLEX and SANM 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.

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

Valuation Metrics

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

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

MetricFLEX logoFLEXFlex Ltd.SANM logoSANMSanmina Corporati…
Market CapShares × price$49.5B$13.0B
Enterprise ValueMkt cap + debt − cash$51.4B$12.5B
Trailing P/EPrice ÷ TTM EPS63.85x53.49x
Forward P/EPrice ÷ next-FY EPS est.41.50x21.24x
PEG RatioP/E ÷ EPS growth rate0.97x3.01x
EV / EBITDAEnterprise value multiple30.09x26.27x
Price / SalesMarket cap ÷ Revenue1.92x1.60x
Price / BookPrice ÷ Book value/share10.72x5.18x
Price / FCFMarket cap ÷ FCF46.43x27.52x
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.

MetricFLEX logoFLEXFlex Ltd.SANM logoSANMSanmina Corporati…
ROE (TTM)Return on equity+16.8%+7.1%
ROA (TTM)Return on assets+4.4%+3.4%
ROICReturn on invested capital+13.0%+13.0%
ROCEReturn on capital employed+12.8%+12.0%
Piotroski ScoreFundamental quality 0–957
Debt / EquityFinancial leverage0.83x0.16x
Net DebtTotal debt minus cash$1.9B-$572M
Cash & Equiv.Liquid assets$2.3B$966M
Total DebtShort + long-term debt$4.1B$394M
Interest CoverageEBIT ÷ Interest expense6.38x6.35x
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 $73,906 today (with dividends reinvested), compared to $57,289 for SANM. Over the past 12 months, FLEX leads with a +266.4% total return vs SANM's +203.1%. The 3-year compound annual growth rate (CAGR) favors FLEX at 86.3% vs SANM's 64.8% — a key indicator of consistent wealth creation.

MetricFLEX logoFLEXFlex Ltd.SANM logoSANMSanmina Corporati…
YTD ReturnYear-to-date+111.6%+49.8%
1-Year ReturnPast 12 months+266.4%+203.1%
3-Year ReturnCumulative with dividends+546.8%+347.3%
5-Year ReturnCumulative with dividends+639.1%+472.9%
10-Year ReturnCumulative with dividends+1010.7%+883.7%
CAGR (3Y)Annualised 3-year return+86.3%+64.8%
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.

MetricFLEX logoFLEXFlex Ltd.SANM logoSANMSanmina Corporati…
Beta (5Y)Sensitivity to S&P 5002.03x1.92x
52-Week HighHighest price in past year$134.99$238.67
52-Week LowLowest price in past year$34.94$77.35
% of 52W HighCurrent price vs 52-week peak+99.8%+99.9%
RSI (14)Momentum oscillator 0–10077.376.6
Avg Volume (50D)Average daily shares traded3.7M802K
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 FLEX as "Buy" and SANM as "Hold". Consensus price targets imply -16.2% upside for SANM (target: $200) vs -40.6% for FLEX (target: $80).

MetricFLEX logoFLEXFlex Ltd.SANM logoSANMSanmina Corporati…
Analyst RatingConsensus buy/hold/sellBuyHold
Price TargetConsensus 12-month target$80.00$200.00
# AnalystsCovering analysts2517
Dividend YieldAnnual dividend ÷ price
Dividend StreakConsecutive years of raises01
Dividend / ShareAnnual DPS
Buyback YieldShare repurchases ÷ mkt cap+2.5%+0.9%
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...

FLEX vs SANM: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is FLEX or SANM 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. 5x 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 — FLEX or SANM?

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

5x versus Flex Ltd. at 63. 9x. 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 — FLEX or SANM?

Over the past 5 years, Flex Ltd.

(FLEX) delivered a total return of +639. 1%, compared to +472. 9% for Sanmina Corporation (SANM). Over 10 years, the gap is even starker: FLEX returned +1011% 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 — FLEX or SANM?

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 — FLEX or SANM?

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 — FLEX or SANM?

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 FLEX or SANM 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. 5x for Flex Ltd. — 20. 3x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for SANM: -16. 2% to $200. 00.

08

Which pays a better dividend — FLEX or SANM?

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 FLEX or SANM 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 (+1011% 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: +1011%, 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 FLEX and SANM?

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

FLEX

Quality Business

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

SANM

High-Growth Disruptor

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

Beat Both

Find stocks that outperform FLEX and SANM on the metrics below

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

You Might Also Compare

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