FLEX vs SANM: Which Is the Better Buy in 2026?

Last updated November 2026

Short answer

FLEX is the larger of the two ($24.86B market cap): the incumbent the market prices for continued execution (8.58x forward earnings, beta 1.79). SANM is the smaller challenger ($7.28B), cheaper on forward earnings (7.03x): more room to run, but more to prove. If you believe in growth, FLEX fits: analysts expect its revenue to rise 31% next year, against 17% for SANM. If you believe in paying less for profit, SANM fits: it trades at 7.03x forward earnings, against 8.58x for FLEX.

FLEX vs SANM: the tie-breaker metrics

Same yardstick, side by side (as of November 2026). Valuation lined up like this is most meaningful for two names in the same corner of the market, which these are. Figures are approximate; verify before investing.

MetricFLEXSANMWhat it tells you
Market cap$24.86B$7.28BSize. The larger name is the incumbent; the smaller has more room to grow and more to prove.
Forward P/E8.587.03Valuation on next year's expected earnings, the same yardstick for both. Lower is cheaper for that growth; higher means the market is paying up.
Trailing P/E24.2120.15Valuation on the last 12 months. A big drop from trailing to forward means the market expects earnings to jump, so more growth is already in the price.
Beta1.791.72Volatility vs the market. Above 1 swings harder than the index; below 1 is steadier. Higher beta means bigger drawdowns to hold through.
Price vs 52-week range12% of range12% of rangeWhere today's price sits between the 52-week low and high. Near the high is momentum with less margin of safety; near the low is out of favor or a discount, depending on why.
Price / book4.282.82How much you pay over book value. Very high can signal an asset-light, high-return business or a rich price.

Reading it: SANM is the cheaper of the two on forward earnings, but cheaper is not the same as better. Pair the valuation with growth (how far the forward P/E sits below the trailing P/E) and risk (beta) before you decide.

Before you buy: how FLEX and SANM affect your concentration

The metrics above tell you which is the marginally better business. The bigger risk for most people is not picking the slightly worse stock, it is over-concentrating. FLEX and SANM share themes, so owning both, or adding either to what you already hold, can quietly push a large share of your portfolio into one bet.

This is the part a generic comparison page cannot answer, because it depends on what you own. Connect your brokerage and Walnut shows your real, combined FLEX and SANM exposure, flags overlap with your existing positions, and tells you if adding one would tip you past a concentration you are comfortable with, read-only by default, with your login staying at your broker. Walnut is not an investment adviser.

What does Flex Ltd (FLEX) do?

Flex Ltd is a global electronics manufacturing services (EMS) company, effectively an outsourced factory and supply chain that designs and builds products for other brands. It is consistently ranked among the largest EMS providers in the world by revenue, competing near the top of the industry with fiscal-year revenue of about $27.9 billion for the year ended March 2026 and about $31 billion over the trailing twelve months. Flex reports across segments including Flex Agility Solutions and Flex Reliability Solutions, serving end markets that span cloud and data-center infrastructure, automotive, industrial, healthcare, and energy. Because it manufactures on contract, its margins are structurally thin compared with the brands it serves, and the investment case turns on volume, efficiency, and moving into higher-value services like design, power products, and data-center integration.

Full FLEX guide

What does Sanmina Corporation (SANM) do?

Sanmina Corporation, founded in Silicon Valley in 1980 and headquartered in San Jose, California, is a Fortune 500 global provider of integrated manufacturing solutions, components, and repair, logistics and after-market services. It serves original equipment manufacturers (OEMs) across industrial and energy, medical, defense and aerospace, automotive, communications networks, and cloud and AI infrastructure, running two businesses: Integrated Manufacturing Solutions and Components, Products and Services. It employs roughly 35,000 people and serves customers from around 20 countries.

Full SANM guide

FLEX vs SANM: how do they differ?

Both fit overlapping themes, but they are not interchangeable. Here is what each one depends on.

  • FLEX drivers: Data-center and AI infrastructure demand; Margin-mix shift toward higher-value work.
  • SANM drivers: AI and cloud infrastructure ramp; AMD partnership and preferred-manufacturer status.

Which fits which kind of investor

A faster-growing, richer-valued name usually swings harder, so it suits a longer horizon and a higher tolerance for volatility; a steadier, more cash-generative business suits a more conservative or income-minded investor. A useful test is which set of risks you could hold through a drawdown: The dominant risk is that EMS is a low-margin, high-volume business, so thin margins leave little room for error and any operational stumble or pricing pressure hits profit quickly. For SANM, sanmina operates on thin EMS margins (fiscal 2026 gross margin around 9.6%, operating margin around 6.3% and net margin near 2.6%), so small execution errors or pricing pressure can meaningfully affect profits.

FLEX or SANM: which should you pick?

If the story you believe is FLEX's (Data-center and AI infrastructure demand), FLEX is the more direct way to own it; if it is SANM's (AI and cloud infrastructure ramp), SANM is. Many investors hold both, but since they share themes, that is a concentrated bet, not diversification. Decide deliberately and check overlap. For the full detail, see the FLEX and SANM guides.

FLEX vs SANM: the full fundamentals

FLEX. Flex trades near 24 times trailing GAAP earnings and about 13 times the midpoint of its raised fiscal 2027 EPS guidance, a multiple that has compressed sharply even as guidance went up. The valuation debate is about the pieces: what the remaining EMS business and the spun-off Axiom are each worth, and whether the preferred-stock terms dilute that value. Figures are as of November 20, 2026 and change daily; the mean target across 10 analysts is about $154.

