Hardware, Equipment & Parts
Compare Stocks
2 / 10Stock Comparison
FLEX vs SANM
Revenue, margins, valuation, and 5-year total return — side by side.
Hardware, Equipment & Parts
FLEX vs SANM — Key Financials
Market cap, revenue, margins, and valuation side-by-side.
| Company Snapshot | ||
|---|---|---|
| Industry | Hardware, Equipment & Parts | Hardware, Equipment & Parts |
| Market Cap | $49.54B | $13.03B |
| Revenue (TTM) | $26.84B | $11.34B |
| Net Income (TTM) | $852M | $260M |
| Gross Margin | 9.1% | 8.5% |
| Operating Margin | 4.9% | 4.0% |
| Forward P/E | 41.5x | 21.2x |
| Total Debt | $4.15B | $394M |
| Cash & Equiv. | $2.29B | $966M |
FLEX vs SANM — Long-Term Stock Performance
Price return indexed to 100 at period start. Dividends excluded.
| Stock | May 20 | May 26 | Return |
|---|---|---|---|
| Flex Ltd. (FLEX) | 100 | 1387.5 | +1287.5% |
| Sanmina Corporation (SANM) | 100 | 818.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.
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%
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
See the full category breakdown
| Category | Winner | Why |
|---|---|---|
| Growth | 7.4% revenue growth vs FLEX's -2.3% | |
| Value | Lower P/E (21.2x vs 41.5x) | |
| Quality / Margins | 3.2% margin vs SANM's 2.3% | |
| Stability / Safety | Beta 1.92 vs FLEX's 2.03, lower leverage | |
| Dividends | Tie | Neither stock pays a meaningful dividend |
| Momentum (1Y) | +266.4% vs SANM's +203.1% | |
| Efficiency (ROA) | 4.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
FLEX vs SANM — Financial Metrics
Side-by-side numbers across 2 stocks — who leads on profitability, valuation, growth, and risk.
Income & Cash Flow (Last 12 Months)
Evenly matched — FLEX and SANM each lead in 3 of 6 comparable metrics.
Income & Cash Flow (Last 12 Months)
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.
| Metric | ||
|---|---|---|
| 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% |
Valuation Metrics
SANM leads this category, winning 6 of 7 comparable metrics.
Valuation 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.
| Metric | ||
|---|---|---|
| Market CapShares × price | $49.5B | $13.0B |
| Enterprise ValueMkt cap + debt − cash | $51.4B | $12.5B |
| Trailing P/EPrice ÷ TTM EPS | 63.85x | 53.49x |
| Forward P/EPrice ÷ next-FY EPS est. | 41.50x | 21.24x |
| PEG RatioP/E ÷ EPS growth rate | 0.97x | 3.01x |
| EV / EBITDAEnterprise value multiple | 30.09x | 26.27x |
| Price / SalesMarket cap ÷ Revenue | 1.92x | 1.60x |
| Price / BookPrice ÷ Book value/share | 10.72x | 5.18x |
| Price / FCFMarket cap ÷ FCF | 46.43x | 27.52x |
Profitability & Efficiency
FLEX leads this category, winning 5 of 9 comparable metrics.
Profitability & Efficiency
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.
| Metric | ||
|---|---|---|
| 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–9 | 5 | 7 |
| Debt / EquityFinancial leverage | 0.83x | 0.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 expense | 6.38x | 6.35x |
Total Returns (Dividends Reinvested)
FLEX leads this category, winning 6 of 6 comparable metrics.
Total Returns (Dividends Reinvested)
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.
| Metric | ||
|---|---|---|
| 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% |
Risk & Volatility
SANM leads this category, winning 2 of 2 comparable metrics.
Risk & Volatility
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.
| Metric | ||
|---|---|---|
| Beta (5Y)Sensitivity to S&P 500 | 2.03x | 1.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–100 | 77.3 | 76.6 |
| Avg Volume (50D)Average daily shares traded | 3.7M | 802K |
Analyst Outlook
SANM leads this category, winning 1 of 1 comparable metric.
Analyst Outlook
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).
| Metric | ||
|---|---|---|
| Analyst RatingConsensus buy/hold/sell | Buy | Hold |
| Price TargetConsensus 12-month target | $80.00 | $200.00 |
| # AnalystsCovering analysts | 25 | 17 |
| Dividend YieldAnnual dividend ÷ price | — | — |
| Dividend StreakConsecutive years of raises | 0 | 1 |
| Dividend / ShareAnnual DPS | — | — |
| Buyback YieldShare repurchases ÷ mkt cap | +2.5% | +0.9% |
SANM leads in 3 of 6 categories (Valuation Metrics, Risk & Volatility). FLEX leads in 2 (Profitability & Efficiency, Total Returns). 1 tied.
FLEX vs SANM: Frequently Asked Questions
10 questions · data-driven answers · updated daily
01Is 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.
02Which 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.
03Which 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.
04Which 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.
05Which 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.
06Which 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.
07Is 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.
08Which 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.
09Is 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.
10What 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.
You Might Also Compare
Based on how these companies actually compete and overlap — not just which sector they're filed under.