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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:80e32f2e-3a23-4313-abda-b3b2198268bf,g:3964fab4-39e9-43f9-992a-55dd8e829106-->
<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-20200703.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_b383766a-b860-4166-884f-bb4b327ba4ff" 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_OtherAssetsCurrent_c8d68c7a-2c56-4ace-8a04-2d8b43439184" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_b383766a-b860-4166-884f-bb4b327ba4ff" xlink:to="loc_us-gaap_OtherAssetsCurrent_c8d68c7a-2c56-4ace-8a04-2d8b43439184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a20ff388-1663-457d-b217-cd6df5168561" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_b383766a-b860-4166-884f-bb4b327ba4ff" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a20ff388-1663-457d-b217-cd6df5168561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9edd1203-2ad7-4725-97e3-f7185423e355" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_b383766a-b860-4166-884f-bb4b327ba4ff" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9edd1203-2ad7-4725-97e3-f7185423e355" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_5435e9c5-e25e-4b0c-85a2-cc8d10011134" 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_b383766a-b860-4166-884f-bb4b327ba4ff" xlink:to="loc_us-gaap_InventoryNet_5435e9c5-e25e-4b0c-85a2-cc8d10011134" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6a801a39-e2e3-460d-ad82-9e53d9b7bb0b" 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_LiabilitiesCurrent_43bdb79e-d624-400b-965b-1ae5ba7643b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6a801a39-e2e3-460d-ad82-9e53d9b7bb0b" xlink:to="loc_us-gaap_LiabilitiesCurrent_43bdb79e-d624-400b-965b-1ae5ba7643b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_e969d104-a211-4e56-a045-0514b642602e" 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_6a801a39-e2e3-460d-ad82-9e53d9b7bb0b" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_e969d104-a211-4e56-a045-0514b642602e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_77fdbcaf-47c5-428e-b981-b67339e313ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6a801a39-e2e3-460d-ad82-9e53d9b7bb0b" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_77fdbcaf-47c5-428e-b981-b67339e313ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" 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_PreferredStockValue_c5c3644a-9e83-4595-900b-a40b0b6d57fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_us-gaap_PreferredStockValue_c5c3644a-9e83-4595-900b-a40b0b6d57fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CommonStockValues_594c4039-e6e7-4ad1-8cba-c2e0af3f0598" xlink:href="wdc-20200703.xsd#wdc_CommonStockValues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_wdc_CommonStockValues_594c4039-e6e7-4ad1-8cba-c2e0af3f0598" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_06ced81e-bb00-4a91-847b-dd36b83997eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_us-gaap_AdditionalPaidInCapital_06ced81e-bb00-4a91-847b-dd36b83997eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_11fac2b7-b678-4e93-b5bd-5cedda25c52f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_11fac2b7-b678-4e93-b5bd-5cedda25c52f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_3af1c3e5-8f15-48be-bc42-66b71d9367ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_3af1c3e5-8f15-48be-bc42-66b71d9367ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_ab7a6079-12d0-4323-aadb-8e78b6d17c2b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_36d3bb36-456e-4912-b652-6e44e0b4aa6c" xlink:to="loc_us-gaap_TreasuryStockValue_ab7a6079-12d0-4323-aadb-8e78b6d17c2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" 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_LongTermDebtCurrent_0fd5634f-e7ad-42c3-a315-24672f7230b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" xlink:to="loc_us-gaap_LongTermDebtCurrent_0fd5634f-e7ad-42c3-a315-24672f7230b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_bdc2597c-6cd7-4ad3-8e97-5cfd5fbf2669" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_bdc2597c-6cd7-4ad3-8e97-5cfd5fbf2669" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_1cba66e0-829e-42ab-a3d0-5891f1711560" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" xlink:to="loc_us-gaap_AccountsPayableCurrent_1cba66e0-829e-42ab-a3d0-5891f1711560" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_608dbd8c-5c85-43d6-9f8a-5ce6794038a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_608dbd8c-5c85-43d6-9f8a-5ce6794038a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_83eafe0e-97f9-49b3-8dd3-98802854ee2b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_661e2a2c-d996-4a65-a1a2-661320762365" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_83eafe0e-97f9-49b3-8dd3-98802854ee2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_b4e7ee02-dcc0-49a3-a23a-3f4ea5e34a30" 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_111b9102-cdd0-43f7-91cd-a4c4c8b40b7d" 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_b4e7ee02-dcc0-49a3-a23a-3f4ea5e34a30" xlink:to="loc_us-gaap_StockholdersEquity_111b9102-cdd0-43f7-91cd-a4c4c8b40b7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_52ea2bd2-b9a5-42da-ab48-1aaa59252b0c" 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_b4e7ee02-dcc0-49a3-a23a-3f4ea5e34a30" xlink:to="loc_us-gaap_Liabilities_52ea2bd2-b9a5-42da-ab48-1aaa59252b0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_ea1aae42-1b28-4b32-b2ba-daf06c796ca8" 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_b4e7ee02-dcc0-49a3-a23a-3f4ea5e34a30" xlink:to="loc_us-gaap_CommitmentsAndContingencies_ea1aae42-1b28-4b32-b2ba-daf06c796ca8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" 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_us-gaap_OtherAssetsNoncurrent_40977f12-0e28-448b-bf33-107d791a3050" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_40977f12-0e28-448b-bf33-107d791a3050" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_40baba74-4bd3-449f-92f2-7f5d7789d94f" xlink:href="wdc-20200703.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_40baba74-4bd3-449f-92f2-7f5d7789d94f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_cfb8fd2a-31e1-4d5d-b64e-af4f2cfd1691" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_cfb8fd2a-31e1-4d5d-b64e-af4f2cfd1691" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_2904e308-a3f6-4f7a-acb3-c77d73a00bd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_us-gaap_Goodwill_2904e308-a3f6-4f7a-acb3-c77d73a00bd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e5104355-a972-4b75-9be8-3d9d77da4f84" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e5104355-a972-4b75-9be8-3d9d77da4f84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_6b7f128b-c03c-4479-afbb-765c33f7d611" 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_cb004ea4-25d2-4b2e-b1b6-3d14d2721c32" xlink:to="loc_us-gaap_AssetsCurrent_6b7f128b-c03c-4479-afbb-765c33f7d611" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedBalanceSheetsParenthetical"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_bc161dac-f189-4831-a815-61c3aabe5ca4" 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_64ab95c1-963c-4bc5-a9f7-282d64b520c5" 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_bc161dac-f189-4831-a815-61c3aabe5ca4" xlink:to="loc_us-gaap_InvestmentIncomeInterest_64ab95c1-963c-4bc5-a9f7-282d64b520c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_d0c59f68-5af4-43bf-93d8-8e901c14db55" 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_bc161dac-f189-4831-a815-61c3aabe5ca4" xlink:to="loc_us-gaap_InterestExpense_d0c59f68-5af4-43bf-93d8-8e901c14db55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_8a07c240-387c-4a84-bff0-f82f29dac907" 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_bc161dac-f189-4831-a815-61c3aabe5ca4" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_8a07c240-387c-4a84-bff0-f82f29dac907" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_64891aa5-a220-4dce-b925-87d884fbe67f" 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_dfc8051d-a9c9-4bed-940c-9528be4b3cee" 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_64891aa5-a220-4dce-b925-87d884fbe67f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_dfc8051d-a9c9-4bed-940c-9528be4b3cee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78abec8e-f342-4892-b554-1b986acac5b2" 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_64891aa5-a220-4dce-b925-87d884fbe67f" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78abec8e-f342-4892-b554-1b986acac5b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_8c33fb09-e91c-4330-adca-0e3b049cb8fc" 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_6bfac63f-afe8-4acb-9db6-d1bfb3fb15e9" 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_8c33fb09-e91c-4330-adca-0e3b049cb8fc" xlink:to="loc_us-gaap_OperatingIncomeLoss_6bfac63f-afe8-4acb-9db6-d1bfb3fb15e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_5ac98941-3f81-4159-b70b-f58a90fe57e7" 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_8c33fb09-e91c-4330-adca-0e3b049cb8fc" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_5ac98941-3f81-4159-b70b-f58a90fe57e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_5051f2c1-837d-4f29-bf7e-a0aa35cc184d" 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_40332fbe-337e-452d-a362-e01d062830a7" 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_5051f2c1-837d-4f29-bf7e-a0aa35cc184d" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_40332fbe-337e-452d-a362-e01d062830a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_c1fffadf-5a43-4a6f-a8b6-3cc1308c7bc7" 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_5051f2c1-837d-4f29-bf7e-a0aa35cc184d" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_c1fffadf-5a43-4a6f-a8b6-3cc1308c7bc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b3094de7-30b7-4c27-937e-a80dade32d7c" 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_fa955b3d-ed33-419d-ba79-383c582fe224" 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_b3094de7-30b7-4c27-937e-a80dade32d7c" xlink:to="loc_us-gaap_OperatingExpenses_fa955b3d-ed33-419d-ba79-383c582fe224" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_c3a32a64-813c-43cb-b402-7dfca8494dab" 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_b3094de7-30b7-4c27-937e-a80dade32d7c" xlink:to="loc_us-gaap_GrossProfit_c3a32a64-813c-43cb-b402-7dfca8494dab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_05f4602c-300e-47fe-8a3a-ed4c5fa9023a" 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_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_d2f64b5a-0421-4f07-bb22-094a84b3ddb8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_05f4602c-300e-47fe-8a3a-ed4c5fa9023a" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_d2f64b5a-0421-4f07-bb22-094a84b3ddb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_f0aa7f83-c9e2-42d8-b9f4-3a191f13da8b" xlink:href="wdc-20200703.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_05f4602c-300e-47fe-8a3a-ed4c5fa9023a" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_f0aa7f83-c9e2-42d8-b9f4-3a191f13da8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_bf1a4973-01e9-404c-81b7-490274b633f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_05f4602c-300e-47fe-8a3a-ed4c5fa9023a" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_bf1a4973-01e9-404c-81b7-490274b633f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_718e327b-b117-4611-ae84-f40edc6ebac1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_c00b953f-3320-4281-891b-94ed1d0e51ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_718e327b-b117-4611-ae84-f40edc6ebac1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_c00b953f-3320-4281-891b-94ed1d0e51ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_075971ca-92f7-4e83-88c9-8e9cf7267949" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_718e327b-b117-4611-ae84-f40edc6ebac1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_075971ca-92f7-4e83-88c9-8e9cf7267949" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_f28cca6f-31c2-40e5-9ba3-40cca345b2d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3e037d9b-21bf-40c1-bcda-f41e9a3965ce" 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_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_f28cca6f-31c2-40e5-9ba3-40cca345b2d6" xlink:to="loc_us-gaap_NetIncomeLoss_3e037d9b-21bf-40c1-bcda-f41e9a3965ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_ad61aca8-6cdb-4fce-a201-0eb9009b65f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_f28cca6f-31c2-40e5-9ba3-40cca345b2d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_ad61aca8-6cdb-4fce-a201-0eb9009b65f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1e7911fc-4a91-4e38-807b-6d2287bd580f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_c37076cb-2d4e-4610-b991-cf8f27941339" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1e7911fc-4a91-4e38-807b-6d2287bd580f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_c37076cb-2d4e-4610-b991-cf8f27941339" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_da4e00ab-d2ff-44f1-b5fa-05a45db91d57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1e7911fc-4a91-4e38-807b-6d2287bd580f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_da4e00ab-d2ff-44f1-b5fa-05a45db91d57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_da1db1d4-150d-4db0-8f75-97062067d62c" xlink:href="wdc-20200703.xsd#wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1e7911fc-4a91-4e38-807b-6d2287bd580f" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_da1db1d4-150d-4db0-8f75-97062067d62c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_95954b7c-272e-4bd5-a5d0-849fedbe58b3" 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_15886947-ed58-4557-b320-c7ad10d68e13" 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_95954b7c-272e-4bd5-a5d0-849fedbe58b3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_15886947-ed58-4557-b320-c7ad10d68e13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a38ad267-7114-4ae0-9b75-d4c51943e6db" 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_95954b7c-272e-4bd5-a5d0-849fedbe58b3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a38ad267-7114-4ae0-9b75-d4c51943e6db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4f949df9-39c0-4dd7-989f-ac96cd98e0ac" 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_95954b7c-272e-4bd5-a5d0-849fedbe58b3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4f949df9-39c0-4dd7-989f-ac96cd98e0ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_a3bcade7-17a2-4a87-ad87-9a35f57fc95a" 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_95954b7c-272e-4bd5-a5d0-849fedbe58b3" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_a3bcade7-17a2-4a87-ad87-9a35f57fc95a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" 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_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d3885213-e73f-4faf-8804-6a2f1588e0ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d3885213-e73f-4faf-8804-6a2f1588e0ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_bc89b18d-1a2a-4713-9256-c50513ac27ba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_bc89b18d-1a2a-4713-9256-c50513ac27ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_5c60ad9c-5df6-4949-af37-7c656f0a16db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_5c60ad9c-5df6-4949-af37-7c656f0a16db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_816d8e23-421c-485a-9ea4-1c7626d4ecac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_816d8e23-421c-485a-9ea4-1c7626d4ecac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_b78e18d3-e2ee-405a-81f7-329fe2e7ce05" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_b78e18d3-e2ee-405a-81f7-329fe2e7ce05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_b89c2a1f-167a-45fb-9ee4-e89117720130" xlink:href="wdc-20200703.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_b89c2a1f-167a-45fb-9ee4-e89117720130" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_90eaf998-0bbc-4343-80e4-7cefadd941b9" xlink:href="wdc-20200703.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_90eaf998-0bbc-4343-80e4-7cefadd941b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_73e31f37-6fb1-48cd-8d4e-1f8cc1594008" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_73e31f37-6fb1-48cd-8d4e-1f8cc1594008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_295bdfbe-378a-44c6-8485-90e2a1a75206" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cf39f29b-9404-44db-8d35-e0ad9178ef82" xlink:to="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_295bdfbe-378a-44c6-8485-90e2a1a75206" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" 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_PaymentsForRepurchaseOfCommonStock_baaeaf3c-f75e-4dab-8a1b-6c1e15429870" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_baaeaf3c-f75e-4dab-8a1b-6c1e15429870" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_0b2bf4eb-6569-4da6-ba49-857f2e0bf8c6" 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_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_0b2bf4eb-6569-4da6-ba49-857f2e0bf8c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_d3e13827-87d0-4390-9d69-a0c48d2f4310" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_d3e13827-87d0-4390-9d69-a0c48d2f4310" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_05fde08e-8881-49e5-8a02-74f6b98a7e10" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_05fde08e-8881-49e5-8a02-74f6b98a7e10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_bf76f424-9ad6-4e11-a328-89b7eb305146" xlink:href="wdc-20200703.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_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_bf76f424-9ad6-4e11-a328-89b7eb305146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_83fb54c3-09aa-4156-8d18-105fa676c7af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_83fb54c3-09aa-4156-8d18-105fa676c7af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0be000d7-b12d-4503-9d3b-5e888aec2b5a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0be000d7-b12d-4503-9d3b-5e888aec2b5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_02ced577-8174-46e2-8171-055d90df5cd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_PaymentsOfDividends_02ced577-8174-46e2-8171-055d90df5cd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromHedgeFinancingActivities_5c12e880-7db6-4b57-8547-62905b752403" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromHedgeFinancingActivities"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9df74dbb-3511-4fbc-9ea1-563bbdb9099b" xlink:to="loc_us-gaap_PaymentsForProceedsFromHedgeFinancingActivities_5c12e880-7db6-4b57-8547-62905b752403" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c2d2b43c-e791-4499-92d2-5d1550b18163" 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_c2cbc04f-19cc-46d4-b686-911cfe66acad" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_NetIncomeLoss_c2cbc04f-19cc-46d4-b686-911cfe66acad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_8e2f9204-7299-4b09-88b7-1fb5bf8ab9a3" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_DepreciationAndAmortization_8e2f9204-7299-4b09-88b7-1fb5bf8ab9a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_f91bdff5-5895-4b2f-ad15-ededf81705a9" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_ShareBasedCompensation_f91bdff5-5895-4b2f-ad15-ededf81705a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_fb836512-e2a9-48ea-810f-fb7a7458556e" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_fb836512-e2a9-48ea-810f-fb7a7458556e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_27471faf-a861-40ee-a298-27e4c55583fa" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_27471faf-a861-40ee-a298-27e4c55583fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_5ce01b95-dee5-4d24-98c6-e236b7e11d8e" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_5ce01b95-dee5-4d24-98c6-e236b7e11d8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_b4e45c75-5a7d-4050-a499-57efb1eb6c82" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_b4e45c75-5a7d-4050-a499-57efb1eb6c82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_d1c13c7f-71e7-42ca-85a1-9c55e74e222d" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_d1c13c7f-71e7-42ca-85a1-9c55e74e222d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_7a99721f-44e2-45ff-9219-1d6c6c843493" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_7a99721f-44e2-45ff-9219-1d6c6c843493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_58e3b6b4-cc5b-4da3-ac32-fec1b2446b76" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_58e3b6b4-cc5b-4da3-ac32-fec1b2446b76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_c44fd3e5-8faf-4650-8748-7f5c2d8ca472" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_c44fd3e5-8faf-4650-8748-7f5c2d8ca472" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_5030113f-b3b6-476c-901d-541d314cf0f8" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_5030113f-b3b6-476c-901d-541d314cf0f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_dbe5503e-14aa-4d82-a384-a53ff66be89c" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_dbe5503e-14aa-4d82-a384-a53ff66be89c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_def799ab-2aee-49df-9768-5bf174c5f044" 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_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_def799ab-2aee-49df-9768-5bf174c5f044" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CashPremiumOnExtinguishmentOfDebt_60ef2284-c6ee-4cb3-b015-3eb6147fcd21" xlink:href="wdc-20200703.xsd#wdc_CashPremiumOnExtinguishmentOfDebt"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_wdc_CashPremiumOnExtinguishmentOfDebt_60ef2284-c6ee-4cb3-b015-3eb6147fcd21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NonCashPortionOfEmployeeTerminationBenefitsAndOtherCharges_f21aa149-3cc8-4ed8-82b8-b6ed1875ae1c" xlink:href="wdc-20200703.xsd#wdc_NonCashPortionOfEmployeeTerminationBenefitsAndOtherCharges"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c2d2b43c-e791-4499-92d2-5d1550b18163" xlink:to="loc_wdc_NonCashPortionOfEmployeeTerminationBenefitsAndOtherCharges_f21aa149-3cc8-4ed8-82b8-b6ed1875ae1c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200703.xsd#ConsolidatedStatementsofShareholdersEquity"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofShareholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#OrganizationandBasisofPresentationPolicies"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#OrganizationandBasisofPresentationAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#OrganizationandBasisofPresentationRemainingPerformanceObligationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20200703.xsd#OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="simple" xlink:href="wdc-20200703.xsd#RecentAccountingPronouncements"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentAccountingPronouncementsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#RecentAccountingPronouncementsAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RecentAccountingPronouncementsAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.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-20200703.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_9744fbc2-06d3-4060-b0d2-6028f3de653f" 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_14f7350a-f2d0-4b45-88a0-aa372c288d7f" 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_9744fbc2-06d3-4060-b0d2-6028f3de653f" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_14f7350a-f2d0-4b45-88a0-aa372c288d7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_5998b1cd-6b2c-46d6-9b1a-e67c5a5f4a29" 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_9744fbc2-06d3-4060-b0d2-6028f3de653f" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_5998b1cd-6b2c-46d6-9b1a-e67c5a5f4a29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_9bce899d-837d-43d1-9c7e-9899c409a698" 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_9744fbc2-06d3-4060-b0d2-6028f3de653f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_9bce899d-837d-43d1-9c7e-9899c409a698" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20200703.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_fe25f465-8a24-4661-8dce-60ca6b07594c" 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_3608810a-c53a-4c62-8e10-99d5b8e141f9" 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_fe25f465-8a24-4661-8dce-60ca6b07594c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_3608810a-c53a-4c62-8e10-99d5b8e141f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3aa12b4e-2930-4d11-ac95-e7cfdac2c045" 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_fe25f465-8a24-4661-8dce-60ca6b07594c" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3aa12b4e-2930-4d11-ac95-e7cfdac2c045" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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_1dcf9676-cad8-4469-a764-41b32e6dd044" 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_IntangibleAssetsGrossExcludingGoodwill_7cf3d2ad-b4a5-45c9-92b7-fc82ba6492f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1dcf9676-cad8-4469-a764-41b32e6dd044" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_7cf3d2ad-b4a5-45c9-92b7-fc82ba6492f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f06b0d97-e890-488c-98a0-27be6a61efbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1dcf9676-cad8-4469-a764-41b32e6dd044" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f06b0d97-e890-488c-98a0-27be6a61efbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_7d1e7d0e-bd56-4364-a46e-4e7053dde977" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_33e81e42-6148-4c4d-8c81-43e47d476eb3" 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_IntangibleAssetsGrossExcludingGoodwill_7d1e7d0e-bd56-4364-a46e-4e7053dde977" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_33e81e42-6148-4c4d-8c81-43e47d476eb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_2a93c2cd-96f8-4ec3-90b2-ea300c18af0e" 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_IntangibleAssetsGrossExcludingGoodwill_7d1e7d0e-bd56-4364-a46e-4e7053dde977" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_2a93c2cd-96f8-4ec3-90b2-ea300c18af0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c23e396f-aa36-4a65-ae03-0dbcce68922c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_9afa45e9-f634-4a72-8959-d9cfc2b05de9" 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_FiniteLivedIntangibleAssetsNet_c23e396f-aa36-4a65-ae03-0dbcce68922c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_9afa45e9-f634-4a72-8959-d9cfc2b05de9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6e41605a-d59b-41ef-a6bd-ac9ae792d099" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c23e396f-aa36-4a65-ae03-0dbcce68922c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6e41605a-d59b-41ef-a6bd-ac9ae792d099" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetAmortizationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#SupplementalFinancialStatementDataIntangibleAssetAmortizationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetAmortizationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_97ebca82-dcce-4ecc-b6e5-43c2e0bddd19" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_7128a9de-bbf0-4cc0-a8bc-1576f6329cbf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_97ebca82-dcce-4ecc-b6e5-43c2e0bddd19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_7128a9de-bbf0-4cc0-a8bc-1576f6329cbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1ed9f20e-9912-4665-b0fc-e5398fb519a4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_97ebca82-dcce-4ecc-b6e5-43c2e0bddd19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1ed9f20e-9912-4665-b0fc-e5398fb519a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_f3f53693-ef70-4db5-af56-ba3a903bd717" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_97ebca82-dcce-4ecc-b6e5-43c2e0bddd19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_f3f53693-ef70-4db5-af56-ba3a903bd717" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e9127bc9-98d1-4b30-b43b-e4e3abbdccfc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_97ebca82-dcce-4ecc-b6e5-43c2e0bddd19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e9127bc9-98d1-4b30-b43b-e4e3abbdccfc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataMovementinStandardProductWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#SupplementalFinancialStatementDataMovementinStandardProductWarrantyAccrualDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataMovementinStandardProductWarrantyAccrualDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20200703.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_87af1612-244e-4cc8-8497-935538f12a97" 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_66757692-01df-4602-a3b4-2acae29b3f7b" 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_87af1612-244e-4cc8-8497-935538f12a97" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_66757692-01df-4602-a3b4-2acae29b3f7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_a845fa43-e16a-4550-8c08-a8254117878f" 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_87af1612-244e-4cc8-8497-935538f12a97" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_a845fa43-e16a-4550-8c08-a8254117878f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20200703.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_e9b429cf-5a08-425b-a8ed-fa4d8b0fbf2f" 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_f46d0b75-e55c-4f7e-8509-ad87a05d2b96" 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_e9b429cf-5a08-425b-a8ed-fa4d8b0fbf2f" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_f46d0b75-e55c-4f7e-8509-ad87a05d2b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_3c2ede86-6cdd-4308-b7df-1280f39aef2e" xlink:href="wdc-20200703.xsd#wdc_OtherMiscellaniousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_e9b429cf-5a08-425b-a8ed-fa4d8b0fbf2f" xlink:to="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_3c2ede86-6cdd-4308-b7df-1280f39aef2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_455e11d7-2917-460d-a0c1-01f59e1a5a6d" 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_e9b429cf-5a08-425b-a8ed-fa4d8b0fbf2f" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_455e11d7-2917-460d-a0c1-01f59e1a5a6d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.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_AssetsFairValueDisclosure_03760215-9bd4-4678-a7eb-dae7c09f1d90" 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_5a97b712-1d31-4385-90bb-002bcb94ca44" 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_03760215-9bd4-4678-a7eb-dae7c09f1d90" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5a97b712-1d31-4385-90bb-002bcb94ca44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_a32d88e7-f798-4cfd-b670-51bb954195a0" 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_03760215-9bd4-4678-a7eb-dae7c09f1d90" xlink:to="loc_us-gaap_DerivativeAssets_a32d88e7-f798-4cfd-b670-51bb954195a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#DerivativesInstrumentsandHedgingActivities"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Debt" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.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_5b2c8cf2-7485-4ccd-a517-e7c15b69bbab" 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_DebtInstrumentFaceAmount_6d98ad2d-91a1-48bb-984a-7174b2efc6ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_5b2c8cf2-7485-4ccd-a517-e7c15b69bbab" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_6d98ad2d-91a1-48bb-984a-7174b2efc6ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_495491d7-6630-44e1-a9c5-e9a749456189" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_5b2c8cf2-7485-4ccd-a517-e7c15b69bbab" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_495491d7-6630-44e1-a9c5-e9a749456189" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20200703.xsd#DebtScheduleofDebtDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_f2ae910a-5d0d-48a0-815d-f2dae444c579" 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_3526cac7-c7ba-4053-9547-9e1f0582b5c3" 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_f2ae910a-5d0d-48a0-815d-f2dae444c579" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_3526cac7-c7ba-4053-9547-9e1f0582b5c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_c765ecb4-8ea5-4187-a0a4-dd699388f42e" 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_f2ae910a-5d0d-48a0-815d-f2dae444c579" xlink:to="loc_us-gaap_LongTermDebtCurrent_c765ecb4-8ea5-4187-a0a4-dd699388f42e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#DebtAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#DebtDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_5b6422ed-a681-439e-be3c-f388ee873745" 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_DebtInstrumentCarryingAmount_d9469a2a-74fd-467d-9ad5-6f95eeb233bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_5b6422ed-a681-439e-be3c-f388ee873745" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_d9469a2a-74fd-467d-9ad5-6f95eeb233bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_bae66f83-fdaa-4d02-9321-dedf4effcc38" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_5b6422ed-a681-439e-be3c-f388ee873745" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_bae66f83-fdaa-4d02-9321-dedf4effcc38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_71653bae-30ec-432c-a119-e17cc7b8edb7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_71653bae-30ec-432c-a119-e17cc7b8edb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fcdcbb7d-8e83-45ae-9e68-9b4ee78b147c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fcdcbb7d-8e83-45ae-9e68-9b4ee78b147c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8f13a119-a88b-4d33-9048-aa1960455738" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8f13a119-a88b-4d33-9048-aa1960455738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_b6aa7e7b-01a6-48f7-a1b7-df36c727404f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_b6aa7e7b-01a6-48f7-a1b7-df36c727404f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter_5ad86cf2-a4e3-4a34-aadb-e1a3a636c2d3" xlink:href="wdc-20200703.xsd#wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_319455f0-42a0-4dfc-8beb-4e73b7c4d546" xlink:to="loc_wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter_5ad86cf2-a4e3-4a34-aadb-e1a3a636c2d3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlans" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#PensionsandOtherPostretirementBenefitPlansTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20200703.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_e47abbb1-b37f-4925-9a67-148e8d3b6d48" 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_DefinedBenefitPlanFairValueOfPlanAssets_65f45960-3a82-4d28-b7c7-3666cbb99591" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_e47abbb1-b37f-4925-9a67-148e8d3b6d48" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_65f45960-3a82-4d28-b7c7-3666cbb99591" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_61fe0a61-524b-417b-b3f9-93149d27ca45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_e47abbb1-b37f-4925-9a67-148e8d3b6d48" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_61fe0a61-524b-417b-b3f9-93149d27ca45" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20200703.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_2df4f927-06ec-40a5-a76c-8580cd69164e" 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_da30b827-f27b-4967-8531-5e4637930136" 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_2df4f927-06ec-40a5-a76c-8580cd69164e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_da30b827-f27b-4967-8531-5e4637930136" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_343f536a-0dd6-4666-8400-066c7a6b26c9" 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_2df4f927-06ec-40a5-a76c-8580cd69164e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_343f536a-0dd6-4666-8400-066c7a6b26c9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#PensionsandOtherPostretirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20200703.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_af12bd1e-3dfc-45c0-a7ba-9d50afdb309c" xlink:href="wdc-20200703.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_421400a4-0d3a-427e-b15f-9d2473556c7c" 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_af12bd1e-3dfc-45c0-a7ba-9d50afdb309c" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_421400a4-0d3a-427e-b15f-9d2473556c7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_2cc77a5e-ae9d-476c-832a-2e790f3370ff" 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_af12bd1e-3dfc-45c0-a7ba-9d50afdb309c" xlink:to="loc_us-gaap_Investments_2cc77a5e-ae9d-476c-832a-2e790f3370ff" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.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_bed10a88-7b75-4958-8738-b23baea3d9de" 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_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_53e33609-4d77-40d2-8ac6-f631a226f4ed" xlink:href="wdc-20200703.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_53e33609-4d77-40d2-8ac6-f631a226f4ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8a5c4f75-1bc6-4e41-aa7f-a0ba1c80d134" xlink:href="wdc-20200703.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_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8a5c4f75-1bc6-4e41-aa7f-a0ba1c80d134" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_23c4bdeb-26fb-4ca5-98ea-6c7c0819147d" xlink:href="wdc-20200703.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_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_23c4bdeb-26fb-4ca5-98ea-6c7c0819147d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_822ff81c-729b-4342-b1c8-c1eb37392bd6" xlink:href="wdc-20200703.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_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_822ff81c-729b-4342-b1c8-c1eb37392bd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_88392085-33a3-4e39-bf40-34e5c6f9c020" xlink:href="wdc-20200703.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_88392085-33a3-4e39-bf40-34e5c6f9c020" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_40bfe41f-eb59-4397-9a26-ea8a23e70688" xlink:href="wdc-20200703.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_bed10a88-7b75-4958-8738-b23baea3d9de" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_40bfe41f-eb59-4397-9a26-ea8a23e70688" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.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_aeadb8c7-c525-46cd-b017-75c6f96dc7c8" 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_75014ccd-a6ae-457e-840b-7569bb0f0221" 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_aeadb8c7-c525-46cd-b017-75c6f96dc7c8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_75014ccd-a6ae-457e-840b-7569bb0f0221" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_b653aa7f-7550-4c4a-8509-826b2960ac10" 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_aeadb8c7-c525-46cd-b017-75c6f96dc7c8" xlink:to="loc_us-gaap_OperatingLeaseLiability_b653aa7f-7550-4c4a-8509-826b2960ac10" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsRentExpenseNetDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#LeasesandOtherCommitmentsRentExpenseNetDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsRentExpenseNetDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20200703.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_3a8bc935-eb93-4623-9731-73fc9741c75d" 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_PurchaseObligationDueAfterFifthYear_dd019e88-07b3-4a7e-93cd-780c35e6e097" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_dd019e88-07b3-4a7e-93cd-780c35e6e097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_40ca8a92-0f71-4654-a8f5-09dea9a98300" 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_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_40ca8a92-0f71-4654-a8f5-09dea9a98300" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_b5d5d782-2691-420c-912f-861affe961f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_b5d5d782-2691-420c-912f-861affe961f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_84514798-caa9-44a4-b235-083ad794bf9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_84514798-caa9-44a4-b235-083ad794bf9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_18b58354-3460-4490-bdc7-ea37b814925f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_18b58354-3460-4490-bdc7-ea37b814925f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_df3b0e23-b111-4dfa-bd32-264fc5d926a7" 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_3a8bc935-eb93-4623-9731-73fc9741c75d" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_df3b0e23-b111-4dfa-bd32-264fc5d926a7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#LeasesandOtherCommitmentsAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRisk" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRisk"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRisk" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskTables" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyEndMarketandFormFactorDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyEndMarketandFormFactorDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyEndMarketandFormFactorDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyGeographyDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyGeographyDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskRevenuebyGeographyDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskLonglivedAssetsbyGeographyDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskLonglivedAssetsbyGeographyDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskLonglivedAssetsbyGeographyDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessSegmentRevenueInformationGeographicInformationandConcentrationofRiskAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/WesternDigitalCorporation401kPlan" xlink:type="simple" xlink:href="wdc-20200703.xsd#WesternDigitalCorporation401kPlan"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/WesternDigitalCorporation401kPlan" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/WesternDigitalCorporation401kPlanAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#WesternDigitalCorporation401kPlanAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/WesternDigitalCorporation401kPlanAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#ShareholdersEquityTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity2017PerformanceIncentivePlanandESPPDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#ShareholdersEquity2017PerformanceIncentivePlanandESPPDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquity2017PerformanceIncentivePlanandESPPDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20200703.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_c164f822-54f7-4c68-8fb1-638561011ecd" 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_fae7aaaa-6025-4ab2-9ee5-23d7bd77ddc0" 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_c164f822-54f7-4c68-8fb1-638561011ecd" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_fae7aaaa-6025-4ab2-9ee5-23d7bd77ddc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_f6f68203-36b3-4d60-8506-054b7f91393d" 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_c164f822-54f7-4c68-8fb1-638561011ecd" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_f6f68203-36b3-4d60-8506-054b7f91393d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#ShareholdersEquityFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockRepurchaseProgramDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#ShareholdersEquityStockRepurchaseProgramDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockRepurchaseProgramDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#ShareholdersEquityStockReservedforIssuanceDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockReservedforIssuanceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#ShareholdersEquityDividendsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#IncomeTaxExpenseTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_067860e4-7308-4ff5-b294-44f08e62b1b0" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_6f0ac327-1189-45f5-a25e-65a891df447e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_067860e4-7308-4ff5-b294-44f08e62b1b0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_6f0ac327-1189-45f5-a25e-65a891df447e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_289b70e9-e1c0-4d66-a5de-76d4aaf5acc0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_067860e4-7308-4ff5-b294-44f08e62b1b0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_289b70e9-e1c0-4d66-a5de-76d4aaf5acc0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_6dd2e833-a7da-4e9b-92c4-e3177449e531" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_0f1546a5-0359-41ea-80a3-f8aa45c28ae6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_6dd2e833-a7da-4e9b-92c4-e3177449e531" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_0f1546a5-0359-41ea-80a3-f8aa45c28ae6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d01d58fa-f4d4-4b79-ae6e-d126ab4fcecc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_6dd2e833-a7da-4e9b-92c4-e3177449e531" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d01d58fa-f4d4-4b79-ae6e-d126ab4fcecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_46a33c64-e6ea-403a-879e-eeaa4d0f04c0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_abcd542b-79fc-4445-a463-3f5663ed6697" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_46a33c64-e6ea-403a-879e-eeaa4d0f04c0" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_abcd542b-79fc-4445-a463-3f5663ed6697" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e91f8673-bcf9-49d8-b511-dbb3f0dd6d83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_46a33c64-e6ea-403a-879e-eeaa4d0f04c0" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e91f8673-bcf9-49d8-b511-dbb3f0dd6d83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_7152e1c8-9c9f-47de-91cd-9a34a1cfe109" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_46a33c64-e6ea-403a-879e-eeaa4d0f04c0" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_7152e1c8-9c9f-47de-91cd-9a34a1cfe109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_459fba65-1087-431d-94f4-027fdbfec78a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_81fa96e5-388b-4bb5-a7c4-5d12e1b1a8f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_459fba65-1087-431d-94f4-027fdbfec78a" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_81fa96e5-388b-4bb5-a7c4-5d12e1b1a8f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_7a3b0371-d70c-4890-867a-40f97613d3bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_459fba65-1087-431d-94f4-027fdbfec78a" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_7a3b0371-d70c-4890-867a-40f97613d3bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_19b012ce-b584-470e-87b8-80ad01d97521" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_459fba65-1087-431d-94f4-027fdbfec78a" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_19b012ce-b584-470e-87b8-80ad01d97521" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_93f74bb8-bd8e-41ee-8efa-948a2771bc70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_cc58acc0-68a0-4702-9597-37df3ef55527" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_93f74bb8-bd8e-41ee-8efa-948a2771bc70" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_cc58acc0-68a0-4702-9597-37df3ef55527" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_c366b45e-a41f-4e57-9eb8-ea209498c772" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_93f74bb8-bd8e-41ee-8efa-948a2771bc70" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_c366b45e-a41f-4e57-9eb8-ea209498c772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_afdd36af-98dd-479c-b789-c6c80da2998f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_93f74bb8-bd8e-41ee-8efa-948a2771bc70" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_afdd36af-98dd-479c-b789-c6c80da2998f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_9cba9d45-280e-4d5f-b336-cb22dbd35ed5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_9cba9d45-280e-4d5f-b336-cb22dbd35ed5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_bd8a270b-08c4-4592-83e7-b80eca499aeb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_bd8a270b-08c4-4592-83e7-b80eca499aeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_132f2c0b-76fc-425e-bb7b-1c6fda1c0664" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_132f2c0b-76fc-425e-bb7b-1c6fda1c0664" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_789e3912-4087-4902-96bd-5156bbc0bedc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_789e3912-4087-4902-96bd-5156bbc0bedc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_9fa21561-62e6-4adc-a7c9-6adc2337951f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_9fa21561-62e6-4adc-a7c9-6adc2337951f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_b62bf2d4-8d3f-4db3-b8d4-9b60d90ac7a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d31c2a18-acc9-4509-a7e4-ce7ac6624e93" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_b62bf2d4-8d3f-4db3-b8d4-9b60d90ac7a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_d7f1be1a-4459-471e-a766-4f5095457091" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_592f6445-84c4-492e-a170-2e51ceefc154" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_d7f1be1a-4459-471e-a766-4f5095457091" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_592f6445-84c4-492e-a170-2e51ceefc154" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_433e6cdc-b80a-42a3-bcc1-72564b10da3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_d7f1be1a-4459-471e-a766-4f5095457091" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_433e6cdc-b80a-42a3-bcc1-72564b10da3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c35c0d22-6c4d-4830-8a14-8608397e84ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_d7f1be1a-4459-471e-a766-4f5095457091" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c35c0d22-6c4d-4830-8a14-8608397e84ea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_ac7d0e75-f236-47ee-a969-932ec1a6986a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_ac7d0e75-f236-47ee-a969-932ec1a6986a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_98eb7dec-2ebb-4d68-b129-072f3976f53a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_98eb7dec-2ebb-4d68-b129-072f3976f53a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_f015d510-16a7-4c85-87bd-7591e42ea059" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_f015d510-16a7-4c85-87bd-7591e42ea059" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_4f81337e-f690-4cc0-922d-5e0ca0f1ae2f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_4f81337e-f690-4cc0-922d-5e0ca0f1ae2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_7b593b7e-6175-469a-8e03-8c7b05a1dd3a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_7b593b7e-6175-469a-8e03-8c7b05a1dd3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_86b42969-9041-48cf-a9ba-fc5715f9feb8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_86b42969-9041-48cf-a9ba-fc5715f9feb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_351e1903-fecc-4ee6-b21b-27eb57a9ceb8" xlink:href="wdc-20200703.xsd#wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_351e1903-fecc-4ee6-b21b-27eb57a9ceb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_260e4fa7-0bfa-44ef-b42d-1ec30813d5bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_260e4fa7-0bfa-44ef-b42d-1ec30813d5bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_a2ae26bd-6725-4376-bbc7-01503ea23ca8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_a2ae26bd-6725-4376-bbc7-01503ea23ca8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_a79447f4-0b1b-4552-87f8-16e7e12f7523" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_a79447f4-0b1b-4552-87f8-16e7e12f7523" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent_7f18e5e7-b487-4efb-8291-2ae813181679" xlink:href="wdc-20200703.xsd#wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent_7f18e5e7-b487-4efb-8291-2ae813181679" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent_98d653d2-f430-4953-a8c9-478b15fe9577" xlink:href="wdc-20200703.xsd#wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent_98d653d2-f430-4953-a8c9-478b15fe9577" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_6c8b2f4f-cda1-4f12-a80d-5fa795e543ce" xlink:href="wdc-20200703.xsd#wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_6c8b2f4f-cda1-4f12-a80d-5fa795e543ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent_645daf2e-00f6-4a2f-946a-629e295996c3" xlink:href="wdc-20200703.xsd#wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_ff22779d-7424-4bcb-81d2-d321b5524fd3" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent_645daf2e-00f6-4a2f-946a-629e295996c3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseNOLCarryforwardDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseNOLCarryforwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseNOLCarryforwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseUnrecognizedTaxBenefitsDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#IncomeTaxExpenseUnrecognizedTaxBenefitsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseUnrecognizedTaxBenefitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#NetIncomeLossPerCommonShareTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_f06125de-f1ed-4cee-b064-0f6f8f51f0e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_b5340495-e104-49a4-97e2-18ad71e67b64" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_f06125de-f1ed-4cee-b064-0f6f8f51f0e6" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_b5340495-e104-49a4-97e2-18ad71e67b64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_33275fc1-8862-45d0-a3df-641038322e7c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_f06125de-f1ed-4cee-b064-0f6f8f51f0e6" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_33275fc1-8862-45d0-a3df-641038322e7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.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-20200703.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20200703.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-20200703.xsd#LegalProceedings"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/QuarterlyResultsofOperationsunaudited" xlink:type="simple" xlink:href="wdc-20200703.xsd#QuarterlyResultsofOperationsunaudited"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/QuarterlyResultsofOperationsunaudited" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/QuarterlyResultsofOperationsunauditedTables" xlink:type="simple" xlink:href="wdc-20200703.xsd#QuarterlyResultsofOperationsunauditedTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/QuarterlyResultsofOperationsunauditedTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/QuarterlyResultsofOperationsunauditedSummaryofQuarterlyResultsDetails" xlink:type="simple" xlink:href="wdc-20200703.xsd#QuarterlyResultsofOperationsunauditedSummaryofQuarterlyResultsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/QuarterlyResultsofOperationsunauditedSummaryofQuarterlyResultsDetails" xlink:type="extended"/>
</link:linkbase>
