<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>2.4.0.8</Version>
  <ProcessingTime />
  <ReportFormat>Html</ReportFormat>
  <ContextCount>346</ContextCount>
  <ElementCount>422</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>107</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and entity information Document</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/DocumentAndEntityInformationDocument</Role>
      <ShortName>Document and entity information Document</ShortName>
    </Report>
    <Report>
      <IsDefault>true</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002500 - Statement - Balance sheet parenthetical (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/BalanceSheetParentheticalParentheticals</Role>
      <ShortName>Balance sheet parenthetical (Parentheticals)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Note 1 Organization of Sanmina</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note1OrganizationOfSanmina</Role>
      <ShortName>Note 1 Organization of Sanmina</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Note 2 Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Note 2 Summary of Significant Accounting Policies</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Note 3 Balance Sheet Items</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note3BalanceSheetItems</Role>
      <ShortName>Note 3 Balance Sheet Items</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Note 4 Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note4FairValue</Role>
      <ShortName>Note 4 Fair Value</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Note 5 Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note5DerivativeFinancialInstruments</Role>
      <ShortName>Note 5 Derivative Financial Instruments</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Note 6 Financial Instruments and Concentration of Credit Risk</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note6FinancialInstrumentsAndConcentrationOfCreditRisk</Role>
      <ShortName>Note 6 Financial Instruments and Concentration of Credit Risk</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Note 7 Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7Debt</Role>
      <ShortName>Note 7 Debt</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2122100 - Disclosure - Note 8 Commitment and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note8CommitmentAndContingencies</Role>
      <ShortName>Note 8 Commitment and Contingencies</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2125100 - Disclosure - Note 9 Income Tax</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9IncomeTax</Role>
      <ShortName>Note 9 Income Tax</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2131100 - Disclosure - Note 10 Restructuring Costs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note10RestructuringCosts</Role>
      <ShortName>Note 10 Restructuring Costs</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2134100 - Disclosure - Note 11 Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note11EarningsPerShare</Role>
      <ShortName>Note 11 Earnings Per Share</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2137100 - Disclosure - Note 12 Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12StockBasedCompensation</Role>
      <ShortName>Note 12 Stock-Based Compensation</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2140100 - Disclosure - Note 13 Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note13StockholdersEquity</Role>
      <ShortName>Note 13 Stockholders' Equity</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2143100 - Disclosure - Note 14 Other Income (Expense), Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note14OtherIncomeExpenseNet</Role>
      <ShortName>Note 14 Other Income (Expense), Net</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2152100 - Disclosure - Note 15 Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15EmployeeBenefitPlans</Role>
      <ShortName>Note 15 Employee Benefit Plans</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2153100 - Disclosure - Note 16 Business Segment, Geographic and Customer Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformation</Role>
      <ShortName>Note 16 Business Segment, Geographic and Customer Information</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2155100 - Disclosure - Note 17 Acquisition (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.sanmina.com/role/Note17AcquisitionNotes</Role>
      <ShortName>Note 17 Acquisition (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2156100 - Disclosure - Schedule II Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccounts</Role>
      <ShortName>Schedule II Valuation and Qualifying Accounts</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2204201 - Disclosure - Note 2 Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Note 2 Summary of Significant Accounting Policies (Policies)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2304302 - Disclosure - Note 2 Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Note 2 Summary of Significant Accounting Policies (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Note 3 Balance Sheet Items (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note3BalanceSheetItemsTables</Role>
      <ShortName>Note 3 Balance Sheet Items (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Note 4 Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note4FairValueTables</Role>
      <ShortName>Note 4 Fair Value (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Note 5 Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsTables</Role>
      <ShortName>Note 5 Derivative Financial Instruments (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2319301 - Disclosure - Note 7 Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7DebtTables</Role>
      <ShortName>Note 7 Debt (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2322301 - Disclosure - Note 8 Commitment and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note8CommitmentAndContingenciesTables</Role>
      <ShortName>Note 8 Commitment and Contingencies (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2325301 - Disclosure - Note 9 Income Tax (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9IncomeTaxTables</Role>
      <ShortName>Note 9 Income Tax (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2331301 - Disclosure - Note 10 Restructuring Costs (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note10RestructuringCostsTables</Role>
      <ShortName>Note 10 Restructuring Costs (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2334301 - Disclosure - Note 11 Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note11EarningsPerShareTables</Role>
      <ShortName>Note 11 Earnings Per Share (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2337301 - Disclosure - Note 12 Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12StockBasedCompensationTables</Role>
      <ShortName>Note 12 Stock-Based Compensation (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2340301 - Disclosure - Note 13 Stockholders Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note13StockholdersEquityTables</Role>
      <ShortName>Note 13 Stockholders Equity (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2343301 - Disclosure - Note 14 Other Income (Expense), Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note14OtherIncomeExpenseNetTables</Role>
      <ShortName>Note 14 Other Income (Expense), Net (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2352301 - Disclosure - Note 15 Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15EmployeeBenefitPlansTables</Role>
      <ShortName>Note 15 Employee Benefit Plans (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2353301 - Disclosure - Note 16 Business Segment, Geographic and Customer Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformationTables</Role>
      <ShortName>Note 16 Business Segment, Geographic and Customer Information (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2355301 - Disclosure - Note 17 Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note17AcquisitionTables</Role>
      <ShortName>Note 17 Acquisition (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Note 2 Cash and Cash Equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2CashAndCashEquivalentsDetails</Role>
      <ShortName>Note 2 Cash and Cash Equivalents (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Note 2 Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2AccountsReceivableDetails</Role>
      <ShortName>Note 2 Accounts Receivable (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2404405 - Disclosure - Note 2 Property Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note2PropertyPlantAndEquipmentDetails</Role>
      <ShortName>Note 2 Property Plant and Equipment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Note 3 Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note3InventoryDetails</Role>
      <ShortName>Note 3 Inventory (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Note 3 Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note3PropertyPlantAndEquipmentDetails</Role>
      <ShortName>Note 3 Property, Plant and Equipment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Note 3 Warranty Reserve (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note3WarrantyReserveDetails</Role>
      <ShortName>Note 3 Warranty Reserve (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Note 4 Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note4FinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>Note 4 Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Note 4 Assets and Liabilities Associated with Deferred Compensation Measured at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note4AssetsAndLiabilitiesAssociatedWithDeferredCompensationMeasuredAtFairValueDetails</Role>
      <ShortName>Note 4 Assets and Liabilities Associated with Deferred Compensation Measured at Fair Value (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Note 4 Non-financial Assets Measured at Fair Value on a Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note4NonFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetails</Role>
      <ShortName>Note 4 Non-financial Assets Measured at Fair Value on a Nonrecurring Basis (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Note 5 Derivative Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Note 5 Derivative Financial Instruments (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Note 5 Foreign Currency Forward Contracts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note5ForeignCurrencyForwardContractsDetails</Role>
      <ShortName>Note 5 Foreign Currency Forward Contracts (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2413404 - Disclosure - Note 5 Effect of Cash Flow Hedging Relationships (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note5EffectOfCashFlowHedgingRelationshipsDetails</Role>
      <ShortName>Note 5 Effect of Cash Flow Hedging Relationships (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Note 6 Concentration of Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note6ConcentrationOfCreditRiskDetails</Role>
      <ShortName>Note 6 Concentration of Credit Risk (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2419402 - Disclosure - Note 7 Debt Schedule (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7DebtScheduleDetails</Role>
      <ShortName>Note 7 Debt Schedule (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2419403 - Disclosure - Note 7 Debt Detail (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7DebtDetailDetails</Role>
      <ShortName>Note 7 Debt Detail (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2419404 - Disclosure - Note 7 Line of Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7LineOfCreditFacilityDetails</Role>
      <ShortName>Note 7 Line of Credit Facility (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2419405 - Disclosure - Note 7 Debt Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note7DebtMaturitiesDetails</Role>
      <ShortName>Note 7 Debt Maturities (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2422402 - Disclosure - Note 8 Commitment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note8CommitmentDetails</Role>
      <ShortName>Note 8 Commitment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2422403 - Disclosure - Note 8 Loss Contingency (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note8LossContingencyDetails</Role>
      <ShortName>Note 8 Loss Contingency (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2425402 - Disclosure - Note 9 Income (Loss) Before Income Tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9IncomeLossBeforeIncomeTaxDetails</Role>
      <ShortName>Note 9 Income (Loss) Before Income Tax (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2425403 - Disclosure - Note 9 Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9DeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>Note 9 Deferred Tax Assets and Liabilities (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2425404 - Disclosure - Note 9 Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9EffectiveTaxRateDetails</Role>
      <ShortName>Note 9 Effective Tax Rate (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2425405 - Disclosure - Note 9 Income Tax Detail (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9IncomeTaxDetailDetails</Role>
      <ShortName>Note 9 Income Tax Detail (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2425406 - Disclosure - Note 9 Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note9UnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Note 9 Unrecognized Tax Benefits (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2431402 - Disclosure - Note 10 Restructuring Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note10RestructuringRollforwardDetails</Role>
      <ShortName>Note 10 Restructuring Rollforward (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2431403 - Disclosure - Note 10 Restructuring Costs Segment Disclosure (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note10RestructuringCostsSegmentDisclosureDetails</Role>
      <ShortName>Note 10 Restructuring Costs Segment Disclosure (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2434402 - Disclosure - Note 11 Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note11EarningsPerShareDetails</Role>
      <ShortName>Note 11 Earnings Per Share (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2437402 - Disclosure - Note 12 Share-Based Compensation Arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12ShareBasedCompensationArrangementsDetails</Role>
      <ShortName>Note 12 Share-Based Compensation Arrangements (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2437403 - Disclosure - Note 12 Fair Value Assumptions and Methodology (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12FairValueAssumptionsAndMethodologyDetails</Role>
      <ShortName>Note 12 Fair Value Assumptions and Methodology (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2437404 - Disclosure - Note 12  Stock Options Outstanding Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12StockOptionsOutstandingRollforwardDetails</Role>
      <ShortName>Note 12  Stock Options Outstanding Rollforward (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2437405 - Disclosure - Note 12 Fair Value and Intrinsic Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12FairValueAndIntrinsicValueDetails</Role>
      <ShortName>Note 12 Fair Value and Intrinsic Value (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2437406 - Disclosure - Note 12 Stock Options Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12StockOptionsOutstandingDetails</Role>
      <ShortName>Note 12 Stock Options Outstanding (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2437407 - Disclosure - Note 12 Restricted Stock Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12RestrictedStockRollforwardDetails</Role>
      <ShortName>Note 12 Restricted Stock Rollforward (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2437408 - Disclosure - Note 12 Unrecognized Stock-based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note12UnrecognizedStockBasedCompensationExpenseDetails</Role>
      <ShortName>Note 12 Unrecognized Stock-based Compensation Expense (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2440402 - Disclosure - Note 13 2009 Incentive Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note132009IncentivePlanDetails</Role>
      <ShortName>Note 13 2009 Incentive Plan (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2440403 - Disclosure - Note 13 Shares Authorized for Future Issuance and Available for Grant (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails</Role>
      <ShortName>Note 13 Shares Authorized for Future Issuance and Available for Grant (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2440404 - Disclosure - Note 13 Accumulated Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note13AccumulatedOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Note 13 Accumulated Other Comprehensive Income (Loss) (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2443402 - Disclosure - Note 14 Other Income (Expense), Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note14OtherIncomeExpenseNetDetails</Role>
      <ShortName>Note 14 Other Income (Expense), Net (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2452402 - Disclosure - Note 15 Projected Benefit Obligation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15ProjectedBenefitObligationDetails</Role>
      <ShortName>Note 15 Projected Benefit Obligation (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2452403 - Disclosure - Note 15 Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15PlanAssetsDetails</Role>
      <ShortName>Note 15 Plan Assets (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2452404 - Disclosure - Note 15 Net Amount Recognized In Consolidated Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15NetAmountRecognizedInConsolidatedBalanceSheetDetails</Role>
      <ShortName>Note 15 Net Amount Recognized In Consolidated Balance Sheet (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2452405 - Disclosure - Note 15 Net Periodic Pension Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15NetPeriodicPensionCostDetails</Role>
      <ShortName>Note 15 Net Periodic Pension Cost (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2452406 - Disclosure - Note 15 Future Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note15FutureBenefitPaymentsDetails</Role>
      <ShortName>Note 15 Future Benefit Payments (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2453402 - Disclosure - Note 16 Revenue and Expenses by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note16RevenueAndExpensesBySegmentDetails</Role>
      <ShortName>Note 16 Revenue and Expenses by Segment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2453403 - Disclosure - Note 16 Net Sales Information by Geographic Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note16NetSalesInformationByGeographicSegmentDetails</Role>
      <ShortName>Note 16 Net Sales Information by Geographic Segment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2453404 - Disclosure - Note 16 Long-lived Assets Information by Geographic Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note16LongLivedAssetsInformationByGeographicSegmentDetails</Role>
      <ShortName>Note 16 Long-lived Assets Information by Geographic Segment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2455402 - Disclosure - Note 17 Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/Note17AcquisitionDetails</Role>
      <ShortName>Note 17 Acquisition (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2456401 - Disclosure - Schedule II Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule II Valuation and Qualifying Accounts (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">Element invest_DerivativeNotionalAmount had a mix of decimals attribute values: -6 -3.</Log>
    <Log type="Info">Element sanm_PercentageOfNetSalesRepresentedByTenLargestCustomers had a mix of decimals attribute values: 0 3.</Log>
    <Log type="Info">Element us-gaap_DebtInstrumentFaceAmount had a mix of decimals attribute values: -6 -5.</Log>
    <Log type="Info">Element us-gaap_OtherAssetImpairmentCharges had a mix of decimals attribute values: -5 -4 -3.</Log>
    <Log type="Info">Element us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired had a mix of decimals attribute values: -5 -3.</Log>
    <Log type="Info">Element us-gaap_RestructuringCharges had a mix of decimals attribute values: -5 -3.</Log>
    <Log type="Info">Element us-gaap_TreasuryStockSharesAcquired had a mix of decimals attribute values: -3 0.</Log>
    <Log type="Info">'Shares' elements on report '1005000 - Statement - Consolidated Statements of Stockholders' Equity' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2407403 - Disclosure - Note 3 Property, Plant and Equipment (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2410404 - Disclosure - Note 4 Non-financial Assets Measured at Fair Value on a Nonrecurring Basis (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2413402 - Disclosure - Note 5 Derivative Financial Instruments (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2413403 - Disclosure - Note 5 Foreign Currency Forward Contracts (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2419403 - Disclosure - Note 7 Debt Detail (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2419404 - Disclosure - Note 7 Line of Credit Facility (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2422402 - Disclosure - Note 8 Commitment (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2425406 - Disclosure - Note 9 Unrecognized Tax Benefits (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Shares' elements on report '2440403 - Disclosure - Note 13 Shares Authorized for Future Issuance and Available for Grant (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2440403 - Disclosure - Note 13 Shares Authorized for Future Issuance and Available for Grant (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2452402 - Disclosure - Note 15 Projected Benefit Obligation (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '2455402 - Disclosure - Note 17 Acquisition (Details)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">Process Flow-Through: 1001000 - Statement - Consolidated Balance Sheets</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Sep. 29, 2012'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Oct. 01, 2011'</Log>
    <Log type="Info">Process Flow-Through: 1002500 - Statement - Balance sheet parenthetical (Parentheticals)</Log>
    <Log type="Info">Process Flow-Through: 1003000 - Statement - Consolidated Statements of Income</Log>
    <Log type="Info">Process Flow-Through: 1004000 - Statement - Consolidated Statements of Comprehensive Income</Log>
    <Log type="Info">Process Flow-Through: 1006000 - Statement - Consolidated Statements of Cash Flows</Log>
  </Logs>
  <InputFiles>
    <File>sanm-20140927.xml</File>
    <File>sanm-20140927.xsd</File>
    <File>sanm-20140927_cal.xml</File>
    <File>sanm-20140927_def.xml</File>
    <File>sanm-20140927_lab.xml</File>
    <File>sanm-20140927_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