SANM. Revenue and earnings stepped up sharply after the ZT Systems acquisition closed in late 2025, and Sanmina has beaten EPS estimates in four of the last five reported quarters, including a large beat in fiscal Q4. The trailing GAAP P/E near 20x is inflated by acquisition costs, while the forward multiple near 7x and a price-to-sales ratio near 0.5x sit far below the stock's roughly 15x ten-year average P/E, a reset driven by the share-price fall rather than lower estimates. The four analysts covering the stock carry a mean target near $250; the next report, for the December quarter, is expected around early February 2027.

Headline figures (approximate, November 2026): FLEX shows revenue (ttm) ~$31 billion; up ~25% year over year in the quarter ended Sep 25, 2026 (~$8.5 billion), cloud and power infrastructure ~$2.51 billion revenue in the latest quarter, up ~54%; adjusted operating margin ~10.7%, margins (ttm) gross ~9.7%, operating ~5.3%, net ~3.4%, net income (ttm) ~$1.04 billion; SANM shows revenue (fy2026, ended oct 3, 2026) ~$14.53B vs ~$8.1B in FY2025, q4 fy2026 revenue ~$3.86B (up ~84% YoY), eps (q4 fy2026) ~$4.43 vs ~$3.27 estimate, margins (fy2026) ~9.6% gross, ~6.3% operating, ~2.6% net (~$378M net income).

The bottom line: FLEX vs SANM

FLEX and SANM are related but distinct: same themes, different businesses and risks. Neither wins in the abstract, and whichever you pick is worth sizing so one theme does not take over your portfolio. Walnut can show your combined FLEX and SANM exposure against your real portfolio. It is not an investment adviser.

Wondering how FLEX or SANM fits the portfolio you already own? Walnut is an AI investing app that connects your brokerage read-only and answers questions like that about your actual holdings: overlap, concentration, and how each position tracks the S&P 500. Compare the best AI portfolio analyzers or see the best AI investing apps in 2026.

Your questions about Flex Ltd

Ask Walnut's AI anything about FLEX and see how it fits what you own.

FAQ

What is the difference between FLEX and SANM?

+

Flex Ltd is a global electronics manufacturing services (EMS) company, effectively an outsourced factory and supply chain that designs and builds products for other brands. Sanmina Corporation, founded in Silicon Valley in 1980 and headquartered in San Jose, California, is a Fortune 500 global provider of integrated manufacturing solutions, components, and repair, logistics and after-market services. They show up together because they share investment themes, but they are different businesses, so the better fit depends on which thesis you are expressing.

Is FLEX or SANM the better stock?

+

Neither is universally better. FLEX is the larger incumbent; SANM is the smaller challenger and looks cheaper on forward earnings. Walnut is informational, not investment advice. Compare what each does, the tie-breaker metrics above, and the risks, then decide which fits your thesis and what you already own.

Which is cheaper, FLEX or SANM?

+

On forward P/E (as of November 2026), FLEX trades at 8.58x and SANM at 7.03x, so SANM is the cheaper of the two on next year's expected earnings. A lower multiple is not automatically the better buy: a richer valuation can be justified by faster growth, and a lower one can reflect real risk. Weigh the multiple against how fast each business is compounding.

Should you own both FLEX and SANM?

+

Because they share themes, owning both concentrates you in that theme. That can be intentional (a focused bet) or accidental (less diversification than it looks). Walnut can show your combined exposure across both, and whether adding either over-concentrates you, before you buy.

What are the risks of FLEX vs SANM?

+

FLEX: The dominant risk is that EMS is a low-margin, high-volume business, so thin margins leave little room for error and any operational stumble or pricing pressure hits profit quickly. Customer concentration is a structural risk: losing or seeing a slowdown at a few large customers can materially dent revenue. Flex is exposed to the broader electronics and manufacturing cycle, so a downturn in demand across cloud, automotive, or industrial markets would pressure volumes. As a global manufacturer, it faces tariff, trade-policy, and supply-chain risks, including component shortages and the cost of shifting production across regions. The data-center tailwind is powerful but also a concentration bet: if hyperscaler capital spending on AI infrastructure slows, a big source of recent upside could fade. Finally, contract manufacturers have limited pricing power against the brands they serve, which caps how much margin expansion is realistically achievable. The planned Axiom spin-off adds new risks: execution and timing of the separation, the obligations attached to the $2 billion preferred (a 10% cash dividend before separation and a premium redemption guaranteed by Flex if the deal slips past December 31, 2027), and the reduced growth profile of the remaining EMS business. The stock's roughly 38% drop over three months, during which Flex beat estimates and raised guidance, shows how sharply sentiment can swing on these questions and on AI-infrastructure spending in general. Debt of about $6 billion against about $3.1 billion of cash also matters more for a low-margin business heading into a separation. SANM: Sanmina operates on thin EMS margins (fiscal 2026 gross margin around 9.6%, operating margin around 6.3% and net margin near 2.6%), so small execution errors or pricing pressure can meaningfully affect profits. The ZT Systems business creates heavy revenue concentration tied to AI and data-center capital spending, which is cyclical and could slow if hyperscaler or AMD-related demand cools; revenue stepped down from about $4.0 billion in fiscal Q2 to $3.46 billion in Q3 before recovering to $3.86 billion in Q4. Integration of a multi-billion-dollar acquisition carries operational and financial risk, working capital needs pushed fiscal 2026 free cash flow negative, and the AMD relationship makes results partly dependent on one large partner. The stock fell about 28% over the three months to November 20, 2026, including a decline after a quarter that beat EPS estimates by a wide margin, and swung between roughly $118 and $289 over the past year, so sentiment around AI spending moves the shares hard in both directions. Broader risks include supply-chain disruption, customer concentration, and macro cyclicality across its industrial and communications markets.

Walnut is informational, not investment advice. This page is descriptive and not a recommendation to buy or sell FLEX or SANM; figures are approximate and dated (as of November 2026). Verify current data before investing.