<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:c04ea379-9190-4889-ac49-d54cc81b7073,g:ea7ff1a4-e55e-48a1-92f2-59c5f22231f4-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.wdc.com/role/CoverPage" xlink:type="simple" xlink:href="wdc-20210101.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_a212a70c-5f18-4a69-9707-4f42a925374d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_a212a70c-5f18-4a69-9707-4f42a925374d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_4d4c7eee-c0cd-4b93-abb3-36ca9588eb03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_4d4c7eee-c0cd-4b93-abb3-36ca9588eb03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_3874ba22-8dff-4461-bf2e-0b8ce07b76af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:to="loc_us-gaap_LongTermDebtCurrent_3874ba22-8dff-4461-bf2e-0b8ce07b76af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_d1c2a1e4-90ee-461d-aab1-ec358259ab93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:to="loc_us-gaap_AccountsPayableCurrent_d1c2a1e4-90ee-461d-aab1-ec358259ab93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_c155a143-4f97-4827-9144-f0a2c0e184b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e5c8890c-b040-496e-9a3a-2b6233b5febe" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_c155a143-4f97-4827-9144-f0a2c0e184b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_4859de1c-4999-434d-8f93-02d6788ad2b9" xlink:href="wdc-20210101.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_4859de1c-4999-434d-8f93-02d6788ad2b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_843c2f1c-84d5-4c2e-a021-bd444b9743df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_843c2f1c-84d5-4c2e-a021-bd444b9743df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e01fc19f-ffc5-4912-9827-d4cd5c85b622" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e01fc19f-ffc5-4912-9827-d4cd5c85b622" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c60bb2bd-016c-4481-931a-f48697be8880" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_c60bb2bd-016c-4481-931a-f48697be8880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_9e84d8a6-8d4c-42b9-a3d9-d59d03b0429c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_us-gaap_Goodwill_9e84d8a6-8d4c-42b9-a3d9-d59d03b0429c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4c0d1a90-7182-4e34-9f69-61735176bdbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_af5607b4-61c8-47d3-bd6c-b0c987e11c03" xlink:to="loc_us-gaap_AssetsCurrent_4c0d1a90-7182-4e34-9f69-61735176bdbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_6e188f25-3f40-4999-89c9-08f154a1fa39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_us-gaap_AdditionalPaidInCapital_6e188f25-3f40-4999-89c9-08f154a1fa39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_34e5472c-90c3-4aa2-9b21-649641cbad30" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_34e5472c-90c3-4aa2-9b21-649641cbad30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_7837876d-cdd4-4dba-88d0-ef987d85bc9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_us-gaap_TreasuryStockValue_7837876d-cdd4-4dba-88d0-ef987d85bc9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_03f2e315-da11-418e-9af4-8271d87bb558" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_03f2e315-da11-418e-9af4-8271d87bb558" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CommonStockValues_b37def3c-63e4-4f97-bead-94d02aca764a" xlink:href="wdc-20210101.xsd#wdc_CommonStockValues"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_wdc_CommonStockValues_b37def3c-63e4-4f97-bead-94d02aca764a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_e7b078ec-2bb4-41d0-8d87-f2149cfdf937" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_257322da-ba4d-4d82-b841-429ea1f937d3" xlink:to="loc_us-gaap_PreferredStockValue_e7b078ec-2bb4-41d0-8d87-f2149cfdf937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ac893365-684d-43cc-bd4d-cc480c0136b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_2a87220e-f535-4771-be36-fb088157a519" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ac893365-684d-43cc-bd4d-cc480c0136b7" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_2a87220e-f535-4771-be36-fb088157a519" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_cbd4b5a3-4afe-4fe2-ab27-db8c90a4ddae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ac893365-684d-43cc-bd4d-cc480c0136b7" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_cbd4b5a3-4afe-4fe2-ab27-db8c90a4ddae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_391ff8c6-372a-4b1f-b61c-c7ae0bfd60f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ac893365-684d-43cc-bd4d-cc480c0136b7" xlink:to="loc_us-gaap_LiabilitiesCurrent_391ff8c6-372a-4b1f-b61c-c7ae0bfd60f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_5d23bf94-b3aa-45e6-8ad3-3cf5c7650ab1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_47dcb4a0-3d2e-46fa-9ac6-746c5aa95859" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_5d23bf94-b3aa-45e6-8ad3-3cf5c7650ab1" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_47dcb4a0-3d2e-46fa-9ac6-746c5aa95859" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_605d9f2a-d87a-44a2-8694-d0e1c52b0256" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_5d23bf94-b3aa-45e6-8ad3-3cf5c7650ab1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_605d9f2a-d87a-44a2-8694-d0e1c52b0256" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_7081470e-bcba-418a-861e-d1ce31170606" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_5d23bf94-b3aa-45e6-8ad3-3cf5c7650ab1" xlink:to="loc_us-gaap_OtherAssetsCurrent_7081470e-bcba-418a-861e-d1ce31170606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_66a2bb14-5eec-497e-adf1-dbbbb533118d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_5d23bf94-b3aa-45e6-8ad3-3cf5c7650ab1" xlink:to="loc_us-gaap_InventoryNet_66a2bb14-5eec-497e-adf1-dbbbb533118d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f571a4c8-1cb2-472a-b264-3961ea4ca73d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8c5402c0-720a-464f-9747-0141876e3e60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f571a4c8-1cb2-472a-b264-3961ea4ca73d" xlink:to="loc_us-gaap_StockholdersEquity_8c5402c0-720a-464f-9747-0141876e3e60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_526b962a-7944-4489-9359-eb9a0d9bb751" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f571a4c8-1cb2-472a-b264-3961ea4ca73d" xlink:to="loc_us-gaap_Liabilities_526b962a-7944-4489-9359-eb9a0d9bb751" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_d89bd4bb-6087-4f17-acc9-c7b9cf4450de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f571a4c8-1cb2-472a-b264-3961ea4ca73d" xlink:to="loc_us-gaap_CommitmentsAndContingencies_d89bd4bb-6087-4f17-acc9-c7b9cf4450de" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c0510f41-c9e9-4cbf-abf3-b6853c584db5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f61a160d-16d3-40f4-a701-9d34a4bcfa62" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c0510f41-c9e9-4cbf-abf3-b6853c584db5" xlink:to="loc_us-gaap_OperatingExpenses_f61a160d-16d3-40f4-a701-9d34a4bcfa62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_518c7eb0-f3ff-4050-9a44-26a1f5028df3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c0510f41-c9e9-4cbf-abf3-b6853c584db5" xlink:to="loc_us-gaap_GrossProfit_518c7eb0-f3ff-4050-9a44-26a1f5028df3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_266ff472-00e1-4710-82e4-6de4a789c6c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1fe2e938-da50-4e87-954d-ef3610109a6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_266ff472-00e1-4710-82e4-6de4a789c6c9" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1fe2e938-da50-4e87-954d-ef3610109a6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_e70bcff3-fb5e-4eb9-9084-8f56c3732439" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_266ff472-00e1-4710-82e4-6de4a789c6c9" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_e70bcff3-fb5e-4eb9-9084-8f56c3732439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_158ad967-60dd-4ede-b4ff-c71fd60c91de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_642802da-0488-4f39-95fe-eaa8979e2171" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_158ad967-60dd-4ede-b4ff-c71fd60c91de" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_642802da-0488-4f39-95fe-eaa8979e2171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_787fdbfc-51c3-48e7-a24e-f7d3ee2748f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_158ad967-60dd-4ede-b4ff-c71fd60c91de" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_787fdbfc-51c3-48e7-a24e-f7d3ee2748f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d7753428-9b16-4e92-b666-bd1f40125329" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_205bc0ae-6956-40de-86bb-95beb2c67292" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d7753428-9b16-4e92-b666-bd1f40125329" xlink:to="loc_us-gaap_OperatingIncomeLoss_205bc0ae-6956-40de-86bb-95beb2c67292" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_4f415d82-7d34-4190-8fd9-4633b5e0f184" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d7753428-9b16-4e92-b666-bd1f40125329" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_4f415d82-7d34-4190-8fd9-4633b5e0f184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_9672e936-f6d3-46cc-a97f-77e499774446" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_e7e4f58d-7cdc-4793-b5c1-edeb975d9007" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_9672e936-f6d3-46cc-a97f-77e499774446" xlink:to="loc_us-gaap_InvestmentIncomeInterest_e7e4f58d-7cdc-4793-b5c1-edeb975d9007" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_8d7ffdfd-b852-40d8-822f-e1ac12652f1e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_9672e936-f6d3-46cc-a97f-77e499774446" xlink:to="loc_us-gaap_InterestExpense_8d7ffdfd-b852-40d8-822f-e1ac12652f1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_2303314f-34f2-4451-8c4d-482730c12a4b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_9672e936-f6d3-46cc-a97f-77e499774446" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_2303314f-34f2-4451-8c4d-482730c12a4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_7de90b87-53c3-43d9-aa4c-72c0c2d72038" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_c2c30fd3-9594-4476-905f-0f6095859c43" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_7de90b87-53c3-43d9-aa4c-72c0c2d72038" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_c2c30fd3-9594-4476-905f-0f6095859c43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_a338aa74-4ce9-4ffc-a978-424478cb7bc4" xlink:href="wdc-20210101.xsd#wdc_Employeeterminationassetimpairmentandothercharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_7de90b87-53c3-43d9-aa4c-72c0c2d72038" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_a338aa74-4ce9-4ffc-a978-424478cb7bc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_4518160d-d7d1-4f21-8af6-a20b5d359da8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_7de90b87-53c3-43d9-aa4c-72c0c2d72038" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_4518160d-d7d1-4f21-8af6-a20b5d359da8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_aa20d554-7499-45f9-b8cb-9aeb9dac272a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_04ca5b4d-b3c2-490d-94f8-f336467f6c09" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_aa20d554-7499-45f9-b8cb-9aeb9dac272a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_04ca5b4d-b3c2-490d-94f8-f336467f6c09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_6071957e-4f75-4b39-b7e1-e21c27aa18d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_aa20d554-7499-45f9-b8cb-9aeb9dac272a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_6071957e-4f75-4b39-b7e1-e21c27aa18d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_06ddf9ec-ea50-46a6-b1ae-522c2ae771c3" xlink:href="wdc-20210101.xsd#wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_aa20d554-7499-45f9-b8cb-9aeb9dac272a" xlink:to="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_06ddf9ec-ea50-46a6-b1ae-522c2ae771c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ed030890-f945-4e91-bf3d-eb4abdab682e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_cfbd6cc3-ee0a-42c6-870f-897542c2f049" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ed030890-f945-4e91-bf3d-eb4abdab682e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_cfbd6cc3-ee0a-42c6-870f-897542c2f049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_82cdcd9a-d462-40ff-be10-d0fda7478455" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ed030890-f945-4e91-bf3d-eb4abdab682e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_82cdcd9a-d462-40ff-be10-d0fda7478455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_10096684-af4f-43b0-95fd-3faefd68bd18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_fc1ffd07-882e-4013-98b8-6c1e9543f0c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_10096684-af4f-43b0-95fd-3faefd68bd18" xlink:to="loc_us-gaap_NetIncomeLoss_fc1ffd07-882e-4013-98b8-6c1e9543f0c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b18f0c37-4cfc-47d7-a8ef-f80893946c67" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_10096684-af4f-43b0-95fd-3faefd68bd18" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b18f0c37-4cfc-47d7-a8ef-f80893946c67" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b81e20f8-82af-4efd-b31f-25174d85d165" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0904ec27-ffd7-4bbe-8468-d6cc78fe969f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b81e20f8-82af-4efd-b31f-25174d85d165" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0904ec27-ffd7-4bbe-8468-d6cc78fe969f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf15b90f-5e8d-4f16-9e5b-29bf8ae703ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b81e20f8-82af-4efd-b31f-25174d85d165" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf15b90f-5e8d-4f16-9e5b-29bf8ae703ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e51ba73a-ce70-4df4-bfaf-3bba5461a8c6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b81e20f8-82af-4efd-b31f-25174d85d165" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e51ba73a-ce70-4df4-bfaf-3bba5461a8c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0b1da49e-8b2d-49fa-8f35-4f71462fd29d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b81e20f8-82af-4efd-b31f-25174d85d165" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0b1da49e-8b2d-49fa-8f35-4f71462fd29d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_71c50aab-f4aa-458e-8b6f-205a90acf676" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_NetIncomeLoss_71c50aab-f4aa-458e-8b6f-205a90acf676" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_c57d62c8-65df-4227-a153-d022a17aa91c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_DepreciationAndAmortization_c57d62c8-65df-4227-a153-d022a17aa91c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0bcc4129-d329-4613-8096-ae3523af7d84" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_ShareBasedCompensation_0bcc4129-d329-4613-8096-ae3523af7d84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1bb8d36b-60c9-48b6-ab47-4cab1a2e9681" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1bb8d36b-60c9-48b6-ab47-4cab1a2e9681" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_0934375d-994c-4f98-b5de-689e9a613bf7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_0934375d-994c-4f98-b5de-689e9a613bf7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_d77f034e-6a40-40ed-8d73-71038c9cf237" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_d77f034e-6a40-40ed-8d73-71038c9cf237" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_08c5c842-2b14-46a3-998c-dae30c48cd53" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_08c5c842-2b14-46a3-998c-dae30c48cd53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_fbe759d3-335a-4cc9-90a9-f904fb9d0d38" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_fbe759d3-335a-4cc9-90a9-f904fb9d0d38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_3aa25183-5ed8-45b9-a9c8-8e5eccc1df0e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_3aa25183-5ed8-45b9-a9c8-8e5eccc1df0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_54149d5a-4a88-4a87-b5af-a6904b766dcc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_54149d5a-4a88-4a87-b5af-a6904b766dcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_31c7365e-5762-437b-b882-b601d346f861" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_31c7365e-5762-437b-b882-b601d346f861" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_0b61fba9-38ce-4eec-a278-e6ffce3882c0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_0b61fba9-38ce-4eec-a278-e6ffce3882c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_bf9164b2-5d95-4590-b9c0-92bdfca39f19" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_bf9164b2-5d95-4590-b9c0-92bdfca39f19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_288d97e1-5930-4b07-95dd-6af1ec360909" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2e576173-e027-4d42-aab4-ab99461bdd16" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_288d97e1-5930-4b07-95dd-6af1ec360909" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_53900bec-42a4-4cb2-8ef9-f43ab03fd301" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_53900bec-42a4-4cb2-8ef9-f43ab03fd301" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_8bbedeb3-ba7a-4f97-8a81-9fe1a75b8d1a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_8bbedeb3-ba7a-4f97-8a81-9fe1a75b8d1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_c9772c68-26a8-4d29-b2e8-7d9f359c161a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_c9772c68-26a8-4d29-b2e8-7d9f359c161a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_9f3190e7-7a9f-491a-8309-2db465637bda" xlink:href="wdc-20210101.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_9f3190e7-7a9f-491a-8309-2db465637bda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_0f71617c-c645-4f6c-99b5-cd06e89ba4ba" xlink:href="wdc-20210101.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_0f71617c-c645-4f6c-99b5-cd06e89ba4ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_4ef2b3a6-e51c-4bd7-862f-eada43acdd4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4794edfe-6b59-420b-8573-16820fcbff53" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_4ef2b3a6-e51c-4bd7-862f-eada43acdd4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_aec27a6f-e569-4888-88fe-d347149deda8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_aec27a6f-e569-4888-88fe-d347149deda8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_83437f4d-50c7-4201-902e-39c5e2bf752a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_83437f4d-50c7-4201-902e-39c5e2bf752a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_0e6e3773-cef5-4a69-bda9-3d8ea1478ebf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:to="loc_us-gaap_PaymentsOfDividends_0e6e3773-cef5-4a69-bda9-3d8ea1478ebf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_dbdfa4c2-af34-4276-a0b8-6be8dbbcf205" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_dbdfa4c2-af34-4276-a0b8-6be8dbbcf205" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_b38dd2c6-86c8-4ef2-bcb7-5e9f4dbeca8d" xlink:href="wdc-20210101.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b2586416-0c40-43cb-9aeb-fcc1df7d20f7" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_b38dd2c6-86c8-4ef2-bcb7-5e9f4dbeca8d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentation"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentationPolicies"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="simple" xlink:href="wdc-20210101.xsd#RecentAccountingPronouncements"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Revenues" xlink:type="simple" xlink:href="wdc-20210101.xsd#Revenues"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/Revenues" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesRevenueRemainingPerformanceObligationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesRevenueRemainingPerformanceObligationDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesDisaggregationofRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementData"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_54553887-814d-4071-9458-a84f238b576f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_254055f8-b37e-4afb-955e-7307c9a23df6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_54553887-814d-4071-9458-a84f238b576f" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_254055f8-b37e-4afb-955e-7307c9a23df6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_22a5c9c3-9009-421a-965a-618e1920f3d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_54553887-814d-4071-9458-a84f238b576f" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_22a5c9c3-9009-421a-965a-618e1920f3d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_38248025-cbdc-4fc5-89a0-4ec2388c35b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_54553887-814d-4071-9458-a84f238b576f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_38248025-cbdc-4fc5-89a0-4ec2388c35b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_42963ceb-0a87-48e4-9825-c7912fec36d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_21170560-d1f1-4044-accf-65c4fe2501c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_42963ceb-0a87-48e4-9825-c7912fec36d7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_21170560-d1f1-4044-accf-65c4fe2501c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_037e6874-4636-4bc0-bd7b-9c406866b973" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_42963ceb-0a87-48e4-9825-c7912fec36d7" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_037e6874-4636-4bc0-bd7b-9c406866b973" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataGoodwillRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d39a9e3a-2e73-445a-86ab-7a7da348cae8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_80f0ce99-6755-416c-bfe9-46fa2a2490ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d39a9e3a-2e73-445a-86ab-7a7da348cae8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_80f0ce99-6755-416c-bfe9-46fa2a2490ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_f75dfe60-3e5a-4269-b628-585e993d85db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d39a9e3a-2e73-445a-86ab-7a7da348cae8" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_f75dfe60-3e5a-4269-b628-585e993d85db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_d97cdde3-ee82-4c29-88d7-5cba21e0bf56" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d39a9e3a-2e73-445a-86ab-7a7da348cae8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_d97cdde3-ee82-4c29-88d7-5cba21e0bf56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrual_44151dc5-9582-4c10-b748-b973952ba45f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_ff22c1c0-7434-4c94-8713-399f1e9f9a82" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StandardProductWarrantyAccrualCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StandardProductWarrantyAccrual_44151dc5-9582-4c10-b748-b973952ba45f" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_ff22c1c0-7434-4c94-8713-399f1e9f9a82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_d8937071-e5f8-43d7-b984-decdaadf992c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StandardProductWarrantyAccrualNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StandardProductWarrantyAccrual_44151dc5-9582-4c10-b748-b973952ba45f" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_d8937071-e5f8-43d7-b984-decdaadf992c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_9914dd91-5ba5-436a-a61e-ab414667276a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_3928e29e-01ef-4a93-93d1-e699f3276a70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedIncomeTaxesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9914dd91-5ba5-436a-a61e-ab414667276a" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_3928e29e-01ef-4a93-93d1-e699f3276a70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_2617e602-598d-4bf6-9f31-e04a41a294fd" xlink:href="wdc-20210101.xsd#wdc_OtherMiscellaneousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9914dd91-5ba5-436a-a61e-ab414667276a" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_2617e602-598d-4bf6-9f31-e04a41a294fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_18f4f2e3-6b8c-403a-85ee-155d5f746103" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9914dd91-5ba5-436a-a61e-ab414667276a" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_18f4f2e3-6b8c-403a-85ee-155d5f746103" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_712eb13f-fb69-4e2b-bc0c-91385e644466" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3b0b1036-02b6-4a6f-833f-87200da716d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_712eb13f-fb69-4e2b-bc0c-91385e644466" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3b0b1036-02b6-4a6f-833f-87200da716d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_09ae87f3-1d98-4e7d-86b8-0cde73e06cf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_712eb13f-fb69-4e2b-bc0c-91385e644466" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_09ae87f3-1d98-4e7d-86b8-0cde73e06cf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_2c5f23f9-66e0-4ad3-91f1-b3544b52d06a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_712eb13f-fb69-4e2b-bc0c-91385e644466" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_2c5f23f9-66e0-4ad3-91f1-b3544b52d06a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestments"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_6f04f0e7-c081-426a-be6a-2fe600581b38" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_3521cdec-5581-4660-9883-28127814912c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_6f04f0e7-c081-426a-be6a-2fe600581b38" xlink:to="loc_us-gaap_DerivativeLiabilities_3521cdec-5581-4660-9883-28127814912c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_846cbe7e-0767-43ad-81d2-f7a3020f2d0f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_e0f0e051-4e1b-43ba-919a-25603b608c76" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_846cbe7e-0767-43ad-81d2-f7a3020f2d0f" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_e0f0e051-4e1b-43ba-919a-25603b608c76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_ed5c723d-79a7-418b-ad4d-70ea062458ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_846cbe7e-0767-43ad-81d2-f7a3020f2d0f" xlink:to="loc_us-gaap_DerivativeAssets_ed5c723d-79a7-418b-ad4d-70ea062458ea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="simple" xlink:href="wdc-20210101.xsd#DerivativesInstrumentsandHedgingActivities"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DerivativesInstrumentsandHedgingActivitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Debt" xlink:type="simple" xlink:href="wdc-20210101.xsd#Debt"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/Debt" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtScheduleofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_eae2d9ec-1ffd-4d57-9d81-5a92f98f111f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_342bf40d-6687-44b4-bac4-0ac01e172060" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_eae2d9ec-1ffd-4d57-9d81-5a92f98f111f" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_342bf40d-6687-44b4-bac4-0ac01e172060" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_ce4a1394-a2df-4091-a370-1f1bc71caee0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_eae2d9ec-1ffd-4d57-9d81-5a92f98f111f" xlink:to="loc_us-gaap_LongTermDebtCurrent_ce4a1394-a2df-4091-a370-1f1bc71caee0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlans" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlans"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlans" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5750030e-8a4a-47c8-84ab-53c98364faae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_e1bc81d7-b5cc-4c2c-8c3e-ee3d4b60cd42" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5750030e-8a4a-47c8-84ab-53c98364faae" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_e1bc81d7-b5cc-4c2c-8c3e-ee3d4b60cd42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_d772bff5-969f-4867-9c17-c92a6d8fd4b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5750030e-8a4a-47c8-84ab-53c98364faae" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_d772bff5-969f-4867-9c17-c92a6d8fd4b8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_44df8dcc-d0f5-4817-bb47-834c9c4def0e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_cf19a210-2beb-4b92-824d-0a6acfc2f2f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_44df8dcc-d0f5-4817-bb47-834c9c4def0e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_cf19a210-2beb-4b92-824d-0a6acfc2f2f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1c1defce-e0fa-440f-a69a-cb336f818a80" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_44df8dcc-d0f5-4817-bb47-834c9c4def0e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1c1defce-e0fa-440f-a69a-cb336f818a80" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingencies"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5bbaa730-86dd-4701-9da5-a073e3a3365a" xlink:href="wdc-20210101.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_925edb17-364d-4c5e-857a-26f5f509e483" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableRelatedParties"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5bbaa730-86dd-4701-9da5-a073e3a3365a" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_925edb17-364d-4c5e-857a-26f5f509e483" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_96a98144-df84-4f72-9d63-7cea1e952872" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Investments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5bbaa730-86dd-4701-9da5-a073e3a3365a" xlink:to="loc_us-gaap_Investments_96a98144-df84-4f72-9d63-7cea1e952872" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_ed88bd8c-621a-4f64-bcb6-77ee46e8887c" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_ed88bd8c-621a-4f64-bcb6-77ee46e8887c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_d95d1eb8-bc94-434d-b1ac-17b5bfb742e1" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_d95d1eb8-bc94-434d-b1ac-17b5bfb742e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_bd905b57-488f-4b28-ae41-56aa077248fd" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_bd905b57-488f-4b28-ae41-56aa077248fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_14786004-3ae3-4077-b7aa-14348f7bee12" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_14786004-3ae3-4077-b7aa-14348f7bee12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_7b097194-dd87-4841-a2b0-e431c88a1fa8" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_7b097194-dd87-4841-a2b0-e431c88a1fa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_ff5f446a-8e0f-47ae-a144-466b4c20aa1e" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_b57b8e13-6999-4f08-b2f1-9dfccb03446d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_ff5f446a-8e0f-47ae-a144-466b4c20aa1e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitments"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1e6d108e-74f7-4064-8138-9872b00e7201" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_8d5f81d3-4290-4679-bbee-7ea5bece34f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1e6d108e-74f7-4064-8138-9872b00e7201" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_8d5f81d3-4290-4679-bbee-7ea5bece34f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f61fa36a-1d0a-4d45-8478-3011bf228d9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1e6d108e-74f7-4064-8138-9872b00e7201" xlink:to="loc_us-gaap_OperatingLeaseLiability_f61fa36a-1d0a-4d45-8478-3011bf228d9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_53ba0d7c-ede2-46b1-a50a-3f03521e2dbb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_22a73995-57bd-4ea5-8001-f26759efdeee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_53ba0d7c-ede2-46b1-a50a-3f03521e2dbb" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_22a73995-57bd-4ea5-8001-f26759efdeee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_abb13496-0256-41ed-9568-f97f8bbbe9fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_53ba0d7c-ede2-46b1-a50a-3f03521e2dbb" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_abb13496-0256-41ed-9568-f97f8bbbe9fb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_93bf2acb-d130-4b3b-b6bb-9697f648bd45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_93bf2acb-d130-4b3b-b6bb-9697f648bd45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5138d33d-ad01-4225-a6da-f6fb98ad0f94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5138d33d-ad01-4225-a6da-f6fb98ad0f94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_052d2404-09e6-4dad-baa2-55bf5f1bf999" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_052d2404-09e6-4dad-baa2-55bf5f1bf999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_061c74c7-bcf2-4c3b-815b-3e61ffaa0a07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_061c74c7-bcf2-4c3b-815b-3e61ffaa0a07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_09d09f89-5cb5-4688-955d-bc504912b251" xlink:href="wdc-20210101.xsd#wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_09d09f89-5cb5-4688-955d-bc504912b251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8293c865-af2c-407d-9974-29fa43f7eb07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b075653-6aed-40f9-aa85-3952b5f3b45c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8293c865-af2c-407d-9974-29fa43f7eb07" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_308798fb-3994-4039-ac88-bf6c06336dc3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_308798fb-3994-4039-ac88-bf6c06336dc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_6a227b7c-6d91-4bfc-a055-3dd40534f1c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_6a227b7c-6d91-4bfc-a055-3dd40534f1c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_d5bb58ed-8f08-47a7-a1ca-738bb472c884" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_d5bb58ed-8f08-47a7-a1ca-738bb472c884" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_2d05d98c-a3be-4f81-bfdf-197efb3d522b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_2d05d98c-a3be-4f81-bfdf-197efb3d522b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationToBePaidAfterYearFour_59b75f06-aa7e-4967-8be5-65eceec43b05" xlink:href="wdc-20210101.xsd#wdc_PurchaseObligationToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_wdc_PurchaseObligationToBePaidAfterYearFour_59b75f06-aa7e-4967-8be5-65eceec43b05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_a9ea9213-4817-416d-a5ac-2648cec70298" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3d6ed509-769c-4b19-b5f6-da19e473f9bd" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_a9ea9213-4817-416d-a5ac-2648cec70298" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquity"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_4bf6888d-0154-4dad-b6e4-e4edce5d7972" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_b97b195f-d934-42f8-851b-854262b0829e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_4bf6888d-0154-4dad-b6e4-e4edce5d7972" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_b97b195f-d934-42f8-851b-854262b0829e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_1d9bca09-842f-4cab-b5bd-30ae9bd4efce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_4bf6888d-0154-4dad-b6e4-e4edce5d7972" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_1d9bca09-842f-4cab-b5bd-30ae9bd4efce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityUnrecognizedSharebasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityStockOptionActivityDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityShareRepurchaseProgramDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpense"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShare"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShareTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherCharges"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_932dca62-184a-4994-a7f1-eb017de3a3cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_603109a2-fa0b-4214-acf6-7f77b9b00bc7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_932dca62-184a-4994-a7f1-eb017de3a3cc" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_603109a2-fa0b-4214-acf6-7f77b9b00bc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_485a20e5-6212-441c-9dc3-2cce51273b9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_932dca62-184a-4994-a7f1-eb017de3a3cc" xlink:to="loc_us-gaap_RestructuringCharges_485a20e5-6212-441c-9dc3-2cce51273b9b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LegalProceedings" xlink:type="simple" xlink:href="wdc-20210101.xsd#LegalProceedings"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended"/>
</link:linkbase>
