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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:92c5af94-88d6-4763-9570-7f4a5427c8a9,g:c97421f7-eb64-4a11-aebd-5231e2ce9cba-->
<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/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="wdc-20211001.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_AssetsCurrent_84fa7bc7-f94c-4938-9d00-6d0f82bb0cc7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_68b3b6b6-b102-4351-b83d-ebc0293374cc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_84fa7bc7-f94c-4938-9d00-6d0f82bb0cc7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_68b3b6b6-b102-4351-b83d-ebc0293374cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_4e3fd420-fa54-4e2e-b9dc-7202cd3a2b22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_84fa7bc7-f94c-4938-9d00-6d0f82bb0cc7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_4e3fd420-fa54-4e2e-b9dc-7202cd3a2b22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_2ba1ba18-ff80-4264-859c-0330991d0937" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_84fa7bc7-f94c-4938-9d00-6d0f82bb0cc7" xlink:to="loc_us-gaap_OtherAssetsCurrent_2ba1ba18-ff80-4264-859c-0330991d0937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_88e8510c-3f9c-47ef-b758-62a1fea540cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_84fa7bc7-f94c-4938-9d00-6d0f82bb0cc7" xlink:to="loc_us-gaap_InventoryNet_88e8510c-3f9c-47ef-b758-62a1fea540cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b30a02a5-6eb8-46eb-b160-ef67cc2ec6d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b30a02a5-6eb8-46eb-b160-ef67cc2ec6d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_2ee42fc0-436e-4e92-9212-97e4bae248d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_2ee42fc0-436e-4e92-9212-97e4bae248d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_e639c8b6-8852-4f7d-abf7-2aed1db958b4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:to="loc_us-gaap_LongTermDebtCurrent_e639c8b6-8852-4f7d-abf7-2aed1db958b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_ea131d25-5575-44d3-8f41-65f0eac102d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:to="loc_us-gaap_AccountsPayableCurrent_ea131d25-5575-44d3-8f41-65f0eac102d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_c5b77e39-7ab2-4f36-83be-2a2f5c9b6741" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_006bfa48-d317-4a86-999c-73fcbb0bf94e" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_c5b77e39-7ab2-4f36-83be-2a2f5c9b6741" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_387a0fe5-ada2-4916-94c0-fc44b1e279e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e931be17-b655-4aba-a82c-413159087f0f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_387a0fe5-ada2-4916-94c0-fc44b1e279e5" xlink:to="loc_us-gaap_StockholdersEquity_e931be17-b655-4aba-a82c-413159087f0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1a3aabae-b3eb-40b9-98f6-1dbb46e65814" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_387a0fe5-ada2-4916-94c0-fc44b1e279e5" xlink:to="loc_us-gaap_Liabilities_1a3aabae-b3eb-40b9-98f6-1dbb46e65814" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_9359c48d-98b6-41eb-bda6-7e9f7428bfa1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_387a0fe5-ada2-4916-94c0-fc44b1e279e5" xlink:to="loc_us-gaap_CommitmentsAndContingencies_9359c48d-98b6-41eb-bda6-7e9f7428bfa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ed89ac09-ab2c-46e3-b3a8-429bec709dac" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_924123a8-48ab-4486-9a1d-2439f801c494" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ed89ac09-ab2c-46e3-b3a8-429bec709dac" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_924123a8-48ab-4486-9a1d-2439f801c494" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_af7711c6-86f3-48cc-9be2-81a8a2857370" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ed89ac09-ab2c-46e3-b3a8-429bec709dac" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_af7711c6-86f3-48cc-9be2-81a8a2857370" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_1c1a7358-9dc1-4a7e-8696-9394cf0cc6a6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ed89ac09-ab2c-46e3-b3a8-429bec709dac" xlink:to="loc_us-gaap_LiabilitiesCurrent_1c1a7358-9dc1-4a7e-8696-9394cf0cc6a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_1146e195-fd1d-4b6e-b1e9-7afd03e334b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_us-gaap_AdditionalPaidInCapital_1146e195-fd1d-4b6e-b1e9-7afd03e334b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c7038092-8e36-4819-9ebf-5d8184426844" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c7038092-8e36-4819-9ebf-5d8184426844" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_39b73640-74ed-4630-b271-1581446cc7f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_us-gaap_TreasuryStockValue_39b73640-74ed-4630-b271-1581446cc7f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_76ecee30-28ff-43bd-8280-79df8d1b4752" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_76ecee30-28ff-43bd-8280-79df8d1b4752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CommonStockValues_ab993edd-8bee-4f60-be76-e8efaa0d5a4a" xlink:href="wdc-20211001.xsd#wdc_CommonStockValues"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_wdc_CommonStockValues_ab993edd-8bee-4f60-be76-e8efaa0d5a4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_88a23e68-ad6f-45e5-8d6b-3d990fe12227" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b7c6e36-6259-46d4-a7f4-b96f8c89a598" xlink:to="loc_us-gaap_PreferredStockValue_88a23e68-ad6f-45e5-8d6b-3d990fe12227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_48b8bac8-e56f-4e42-921d-438ae8d5c1ac" xlink:href="wdc-20211001.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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_48b8bac8-e56f-4e42-921d-438ae8d5c1ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_bd0c2c01-9ae6-47b0-b8bf-d96c2b61e7b3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_bd0c2c01-9ae6-47b0-b8bf-d96c2b61e7b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_cd553fa1-c1b9-4a1f-8cd6-67584458e842" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_cd553fa1-c1b9-4a1f-8cd6-67584458e842" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_b7a5bd34-520d-4497-9c90-7d3e2d795d95" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_b7a5bd34-520d-4497-9c90-7d3e2d795d95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1317a258-e7a0-4acc-8a66-d65d2041a0d3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_us-gaap_Goodwill_1317a258-e7a0-4acc-8a66-d65d2041a0d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a919ddc9-dd17-4610-8168-601b520cd613" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_468ccafb-3d89-4612-a44d-323443c6ddb1" xlink:to="loc_us-gaap_AssetsCurrent_a919ddc9-dd17-4610-8168-601b520cd613" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20211001.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_OperatingExpenses_d25b2d9c-2fd0-4c02-a315-45d8c2bbb5e2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_364532fa-0c56-4b68-ba65-0da66578d53a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d25b2d9c-2fd0-4c02-a315-45d8c2bbb5e2" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_364532fa-0c56-4b68-ba65-0da66578d53a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_bc2974c7-032f-41c5-ad1c-4d5b48baadc7" xlink:href="wdc-20211001.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_d25b2d9c-2fd0-4c02-a315-45d8c2bbb5e2" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_bc2974c7-032f-41c5-ad1c-4d5b48baadc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6ceae9e2-a2ce-4ca3-ba23-9a87129b6636" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d25b2d9c-2fd0-4c02-a315-45d8c2bbb5e2" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6ceae9e2-a2ce-4ca3-ba23-9a87129b6636" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_1feab095-d096-4536-8beb-2f467b29300f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_3f1f13d6-515a-48ce-b5ca-5d7299824c9b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_1feab095-d096-4536-8beb-2f467b29300f" xlink:to="loc_us-gaap_InvestmentIncomeInterest_3f1f13d6-515a-48ce-b5ca-5d7299824c9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_06dec0cc-41a6-42ed-81f3-1d0c935b1725" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_1feab095-d096-4536-8beb-2f467b29300f" xlink:to="loc_us-gaap_InterestExpense_06dec0cc-41a6-42ed-81f3-1d0c935b1725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_3472dbe8-e2b8-4f1f-8bb3-a0d27d4daa87" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_1feab095-d096-4536-8beb-2f467b29300f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_3472dbe8-e2b8-4f1f-8bb3-a0d27d4daa87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b522e72c-d0f4-415a-b9ae-73e4bace2493" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_3099f057-3ebb-471d-b65f-47acff679af3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b522e72c-d0f4-415a-b9ae-73e4bace2493" xlink:to="loc_us-gaap_OperatingExpenses_3099f057-3ebb-471d-b65f-47acff679af3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_ef4b34a1-168e-4d15-a971-b72d440dfdc6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b522e72c-d0f4-415a-b9ae-73e4bace2493" xlink:to="loc_us-gaap_GrossProfit_ef4b34a1-168e-4d15-a971-b72d440dfdc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_7155030a-46ab-4d17-bf4b-21de3881a925" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c06931b9-66e8-4c66-85a3-5739024bdb10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_7155030a-46ab-4d17-bf4b-21de3881a925" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c06931b9-66e8-4c66-85a3-5739024bdb10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_71ae7dbf-817f-41dd-9531-fa7cf6479c64" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7155030a-46ab-4d17-bf4b-21de3881a925" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_71ae7dbf-817f-41dd-9531-fa7cf6479c64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_810c065a-3feb-458d-8dce-4560f2debe55" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_41f42795-90b0-4b39-85b7-0a0980e454b4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_810c065a-3feb-458d-8dce-4560f2debe55" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_41f42795-90b0-4b39-85b7-0a0980e454b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_84f8d1d8-8409-47b7-9983-d1ba54096a76" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_810c065a-3feb-458d-8dce-4560f2debe55" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_84f8d1d8-8409-47b7-9983-d1ba54096a76" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="wdc-20211001.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_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2392d3ad-6c37-4df2-a56a-a65cb6d6b1ae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_3a3a5571-e667-4610-aba4-5e0a5f07e23c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2392d3ad-6c37-4df2-a56a-a65cb6d6b1ae" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_3a3a5571-e667-4610-aba4-5e0a5f07e23c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2bf37ca3-7c4a-4b24-a929-1928a1c77c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2392d3ad-6c37-4df2-a56a-a65cb6d6b1ae" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2bf37ca3-7c4a-4b24-a929-1928a1c77c8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_209ea7ec-d662-426d-ae6a-b0450e82436b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_63e76e30-3449-49cc-889e-6da626c9b8a4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_209ea7ec-d662-426d-ae6a-b0450e82436b" xlink:to="loc_us-gaap_NetIncomeLoss_63e76e30-3449-49cc-889e-6da626c9b8a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_157a0296-461c-4761-af6e-a00b37a223f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_209ea7ec-d662-426d-ae6a-b0450e82436b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_157a0296-461c-4761-af6e-a00b37a223f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_ae610e65-1bbf-477a-9208-bfaab1594a87" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_76ec47e0-2831-46a6-885c-f099f4a62b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_ae610e65-1bbf-477a-9208-bfaab1594a87" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_76ec47e0-2831-46a6-885c-f099f4a62b4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9edfe349-70b2-4c1f-a168-1eb6f0b2d4cc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_ae610e65-1bbf-477a-9208-bfaab1594a87" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9edfe349-70b2-4c1f-a168-1eb6f0b2d4cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_b4742e10-1755-4e7a-a092-c3428cbe0ce0" xlink:href="wdc-20211001.xsd#wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_ae610e65-1bbf-477a-9208-bfaab1594a87" xlink:to="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_b4742e10-1755-4e7a-a092-c3428cbe0ce0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20211001.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_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_56e960f8-0112-4999-87f5-92b08bff2cf5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_56e960f8-0112-4999-87f5-92b08bff2cf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_a5526434-0102-4624-845a-a83a63b1ced4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_a5526434-0102-4624-845a-a83a63b1ced4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_76a2c0d4-ac06-4e95-8fa8-892a0409bfbd" xlink:href="wdc-20211001.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_76a2c0d4-ac06-4e95-8fa8-892a0409bfbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_d95cc562-e91b-4717-86c1-0e1c85de23cc" xlink:href="wdc-20211001.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_d95cc562-e91b-4717-86c1-0e1c85de23cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_d0b98a2d-b7bd-491d-9a06-6da013ff0935" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b5c3704e-c1d1-4253-a2ed-398105d987fb" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_d0b98a2d-b7bd-491d-9a06-6da013ff0935" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d0654bd7-7364-436d-afdd-0c5e1a85a68e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_49295ca1-9175-481b-9473-0498a2dec9a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d0654bd7-7364-436d-afdd-0c5e1a85a68e" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_49295ca1-9175-481b-9473-0498a2dec9a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_217c101a-e58a-48a4-a42e-189869cb1de2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d0654bd7-7364-436d-afdd-0c5e1a85a68e" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_217c101a-e58a-48a4-a42e-189869cb1de2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_2dc5b140-b4be-4a9d-9512-019252f6990e" xlink:href="wdc-20211001.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d0654bd7-7364-436d-afdd-0c5e1a85a68e" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_2dc5b140-b4be-4a9d-9512-019252f6990e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_07683fd2-5dd3-4bd3-99f3-e7c3b1419629" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_NetIncomeLoss_07683fd2-5dd3-4bd3-99f3-e7c3b1419629" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_c82eaff0-c15d-4f8e-85b2-07e13d4732b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_DepreciationAndAmortization_c82eaff0-c15d-4f8e-85b2-07e13d4732b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_4216005c-c6a5-463d-98ff-53c368c1ec4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_ShareBasedCompensation_4216005c-c6a5-463d-98ff-53c368c1ec4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1c009678-0945-4390-b331-b316eb9eaadc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1c009678-0945-4390-b331-b316eb9eaadc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_27e3545e-b92c-4e1a-8c26-3c09c70f1dca" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_27e3545e-b92c-4e1a-8c26-3c09c70f1dca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_705038d0-feca-4f0b-afc7-8b134153159e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_705038d0-feca-4f0b-afc7-8b134153159e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_cf323dc6-db8f-4dac-8ddc-b2ea2ff8258a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_cf323dc6-db8f-4dac-8ddc-b2ea2ff8258a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e98cde81-7b9c-4ceb-adc5-a2708e730330" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e98cde81-7b9c-4ceb-adc5-a2708e730330" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_181427e7-fe70-4d61-896f-df6938de9791" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_181427e7-fe70-4d61-896f-df6938de9791" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_c1270bb4-ea45-467c-bf28-5ae184283311" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_c1270bb4-ea45-467c-bf28-5ae184283311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_fe158e9d-0874-41cc-b5a3-19cbb4dbd0ff" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_fe158e9d-0874-41cc-b5a3-19cbb4dbd0ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2b33a215-0699-4ef8-8aa5-1db9c8f63ebc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2b33a215-0699-4ef8-8aa5-1db9c8f63ebc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_3bafeacc-e1a3-4278-889b-1575504c569a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_3bafeacc-e1a3-4278-889b-1575504c569a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_e737bbd4-8149-4d92-923b-1820544c2d8d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2a612eb-a5cb-48d3-b10a-c3af3060ca1b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_e737bbd4-8149-4d92-923b-1820544c2d8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_675b69d2-9acf-4cbc-8585-afd1ca955c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_63e0072c-d890-4b29-896b-b59f6c1bd1b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_675b69d2-9acf-4cbc-8585-afd1ca955c5e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_63e0072c-d890-4b29-896b-b59f6c1bd1b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6fba6d58-3c7c-4966-9f21-aaba31e72e6f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_675b69d2-9acf-4cbc-8585-afd1ca955c5e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6fba6d58-3c7c-4966-9f21-aaba31e72e6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9b2d6ccb-1360-4f02-acca-dee1d0819be9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_675b69d2-9acf-4cbc-8585-afd1ca955c5e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9b2d6ccb-1360-4f02-acca-dee1d0819be9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0b6dfb8f-bc31-4c73-8dcc-8d26104f0f33" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_675b69d2-9acf-4cbc-8585-afd1ca955c5e" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0b6dfb8f-bc31-4c73-8dcc-8d26104f0f33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20211001.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_7cc0610e-697c-4258-8014-c121ca550212" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_77e10951-66be-4988-afce-b8d012b99b6d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7cc0610e-697c-4258-8014-c121ca550212" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_77e10951-66be-4988-afce-b8d012b99b6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_4d74f5e8-6ed8-4a28-8ebd-c789b2fcc249" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7cc0610e-697c-4258-8014-c121ca550212" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_4d74f5e8-6ed8-4a28-8ebd-c789b2fcc249" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_38c3e525-819b-4f60-9b0e-fe5fd3f92070" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7cc0610e-697c-4258-8014-c121ca550212" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_38c3e525-819b-4f60-9b0e-fe5fd3f92070" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20211001.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_1d803a0a-a936-4977-b90d-88e85673c98d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_1141b9c7-68ea-4a0d-8fe9-1eba96bb3671" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_1d803a0a-a936-4977-b90d-88e85673c98d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_1141b9c7-68ea-4a0d-8fe9-1eba96bb3671" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6b189f1e-817b-4747-9711-60af765d3c79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_1d803a0a-a936-4977-b90d-88e85673c98d" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6b189f1e-817b-4747-9711-60af765d3c79" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" xlink:href="wdc-20211001.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_aff983db-1d24-4cf4-932e-cf81fdbdada6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_279cc574-4448-4385-9c30-1106ee7db90d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_aff983db-1d24-4cf4-932e-cf81fdbdada6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_279cc574-4448-4385-9c30-1106ee7db90d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_90db542e-a03c-4958-9844-c13fec25a55a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_aff983db-1d24-4cf4-932e-cf81fdbdada6" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_90db542e-a03c-4958-9844-c13fec25a55a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6f86aca2-1692-4c07-8894-bdec9879cb77" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_aff983db-1d24-4cf4-932e-cf81fdbdada6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6f86aca2-1692-4c07-8894-bdec9879cb77" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20211001.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_6f609487-aade-4c28-98b9-44643138054c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_2bba4d84-37e3-4507-8bfa-78613da2f15a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f609487-aade-4c28-98b9-44643138054c" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_2bba4d84-37e3-4507-8bfa-78613da2f15a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_cee2d7a0-e056-4583-843e-666aa539fb02" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f609487-aade-4c28-98b9-44643138054c" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_cee2d7a0-e056-4583-843e-666aa539fb02" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20211001.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_ffad40bb-745a-45f6-a8d4-ec6117293bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_d223941b-0d96-4a6b-969e-7a101a88bc7a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ffad40bb-745a-45f6-a8d4-ec6117293bb8" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_d223941b-0d96-4a6b-969e-7a101a88bc7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_e5071ff2-e09c-47fe-b910-32963c675391" xlink:href="wdc-20211001.xsd#wdc_OtherMiscellaneousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_ffad40bb-745a-45f6-a8d4-ec6117293bb8" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_e5071ff2-e09c-47fe-b910-32963c675391" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_31060435-c55c-4e94-aec8-509501ea117d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ffad40bb-745a-45f6-a8d4-ec6117293bb8" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_31060435-c55c-4e94-aec8-509501ea117d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20211001.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e6cc6d85-f75f-4d32-b6c8-a6600e3d8d63" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_d8100383-d05b-4b55-87c9-24102a351319" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e6cc6d85-f75f-4d32-b6c8-a6600e3d8d63" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_d8100383-d05b-4b55-87c9-24102a351319" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_65b1ed5c-5b8c-4078-9bbf-6ffa9720db0b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e6cc6d85-f75f-4d32-b6c8-a6600e3d8d63" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_65b1ed5c-5b8c-4078-9bbf-6ffa9720db0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_de6a0d0b-9dbe-41af-8268-1fc4bf9286dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e6cc6d85-f75f-4d32-b6c8-a6600e3d8d63" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_de6a0d0b-9dbe-41af-8268-1fc4bf9286dc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20211001.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_863e24dc-fbf4-4759-8405-a90588cd335b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_17480c8b-7521-439f-a658-832e2fc800c6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_863e24dc-fbf4-4759-8405-a90588cd335b" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_17480c8b-7521-439f-a658-832e2fc800c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_3b9614cf-623c-4469-9070-257f3b7e337c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_863e24dc-fbf4-4759-8405-a90588cd335b" xlink:to="loc_us-gaap_DerivativeAssets_3b9614cf-623c-4469-9070-257f3b7e337c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_d58a9109-567f-4d03-8705-e3d4779b93dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_b580c509-355f-4b0e-96a7-3bd5cf2ce48a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d58a9109-567f-4d03-8705-e3d4779b93dd" xlink:to="loc_us-gaap_DerivativeLiabilities_b580c509-355f-4b0e-96a7-3bd5cf2ce48a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20211001.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_53f892e7-6a8f-4d0e-b93d-2df67edc5772" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_c13e76a4-c0c1-4e4a-a1aa-9e3f0b85cd31" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_53f892e7-6a8f-4d0e-b93d-2df67edc5772" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_c13e76a4-c0c1-4e4a-a1aa-9e3f0b85cd31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_4ff54c44-278c-4066-b91f-cee09dc6fcbf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_53f892e7-6a8f-4d0e-b93d-2df67edc5772" xlink:to="loc_us-gaap_LongTermDebtCurrent_4ff54c44-278c-4066-b91f-cee09dc6fcbf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20211001.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_d6debe12-24ab-4e9d-a5d9-6ff88130b358" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_dc1fee7a-feed-44c4-a95d-f42d4f9a2ddf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d6debe12-24ab-4e9d-a5d9-6ff88130b358" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_dc1fee7a-feed-44c4-a95d-f42d4f9a2ddf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_442e9ea5-b9cf-4406-8e83-4372df31df01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d6debe12-24ab-4e9d-a5d9-6ff88130b358" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_442e9ea5-b9cf-4406-8e83-4372df31df01" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20211001.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_4a533f3c-c2fc-407e-b29b-7d96501a8254" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d48b91f5-28ea-4bcd-bdb6-1368e8bc6de1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4a533f3c-c2fc-407e-b29b-7d96501a8254" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d48b91f5-28ea-4bcd-bdb6-1368e8bc6de1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_d7e80ee3-c5eb-4d6a-82fd-cfe7b3e38a00" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4a533f3c-c2fc-407e-b29b-7d96501a8254" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_d7e80ee3-c5eb-4d6a-82fd-cfe7b3e38a00" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20211001.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_f4cbf7a8-468f-495b-b416-bc1a65b4160f" xlink:href="wdc-20211001.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_3c7463e4-00cb-4ab9-893a-8b3941e1b6cd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f4cbf7a8-468f-495b-b416-bc1a65b4160f" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_3c7463e4-00cb-4ab9-893a-8b3941e1b6cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_f3d9d7f3-8278-4c50-8d1a-3f4ea3c0a67a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f4cbf7a8-468f-495b-b416-bc1a65b4160f" xlink:to="loc_us-gaap_Investments_f3d9d7f3-8278-4c50-8d1a-3f4ea3c0a67a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20211001.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_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_acb2f8b5-4b06-46a6-8f3e-c05af13fad6d" xlink:href="wdc-20211001.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_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_acb2f8b5-4b06-46a6-8f3e-c05af13fad6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_060d02e2-6ce6-41dc-a5ac-e928d9a4f501" xlink:href="wdc-20211001.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_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_060d02e2-6ce6-41dc-a5ac-e928d9a4f501" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6c2a228a-17ca-49ff-8a18-277c11bffaaf" xlink:href="wdc-20211001.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_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6c2a228a-17ca-49ff-8a18-277c11bffaaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_12864b1c-9e7c-4bc8-b815-3b8c52546ed3" xlink:href="wdc-20211001.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_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_12864b1c-9e7c-4bc8-b815-3b8c52546ed3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_1cd3b272-5b74-4d21-9da3-4c58d2e5c272" xlink:href="wdc-20211001.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_1cd3b272-5b74-4d21-9da3-4c58d2e5c272" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_0dccfcf7-a490-4874-a519-c57ebaa7a656" xlink:href="wdc-20211001.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_938304d4-3f44-4bd4-b303-5a37b23a0489" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_0dccfcf7-a490-4874-a519-c57ebaa7a656" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20211001.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_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_72767205-c042-40a7-a1ce-8bbf5887ea8f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_72767205-c042-40a7-a1ce-8bbf5887ea8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_50c21582-7b3e-4818-be7e-9b700e2b526a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_50c21582-7b3e-4818-be7e-9b700e2b526a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9bb7a7ab-bf33-4287-8453-5af8e29eaed9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9bb7a7ab-bf33-4287-8453-5af8e29eaed9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d50e5649-abee-4bbf-8aa8-7fceac17fac1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d50e5649-abee-4bbf-8aa8-7fceac17fac1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_c9b1c5dd-d950-406a-968c-33d436a72598" xlink:href="wdc-20211001.xsd#wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_c9b1c5dd-d950-406a-968c-33d436a72598" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_41bee254-1412-43fd-b994-0951c865b630" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e7d1b47b-7793-471c-b691-dbef4147b83e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_41bee254-1412-43fd-b994-0951c865b630" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_1b659260-bd6d-4486-8983-3cbbb4a8e75d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c20d5bca-3c87-4c63-9282-0fc966c0dcc2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_1b659260-bd6d-4486-8983-3cbbb4a8e75d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c20d5bca-3c87-4c63-9282-0fc966c0dcc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_81d9e996-e265-4bb7-9601-e6fc0a316251" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_1b659260-bd6d-4486-8983-3cbbb4a8e75d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_81d9e996-e265-4bb7-9601-e6fc0a316251" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="simple" xlink:href="wdc-20211001.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_79e2985e-0697-4b5e-bee9-a70bbd1b5b60" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ab4b214a-7df1-4213-b9ee-a76bd10b972a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_79e2985e-0697-4b5e-bee9-a70bbd1b5b60" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ab4b214a-7df1-4213-b9ee-a76bd10b972a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_4ed3b76d-0656-4ead-a710-158a9e7302d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_79e2985e-0697-4b5e-bee9-a70bbd1b5b60" xlink:to="loc_us-gaap_OperatingLeaseLiability_4ed3b76d-0656-4ead-a710-158a9e7302d7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20211001.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_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_90c42144-0f74-4680-947d-2839dbd42998" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_90c42144-0f74-4680-947d-2839dbd42998" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_c2ddbe7e-4210-49bf-a5a9-cb04dda0c7b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_c2ddbe7e-4210-49bf-a5a9-cb04dda0c7b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_acb597f9-b095-46d2-9420-998410dc91e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_acb597f9-b095-46d2-9420-998410dc91e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_49d217b8-72bb-490c-b060-03c5dcf49834" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_49d217b8-72bb-490c-b060-03c5dcf49834" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationToBePaidAfterYearFour_c6529555-5843-4716-935d-5e8e19754652" xlink:href="wdc-20211001.xsd#wdc_PurchaseObligationToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_wdc_PurchaseObligationToBePaidAfterYearFour_c6529555-5843-4716-935d-5e8e19754652" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_71ad7f01-b264-408f-bd30-26099096707b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_b07812fd-7f22-4853-8c0e-f0204d19642b" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_71ad7f01-b264-408f-bd30-26099096707b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20211001.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_2a730e96-1144-47ae-8a08-1240d2d02d69" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_519ffa3d-403b-4561-a2e6-dd061bb54375" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_2a730e96-1144-47ae-8a08-1240d2d02d69" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_519ffa3d-403b-4561-a2e6-dd061bb54375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_22634248-9081-44cf-8633-256d11d835bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_2a730e96-1144-47ae-8a08-1240d2d02d69" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_22634248-9081-44cf-8633-256d11d835bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="wdc-20211001.xsd#NetIncomeLossPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_4b7407bc-7ced-4f68-8a74-80a3c337a581" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_a1c6b5df-4885-4c0e-901d-2c2fa6e252ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_4b7407bc-7ced-4f68-8a74-80a3c337a581" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_a1c6b5df-4885-4c0e-901d-2c2fa6e252ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_5cf524d6-f616-4597-8b3f-fb5446e430ee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_4b7407bc-7ced-4f68-8a74-80a3c337a581" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_5cf524d6-f616-4597-8b3f-fb5446e430ee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20211001.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6cd62414-d6f8-433f-9585-b5dd02f8055c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_afed4b59-e76b-4a05-9e3d-3e36dd91006d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6cd62414-d6f8-433f-9585-b5dd02f8055c" xlink:to="loc_us-gaap_RestructuringCharges_afed4b59-e76b-4a05-9e3d-3e36dd91006d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_6b216e46-9910-4ab3-a767-bb755bc3466f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6cd62414-d6f8-433f-9585-b5dd02f8055c" xlink:to="loc_us-gaap_AssetImpairmentCharges_6b216e46-9910-4ab3-a767-bb755bc3466f" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
