<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva, formerly WebFilings-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://www.sanmina.com/role/BalanceSheetParentheticalParentheticals" xlink:href="sanm-20140927.xsd#BalanceSheetParentheticalParentheticals" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ConsolidatedBalanceSheets" xlink:href="sanm-20140927.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="sanm-20140927.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="sanm-20140927.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ConsolidatedStatementsOfIncome" xlink:href="sanm-20140927.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="sanm-20140927.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/DocumentAndEntityInformationDocument" xlink:href="sanm-20140927.xsd#DocumentAndEntityInformationDocument" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note10RestructuringCosts" xlink:href="sanm-20140927.xsd#Note10RestructuringCosts" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note10RestructuringCostsSegmentDisclosureDetails" xlink:href="sanm-20140927.xsd#Note10RestructuringCostsSegmentDisclosureDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note10RestructuringCostsTables" xlink:href="sanm-20140927.xsd#Note10RestructuringCostsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note10RestructuringRollforwardDetails" xlink:href="sanm-20140927.xsd#Note10RestructuringRollforwardDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note11EarningsPerShare" xlink:href="sanm-20140927.xsd#Note11EarningsPerShare" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note11EarningsPerShareDetails" xlink:href="sanm-20140927.xsd#Note11EarningsPerShareDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note11EarningsPerShareTables" xlink:href="sanm-20140927.xsd#Note11EarningsPerShareTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12FairValueAndIntrinsicValueDetails" xlink:href="sanm-20140927.xsd#Note12FairValueAndIntrinsicValueDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12FairValueAssumptionsAndMethodologyDetails" xlink:href="sanm-20140927.xsd#Note12FairValueAssumptionsAndMethodologyDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12RestrictedStockRollforwardDetails" xlink:href="sanm-20140927.xsd#Note12RestrictedStockRollforwardDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12ShareBasedCompensationArrangementsDetails" xlink:href="sanm-20140927.xsd#Note12ShareBasedCompensationArrangementsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12StockBasedCompensation" xlink:href="sanm-20140927.xsd#Note12StockBasedCompensation" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12StockBasedCompensationTables" xlink:href="sanm-20140927.xsd#Note12StockBasedCompensationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12StockOptionsOutstandingDetails" xlink:href="sanm-20140927.xsd#Note12StockOptionsOutstandingDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12StockOptionsOutstandingRollforwardDetails" xlink:href="sanm-20140927.xsd#Note12StockOptionsOutstandingRollforwardDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note12UnrecognizedStockBasedCompensationExpenseDetails" xlink:href="sanm-20140927.xsd#Note12UnrecognizedStockBasedCompensationExpenseDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note132009IncentivePlanDetails" xlink:href="sanm-20140927.xsd#Note132009IncentivePlanDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note13AccumulatedOtherComprehensiveIncomeLossDetails" xlink:href="sanm-20140927.xsd#Note13AccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails" xlink:href="sanm-20140927.xsd#Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note13StockholdersEquity" xlink:href="sanm-20140927.xsd#Note13StockholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note13StockholdersEquityTables" xlink:href="sanm-20140927.xsd#Note13StockholdersEquityTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note14OtherIncomeExpenseNet" xlink:href="sanm-20140927.xsd#Note14OtherIncomeExpenseNet" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note14OtherIncomeExpenseNetDetails" xlink:href="sanm-20140927.xsd#Note14OtherIncomeExpenseNetDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note14OtherIncomeExpenseNetTables" xlink:href="sanm-20140927.xsd#Note14OtherIncomeExpenseNetTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15EmployeeBenefitPlans" xlink:href="sanm-20140927.xsd#Note15EmployeeBenefitPlans" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15EmployeeBenefitPlansTables" xlink:href="sanm-20140927.xsd#Note15EmployeeBenefitPlansTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15FutureBenefitPaymentsDetails" xlink:href="sanm-20140927.xsd#Note15FutureBenefitPaymentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15NetAmountRecognizedInConsolidatedBalanceSheetDetails" xlink:href="sanm-20140927.xsd#Note15NetAmountRecognizedInConsolidatedBalanceSheetDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15NetPeriodicPensionCostDetails" xlink:href="sanm-20140927.xsd#Note15NetPeriodicPensionCostDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15PlanAssetsDetails" xlink:href="sanm-20140927.xsd#Note15PlanAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note15ProjectedBenefitObligationDetails" xlink:href="sanm-20140927.xsd#Note15ProjectedBenefitObligationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformation" xlink:href="sanm-20140927.xsd#Note16BusinessSegmentGeographicAndCustomerInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformationTables" xlink:href="sanm-20140927.xsd#Note16BusinessSegmentGeographicAndCustomerInformationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note16LongLivedAssetsInformationByGeographicSegmentDetails" xlink:href="sanm-20140927.xsd#Note16LongLivedAssetsInformationByGeographicSegmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note16NetSalesInformationByGeographicSegmentDetails" xlink:href="sanm-20140927.xsd#Note16NetSalesInformationByGeographicSegmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note16RevenueAndExpensesBySegmentDetails" xlink:href="sanm-20140927.xsd#Note16RevenueAndExpensesBySegmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note17AcquisitionDetails" xlink:href="sanm-20140927.xsd#Note17AcquisitionDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note17AcquisitionNotes" xlink:href="sanm-20140927.xsd#Note17AcquisitionNotes" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note17AcquisitionTables" xlink:href="sanm-20140927.xsd#Note17AcquisitionTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note1OrganizationOfSanmina" xlink:href="sanm-20140927.xsd#Note1OrganizationOfSanmina" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note1OrganizationOfSanminaDetails" xlink:href="sanm-20140927.xsd#Note1OrganizationOfSanminaDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note1OrganizationOfSanminaTables" xlink:href="sanm-20140927.xsd#Note1OrganizationOfSanminaTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2AccountsReceivableDetails" xlink:href="sanm-20140927.xsd#Note2AccountsReceivableDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2CashAndCashEquivalentsDetails" xlink:href="sanm-20140927.xsd#Note2CashAndCashEquivalentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2PropertyPlantAndEquipmentDetails" xlink:href="sanm-20140927.xsd#Note2PropertyPlantAndEquipmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPolicies" xlink:href="sanm-20140927.xsd#Note2SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="sanm-20140927.xsd#Note2SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesTables" xlink:href="sanm-20140927.xsd#Note2SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note3BalanceSheetItems" xlink:href="sanm-20140927.xsd#Note3BalanceSheetItems" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note3BalanceSheetItemsTables" xlink:href="sanm-20140927.xsd#Note3BalanceSheetItemsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note3InventoryDetails" xlink:href="sanm-20140927.xsd#Note3InventoryDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note3PropertyPlantAndEquipmentDetails" xlink:href="sanm-20140927.xsd#Note3PropertyPlantAndEquipmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note3WarrantyReserveDetails" xlink:href="sanm-20140927.xsd#Note3WarrantyReserveDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note4AssetsAndLiabilitiesAssociatedWithDeferredCompensationMeasuredAtFairValueDetails" xlink:href="sanm-20140927.xsd#Note4AssetsAndLiabilitiesAssociatedWithDeferredCompensationMeasuredAtFairValueDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note4FairValue" xlink:href="sanm-20140927.xsd#Note4FairValue" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note4FairValueTables" xlink:href="sanm-20140927.xsd#Note4FairValueTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note4FinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xlink:href="sanm-20140927.xsd#Note4FinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note4NonFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetails" xlink:href="sanm-20140927.xsd#Note4NonFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note5DerivativeFinancialInstruments" xlink:href="sanm-20140927.xsd#Note5DerivativeFinancialInstruments" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsDetails" xlink:href="sanm-20140927.xsd#Note5DerivativeFinancialInstrumentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsTables" xlink:href="sanm-20140927.xsd#Note5DerivativeFinancialInstrumentsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note5EffectOfCashFlowHedgingRelationshipsDetails" xlink:href="sanm-20140927.xsd#Note5EffectOfCashFlowHedgingRelationshipsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note5ForeignCurrencyForwardContractsDetails" xlink:href="sanm-20140927.xsd#Note5ForeignCurrencyForwardContractsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note6ConcentrationOfCreditRiskDetails" xlink:href="sanm-20140927.xsd#Note6ConcentrationOfCreditRiskDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note6FinancialInstrumentsAndConcentrationOfCreditRisk" xlink:href="sanm-20140927.xsd#Note6FinancialInstrumentsAndConcentrationOfCreditRisk" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note6FinancialInstrumentsAndConcentrationOfCreditRiskTables" xlink:href="sanm-20140927.xsd#Note6FinancialInstrumentsAndConcentrationOfCreditRiskTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7Debt" xlink:href="sanm-20140927.xsd#Note7Debt" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7DebtDetailDetails" xlink:href="sanm-20140927.xsd#Note7DebtDetailDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7DebtMaturitiesDetails" xlink:href="sanm-20140927.xsd#Note7DebtMaturitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7DebtScheduleDetails" xlink:href="sanm-20140927.xsd#Note7DebtScheduleDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7DebtTables" xlink:href="sanm-20140927.xsd#Note7DebtTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note7LineOfCreditFacilityDetails" xlink:href="sanm-20140927.xsd#Note7LineOfCreditFacilityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note8CommitmentAndContingencies" xlink:href="sanm-20140927.xsd#Note8CommitmentAndContingencies" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note8CommitmentAndContingenciesTables" xlink:href="sanm-20140927.xsd#Note8CommitmentAndContingenciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note8CommitmentDetails" xlink:href="sanm-20140927.xsd#Note8CommitmentDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note8LossContingencyDetails" xlink:href="sanm-20140927.xsd#Note8LossContingencyDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9DeferredTaxAssetsAndLiabilitiesDetails" xlink:href="sanm-20140927.xsd#Note9DeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9EffectiveTaxRateDetails" xlink:href="sanm-20140927.xsd#Note9EffectiveTaxRateDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9IncomeLossBeforeIncomeTaxDetails" xlink:href="sanm-20140927.xsd#Note9IncomeLossBeforeIncomeTaxDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9IncomeTax" xlink:href="sanm-20140927.xsd#Note9IncomeTax" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9IncomeTaxDetailDetails" xlink:href="sanm-20140927.xsd#Note9IncomeTaxDetailDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9IncomeTaxTables" xlink:href="sanm-20140927.xsd#Note9IncomeTaxTables" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/Note9UnrecognizedTaxBenefitsDetails" xlink:href="sanm-20140927.xsd#Note9UnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:href="sanm-20140927.xsd#ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple" />
  <roleRef roleURI="http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:href="sanm-20140927.xsd#ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="simple" />
  <calculationLink xlink:role="http://www.sanmina.com/role/BalanceSheetParentheticalParentheticals" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_b517a4f1-4597-b094-2608-75af660328e1" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b517a4f1-4597-b094-2608-75af660328e1" xlink:to="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_999960f8-6702-f7e9-88df-fcb8021751b2" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_999960f8-6702-f7e9-88df-fcb8021751b2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccountsAndOtherReceivablesNetCurrent" xlink:label="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_a5d66a56-85d7-5ead-1142-ef97b976c0be" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:to="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_a5d66a56-85d7-5ead-1142-ef97b976c0be" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:to="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3227d5e9-cb9d-fda7-e599-c6fb89b5e07a" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_67f49e84-05fd-4b0b-ae5a-e9913b97cea2" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3227d5e9-cb9d-fda7-e599-c6fb89b5e07a" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_a1eaafaf-055b-e423-85ef-4424fb2ef4e4" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b517a4f1-4597-b094-2608-75af660328e1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_a1eaafaf-055b-e423-85ef-4424fb2ef4e4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_4599c23a-11f0-4277-ea32-9886d26f8792" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b517a4f1-4597-b094-2608-75af660328e1" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_4599c23a-11f0-4277-ea32-9886d26f8792" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_f8fc015c-e955-e5de-7b83-35021873c1f2" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_f8fc015c-e955-e5de-7b83-35021873c1f2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_89b83a57-ffbc-fc48-170d-f8b25d163e54" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_f8fc015c-e955-e5de-7b83-35021873c1f2" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_89b83a57-ffbc-fc48-170d-f8b25d163e54" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f7fce5cd-2d53-a8b3-a485-6d0f3635b8fe" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_f8fc015c-e955-e5de-7b83-35021873c1f2" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f7fce5cd-2d53-a8b3-a485-6d0f3635b8fe" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:to="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PreferredStockValueOutstanding" xlink:label="loc_us-gaap_PreferredStockValueOutstanding_e72fe7b3-c6f0-6b01-18f8-4ad3bbc40c93" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_PreferredStockValueOutstanding_e72fe7b3-c6f0-6b01-18f8-4ad3bbc40c93" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockValueOutstanding" xlink:label="loc_us-gaap_CommonStockValueOutstanding_908b37f9-24f8-f738-86cc-3c04af7d0f18" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_CommonStockValueOutstanding_908b37f9-24f8-f738-86cc-3c04af7d0f18" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_719740e5-b138-f870-281f-ac4786e101c2" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_TreasuryStockValue_719740e5-b138-f870-281f-ac4786e101c2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3c55800a-0ae8-71c7-e1d1-5e4859c50246" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3c55800a-0ae8-71c7-e1d1-5e4859c50246" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_440a13e9-e4dc-f397-4d0d-27daacd44483" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_440a13e9-e4dc-f397-4d0d-27daacd44483" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:to="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_bd7b63fa-09ae-1100-16fe-5ac027208548" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:to="loc_us-gaap_AccountsPayableCurrent_bd7b63fa-09ae-1100-16fe-5ac027208548" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_80fb613f-3ffa-40b4-21a0-ecd4148b8f5c" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_80fb613f-3ffa-40b4-21a0-ecd4148b8f5c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_d69c5cc5-fc70-31a7-c2b1-924eb363b75b" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_d69c5cc5-fc70-31a7-c2b1-924eb363b75b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DebtCurrent" xlink:label="loc_us-gaap_DebtCurrent_d120a62b-3f22-bc5f-a893-6a93425a6066" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1477e02d-b6d8-3df6-e715-8364fedce6d9" xlink:to="loc_us-gaap_DebtCurrent_d120a62b-3f22-bc5f-a893-6a93425a6066" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_21149c4c-60e9-1f3a-82d3-665a83a5c4f2" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_21149c4c-60e9-1f3a-82d3-665a83a5c4f2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities_2cf91744-664b-13af-18df-40739db167ec" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities_2cf91744-664b-13af-18df-40739db167ec" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromShortTermDebt" xlink:label="loc_us-gaap_ProceedsFromShortTermDebt_434624a9-0694-a976-a9f1-54f5299208ee" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_ProceedsFromShortTermDebt_434624a9-0694-a976-a9f1-54f5299208ee" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepaymentsOfShortTermDebt" xlink:label="loc_us-gaap_RepaymentsOfShortTermDebt_337c5ec0-8cf9-d43b-3a63-4e8e868e6aff" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_RepaymentsOfShortTermDebt_337c5ec0-8cf9-d43b-3a63-4e8e868e6aff" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_45b97048-e301-0f1a-3463-4d9851d739ca" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_45b97048-e301-0f1a-3463-4d9851d739ca" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_a3cc5f0d-b161-eb8f-cc4a-2faebb7fd65f" xlink:type="locator" />
    <calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_a3cc5f0d-b161-eb8f-cc4a-2faebb7fd65f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_555855ee-67fc-e384-4c0f-c30d34ed47e5" xlink:type="locator" />
    <calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_555855ee-67fc-e384-4c0f-c30d34ed47e5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_77fb0894-8e98-8acd-7d89-0f52e26449e8" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_77fb0894-8e98-8acd-7d89-0f52e26449e8" xlink:type="arc" />
    <loc xlink:href="sanm-20140927.xsd#sanm_RevolvingCreditFacilityIssuanceCosts" xlink:label="loc_sanm_RevolvingCreditFacilityIssuanceCosts_60886fbe-6534-11e4-a349-22000a1e8102" xlink:type="locator" />
    <calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_sanm_RevolvingCreditFacilityIssuanceCosts_60886fbe-6534-11e4-a349-22000a1e8102" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_2d132af0-7f39-d203-f615-6551f8d2a6a7" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_2d132af0-7f39-d203-f615-6551f8d2a6a7" xlink:type="arc" />
    <loc xlink:href="sanm-20140927.xsd#sanm_Proceedsfromterminationsofinterestrateswaps" xlink:label="loc_sanm_Proceedsfromterminationsofinterestrateswaps_61ceddd6-5a17-648c-a7bc-fa84599d2944" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_sanm_Proceedsfromterminationsofinterestrateswaps_61ceddd6-5a17-648c-a7bc-fa84599d2944" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_b5a6c95e-5e73-5e4d-9c67-665fb27c338e" xlink:type="locator" />
    <calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_7f6f8cbc-c7f0-15c2-432d-caa740b32a35" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_b5a6c95e-5e73-5e4d-9c67-665fb27c338e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_37181af6-e562-cefc-f2b6-8490ea2c3e04" xlink:type="locator" />
    <calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_37181af6-e562-cefc-f2b6-8490ea2c3e04" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_90abc8df-a70a-7c23-5fff-9b3d9bc98c9b" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_90abc8df-a70a-7c23-5fff-9b3d9bc98c9b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_d07148ef-7d32-9c78-2111-e77f98145cb0" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_d07148ef-7d32-9c78-2111-e77f98145cb0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_b8d3719c-373d-7569-4a73-17b00d7e541c" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_f47d1996-b77d-36f7-28c4-5d2058bf9b25" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_b8d3719c-373d-7569-4a73-17b00d7e541c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_76f611bf-6cac-2837-6d7c-3028d488fc3b" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_76f611bf-6cac-2837-6d7c-3028d488fc3b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_aa7a0bc5-86c6-13a8-3676-9960bad8007f" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_ShareBasedCompensation_aa7a0bc5-86c6-13a8-3676-9960bad8007f" xlink:type="arc" />
    <loc xlink:href="sanm-20140927.xsd#sanm_ProvisionForBenefitFromDoubtfulAccountsProductReturnsAndOtherSalesAdjustments" xlink:label="loc_sanm_ProvisionForBenefitFromDoubtfulAccountsProductReturnsAndOtherSalesAdjustments_9292db09-7d56-ebc4-28ec-fa845a6db4c3" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_sanm_ProvisionForBenefitFromDoubtfulAccountsProductReturnsAndOtherSalesAdjustments_9292db09-7d56-ebc4-28ec-fa845a6db4c3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b14e4ab6-e003-13d4-eacd-26899afc8b93" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b14e4ab6-e003-13d4-eacd-26899afc8b93" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_49c9546b-a1ac-5daa-7bad-69ce674d13ea" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_49c9546b-a1ac-5daa-7bad-69ce674d13ea" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainLossOnSaleOfProperties" xlink:label="loc_us-gaap_GainLossOnSaleOfProperties_4bcd027f-8a81-6088-1149-e067a9d0f05f" xlink:type="locator" />
    <calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_GainLossOnSaleOfProperties_4bcd027f-8a81-6088-1149-e067a9d0f05f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_60dc6c6f-47c9-feed-cfc2-8fb0cfdc8ebf" xlink:type="locator" />
    <calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_60dc6c6f-47c9-feed-cfc2-8fb0cfdc8ebf" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LossOnDiscontinuationOfCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurring" xlink:label="loc_us-gaap_LossOnDiscontinuationOfCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurring_09cd906b-3299-3d52-ca50-e1cd540bbeef" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_LossOnDiscontinuationOfCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurring_09cd906b-3299-3d52-ca50-e1cd540bbeef" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_32fe2a20-e959-74dd-2d15-cc1d44d2e0c0" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_32fe2a20-e959-74dd-2d15-cc1d44d2e0c0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_fc73bf45-b7cf-c894-bf3a-f56c9d39cbe4" xlink:type="locator" />
    <calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_fc73bf45-b7cf-c894-bf3a-f56c9d39cbe4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_d2a8fa0f-43df-513c-7a7b-93e04034bb1e" xlink:type="locator" />
    <calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_d2a8fa0f-43df-513c-7a7b-93e04034bb1e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_07d730ea-b32b-956c-677e-cf5b73c388b0" xlink:type="locator" />
    <calculationArc order="13" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_07d730ea-b32b-956c-677e-cf5b73c388b0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_b9fb8522-752c-3209-8cca-60e64f420ad5" xlink:type="locator" />
    <calculationArc order="14" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_b9fb8522-752c-3209-8cca-60e64f420ad5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_1cad8493-0a39-874e-a6b0-6d35514a892c" xlink:type="locator" />
    <calculationArc order="15" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_32645c9d-8ff4-9939-6e7f-1f133b2a6c08" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_1cad8493-0a39-874e-a6b0-6d35514a892c" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:to="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansNetOfTax_5df33481-63d2-dc55-c2d2-95e894ce44c5" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansNetOfTax_5df33481-63d2-dc55-c2d2-95e894ce44c5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_1aa26b8d-ce74-205b-cfe4-f7a203f4dc1a" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_1aa26b8d-ce74-205b-cfe4-f7a203f4dc1a" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_793675f9-cf2a-0af6-a7c2-31a24aaf7ef7" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_793675f9-cf2a-0af6-a7c2-31a24aaf7ef7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_7fd63b12-05a5-a417-a943-a2dd6e58d717" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_7fd63b12-05a5-a417-a943-a2dd6e58d717" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsNetOfTax_29eb09df-f71f-214b-905b-bab4acea646f" xlink:type="locator" />
    <calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c0a922b8-d3f5-9b5b-13d6-ad8882d39e41" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsNetOfTax_29eb09df-f71f-214b-905b-bab4acea646f" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_72b2c986-6e1a-bdde-cc72-888b0df562b9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_OperatingIncomeLoss_72b2c986-6e1a-bdde-cc72-888b0df562b9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_77a77c8a-8a13-919c-6d50-d35f60384ab0" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_72b2c986-6e1a-bdde-cc72-888b0df562b9" xlink:to="loc_us-gaap_GrossProfit_77a77c8a-8a13-919c-6d50-d35f60384ab0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaap_SalesRevenueNet_0863786b-6bf9-966f-db7b-d5636f830397" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_77a77c8a-8a13-919c-6d50-d35f60384ab0" xlink:to="loc_us-gaap_SalesRevenueNet_0863786b-6bf9-966f-db7b-d5636f830397" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_c3f9b388-bbdb-c8b4-30b8-369ada3cca0e" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_77a77c8a-8a13-919c-6d50-d35f60384ab0" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_c3f9b388-bbdb-c8b4-30b8-369ada3cca0e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_72b2c986-6e1a-bdde-cc72-888b0df562b9" xlink:to="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_581512af-7ae6-1b38-5ef5-f123bd81ccb9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_581512af-7ae6-1b38-5ef5-f123bd81ccb9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_7d1bc05d-33ee-c009-4533-b70ee0a74dc9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_7d1bc05d-33ee-c009-4533-b70ee0a74dc9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_970b1d52-2feb-0d82-6a9e-66cd8dd55db9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_RestructuringCharges_970b1d52-2feb-0d82-6a9e-66cd8dd55db9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_c1b76359-2bf3-ac34-0e0e-8614c806c9a0" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_c1b76359-2bf3-ac34-0e0e-8614c806c9a0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherAssetImpairmentCharges" xlink:label="loc_us-gaap_OtherAssetImpairmentCharges_337110b7-1f98-e4e6-9446-c76759f1ba20" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_OtherAssetImpairmentCharges_337110b7-1f98-e4e6-9446-c76759f1ba20" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_2ce8accf-e09c-efa1-9d09-9b291f4dca51" xlink:type="locator" />
    <calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_ee2bd36d-150a-7303-38c4-eb755f792210" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_2ce8accf-e09c-efa1-9d09-9b291f4dca51" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestAndOtherIncome" xlink:label="loc_us-gaap_InterestAndOtherIncome_35d12508-0caf-7965-8b93-4346e4cda9de" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:to="loc_us-gaap_InterestAndOtherIncome_35d12508-0caf-7965-8b93-4346e4cda9de" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_cefe1779-647b-11ee-28a9-2740d86c056b" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:to="loc_us-gaap_InterestExpense_cefe1779-647b-11ee-28a9-2740d86c056b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_27b74f5e-bc16-8d0b-2d8b-f8fb77af5bf6" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_27b74f5e-bc16-8d0b-2d8b-f8fb77af5bf6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_60dc6c6f-47c9-feed-cfc2-8fb0cfdc8ebf" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_89191b30-59c9-0ba0-34ea-6e2a98cbdb1c" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_60dc6c6f-47c9-feed-cfc2-8fb0cfdc8ebf" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/DocumentAndEntityInformationDocument" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note10RestructuringCosts" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note10RestructuringCostsSegmentDisclosureDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note10RestructuringCostsTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note10RestructuringRollforwardDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note11EarningsPerShare" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note11EarningsPerShareDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note11EarningsPerShareTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12FairValueAndIntrinsicValueDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12FairValueAssumptionsAndMethodologyDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12RestrictedStockRollforwardDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12ShareBasedCompensationArrangementsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12StockBasedCompensation" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12StockBasedCompensationTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12StockOptionsOutstandingDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12StockOptionsOutstandingRollforwardDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note12UnrecognizedStockBasedCompensationExpenseDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note132009IncentivePlanDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note13AccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9f1eab6e-3183-7c60-4ec9-dfca9098dd55" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9f1eab6e-3183-7c60-4ec9-dfca9098dd55" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_caafb832-48f6-1d40-6f48-a4c768ca7cb5" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_caafb832-48f6-1d40-6f48-a4c768ca7cb5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_178bcedf-b02b-38a4-e48a-7ff77f2edb87" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4d60b95b-a2a9-55da-7eaa-2ca718a58484" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_178bcedf-b02b-38a4-e48a-7ff77f2edb87" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note13StockholdersEquity" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note13StockholdersEquityTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note14OtherIncomeExpenseNet" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note14OtherIncomeExpenseNetDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note14OtherIncomeExpenseNetTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15EmployeeBenefitPlans" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15EmployeeBenefitPlansTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15FutureBenefitPaymentsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15NetAmountRecognizedInConsolidatedBalanceSheetDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15NetPeriodicPensionCostDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15PlanAssetsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note15ProjectedBenefitObligationDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformation" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note16BusinessSegmentGeographicAndCustomerInformationTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note16LongLivedAssetsInformationByGeographicSegmentDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note16NetSalesInformationByGeographicSegmentDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note16RevenueAndExpensesBySegmentDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note17AcquisitionDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note17AcquisitionNotes" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note17AcquisitionTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note1OrganizationOfSanmina" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note1OrganizationOfSanminaDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note1OrganizationOfSanminaTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2AccountsReceivableDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2CashAndCashEquivalentsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_999960f8-6702-f7e9-88df-fcb8021751b2" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Cash" xlink:label="loc_us-gaap_Cash_ed1351d7-08ed-47ff-642b-430da354f5e2" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_999960f8-6702-f7e9-88df-fcb8021751b2" xlink:to="loc_us-gaap_Cash_ed1351d7-08ed-47ff-642b-430da354f5e2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MoneyMarketFundsAtCarryingValue" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_f0ad2046-f387-53d4-54d1-78dcf2fe9c01" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_999960f8-6702-f7e9-88df-fcb8021751b2" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_f0ad2046-f387-53d4-54d1-78dcf2fe9c01" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2PropertyPlantAndEquipmentDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note2SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note3BalanceSheetItems" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note3BalanceSheetItemsTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note3InventoryDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_892cc3f8-a219-534f-343c-8bc143468526" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_892cc3f8-a219-534f-343c-8bc143468526" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_7353f9f6-2726-9549-78fa-b65880c06d35" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_7353f9f6-2726-9549-78fa-b65880c06d35" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_4e67cf4c-a7ae-3e8f-1690-516c17ec8100" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a00a52e0-8d97-7156-7079-2c628ca1666f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_4e67cf4c-a7ae-3e8f-1690-516c17ec8100" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note3PropertyPlantAndEquipmentDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note3WarrantyReserveDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note4AssetsAndLiabilitiesAssociatedWithDeferredCompensationMeasuredAtFairValueDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note4FairValue" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note4FairValueTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note4FinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note4NonFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note5DerivativeFinancialInstruments" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note5DerivativeFinancialInstrumentsTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note5EffectOfCashFlowHedgingRelationshipsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note5ForeignCurrencyForwardContractsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note6ConcentrationOfCreditRiskDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note6FinancialInstrumentsAndConcentrationOfCreditRisk" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note6FinancialInstrumentsAndConcentrationOfCreditRiskTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7Debt" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7DebtDetailDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7DebtMaturitiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7DebtScheduleDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7DebtTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note7LineOfCreditFacilityDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note8CommitmentAndContingencies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note8CommitmentAndContingenciesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note8CommitmentDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_a329292c-67ac-0030-2d90-e18d188691fe" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_a329292c-67ac-0030-2d90-e18d188691fe" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_d0d481f0-55e7-c97c-ec8d-df7b34e55256" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_d0d481f0-55e7-c97c-ec8d-df7b34e55256" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_b90d3e1a-4d8a-a6c8-154e-2ac9658c1ba3" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_b90d3e1a-4d8a-a6c8-154e-2ac9658c1ba3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_50b4cfc1-5417-1ddf-07f2-e739d063c669" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_50b4cfc1-5417-1ddf-07f2-e739d063c669" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_15386b25-3981-ecd9-82ab-01997a5d03fa" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_15386b25-3981-ecd9-82ab-01997a5d03fa" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_ff03b31f-ab4a-63f9-1de9-6e9385f8247b" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_cc811211-f8d9-2df0-b015-05419b9bfc99" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_ff03b31f-ab4a-63f9-1de9-6e9385f8247b" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note8LossContingencyDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9DeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_406aac40-50cd-6dac-9616-1ad8d5e1be85" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_406aac40-50cd-6dac-9616-1ad8d5e1be85" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3a1af413-3358-8911-7861-13a95e291501" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3a1af413-3358-8911-7861-13a95e291501" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign_57e6ba5f-d954-ff87-60a8-99bef2c4ee17" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign_57e6ba5f-d954-ff87-60a8-99bef2c4ee17" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_707fb2f9-1b8e-3144-7d63-88e8b7477290" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_707fb2f9-1b8e-3144-7d63-88e8b7477290" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_1531a096-e1c5-6331-4368-2763f8f9f010" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_1531a096-e1c5-6331-4368-2763f8f9f010" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_70b5dec9-12bf-951f-98e3-0007ffe2e754" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_70b5dec9-12bf-951f-98e3-0007ffe2e754" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_5b8f2af6-4789-f23d-4069-f1845b080376" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_5b8f2af6-4789-f23d-4069-f1845b080376" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_ea2c0607-d8c1-4805-0854-0853c4f2cbf2" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_ea2c0607-d8c1-4805-0854-0853c4f2cbf2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_772f9e14-fdcf-0b3c-d185-e9c8ad74796e" xlink:type="locator" />
    <calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_772f9e14-fdcf-0b3c-d185-e9c8ad74796e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsOtherComprehensiveLoss" xlink:label="loc_us-gaap_DeferredTaxAssetsOtherComprehensiveLoss_df7658bd-60bf-2e3e-4c9d-de3b2daf200f" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsOtherComprehensiveLoss_df7658bd-60bf-2e3e-4c9d-de3b2daf200f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_a52f840f-bf1f-9973-7bec-feb61e7fa225" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_a52f840f-bf1f-9973-7bec-feb61e7fa225" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_9afa727c-dfb8-5804-93fa-f0667d5fb87b" xlink:type="locator" />
    <calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c447841-8fe7-39fb-b3f1-0ad85920e353" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_9afa727c-dfb8-5804-93fa-f0667d5fb87b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_7716e241-f686-490f-1cde-ecb5c30d58dc" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_406aac40-50cd-6dac-9616-1ad8d5e1be85" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_7716e241-f686-490f-1cde-ecb5c30d58dc" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_03f21f85-f3db-d88a-4ae2-531e9e31ba53" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_406aac40-50cd-6dac-9616-1ad8d5e1be85" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_03f21f85-f3db-d88a-4ae2-531e9e31ba53" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9EffectiveTaxRateDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_55be6f60-8111-2336-cf66-f877a3b48db1" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_55be6f60-8111-2336-cf66-f877a3b48db1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_600e1ce2-d67d-c632-9dc0-17621aaafa46" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_600e1ce2-d67d-c632-9dc0-17621aaafa46" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_2d52b23e-6536-f1b8-0424-0c8b3075547c" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_2d52b23e-6536-f1b8-0424-0c8b3075547c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_a2a6b89f-874c-eb7f-8f7d-6c46aabf3f01" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_a2a6b89f-874c-eb7f-8f7d-6c46aabf3f01" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_445718fd-0fe0-7fe3-f3ed-4b5194c88790" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_445718fd-0fe0-7fe3-f3ed-4b5194c88790" xlink:type="arc" />
    <loc xlink:href="sanm-20140927.xsd#sanm_TaxRateEffectOnChangeInOtherComprehensiveIncome" xlink:label="loc_sanm_TaxRateEffectOnChangeInOtherComprehensiveIncome_ee99d5d5-2d49-e58d-eb6a-fac12f0427cf" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_sanm_TaxRateEffectOnChangeInOtherComprehensiveIncome_ee99d5d5-2d49-e58d-eb6a-fac12f0427cf" xlink:type="arc" />
    <loc xlink:href="sanm-20140927.xsd#sanm_TaxRateEffectOnReleaseOfValuationAllowance" xlink:label="loc_sanm_TaxRateEffectOnReleaseOfValuationAllowance_721b20d1-c1fc-2c9c-f252-fac12f322a46" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_sanm_TaxRateEffectOnReleaseOfValuationAllowance_721b20d1-c1fc-2c9c-f252-fac12f322a46" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_72ae94ba-db0a-f76c-be66-6d2c81fa2faa" xlink:type="locator" />
    <calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_5ddb71af-ee72-e71c-9687-36f2fcccd6a2" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_72ae94ba-db0a-f76c-be66-6d2c81fa2faa" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9IncomeLossBeforeIncomeTaxDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_564dd168-0a47-eba4-b7fa-9c9d2cfaa50b" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_564dd168-0a47-eba4-b7fa-9c9d2cfaa50b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_b3b75d43-7495-d6aa-0b2e-36e4d4f2a474" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_b3b75d43-7495-d6aa-0b2e-36e4d4f2a474" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_f5bd17ac-2791-de57-2432-e3208e8abd9c" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_f5bd17ac-2791-de57-2432-e3208e8abd9c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_b9c24228-fc43-670a-14c5-4352fd4c579b" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_b9c24228-fc43-670a-14c5-4352fd4c579b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_4dddfa2f-6282-38c6-bdbf-9114799d60c9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_4dddfa2f-6282-38c6-bdbf-9114799d60c9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_b2de2cac-ff27-f90e-437f-9c4f22bc96d6" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_b2de2cac-ff27-f90e-437f-9c4f22bc96d6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_eea57891-f607-5b28-a756-df900911dbd4" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_eea57891-f607-5b28-a756-df900911dbd4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_dcd659e9-61ff-8872-b615-3d72e3ebdd98" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_dcd659e9-61ff-8872-b615-3d72e3ebdd98" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9IncomeTax" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9IncomeTaxDetailDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9IncomeTaxTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/Note9UnrecognizedTaxBenefitsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="extended" />
  <calculationLink xlink:role="http://www.sanmina.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="extended" />
</linkbase>
