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

Last updated August 2026

Short answer

FLEX is the larger of the two ($41.68B market cap): the incumbent the market prices for continued execution (16.06x forward earnings, beta 1.63). SANM is the smaller challenger ($9.95B), cheaper on forward earnings (13.33x): more room to run, but more to prove. The real question is which set of drivers you believe, and whether owning one (or both) leaves you over-concentrated.

FLEX vs SANM: the tie-breaker metrics

Same yardstick, side by side (as of August 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$41.68B$9.95BSize. The larger name is the incumbent; the smaller has more room to grow and more to prove.
Forward P/E16.0613.33Valuation 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/E43.9233.19Valuation 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.631.56Volatility 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 range55% of range43% 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 / book7.734.11How 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 in the mid-$20 billions. 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. The useful comparison is which set of drivers and risks you want exposure to.

  • 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. The honest 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 (non-GAAP operating margin around 6%), so small execution errors or pricing pressure can meaningfully affect profits.

FLEX or SANM: which should you pick?

Growth-minded investors who believe the theme has years to run tend to accept the richer multiple for more upside; value-minded investors lean toward the cheaper forward earnings and steadier profile. Pick FLEX if you believe its drivers more; SANM if you believe its. 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. Figures are approximate and tied to the asOf date; verify live numbers before acting. For a contract manufacturer, revenue is large but margins are thin, so profit and free cash flow matter more than headline sales, and the valuation debate centers on whether the mix shift into data-center and higher-margin work justifies a higher multiple than a traditional low-margin EMS name. Comparisons to peers like Jabil and Celestica on forward earnings and margin trajectory are usually more informative than an absolute multiple.

SANM. Revenue and earnings stepped up sharply after the ZT Systems acquisition closed in late 2025, roughly doubling quarterly sales. The stock trades at a large premium to its roughly 15x ten-year average P/E, reflecting AI-driven enthusiasm, so much of the future growth appears to be priced in.

Headline figures (approximate, Jul 2026): FLEX shows revenue Recent quarterly revenue in the high-$6 billion range; annual revenue in the mid-$20 billions (approximate; verify live), earnings trend Has beaten adjusted EPS estimates in most recent quarters, helped by data-center demand, margins Structurally thin EMS gross margins (roughly high single digits); operating margin is the key improvement metric, market cap Roughly low-to-mid $20 billions (approximate; verify live); SANM shows revenue (fy2026 guidance) ~$13.7B to $14.3B, q2 fy2026 revenue ~$4.0B (up ~102% YoY), fy2025 revenue ~$8.1B, non-gaap eps (fy2026 guidance) ~$10.75 to $11.35.

The bottom line: FLEX vs SANM

FLEX and SANM are related but distinct: same themes, different businesses and risks. Neither wins in the abstract; the right pick is whichever thesis you actually believe, sized so you are not over-concentrated in one theme. 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.

Investing in Flex Ltd with AI

Connect the broker you already use and ask Walnut's AI how FLEX fits what you actually hold: whether you own it already through a fund, what it would do to your concentration, and how it has tracked the S&P 500. Read-only by default, and you approve anything before it reaches your broker.

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 August 2026), FLEX trades at 16.06x and SANM at 13.33x, 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. SANM: Sanmina operates on thin EMS margins (non-GAAP operating margin around 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. Integration of a multi-billion-dollar acquisition carries operational and financial risk, and the AMD relationship makes results partly dependent on one large partner. The stock now trades at a large premium to its long-run average valuation, so disappointment relative to lofty AI expectations could pressure the shares. 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 August 2026). Verify current data before investing.

    FLEX vs SANM: Which Is the Better Buy in 2026? - Walnut AI Investing App