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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:72109764-c3c9-4861-8be7-bc29c11ef61a,g:abd4d8fa-9c36-4771-8e9f-c58aef82a0dc-->
<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-20200403.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7896ee93-2e63-4f06-82b4-e9f9795a4612" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_ef27184c-a0ee-4d10-abdb-cfd715517a95" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_7896ee93-2e63-4f06-82b4-e9f9795a4612" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_ef27184c-a0ee-4d10-abdb-cfd715517a95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_d9c82f1c-5b66-4aff-8835-abe46990adff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_7896ee93-2e63-4f06-82b4-e9f9795a4612" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_d9c82f1c-5b66-4aff-8835-abe46990adff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_cd88c884-94fa-4dd3-9069-888226abdc01" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_7896ee93-2e63-4f06-82b4-e9f9795a4612" xlink:to="loc_us-gaap_LiabilitiesCurrent_cd88c884-94fa-4dd3-9069-888226abdc01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_5cf4602f-426e-44a8-b16b-adb43c7c40a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_fba3cd68-74b9-46a9-867e-33b15291136e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_5cf4602f-426e-44a8-b16b-adb43c7c40a0" xlink:to="loc_us-gaap_StockholdersEquity_fba3cd68-74b9-46a9-867e-33b15291136e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7efcf330-ef8e-4772-8ca8-e7ef395f8284" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_5cf4602f-426e-44a8-b16b-adb43c7c40a0" xlink:to="loc_us-gaap_Liabilities_7efcf330-ef8e-4772-8ca8-e7ef395f8284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_c5c89bf9-5831-4ad3-9c6b-72b70b6338c7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_5cf4602f-426e-44a8-b16b-adb43c7c40a0" xlink:to="loc_us-gaap_CommitmentsAndContingencies_c5c89bf9-5831-4ad3-9c6b-72b70b6338c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_e175bd5b-6b66-4d71-8cc8-4ed9e8d70785" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_f064270c-4667-4687-aa7d-357455d7513d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e175bd5b-6b66-4d71-8cc8-4ed9e8d70785" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_f064270c-4667-4687-aa7d-357455d7513d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_160841df-3b9a-46a8-9e1e-ad732c2dd943" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e175bd5b-6b66-4d71-8cc8-4ed9e8d70785" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_160841df-3b9a-46a8-9e1e-ad732c2dd943" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_53dd689b-d9f4-4d20-b98f-c3514bf14a6b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e175bd5b-6b66-4d71-8cc8-4ed9e8d70785" xlink:to="loc_us-gaap_OtherAssetsCurrent_53dd689b-d9f4-4d20-b98f-c3514bf14a6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_2a490aee-812d-462e-b1dc-21993cf5947f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_e175bd5b-6b66-4d71-8cc8-4ed9e8d70785" xlink:to="loc_us-gaap_InventoryNet_2a490aee-812d-462e-b1dc-21993cf5947f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_c40eeae9-0e68-4f11-a842-a749e5a4d5e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_c40eeae9-0e68-4f11-a842-a749e5a4d5e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_d6644329-468d-411a-9b39-9d59c6ad9fee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_d6644329-468d-411a-9b39-9d59c6ad9fee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_5e67296d-6ac5-4e88-873b-a0ef233bfeb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:to="loc_us-gaap_LongTermDebtCurrent_5e67296d-6ac5-4e88-873b-a0ef233bfeb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_d1194d8b-6b91-4de8-ac11-4c7acc51aef7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:to="loc_us-gaap_AccountsPayableCurrent_d1194d8b-6b91-4de8-ac11-4c7acc51aef7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_077053a4-12ef-4161-b541-5344f9f317d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_b3930f38-cfbc-47ce-a133-b416d083e7e7" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_077053a4-12ef-4161-b541-5344f9f317d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_75adc118-0840-4b79-b746-14fdaf94b362" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_550152ec-011b-4d52-bc16-95fbb8561b64" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_us-gaap_PreferredStockValue_550152ec-011b-4d52-bc16-95fbb8561b64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CommonStockValues_877715ab-f536-4063-8908-c5312a8903e4" xlink:href="wdc-20200403.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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_wdc_CommonStockValues_877715ab-f536-4063-8908-c5312a8903e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_9ff272f5-bc89-464d-909a-c58156702b5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_us-gaap_AdditionalPaidInCapital_9ff272f5-bc89-464d-909a-c58156702b5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_cf76a826-d8a5-4e3c-8af6-be4e121c12bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_cf76a826-d8a5-4e3c-8af6-be4e121c12bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_67e64fe5-4e17-4d25-a334-20347e1af967" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_67e64fe5-4e17-4d25-a334-20347e1af967" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_379cd01f-dd04-47ad-ba59-c964848fdb51" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_75adc118-0840-4b79-b746-14fdaf94b362" xlink:to="loc_us-gaap_TreasuryStockValue_379cd01f-dd04-47ad-ba59-c964848fdb51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_bae2f358-6804-4fd9-864f-e46fc26c677a" xlink:href="wdc-20200403.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_bae2f358-6804-4fd9-864f-e46fc26c677a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_7311c876-d931-4510-898c-f5eddd60899a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_7311c876-d931-4510-898c-f5eddd60899a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4b896650-4a19-48bf-b298-fa1dd4679e1d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4b896650-4a19-48bf-b298-fa1dd4679e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_501c8c8a-5551-47f1-8c7a-0ab8e735f96f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_501c8c8a-5551-47f1-8c7a-0ab8e735f96f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4f975f47-9913-4cfc-a0bd-f9209d68e770" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_us-gaap_Goodwill_4f975f47-9913-4cfc-a0bd-f9209d68e770" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a73c6946-6bf0-46a9-a24d-4aa696237c84" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_e0122ac3-7b57-4cd8-b947-d4da66920b7b" xlink:to="loc_us-gaap_AssetsCurrent_a73c6946-6bf0-46a9-a24d-4aa696237c84" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_cfca4447-8b51-4cca-b324-27837552a7ab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_48a8da00-092a-4537-86b0-003c46158ad3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_cfca4447-8b51-4cca-b324-27837552a7ab" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_48a8da00-092a-4537-86b0-003c46158ad3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_3bb53e80-1f50-4f0d-a069-450b8851b7f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_cfca4447-8b51-4cca-b324-27837552a7ab" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_3bb53e80-1f50-4f0d-a069-450b8851b7f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6e08437a-5520-43c5-9777-92c80817111f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_e23b6b74-fb34-4660-a0b3-28f1275dc001" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6e08437a-5520-43c5-9777-92c80817111f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_e23b6b74-fb34-4660-a0b3-28f1275dc001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_99b2d7dc-54b3-45b2-aab4-bfca40b51467" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6e08437a-5520-43c5-9777-92c80817111f" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_99b2d7dc-54b3-45b2-aab4-bfca40b51467" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_40ac2576-971f-43a3-9741-ba8655e8123c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_930e52aa-e3cc-4917-832c-76cda54bf89f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_40ac2576-971f-43a3-9741-ba8655e8123c" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_930e52aa-e3cc-4917-832c-76cda54bf89f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_8861269d-18c6-4813-a332-a6e1e76ad31c" xlink:href="wdc-20200403.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_40ac2576-971f-43a3-9741-ba8655e8123c" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_8861269d-18c6-4813-a332-a6e1e76ad31c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_819da272-cbae-436e-b8e7-974cddc5f9c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_40ac2576-971f-43a3-9741-ba8655e8123c" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_819da272-cbae-436e-b8e7-974cddc5f9c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_157281a0-7bd5-4ed5-bf08-cd5b6a48b734" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_dd55cc1a-1651-45df-917a-6e750d0b587a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_157281a0-7bd5-4ed5-bf08-cd5b6a48b734" xlink:to="loc_us-gaap_OperatingIncomeLoss_dd55cc1a-1651-45df-917a-6e750d0b587a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_9de311e3-29d6-4297-9baa-2d68b722a1cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_157281a0-7bd5-4ed5-bf08-cd5b6a48b734" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_9de311e3-29d6-4297-9baa-2d68b722a1cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_164fd17a-2986-4493-87eb-9a137ce9fba9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_450ef6d6-77af-4e25-a58b-fe0078bc6de9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_164fd17a-2986-4493-87eb-9a137ce9fba9" xlink:to="loc_us-gaap_InvestmentIncomeInterest_450ef6d6-77af-4e25-a58b-fe0078bc6de9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_9dab2ee0-ee11-48db-8367-b6c58e9f9a64" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_164fd17a-2986-4493-87eb-9a137ce9fba9" xlink:to="loc_us-gaap_InterestExpense_9dab2ee0-ee11-48db-8367-b6c58e9f9a64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_5d443c2b-c98c-476a-a2b8-2220e1698604" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_164fd17a-2986-4493-87eb-9a137ce9fba9" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_5d443c2b-c98c-476a-a2b8-2220e1698604" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_bf75851b-9748-42a4-b163-96f207a1d25f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_9f879b7b-c22d-4931-b67b-9ef3452addac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_bf75851b-9748-42a4-b163-96f207a1d25f" xlink:to="loc_us-gaap_OperatingExpenses_9f879b7b-c22d-4931-b67b-9ef3452addac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_d2900654-eb95-4e20-b4db-dd5bb789e37a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_bf75851b-9748-42a4-b163-96f207a1d25f" xlink:to="loc_us-gaap_GrossProfit_d2900654-eb95-4e20-b4db-dd5bb789e37a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_7f14815b-aea5-445c-9801-69e2c1d986d5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d35efb37-eaf9-49b6-b9df-07fd6a6caa5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_7f14815b-aea5-445c-9801-69e2c1d986d5" xlink:to="loc_us-gaap_NetIncomeLoss_d35efb37-eaf9-49b6-b9df-07fd6a6caa5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1a4f6b49-edfa-46c6-92a2-48181c9a6093" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_7f14815b-aea5-445c-9801-69e2c1d986d5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1a4f6b49-edfa-46c6-92a2-48181c9a6093" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_eb1fa42e-457b-489d-85e7-65f279d551b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_92836ce4-bd4d-451b-a374-2916b25eb4f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_eb1fa42e-457b-489d-85e7-65f279d551b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_92836ce4-bd4d-451b-a374-2916b25eb4f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_bee2143b-fef2-4233-937e-f6b88109c1f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_eb1fa42e-457b-489d-85e7-65f279d551b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_bee2143b-fef2-4233-937e-f6b88109c1f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_278c69de-d19f-4837-a5a7-79867b4827a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9f47e646-acc3-4def-a750-36de5382d5e9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_278c69de-d19f-4837-a5a7-79867b4827a8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9f47e646-acc3-4def-a750-36de5382d5e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_c12a569f-5c9f-4261-a4ae-b36ae69608bf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_278c69de-d19f-4837-a5a7-79867b4827a8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_c12a569f-5c9f-4261-a4ae-b36ae69608bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_60e4efee-3911-43b0-bb42-0b9459399f18" xlink:href="wdc-20200403.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_278c69de-d19f-4837-a5a7-79867b4827a8" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_60e4efee-3911-43b0-bb42-0b9459399f18" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_07b7a744-41f4-4163-a41c-b488b2080325" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_07b7a744-41f4-4163-a41c-b488b2080325" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_0c768ec0-98ec-4e55-bb52-086e83f37304" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_0c768ec0-98ec-4e55-bb52-086e83f37304" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8a190cdb-9f30-4563-8016-18d830ae915f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8a190cdb-9f30-4563-8016-18d830ae915f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_40de267e-ab36-473f-b258-b555d8b6058e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_40de267e-ab36-473f-b258-b555d8b6058e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_527d2de9-a748-47a8-b5b4-bedac1da3558" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_527d2de9-a748-47a8-b5b4-bedac1da3558" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_b1aa46aa-8b15-432a-bb20-d2e84dc01b59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_b1aa46aa-8b15-432a-bb20-d2e84dc01b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_75e9b406-8fab-485e-ad8f-1780e08ee03b" xlink:href="wdc-20200403.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_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_75e9b406-8fab-485e-ad8f-1780e08ee03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_47cebf3f-01ee-4c4a-8078-656e6c9fa50f" xlink:href="wdc-20200403.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_47cebf3f-01ee-4c4a-8078-656e6c9fa50f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_d522195e-40f4-47a4-8836-4741307694a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_da9680e8-8b91-4778-9bef-c519d6861b41" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_d522195e-40f4-47a4-8836-4741307694a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_90d1f2a2-8a54-4f96-8517-d3c2df831b43" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_90d1f2a2-8a54-4f96-8517-d3c2df831b43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_da5db9ce-0f63-40f8-9ae1-72549d346a0f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_da5db9ce-0f63-40f8-9ae1-72549d346a0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_d29e0dd1-7116-48f2-b233-7987405dec9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_d29e0dd1-7116-48f2-b233-7987405dec9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_b70bcc10-a599-4aed-aa4a-e890c56007ea" xlink:href="wdc-20200403.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_b70bcc10-a599-4aed-aa4a-e890c56007ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c0c91b1e-0ac4-4379-8842-8c83d2c731c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c0c91b1e-0ac4-4379-8842-8c83d2c731c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_211ddc54-2031-4d56-b57e-a8395ad84a67" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cc1aaf13-7639-4ec9-8011-8cbd7eac4d3f" xlink:to="loc_us-gaap_PaymentsOfDividends_211ddc54-2031-4d56-b57e-a8395ad84a67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_1afbdf95-39d7-4c18-b31e-ec60e73ca4dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_NetIncomeLoss_1afbdf95-39d7-4c18-b31e-ec60e73ca4dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_463749f3-891e-44a8-81f6-f789590d74f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_DepreciationAndAmortization_463749f3-891e-44a8-81f6-f789590d74f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_920ca3ec-1fd8-4f90-a6c8-fbcc17c56213" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_ShareBasedCompensation_920ca3ec-1fd8-4f90-a6c8-fbcc17c56213" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0026de4-5ecd-4a32-bee2-3cbd72d5c939" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0026de4-5ecd-4a32-bee2-3cbd72d5c939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_c2dbcb93-7dad-439b-88ee-9f24c8c022de" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_c2dbcb93-7dad-439b-88ee-9f24c8c022de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_426ae391-a998-4f28-8d7e-ef923ca1f008" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_426ae391-a998-4f28-8d7e-ef923ca1f008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_eaa389a9-c805-437c-a15c-c6f1e5274a17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_eaa389a9-c805-437c-a15c-c6f1e5274a17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_c976c7b5-d300-4eac-91ca-b8431e5cc02f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_c976c7b5-d300-4eac-91ca-b8431e5cc02f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_bf914124-ee6e-4b3a-a75b-e440fe6febc2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_bf914124-ee6e-4b3a-a75b-e440fe6febc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_6caf8c6c-189d-4a91-bbd4-f89cb7389fee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_6caf8c6c-189d-4a91-bbd4-f89cb7389fee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_f57badfa-3257-44fb-a4cb-c84fb00ff559" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_f57badfa-3257-44fb-a4cb-c84fb00ff559" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_dd8096da-fa7a-4ec1-863c-9b4749234732" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_dd8096da-fa7a-4ec1-863c-9b4749234732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_e7fe9aeb-cd20-4da2-8372-ccd5e0edd5d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_e7fe9aeb-cd20-4da2-8372-ccd5e0edd5d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_a6dead73-cd32-4a60-9ec2-f9f61a34b239" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_91dc645f-375a-4a19-89b2-402f61dd254f" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_a6dead73-cd32-4a60-9ec2-f9f61a34b239" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_38722217-c9b2-4b9b-937d-cecef8e37742" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_603d08e8-9e10-4a9d-b248-d48da8cf0cdf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_38722217-c9b2-4b9b-937d-cecef8e37742" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_603d08e8-9e10-4a9d-b248-d48da8cf0cdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1fea847a-737e-4d5f-a4c8-db5a1f5cd656" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_38722217-c9b2-4b9b-937d-cecef8e37742" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1fea847a-737e-4d5f-a4c8-db5a1f5cd656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e5899964-8377-49fd-9777-1e40390f6364" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_38722217-c9b2-4b9b-937d-cecef8e37742" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e5899964-8377-49fd-9777-1e40390f6364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_bea65833-8f99-41cb-9832-e79628ec4d15" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_38722217-c9b2-4b9b-937d-cecef8e37742" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_bea65833-8f99-41cb-9832-e79628ec4d15" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofShareholdersEquity"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.xsd#OrganizationandBasisofPresentationPolicies"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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/RecentlyAccountingPronouncements" xlink:type="simple" xlink:href="wdc-20200403.xsd#RecentlyAccountingPronouncements"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RecentlyAccountingPronouncementsAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Revenues" xlink:type="simple" xlink:href="wdc-20200403.xsd#Revenues"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/Revenues" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesRevenueRemainingPerformanceObligationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesRevenueRemainingPerformanceObligationDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesDisaggregationofRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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-20200403.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_020911c9-98ff-4e10-8ded-964376be5d82" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_3f70eed4-6b6a-4573-92e1-7d2c96033f35" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_020911c9-98ff-4e10-8ded-964376be5d82" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_3f70eed4-6b6a-4573-92e1-7d2c96033f35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_859cd5ce-11af-4f67-9b30-dd902064826e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_020911c9-98ff-4e10-8ded-964376be5d82" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_859cd5ce-11af-4f67-9b30-dd902064826e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_19ab9a67-2774-475c-b002-580feb80cb23" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_020911c9-98ff-4e10-8ded-964376be5d82" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_19ab9a67-2774-475c-b002-580feb80cb23" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20200403.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_be029089-9430-46ec-bf00-e72d4ed224a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_26899e2c-d582-47ca-88b8-16730634f223" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_be029089-9430-46ec-bf00-e72d4ed224a1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_26899e2c-d582-47ca-88b8-16730634f223" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_fe06ce2e-0323-40a9-a096-5eaec2300a8d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_be029089-9430-46ec-bf00-e72d4ed224a1" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_fe06ce2e-0323-40a9-a096-5eaec2300a8d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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_e1d801e7-fe6f-49f0-915a-01689920cf34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_0e26d427-e03d-4542-b44b-b03fd0d37b7e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e1d801e7-fe6f-49f0-915a-01689920cf34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_0e26d427-e03d-4542-b44b-b03fd0d37b7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_6f5e2402-2f29-4877-ab57-4b887d8aaa37" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e1d801e7-fe6f-49f0-915a-01689920cf34" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_6f5e2402-2f29-4877-ab57-4b887d8aaa37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_482d9e0c-12ce-4a4d-8e2b-5f29da605d13" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e1d801e7-fe6f-49f0-915a-01689920cf34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_482d9e0c-12ce-4a4d-8e2b-5f29da605d13" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20200403.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_4f4c159b-4348-4e93-8659-0169fa44d0d8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_3d066df5-68d7-4ede-8542-7b6738c42086" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_4f4c159b-4348-4e93-8659-0169fa44d0d8" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_3d066df5-68d7-4ede-8542-7b6738c42086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_01bcb41a-a66c-40d6-95db-9a943b3be19c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_4f4c159b-4348-4e93-8659-0169fa44d0d8" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_01bcb41a-a66c-40d6-95db-9a943b3be19c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20200403.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_d4c6f135-7753-4ea7-bba3-b3f7d2bbb366" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_79b1c159-7f91-4348-9253-4cc6868efd91" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_d4c6f135-7753-4ea7-bba3-b3f7d2bbb366" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_79b1c159-7f91-4348-9253-4cc6868efd91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_fe043620-1f6b-4af9-a709-78c3f651d8f0" xlink:href="wdc-20200403.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_d4c6f135-7753-4ea7-bba3-b3f7d2bbb366" xlink:to="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_fe043620-1f6b-4af9-a709-78c3f651d8f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_979ab653-b4ba-4bf3-af61-17752fd2aa42" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_d4c6f135-7753-4ea7-bba3-b3f7d2bbb366" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_979ab653-b4ba-4bf3-af61-17752fd2aa42" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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-20200403.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_6cade557-832e-4e10-8581-0b1b448bc503" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_940d3417-65c6-4e9c-b504-3ea4ac026052" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6cade557-832e-4e10-8581-0b1b448bc503" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_940d3417-65c6-4e9c-b504-3ea4ac026052" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_95773eb7-4559-4a93-aea7-e178d5303dce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6cade557-832e-4e10-8581-0b1b448bc503" xlink:to="loc_us-gaap_DerivativeAssets_95773eb7-4559-4a93-aea7-e178d5303dce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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-20200403.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-20200403.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-20200403.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_a2b35877-441b-44d4-bb9e-dbdc81d90ff6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_43ca1ac0-f353-47fe-9f93-588cfcd7c151" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_a2b35877-441b-44d4-bb9e-dbdc81d90ff6" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_43ca1ac0-f353-47fe-9f93-588cfcd7c151" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_fd3b68a6-edfb-4144-97da-e25f4449783c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_a2b35877-441b-44d4-bb9e-dbdc81d90ff6" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_fd3b68a6-edfb-4144-97da-e25f4449783c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20200403.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_ad27bcf7-ed22-4a33-aa20-b593f0ba9c5c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_31456ff6-b864-4f76-8d26-68ed150f81aa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_ad27bcf7-ed22-4a33-aa20-b593f0ba9c5c" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_31456ff6-b864-4f76-8d26-68ed150f81aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_35407dfa-c681-4c1c-b06d-9de1c359276b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_ad27bcf7-ed22-4a33-aa20-b593f0ba9c5c" xlink:to="loc_us-gaap_LongTermDebtCurrent_35407dfa-c681-4c1c-b06d-9de1c359276b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#DebtAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlans" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.xsd#PensionsandOtherPostretirementBenefitPlansTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20200403.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_abb79728-6747-4303-ac99-29a013c3c1c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_801818ee-33c7-4ec8-805d-fdc245154d6a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_abb79728-6747-4303-ac99-29a013c3c1c0" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_801818ee-33c7-4ec8-805d-fdc245154d6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_047f8d6f-f23c-4a0d-8634-609a6d2a7920" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_abb79728-6747-4303-ac99-29a013c3c1c0" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_047f8d6f-f23c-4a0d-8634-609a6d2a7920" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20200403.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_9269695b-945a-45f7-9300-9ca0a81daa76" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_4be816aa-3e22-4ccc-b0dc-18fa7f98e9be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_9269695b-945a-45f7-9300-9ca0a81daa76" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_4be816aa-3e22-4ccc-b0dc-18fa7f98e9be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f927cb22-51b3-463f-9e8a-259e51625e87" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_9269695b-945a-45f7-9300-9ca0a81daa76" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f927cb22-51b3-463f-9e8a-259e51625e87" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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-20200403.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_a8da9cf8-19a6-4c75-af9f-18cbfaa39f36" xlink:href="wdc-20200403.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_5612a966-3a47-40c6-87ac-7dcd75861712" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_a8da9cf8-19a6-4c75-af9f-18cbfaa39f36" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_5612a966-3a47-40c6-87ac-7dcd75861712" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_54ac1acf-5e49-4af2-9c82-ebe945504f73" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_a8da9cf8-19a6-4c75-af9f-18cbfaa39f36" xlink:to="loc_us-gaap_Investments_54ac1acf-5e49-4af2-9c82-ebe945504f73" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_0b94a58a-ccd3-4b68-88d4-032b05d4c6ca" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_0b94a58a-ccd3-4b68-88d4-032b05d4c6ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8530fb40-9ca8-4abf-84f3-fddd4254dd90" xlink:href="wdc-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8530fb40-9ca8-4abf-84f3-fddd4254dd90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_bf920d42-c9ec-4518-8a3d-8032b3ab2ce9" xlink:href="wdc-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_bf920d42-c9ec-4518-8a3d-8032b3ab2ce9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_76a6cf2f-9fe3-4e47-a627-55ea2d0a7e92" xlink:href="wdc-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_76a6cf2f-9fe3-4e47-a627-55ea2d0a7e92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_e1676129-19d6-4c5b-80ff-f733aa60223b" xlink:href="wdc-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_e1676129-19d6-4c5b-80ff-f733aa60223b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_89ea8ef5-e628-4fcb-b89e-556ea6d81047" xlink:href="wdc-20200403.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_e722f855-4b53-4ba1-baf3-7c6afbb92776" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_89ea8ef5-e628-4fcb-b89e-556ea6d81047" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_8212909c-dcd3-439e-ad3d-f7cf4cb7df89" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_8212909c-dcd3-439e-ad3d-f7cf4cb7df89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_ae71bded-3ee4-4ccf-a2c9-523f23df03a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_ae71bded-3ee4-4ccf-a2c9-523f23df03a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_3ffcc7e4-3914-40f3-aab1-aedaf8398d33" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_3ffcc7e4-3914-40f3-aab1-aedaf8398d33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8b67c727-358f-4fef-aa0e-166d2ca17c08" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8b67c727-358f-4fef-aa0e-166d2ca17c08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_afbe660e-3e63-4acf-ab8a-9f76ac084f7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_afbe660e-3e63-4acf-ab8a-9f76ac084f7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_b5a0e754-c474-449e-8ed3-5d9e43977c5e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b35ac6a6-9fa7-48ee-9bc0-264726330d66" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_b5a0e754-c474-449e-8ed3-5d9e43977c5e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1636546c-7975-4bd3-b5ab-6dd06d665651" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a40828af-b0e3-45ff-9c2a-901a8b94359f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_1636546c-7975-4bd3-b5ab-6dd06d665651" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a40828af-b0e3-45ff-9c2a-901a8b94359f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_bfe4a9d4-970f-4f73-9890-39a887581d23" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_1636546c-7975-4bd3-b5ab-6dd06d665651" xlink:to="loc_us-gaap_OperatingLeaseLiability_bfe4a9d4-970f-4f73-9890-39a887581d23" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20200403.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_b559962f-7424-4626-a86b-8b943ea01402" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_a9295908-ca45-40a3-8738-61efc84e3f7c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_a9295908-ca45-40a3-8738-61efc84e3f7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_e2558aeb-5abc-45ad-b5a8-a01127449636" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_e2558aeb-5abc-45ad-b5a8-a01127449636" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_9299f3d9-2157-4262-9c7c-74cb4530d19c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_9299f3d9-2157-4262-9c7c-74cb4530d19c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_3492f5ac-95db-43b2-bf9e-62f3b340d659" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_3492f5ac-95db-43b2-bf9e-62f3b340d659" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationDueRemainderOfFiscalYear_5021184d-d37b-4a00-971a-8bb9afc0a46f" xlink:href="wdc-20200403.xsd#wdc_PurchaseObligationDueRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_wdc_PurchaseObligationDueRemainderOfFiscalYear_5021184d-d37b-4a00-971a-8bb9afc0a46f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_d84ade87-82ce-4922-b5f9-74d1b3750700" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b559962f-7424-4626-a86b-8b943ea01402" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_d84ade87-82ce-4922-b5f9-74d1b3750700" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.xsd#ShareholdersEquityTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20200403.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_b7bb9528-19f1-4a14-b1db-382f186a1708" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_91560859-0e83-4de5-abdb-aaa8878cb832" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_b7bb9528-19f1-4a14-b1db-382f186a1708" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_91560859-0e83-4de5-abdb-aaa8878cb832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_ac190727-9817-4129-a0ed-ce98cc38f061" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_b7bb9528-19f1-4a14-b1db-382f186a1708" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_ac190727-9817-4129-a0ed-ce98cc38f061" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityShareRepurchaseProgramDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.xsd#IncomeTaxExpenseTables"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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_9605f041-ebc6-4a65-9e46-50fb6bdd9243" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_90be2e9a-6391-4567-8fed-97eb9acb5933" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_9605f041-ebc6-4a65-9e46-50fb6bdd9243" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_90be2e9a-6391-4567-8fed-97eb9acb5933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9c4383fd-5f3b-4b83-914e-af70f8c3e1b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_9605f041-ebc6-4a65-9e46-50fb6bdd9243" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9c4383fd-5f3b-4b83-914e-af70f8c3e1b6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="simple" xlink:href="wdc-20200403.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-20200403.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-20200403.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-20200403.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-20200403.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-20200403.xsd#LegalProceedings"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended"/>
</link:linkbase>
