<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sanmina.com/20191228" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:nonnum="http://www.xbrl.org/dtr/type/non-numeric" xmlns:num="http://www.xbrl.org/dtr/type/numeric" xmlns:sanm="http://www.sanmina.com/20191228" xmlns:us-types="http://fasb.org/us-types/2019-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import namespace="http://fasb.org/srt-types/2019-01-31" schemaLocation="http://xbrl.fasb.org/srt/2019/elts/srt-types-2019-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/srt/2019-01-31" schemaLocation="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-gaap/2019-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-roles/2019-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2019/elts/us-roles-2019-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-types/2019-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2019/elts/us-types-2019-01-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/arcrole/fact-explanatoryFact" schemaLocation="http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/role/negated" schemaLocation="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/role/net" schemaLocation="http://www.xbrl.org/lrr/role/net-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/dtr/type/non-numeric" schemaLocation="http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/dtr/type/numeric" schemaLocation="http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd" />
  <xsd:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/country/2017-01-31" schemaLocation="https://xbrl.sec.gov/country/2017/country-2017-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/currency/2019-01-31" schemaLocation="https://xbrl.sec.gov/currency/2019/currency-2019-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/dei/2019-01-31" schemaLocation="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/exch/2019-01-31" schemaLocation="https://xbrl.sec.gov/exch/2019/exch-2019-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/invest/2013-01-31" schemaLocation="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/naics/2017-01-31" schemaLocation="http://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/sic/2011-01-31" schemaLocation="http://xbrl.sec.gov/sic/2011/sic-2011-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/stpr/2018-01-31" schemaLocation="https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd" />
  <xsd:annotation>
    <xsd:appinfo>
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20191228_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20191228_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20191228_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20191228_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple" />
      <link:roleType id="AccountingPoliciesPolicies" roleURI="http://www.sanmina.com/role/AccountingPoliciesPolicies">
        <link:definition>2201201 - Disclosure - Accounting Policies (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheets" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheets">
        <link:definition>1001000 - Statement - Condensed Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheetsParentheticals" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheetsParentheticals">
        <link:definition>1001501 - Statement - Condensed Consolidated Balance Sheets (Parentheticals)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementOfComprehensiveIncome" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementOfComprehensiveIncome">
        <link:definition>1003000 - Statement - Condensed Consolidated Statement of Comprehensive Income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfCashFlows" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfCashFlows">
        <link:definition>1005000 - Statement - Condensed Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfIncome" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfIncome">
        <link:definition>1002000 - Statement - Condensed Consolidated Statements of Income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfStockholdersEquityStatement" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfStockholdersEquityStatement">
        <link:definition>1004000 - Statement - Condensed Consolidated Statements of Stockholder's Equity Statement</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DocumentAndEntityInformationDocument" roleURI="http://www.sanmina.com/role/DocumentAndEntityInformationDocument">
        <link:definition>0001000 - Document - Document and Entity Information Document</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10IncomeTax" roleURI="http://www.sanmina.com/role/Note10IncomeTax">
        <link:definition>2114100 - Disclosure - Note 10 Income Tax</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10IncomeTaxDetails" roleURI="http://www.sanmina.com/role/Note10IncomeTaxDetails">
        <link:definition>2414401 - Disclosure - Note 10 Income Tax (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11DerivativesDetails" roleURI="http://www.sanmina.com/role/Note11DerivativesDetails">
        <link:definition>2415403 - Disclosure - Note 11 Derivatives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11StockRepurchaseDetails" roleURI="http://www.sanmina.com/role/Note11StockRepurchaseDetails">
        <link:definition>2415404 - Disclosure - Note 11 Stock Repurchase (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11StockholdersEquity" roleURI="http://www.sanmina.com/role/Note11StockholdersEquity">
        <link:definition>2115100 - Disclosure - Note 11 Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11StockholdersEquityDetails" roleURI="http://www.sanmina.com/role/Note11StockholdersEquityDetails">
        <link:definition>2415402 - Disclosure - Note 11 Stockholders' Equity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11StockholdersEquityTables" roleURI="http://www.sanmina.com/role/Note11StockholdersEquityTables">
        <link:definition>2315301 - Disclosure - Note 11 Stockholders' Equity (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12BusinessSegmentGeographicAndCustomerInformation" roleURI="http://www.sanmina.com/role/Note12BusinessSegmentGeographicAndCustomerInformation">
        <link:definition>2116100 - Disclosure - Note 12 Business Segment, Geographic and Customer Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12BusinessSegmentGeographicAndCustomerInformationTables" roleURI="http://www.sanmina.com/role/Note12BusinessSegmentGeographicAndCustomerInformationTables">
        <link:definition>2316301 - Disclosure - Note 12 Business Segment, Geographic and Customer Information (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12RevenueAndGrossProfitBySegmentDetails" roleURI="http://www.sanmina.com/role/Note12RevenueAndGrossProfitBySegmentDetails">
        <link:definition>2416402 - Disclosure - Note 12 Revenue and Gross Profit by Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12SegmentReportingByGeographicSegmentDetails" roleURI="http://www.sanmina.com/role/Note12SegmentReportingByGeographicSegmentDetails">
        <link:definition>2416403 - Disclosure - Note 12 Segment Reporting by Geographic Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13EarningsPerShare" roleURI="http://www.sanmina.com/role/Note13EarningsPerShare">
        <link:definition>2117100 - Disclosure - Note 13 Earnings Per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13EarningsPerShareDetails" roleURI="http://www.sanmina.com/role/Note13EarningsPerShareDetails">
        <link:definition>2417402 - Disclosure - Note 13 Earnings Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13EarningsPerShareTables" roleURI="http://www.sanmina.com/role/Note13EarningsPerShareTables">
        <link:definition>2317301 - Disclosure - Note 13 Earnings Per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14AdditionalInformationDetails" roleURI="http://www.sanmina.com/role/Note14AdditionalInformationDetails">
        <link:definition>2418406 - Disclosure - Note 14 Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14RestrictedStockRollforwardDetails" roleURI="http://www.sanmina.com/role/Note14RestrictedStockRollforwardDetails">
        <link:definition>2418404 - Disclosure - Note 14 Restricted Stock Rollforward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14ShareBasedCompensationArrangementsDetails" roleURI="http://www.sanmina.com/role/Note14ShareBasedCompensationArrangementsDetails">
        <link:definition>2418402 - Disclosure - Note 14 Share-Based Compensation Arrangements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails" roleURI="http://www.sanmina.com/role/Note14SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails">
        <link:definition>2418403 - Disclosure - Note 14 Shares Authorized for Future Issuance and Available for Grant (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14StockBasedCompensation" roleURI="http://www.sanmina.com/role/Note14StockBasedCompensation">
        <link:definition>2118100 - Disclosure - Note 14 Stock-Based Compensation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14StockBasedCompensationTables" roleURI="http://www.sanmina.com/role/Note14StockBasedCompensationTables">
        <link:definition>2318301 - Disclosure - Note 14 Stock-Based Compensation (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note14UnrecognizedStockBasedCompensationExpenseDetails" roleURI="http://www.sanmina.com/role/Note14UnrecognizedStockBasedCompensationExpenseDetails">
        <link:definition>2418405 - Disclosure - Note 14 Unrecognized Stock Based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note1BasisOfPresentation" roleURI="http://www.sanmina.com/role/Note1BasisOfPresentation">
        <link:definition>2101100 - Disclosure - Note 1 Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note1BasisOfPresentationDetails" roleURI="http://www.sanmina.com/role/Note1BasisOfPresentationDetails">
        <link:definition>2401402 - Disclosure - Note 1 Basis of Presentation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2Inventories" roleURI="http://www.sanmina.com/role/Note2Inventories">
        <link:definition>2102100 - Disclosure - Note 2 Inventories</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2InventoriesDetails" roleURI="http://www.sanmina.com/role/Note2InventoriesDetails">
        <link:definition>2402402 - Disclosure - Note 2 Inventories (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2InventoriesTables" roleURI="http://www.sanmina.com/role/Note2InventoriesTables">
        <link:definition>2302301 - Disclosure - Note 2 Inventories (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3DisagregationOfRevenueDetails" roleURI="http://www.sanmina.com/role/Note3DisagregationOfRevenueDetails">
        <link:definition>2404402 - Disclosure - Note 3 Disagregation of Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3RevenueRecognition" roleURI="http://www.sanmina.com/role/Note3RevenueRecognition">
        <link:definition>2104100 - Disclosure - Note 3 Revenue Recognition</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3RevenueRecognitionTables" roleURI="http://www.sanmina.com/role/Note3RevenueRecognitionTables">
        <link:definition>2304301 - Disclosure - Note 3 Revenue Recognition (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4DerivativeFinancialInstrumentsTables" roleURI="http://www.sanmina.com/role/Note4DerivativeFinancialInstrumentsTables">
        <link:definition>2305302 - Disclosure - Note 4 Derivative Financial Instruments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4DerivativesDetails" roleURI="http://www.sanmina.com/role/Note4DerivativesDetails">
        <link:definition>2405403 - Disclosure - Note 4 Derivatives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4FairValueDetails" roleURI="http://www.sanmina.com/role/Note4FairValueDetails">
        <link:definition>2405401 - Disclosure - Note 4 Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4FinancialInstruments" roleURI="http://www.sanmina.com/role/Note4FinancialInstruments">
        <link:definition>2105100 - Disclosure - Note 4 Financial Instruments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5Debt" roleURI="http://www.sanmina.com/role/Note5Debt">
        <link:definition>2106100 - Disclosure - Note 5 Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5DebtScheduleDetails" roleURI="http://www.sanmina.com/role/Note5DebtScheduleDetails">
        <link:definition>2406402 - Disclosure - Note 5 Debt Schedule (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5DebtTables" roleURI="http://www.sanmina.com/role/Note5DebtTables">
        <link:definition>2306301 - Disclosure - Note 5 Debt (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5LineOfCreditFacilityDetails" roleURI="http://www.sanmina.com/role/Note5LineOfCreditFacilityDetails">
        <link:definition>2406403 - Disclosure - Note 5 Line of Credit Facility (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6FutureLeaseLiabilityDetails" roleURI="http://www.sanmina.com/role/Note6FutureLeaseLiabilityDetails">
        <link:definition>2409405 - Disclosure - Note 6 Future Lease Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6LeaseCostDetails" roleURI="http://www.sanmina.com/role/Note6LeaseCostDetails">
        <link:definition>2409403 - Disclosure - Note 6 Lease Cost (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6Leases" roleURI="http://www.sanmina.com/role/Note6Leases">
        <link:definition>2109100 - Disclosure - Note 6 Leases</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6LeasesDetail" roleURI="http://www.sanmina.com/role/Note6LeasesDetail">
        <link:definition>2409404 - Disclosure - Note 6 Leases (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6LeasesTables" roleURI="http://www.sanmina.com/role/Note6LeasesTables">
        <link:definition>2309301 - Disclosure - Note 6 Leases (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6LesseeLeaseDescriptionDetails" roleURI="http://www.sanmina.com/role/Note6LesseeLeaseDescriptionDetails">
        <link:definition>2409402 - Disclosure - Note 6 Lessee Lease Description (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note7AccountsReceivableSaleProgram" roleURI="http://www.sanmina.com/role/Note7AccountsReceivableSaleProgram">
        <link:definition>2110100 - Disclosure - Note 7  Accounts Receivable Sale Program</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note7AccountsReceivableSaleProgramDetails" roleURI="http://www.sanmina.com/role/Note7AccountsReceivableSaleProgramDetails">
        <link:definition>2410401 - Disclosure - Note 7 Accounts Receivable Sale Program (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note8CommitmentsAndContingencies" roleURI="http://www.sanmina.com/role/Note8CommitmentsAndContingencies">
        <link:definition>2112100 - Disclosure - Note 8 Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note8ContingenciesDetails" roleURI="http://www.sanmina.com/role/Note8ContingenciesDetails">
        <link:definition>2412401 - Disclosure - Note 8 Contingencies (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note9Restructuring" roleURI="http://www.sanmina.com/role/Note9Restructuring">
        <link:definition>2113100 - Disclosure - Note 9 Restructuring</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note9RestructuringAndRelatedActivitiesTables" roleURI="http://www.sanmina.com/role/Note9RestructuringAndRelatedActivitiesTables">
        <link:definition>2313301 - Disclosure - Note 9 Restructuring and Related Activities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note9RestructuringDetails" roleURI="http://www.sanmina.com/role/Note9RestructuringDetails">
        <link:definition>2413402 - Disclosure - Note 9 Restructuring (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xsd:appinfo>
  </xsd:annotation>
  <xsd:element id="sanm_AccountsReceivableSoldDuringThePeriod" name="AccountsReceivableSoldDuringThePeriod" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element id="sanm_AmountCollectedButNotRemittedtoFinancialInstitutions" name="AmountCollectedButNotRemittedtoFinancialInstitutions" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_AssetandLiabilitiesLesseeLineItems" name="AssetandLiabilitiesLesseeLineItems" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_AssetandLiabilitiesLesseeTable" name="AssetandLiabilitiesLesseeTable" nillable="true" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_AssetandLiabilitiesLesseeTableTextBlock" name="AssetandLiabilitiesLesseeTableTextBlock" nillable="true" substitutionGroup="xbrli:item" type="nonnum:textBlockItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CPSThirdPartyRevenueMember" name="CPSThirdPartyRevenueMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_CashEquivalents" name="CashEquivalents" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CloudSolutionsMember" name="CloudSolutionsMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CollectibilityofReceivableandExcessandObsoleteInventoryMember" name="CollectibilityofReceivableandExcessandObsoleteInventoryMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CommunicationsNetworksMember" name="CommunicationsNetworksMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_CumulativeEffectofNewAccountingPrinciple" name="CumulativeEffectofNewAccountingPrinciple" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_DelayedDrawTermLoanMember" name="DelayedDrawTermLoanMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_EndMarketAxis" name="EndMarketAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_EndMarketDomain" name="EndMarketDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_FaceValueofReceivableSoldPercentage" name="FaceValueofReceivableSoldPercentage" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_FinancialInstrumentsAbstract" name="FinancialInstrumentsAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IMSMember" name="IMSMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IMSThirdPartyRevenueMember" name="IMSThirdPartyRevenueMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IndustrialMedicalAutomotiveandDefenseMember" name="IndustrialMedicalAutomotiveandDefenseMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_NoninterestbearingpromissorynoteMember" name="NoninterestbearingpromissorynoteMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_NumberofCommonSharesMember" name="NumberofCommonSharesMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_Numberofcustomersrepresenting10ormoreofnetsales" name="Numberofcustomersrepresenting10ormoreofnetsales" nillable="true" substitutionGroup="xbrli:item" type="xbrli:integerItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_OperatingLeaseRightOfUseAssetAccumulatedAmortization" name="OperatingLeaseRightOfUseAssetAccumulatedAmortization" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_OtherplansMember" name="OtherplansMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PercentageOfNetSalesRepresentedByTenLargestCustomers" name="PercentageOfNetSalesRepresentedByTenLargestCustomers" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PercentageofNetSalestoAmericasNetSales" name="PercentageofNetSalestoAmericasNetSales" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_PercentofNetSalesTransferredOverTime" name="PercentofNetSalesTransferredOverTime" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PotentialPayoutPercentage" name="PotentialPayoutPercentage" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PotentialadjustmenttoPSUs" name="PotentialadjustmenttoPSUs" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_Q1FY20GrantsMember" name="Q1FY20GrantsMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_Q1FY20PlanMember" name="Q1FY20PlanMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_RPAMember" name="RPAMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_RestructuringExpenseRecoverynet" name="RestructuringExpenseRecoverynet" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element id="sanm_RestructuringandOtherOperatingExpense" name="RestructuringandOtherOperatingExpense" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_SaleofAccountsReceivableAxis" name="SaleofAccountsReceivableAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_SaleofAccountsReceivableDomain" name="SaleofAccountsReceivableDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" nillable="true" substitutionGroup="xbrli:item" type="num:perShareItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" nillable="true" substitutionGroup="xbrli:item" type="us-types:durationStringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" name="ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" nillable="true" substitutionGroup="xbrli:item" type="num:perShareItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareRepurchases" name="ShareRepurchases" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element id="sanm_Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" name="Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_SharesRepurchased" name="SharesRepurchased" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" name="StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_StockRepurchaseProgramAdditionalAuthorizedAmount" name="StockRepurchaseProgramAdditionalAuthorizedAmount" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" name="UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_UnrecognizedStockBasedCompensationExpenseTable" name="UnrecognizedStockBasedCompensationExpenseTable" nillable="true" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_WeightedAverageGrantDateFairValueRestrictedStockAbstract" name="WeightedAverageGrantDateFairValueRestrictedStockAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_WeightedAverageRemainingContractualTermAbstract" name="WeightedAverageRemainingContractualTermAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
</xsd:schema>
