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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:0f3e65ba-93d3-4493-b3e9-17098dfb9826,g:9ade9aa5-0131-4548-8531-6d74ef888307-->
<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/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20210702.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_2ef87903-5d1d-4868-a474-cf06734f6549" 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_1e46b2b4-d75a-493b-9395-f02491a8b39b" 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_2ef87903-5d1d-4868-a474-cf06734f6549" xlink:to="loc_us-gaap_StockholdersEquity_1e46b2b4-d75a-493b-9395-f02491a8b39b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1d085721-aedb-4ec2-9e40-5dc606d04a40" 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_2ef87903-5d1d-4868-a474-cf06734f6549" xlink:to="loc_us-gaap_Liabilities_1d085721-aedb-4ec2-9e40-5dc606d04a40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_9095f95c-07d5-459d-bec8-a4b1e3917772" 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_2ef87903-5d1d-4868-a474-cf06734f6549" xlink:to="loc_us-gaap_CommitmentsAndContingencies_9095f95c-07d5-459d-bec8-a4b1e3917772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" 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_LongTermDebtCurrent_b01d8a59-6e0d-4a85-ab88-c3ff1f2e7ebe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" xlink:to="loc_us-gaap_LongTermDebtCurrent_b01d8a59-6e0d-4a85-ab88-c3ff1f2e7ebe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_3e4dd2d3-4670-4703-a014-21a9164b323b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_3e4dd2d3-4670-4703-a014-21a9164b323b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_0cbd4dfa-bb06-4cae-8de1-d3a38dc8dee0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" xlink:to="loc_us-gaap_AccountsPayableCurrent_0cbd4dfa-bb06-4cae-8de1-d3a38dc8dee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_ba88c4e9-78e1-4a6e-8f1a-37fc90d15c1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_ba88c4e9-78e1-4a6e-8f1a-37fc90d15c1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_cae8a604-6212-41c9-8919-90629bb0c4ad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2ad62859-4da5-4e5a-8fb4-ef12156e3d2f" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_cae8a604-6212-41c9-8919-90629bb0c4ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_61d1766d-62b3-440f-8fb3-e9d0de253a3f" 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_LiabilitiesCurrent_7bfd4452-8ee8-412a-b003-f2ed0e7d3db8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_61d1766d-62b3-440f-8fb3-e9d0de253a3f" xlink:to="loc_us-gaap_LiabilitiesCurrent_7bfd4452-8ee8-412a-b003-f2ed0e7d3db8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_91694f9a-2e52-43f6-bdcd-5f202af8310f" 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_61d1766d-62b3-440f-8fb3-e9d0de253a3f" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_91694f9a-2e52-43f6-bdcd-5f202af8310f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_bb63b038-d244-467f-a928-801811a07877" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_61d1766d-62b3-440f-8fb3-e9d0de253a3f" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_bb63b038-d244-467f-a928-801811a07877" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_703c5471-8b50-4078-81b4-91d4145ba88d" 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_OtherAssetsCurrent_cc09be39-89f0-482c-b2c7-e53ad6866530" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_703c5471-8b50-4078-81b4-91d4145ba88d" xlink:to="loc_us-gaap_OtherAssetsCurrent_cc09be39-89f0-482c-b2c7-e53ad6866530" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_fa241f9f-aa4e-4580-a39d-1d4b5a69568a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_703c5471-8b50-4078-81b4-91d4145ba88d" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_fa241f9f-aa4e-4580-a39d-1d4b5a69568a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5b1aaac2-6ea6-4bdc-839a-3982b8df5490" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_703c5471-8b50-4078-81b4-91d4145ba88d" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5b1aaac2-6ea6-4bdc-839a-3982b8df5490" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_6ef0d624-26f8-47e5-8d36-3b7543f8b8e8" 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_703c5471-8b50-4078-81b4-91d4145ba88d" xlink:to="loc_us-gaap_InventoryNet_6ef0d624-26f8-47e5-8d36-3b7543f8b8e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" 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_PreferredStockValue_1c6ce835-f706-4983-8f5a-87017c7ee7f1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_us-gaap_PreferredStockValue_1c6ce835-f706-4983-8f5a-87017c7ee7f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CommonStockValues_b671b31c-f9c6-4b7e-9322-3d1e17e53896" xlink:href="wdc-20210702.xsd#wdc_CommonStockValues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_wdc_CommonStockValues_b671b31c-f9c6-4b7e-9322-3d1e17e53896" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_ce1759ce-2231-4854-a9e2-fdc76b3605b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_us-gaap_AdditionalPaidInCapital_ce1759ce-2231-4854-a9e2-fdc76b3605b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_71dc3938-9761-4a3b-97b7-6893c42f0d07" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_71dc3938-9761-4a3b-97b7-6893c42f0d07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c9b204da-ea0c-470e-a4ab-d693389406d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c9b204da-ea0c-470e-a4ab-d693389406d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_ac89d430-c62a-4267-b3a1-9d0208f39fe7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_52feb573-c656-4c12-8481-8a4caf981881" xlink:to="loc_us-gaap_TreasuryStockValue_ac89d430-c62a-4267-b3a1-9d0208f39fe7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" 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_us-gaap_OtherAssetsNoncurrent_4f6889ca-fd9a-43b1-9ce3-2040f7d49e78" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_4f6889ca-fd9a-43b1-9ce3-2040f7d49e78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5813d97b-0382-428d-83b9-1e2847b58575" xlink:href="wdc-20210702.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5813d97b-0382-428d-83b9-1e2847b58575" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_a1bce185-ea09-44db-b6a0-8cc309d8b345" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_a1bce185-ea09-44db-b6a0-8cc309d8b345" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_aa047fd6-ba71-4468-92c3-6c0d41b3917e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_us-gaap_Goodwill_aa047fd6-ba71-4468-92c3-6c0d41b3917e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4ca3ea93-bb54-4460-abb0-ec8349fdbf84" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4ca3ea93-bb54-4460-abb0-ec8349fdbf84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_b636d4b6-b627-4f38-81eb-94876b9358a4" 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_ee48b02b-394d-4793-87c6-ddd7b5445c60" xlink:to="loc_us-gaap_AssetsCurrent_b636d4b6-b627-4f38-81eb-94876b9358a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="wdc-20210702.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_e7eef960-d308-44bb-b5c9-9486bc0e5372" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_1308c4c7-8ecb-4d4a-8e3f-20ac1772ed5f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_e7eef960-d308-44bb-b5c9-9486bc0e5372" xlink:to="loc_us-gaap_OperatingIncomeLoss_1308c4c7-8ecb-4d4a-8e3f-20ac1772ed5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_7f90cfa0-4bb5-4d20-a588-660ff3446268" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_e7eef960-d308-44bb-b5c9-9486bc0e5372" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_7f90cfa0-4bb5-4d20-a588-660ff3446268" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7f4413f0-9535-4647-8223-a3311bc247f2" 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_9205575f-5edd-4d63-9885-7f56e5f160e0" 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_7f4413f0-9535-4647-8223-a3311bc247f2" xlink:to="loc_us-gaap_OperatingExpenses_9205575f-5edd-4d63-9885-7f56e5f160e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_e8f2cc58-4adb-43d9-898a-4b2c5cdb5858" 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_7f4413f0-9535-4647-8223-a3311bc247f2" xlink:to="loc_us-gaap_GrossProfit_e8f2cc58-4adb-43d9-898a-4b2c5cdb5858" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f79097c5-e51b-4dbb-8f07-ea10ed30dc6a" 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_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6600b370-0c3f-4006-afaf-a2241fa0b256" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f79097c5-e51b-4dbb-8f07-ea10ed30dc6a" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6600b370-0c3f-4006-afaf-a2241fa0b256" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_681d12e0-a766-4f4d-a193-f1d756f9cf38" xlink:href="wdc-20210702.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_f79097c5-e51b-4dbb-8f07-ea10ed30dc6a" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_681d12e0-a766-4f4d-a193-f1d756f9cf38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8e2d2597-427d-4662-90dd-1984d0a68303" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f79097c5-e51b-4dbb-8f07-ea10ed30dc6a" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8e2d2597-427d-4662-90dd-1984d0a68303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_15cf1590-cd35-4e85-b7a6-32bce990f895" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_97618373-c733-496a-8a9d-ceaeeb26d3dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_15cf1590-cd35-4e85-b7a6-32bce990f895" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_97618373-c733-496a-8a9d-ceaeeb26d3dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_fcb28476-f618-4d87-bfc1-b72831da3de4" 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_15cf1590-cd35-4e85-b7a6-32bce990f895" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_fcb28476-f618-4d87-bfc1-b72831da3de4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_9046cc76-581c-42c1-b010-23ca6c953df6" 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_9e2dd1a6-702c-4224-bbba-300f146b6915" 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_9046cc76-581c-42c1-b010-23ca6c953df6" xlink:to="loc_us-gaap_InvestmentIncomeInterest_9e2dd1a6-702c-4224-bbba-300f146b6915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_96a7d86f-3757-4584-b8a5-82ea59b7ff04" 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_9046cc76-581c-42c1-b010-23ca6c953df6" xlink:to="loc_us-gaap_InterestExpense_96a7d86f-3757-4584-b8a5-82ea59b7ff04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_a8d7cb5e-f736-4444-9f52-86d29093b214" 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_9046cc76-581c-42c1-b010-23ca6c953df6" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_a8d7cb5e-f736-4444-9f52-86d29093b214" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_720f9430-fe91-42c6-a461-72c1e584fef6" 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_0ee665c4-b001-45ab-b98c-2dd09efa7fd3" 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_720f9430-fe91-42c6-a461-72c1e584fef6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_0ee665c4-b001-45ab-b98c-2dd09efa7fd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_e632eadf-ac89-4df6-ad79-17a1b64fd367" 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_720f9430-fe91-42c6-a461-72c1e584fef6" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_e632eadf-ac89-4df6-ad79-17a1b64fd367" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="wdc-20210702.xsd#ConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a82a0fae-8f0c-4bc8-9983-79cd0b69b340" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_76093232-c889-441f-aeb6-57c73290d829" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a82a0fae-8f0c-4bc8-9983-79cd0b69b340" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_76093232-c889-441f-aeb6-57c73290d829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_ba600ba3-a645-40f2-b667-34fe06eaf7e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a82a0fae-8f0c-4bc8-9983-79cd0b69b340" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_ba600ba3-a645-40f2-b667-34fe06eaf7e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_7452ff2f-b45b-4545-919a-4af557df57da" xlink:href="wdc-20210702.xsd#wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a82a0fae-8f0c-4bc8-9983-79cd0b69b340" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_7452ff2f-b45b-4545-919a-4af557df57da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_4c4715eb-fcf5-40a3-ab99-1b6c33f3368a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a03699c8-85fe-498b-bd1a-4ba79a75c9a7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_4c4715eb-fcf5-40a3-ab99-1b6c33f3368a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_a03699c8-85fe-498b-bd1a-4ba79a75c9a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_45a21060-df5c-4062-bafb-9a98b579a719" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_4c4715eb-fcf5-40a3-ab99-1b6c33f3368a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_45a21060-df5c-4062-bafb-9a98b579a719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dcbb255c-ab88-4d77-8bfa-94e2bfb74df4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9e487fe0-3bbd-4510-aaa7-0e4bce65049e" 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_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dcbb255c-ab88-4d77-8bfa-94e2bfb74df4" xlink:to="loc_us-gaap_NetIncomeLoss_9e487fe0-3bbd-4510-aaa7-0e4bce65049e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3b8a578e-4c87-4786-8235-aef7f785cef9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dcbb255c-ab88-4d77-8bfa-94e2bfb74df4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3b8a578e-4c87-4786-8235-aef7f785cef9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="wdc-20210702.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_87a69aa0-cfb1-4c28-a441-010c1132bb68" 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_6fee8c6e-cf93-4f5d-9dd0-d7bc613d1468" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_NetIncomeLoss_6fee8c6e-cf93-4f5d-9dd0-d7bc613d1468" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_b1985d67-78dd-40e6-8977-8bae6e16f978" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_DepreciationAndAmortization_b1985d67-78dd-40e6-8977-8bae6e16f978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_12859984-3455-4c1b-9f8b-5ea951560a74" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_ShareBasedCompensation_12859984-3455-4c1b-9f8b-5ea951560a74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1ecfa6a1-2340-462a-b0f6-4dc8ec0c2cba" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1ecfa6a1-2340-462a-b0f6-4dc8ec0c2cba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_02d6269d-1ec4-475e-9fc8-06db3a3e50a2" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_02d6269d-1ec4-475e-9fc8-06db3a3e50a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_0a288479-1b17-4e7f-9855-8fe7901dfcbf" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_0a288479-1b17-4e7f-9855-8fe7901dfcbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_09d444a4-da67-499a-956a-0f7ee27b71bb" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_09d444a4-da67-499a-956a-0f7ee27b71bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_4a28a6a9-232d-4a28-9d0f-b3e48bc234fe" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_4a28a6a9-232d-4a28-9d0f-b3e48bc234fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_b999db64-2b71-461a-a0ad-09e69264e56d" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_b999db64-2b71-461a-a0ad-09e69264e56d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_0a143348-1ed6-4963-b022-069b063ea7ed" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_0a143348-1ed6-4963-b022-069b063ea7ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_c397eb45-a24f-4506-9e1c-6158f3d12835" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_c397eb45-a24f-4506-9e1c-6158f3d12835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_ee701110-f015-45bd-955b-0067bd845765" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_ee701110-f015-45bd-955b-0067bd845765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_bf36632f-efdc-4a8d-a68c-56255bda3cc1" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_bf36632f-efdc-4a8d-a68c-56255bda3cc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_1708987a-4bc3-4476-9640-b36d685d2dcc" 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_87a69aa0-cfb1-4c28-a441-010c1132bb68" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_1708987a-4bc3-4476-9640-b36d685d2dcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_a68662e1-b129-463a-880f-03ec2fa2c54b" 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_2c304df8-c4c5-4076-9ddf-671a855a2ade" 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_a68662e1-b129-463a-880f-03ec2fa2c54b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2c304df8-c4c5-4076-9ddf-671a855a2ade" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63907067-a5b8-44e9-9fe6-144f9d7654c7" 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_a68662e1-b129-463a-880f-03ec2fa2c54b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63907067-a5b8-44e9-9fe6-144f9d7654c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e35284c8-f330-421a-9de8-aa1b0eb7ad97" 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_a68662e1-b129-463a-880f-03ec2fa2c54b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e35284c8-f330-421a-9de8-aa1b0eb7ad97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_185ad7ea-d299-40d8-8b6a-169a41743363" 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_a68662e1-b129-463a-880f-03ec2fa2c54b" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_185ad7ea-d299-40d8-8b6a-169a41743363" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" 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_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_5e248149-d090-4479-945d-05bcfa4fa5e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_5e248149-d090-4479-945d-05bcfa4fa5e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4d38063b-53c0-445f-abe4-fa693866e887" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4d38063b-53c0-445f-abe4-fa693866e887" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_fb008d38-8133-4ad6-b739-d0b7b7b4ed10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_fb008d38-8133-4ad6-b739-d0b7b7b4ed10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_907c3f91-9b92-45c3-ab3b-d92c7a4638ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_907c3f91-9b92-45c3-ab3b-d92c7a4638ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_41c02f2f-72d5-456b-97b7-f9d9bb0bca75" 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_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_41c02f2f-72d5-456b-97b7-f9d9bb0bca75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_076de466-a2da-45a6-9f20-760537f82556" xlink:href="wdc-20210702.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_076de466-a2da-45a6-9f20-760537f82556" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_de139d1d-1c68-461f-80c7-c516404c197c" xlink:href="wdc-20210702.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_de139d1d-1c68-461f-80c7-c516404c197c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_4084d5dc-0ca6-4a26-bc0c-7a02baabfcf5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_4084d5dc-0ca6-4a26-bc0c-7a02baabfcf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_d26bd688-8a0a-452d-b6a6-055e6f4abd17" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8deb251-26bf-4f12-a56e-aade8382b0e2" xlink:to="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_d26bd688-8a0a-452d-b6a6-055e6f4abd17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" 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_PaymentsForProceedsFromHedgeFinancingActivities_dfdcf0f1-cfbd-42fb-917b-3607c66d6a12" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForProceedsFromHedgeFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_PaymentsForProceedsFromHedgeFinancingActivities_dfdcf0f1-cfbd-42fb-917b-3607c66d6a12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2738b0b8-22be-4a26-b47b-140939e85bea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2738b0b8-22be-4a26-b47b-140939e85bea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c2a42c4b-fb33-40a4-ae3d-2302e7ac7027" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c2a42c4b-fb33-40a4-ae3d-2302e7ac7027" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_bb9499e8-7598-4fe7-9e5b-1cba83693207" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_bb9499e8-7598-4fe7-9e5b-1cba83693207" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_acb476d5-d29a-4af5-9d54-8d332c3e2a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_acb476d5-d29a-4af5-9d54-8d332c3e2a6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_732deff3-c8ad-4fff-8a5b-a81dc4dee339" xlink:href="wdc-20210702.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_732deff3-c8ad-4fff-8a5b-a81dc4dee339" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_17effe0b-6c79-4601-8338-507b63e0e43f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_17effe0b-6c79-4601-8338-507b63e0e43f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_988b7d2c-f9c2-4e5d-9668-7eb300578464" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e1603148-d66f-4560-8c8c-bfdff42d2b28" xlink:to="loc_us-gaap_PaymentsOfDividends_988b7d2c-f9c2-4e5d-9668-7eb300578464" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20210702.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_ead1c385-def9-4e49-ad13-1105640eb10f" 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_bddbcbfc-ad48-406e-8142-b446b1eaff27" 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_ead1c385-def9-4e49-ad13-1105640eb10f" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_bddbcbfc-ad48-406e-8142-b446b1eaff27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_595722a8-2124-4d83-8563-9e4b0a2807d2" 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_ead1c385-def9-4e49-ad13-1105640eb10f" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_595722a8-2124-4d83-8563-9e4b0a2807d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_5b9f72d4-8bd3-412c-96d2-afee20f62244" 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_ead1c385-def9-4e49-ad13-1105640eb10f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_5b9f72d4-8bd3-412c-96d2-afee20f62244" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20210702.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_a9e99094-78e6-4695-84e0-341c08b31f81" 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_b1b98b09-ae6d-45c9-aaf1-a43fd96758bf" 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_a9e99094-78e6-4695-84e0-341c08b31f81" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_b1b98b09-ae6d-45c9-aaf1-a43fd96758bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0e3627a0-f95a-4604-a277-4f71c8359469" 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_a9e99094-78e6-4695-84e0-341c08b31f81" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0e3627a0-f95a-4604-a277-4f71c8359469" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" xlink:href="wdc-20210702.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_IntangibleAssetsGrossExcludingGoodwill_99fad395-4ca6-44e1-aebe-6c5196775f82" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_63ff9a13-9eb6-4861-b7a7-fa7a49d1179d" 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_IntangibleAssetsGrossExcludingGoodwill_99fad395-4ca6-44e1-aebe-6c5196775f82" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_63ff9a13-9eb6-4861-b7a7-fa7a49d1179d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c5c4f321-d771-4093-b520-e32cc659d771" 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_IntangibleAssetsGrossExcludingGoodwill_99fad395-4ca6-44e1-aebe-6c5196775f82" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c5c4f321-d771-4093-b520-e32cc659d771" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_706f88fe-3ce7-4a76-aa6e-79571cfef4de" 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_IntangibleAssetsGrossExcludingGoodwill_a1e009cf-7b90-426a-a5a8-235267b941f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_706f88fe-3ce7-4a76-aa6e-79571cfef4de" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_a1e009cf-7b90-426a-a5a8-235267b941f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_13d6ffad-42c1-46ce-9867-f4b40f17ec8f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_706f88fe-3ce7-4a76-aa6e-79571cfef4de" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_13d6ffad-42c1-46ce-9867-f4b40f17ec8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_96894c5b-45d4-49a8-ac32-1c339be3599f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_bd6a914d-ecbf-4986-882c-c34fc108b033" 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_FiniteLivedIntangibleAssetsNet_96894c5b-45d4-49a8-ac32-1c339be3599f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_bd6a914d-ecbf-4986-882c-c34fc108b033" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_54f0ff5d-db28-4bb5-913a-e066b97bbd0d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_96894c5b-45d4-49a8-ac32-1c339be3599f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_54f0ff5d-db28-4bb5-913a-e066b97bbd0d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetFutureAmortizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_138e640d-ba84-4247-bb88-7995fbd78230" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_152918ab-c7a7-431f-af8a-585a3f89db2e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_138e640d-ba84-4247-bb88-7995fbd78230" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_152918ab-c7a7-431f-af8a-585a3f89db2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_4a259b99-a6a6-4c25-beee-f583da5e565a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_138e640d-ba84-4247-bb88-7995fbd78230" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_4a259b99-a6a6-4c25-beee-f583da5e565a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4ef34db7-400f-4acf-92a3-12fe96d15103" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_138e640d-ba84-4247-bb88-7995fbd78230" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4ef34db7-400f-4acf-92a3-12fe96d15103" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20210702.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_4fc1f239-1677-46ab-a136-5410f95f4afa" 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_eedcba27-5bec-4186-b2c5-797ed31750c7" 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_4fc1f239-1677-46ab-a136-5410f95f4afa" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_eedcba27-5bec-4186-b2c5-797ed31750c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_da45ac39-d3c9-48e8-93d5-2456dac23bdd" 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_4fc1f239-1677-46ab-a136-5410f95f4afa" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_da45ac39-d3c9-48e8-93d5-2456dac23bdd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20210702.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_c226bf6d-d877-4b05-bba1-a949e23c014e" 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_c9a763ae-cd31-4fa8-80d8-1406978037d3" 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_c226bf6d-d877-4b05-bba1-a949e23c014e" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_c9a763ae-cd31-4fa8-80d8-1406978037d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_8efd17b8-fc56-4ddc-8110-2fc2dc6f19e4" xlink:href="wdc-20210702.xsd#wdc_OtherMiscellaniousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_c226bf6d-d877-4b05-bba1-a949e23c014e" xlink:to="loc_wdc_OtherMiscellaniousLiabilitiesNoncurrent_8efd17b8-fc56-4ddc-8110-2fc2dc6f19e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_146a300c-1604-45a3-b4f7-b337418a5146" 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_c226bf6d-d877-4b05-bba1-a949e23c014e" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_146a300c-1604-45a3-b4f7-b337418a5146" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeLossRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeLossRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeLossRollForwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_10195e75-470a-4341-9078-3468ff2a026d" 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_9e6cdd21-a0e2-4e75-af03-06e36b9432ff" 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_10195e75-470a-4341-9078-3468ff2a026d" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_9e6cdd21-a0e2-4e75-af03-06e36b9432ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_ceff7244-d836-479a-9257-56dcc8efa024" 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_10195e75-470a-4341-9078-3468ff2a026d" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_ceff7244-d836-479a-9257-56dcc8efa024" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_d19caca3-f163-4e7a-bd21-0fcf43edc90c" 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_10195e75-470a-4341-9078-3468ff2a026d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_d19caca3-f163-4e7a-bd21-0fcf43edc90c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20210702.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_04fa618b-c8e1-4e8d-9d2a-df3455ecd374" 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_0ea51e6d-129b-401b-95eb-04fdcbb15723" 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_04fa618b-c8e1-4e8d-9d2a-df3455ecd374" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_0ea51e6d-129b-401b-95eb-04fdcbb15723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_9de69727-75cc-4708-b3fd-6fba7617a9a0" 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_04fa618b-c8e1-4e8d-9d2a-df3455ecd374" xlink:to="loc_us-gaap_DerivativeAssets_9de69727-75cc-4708-b3fd-6fba7617a9a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20210702.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_0552f0f0-b449-49a5-965e-6177246ea0a8" 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_DebtInstrumentCarryingAmount_508db3ad-f56a-4355-8c05-8896a3ca6fbd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_0552f0f0-b449-49a5-965e-6177246ea0a8" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_508db3ad-f56a-4355-8c05-8896a3ca6fbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_8ea97f0b-e79c-4d8e-9105-46fc490c3578" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_0552f0f0-b449-49a5-965e-6177246ea0a8" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_8ea97f0b-e79c-4d8e-9105-46fc490c3578" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20210702.xsd#DebtScheduleofDebtDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_dfee65a0-abb2-409a-9c51-5709bb368a70" 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_a83a6df6-cb26-4a59-82e2-78dc4ad243c2" 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_dfee65a0-abb2-409a-9c51-5709bb368a70" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_a83a6df6-cb26-4a59-82e2-78dc4ad243c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_6a3ff5ff-4cc7-489b-b95c-1c95763a5334" 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_dfee65a0-abb2-409a-9c51-5709bb368a70" xlink:to="loc_us-gaap_LongTermDebtCurrent_6a3ff5ff-4cc7-489b-b95c-1c95763a5334" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#DebtDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_22beb999-c6b4-434f-8f5b-fe0c52ecfb9e" 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_DebtInstrumentCarryingAmount_ba84c6e6-3048-47a3-a0cd-c418a9580c76" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_22beb999-c6b4-434f-8f5b-fe0c52ecfb9e" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_ba84c6e6-3048-47a3-a0cd-c418a9580c76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_e68f9eb1-a20a-4ec9-b62f-08f506dbc4f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_22beb999-c6b4-434f-8f5b-fe0c52ecfb9e" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_e68f9eb1-a20a-4ec9-b62f-08f506dbc4f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_a1a58345-0c0c-45be-9610-b2c18e1dfadc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_d837b0aa-4703-4cc4-99e2-454938d650bc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_a1a58345-0c0c-45be-9610-b2c18e1dfadc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_d837b0aa-4703-4cc4-99e2-454938d650bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_6fe63d6d-0b4b-4643-a2c6-cb2ac92ded49" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_a1a58345-0c0c-45be-9610-b2c18e1dfadc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_6fe63d6d-0b4b-4643-a2c6-cb2ac92ded49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_443fa928-4ec2-405b-9b6a-171bb9791cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_a1a58345-0c0c-45be-9610-b2c18e1dfadc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_443fa928-4ec2-405b-9b6a-171bb9791cc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter_312cdebe-3cd7-4a97-9192-19a84be927eb" xlink:href="wdc-20210702.xsd#wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_a1a58345-0c0c-45be-9610-b2c18e1dfadc" xlink:to="loc_wdc_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFourAndThereafter_312cdebe-3cd7-4a97-9192-19a84be927eb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20210702.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_54b63f5f-aa73-4b76-9990-7cf9e5791e9b" 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_DefinedBenefitPlanFairValueOfPlanAssets_a71efb48-019b-4f43-ab36-0b4a88c98008" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_54b63f5f-aa73-4b76-9990-7cf9e5791e9b" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_a71efb48-019b-4f43-ab36-0b4a88c98008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_332ef352-8def-4098-a55f-3eb9c8d6df76" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_54b63f5f-aa73-4b76-9990-7cf9e5791e9b" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_332ef352-8def-4098-a55f-3eb9c8d6df76" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20210702.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_7d30abe9-2b5f-491b-8915-b7961e0e7d48" 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_9937965d-0095-43f8-bf95-1472d2d13290" 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_7d30abe9-2b5f-491b-8915-b7961e0e7d48" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_9937965d-0095-43f8-bf95-1472d2d13290" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1ed8d716-4aad-4d34-8ec3-23607d2d5848" 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_7d30abe9-2b5f-491b-8915-b7961e0e7d48" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1ed8d716-4aad-4d34-8ec3-23607d2d5848" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20210702.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_3984fd8b-5ef6-44b8-9d8c-7af69adb0f26" xlink:href="wdc-20210702.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_f6d28d34-48af-437f-a5d9-e42e8f93514b" 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_3984fd8b-5ef6-44b8-9d8c-7af69adb0f26" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_f6d28d34-48af-437f-a5d9-e42e8f93514b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_84def397-f7ef-4191-880b-92bd96a75542" 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_3984fd8b-5ef6-44b8-9d8c-7af69adb0f26" xlink:to="loc_us-gaap_Investments_84def397-f7ef-4191-880b-92bd96a75542" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20210702.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_ee725924-a2e1-47db-844f-f424ff365586" 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_fd69ae11-1cfd-4db0-9626-a1a1522c7ee8" xlink:href="wdc-20210702.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_ee725924-a2e1-47db-844f-f424ff365586" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_fd69ae11-1cfd-4db0-9626-a1a1522c7ee8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_a611773c-fff1-46ad-94fa-bd411694a5a3" xlink:href="wdc-20210702.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_ee725924-a2e1-47db-844f-f424ff365586" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_a611773c-fff1-46ad-94fa-bd411694a5a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_4b643edb-78fb-4cd1-aa3a-f9055ee87ef5" xlink:href="wdc-20210702.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_ee725924-a2e1-47db-844f-f424ff365586" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_4b643edb-78fb-4cd1-aa3a-f9055ee87ef5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_fdeff3ff-079a-4e10-bda3-4820baa403f5" xlink:href="wdc-20210702.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_ee725924-a2e1-47db-844f-f424ff365586" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_fdeff3ff-079a-4e10-bda3-4820baa403f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_60bbe0fc-c2de-4479-9312-ee80e4782015" xlink:href="wdc-20210702.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_ee725924-a2e1-47db-844f-f424ff365586" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_60bbe0fc-c2de-4479-9312-ee80e4782015" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20210702.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_5ad6a850-e4e9-4f4f-b67d-5ebde71a7f26" 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_2d94d6b8-bfea-4f3a-b349-ce5dc876105a" 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_5ad6a850-e4e9-4f4f-b67d-5ebde71a7f26" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_2d94d6b8-bfea-4f3a-b349-ce5dc876105a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_936cf070-5703-463b-94c4-f9dde02f5019" 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_5ad6a850-e4e9-4f4f-b67d-5ebde71a7f26" xlink:to="loc_us-gaap_OperatingLeaseLiability_936cf070-5703-463b-94c4-f9dde02f5019" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_b2b34007-bd56-48a0-8b1a-c67a9755133f" 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_94eb0b7c-8c5d-4130-b9e3-bc1ab51c124f" 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_b2b34007-bd56-48a0-8b1a-c67a9755133f" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_94eb0b7c-8c5d-4130-b9e3-bc1ab51c124f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_09c15a3a-1973-4b92-985a-46627bf81ee6" 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_b2b34007-bd56-48a0-8b1a-c67a9755133f" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_09c15a3a-1973-4b92-985a-46627bf81ee6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails_1" xlink:type="simple" xlink:href="wdc-20210702.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_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" 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_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_efc591bb-e7c4-4dd6-88d0-124fdac238d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_efc591bb-e7c4-4dd6-88d0-124fdac238d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a5377579-f2b0-49a1-aa5c-345853bab1e2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a5377579-f2b0-49a1-aa5c-345853bab1e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9ca0c747-3553-4a62-8f4b-6fae43d6b42a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9ca0c747-3553-4a62-8f4b-6fae43d6b42a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_232e8514-04f2-4b61-87c0-e66076f85591" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_232e8514-04f2-4b61-87c0-e66076f85591" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_fb01c0f7-38aa-49f9-b32d-b425a6fa8779" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_fb01c0f7-38aa-49f9-b32d-b425a6fa8779" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_81849e18-f815-45db-8afc-e3805b4a83de" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_10b6ea3a-5411-4eb3-a56c-3230c27e7fd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_81849e18-f815-45db-8afc-e3805b4a83de" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20210702.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_87bffa5a-a94f-443e-9d82-a8e7a5055a10" 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_PurchaseObligationDueAfterFifthYear_96ebe69e-87e1-4eb7-8941-e87b13d772e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_96ebe69e-87e1-4eb7-8941-e87b13d772e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_132d2388-41fb-448d-8fc6-a890b4ab560f" 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_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_132d2388-41fb-448d-8fc6-a890b4ab560f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_c9729089-dfb1-4b98-86bf-d9cb31809d0f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_c9729089-dfb1-4b98-86bf-d9cb31809d0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_b8df173d-b366-41b6-ae1f-ae0ba03dc21b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_b8df173d-b366-41b6-ae1f-ae0ba03dc21b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_14ea5140-49ae-4526-9c36-0b385f44921b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_14ea5140-49ae-4526-9c36-0b385f44921b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_761fc309-fdb0-4fce-96d4-43a9e33ae4bd" 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_87bffa5a-a94f-443e-9d82-a8e7a5055a10" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_761fc309-fdb0-4fce-96d4-43a9e33ae4bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20210702.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_4019fe54-ed8a-4719-be80-a0a705dc3950" 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_99c431dd-70c2-4978-9027-a8970d59dfb3" 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_4019fe54-ed8a-4719-be80-a0a705dc3950" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_99c431dd-70c2-4978-9027-a8970d59dfb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_2f8482c0-8703-4ca4-871d-a8cf67278d99" 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_4019fe54-ed8a-4719-be80-a0a705dc3950" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_2f8482c0-8703-4ca4-871d-a8cf67278d99" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_129b5839-1e4e-4b8f-af97-5fabd443d724" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_f5cfcc67-d98f-43ec-a570-ac8770d78ba2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_129b5839-1e4e-4b8f-af97-5fabd443d724" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_f5cfcc67-d98f-43ec-a570-ac8770d78ba2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_ed3e2540-9903-4609-92cc-af9ba729f5f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_129b5839-1e4e-4b8f-af97-5fabd443d724" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_ed3e2540-9903-4609-92cc-af9ba729f5f6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_6c53a7a2-e3ac-4abe-9f22-9b9edf5dd175" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_71d28d18-4f6d-4584-9b23-58292c0dbe3b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_6c53a7a2-e3ac-4abe-9f22-9b9edf5dd175" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_71d28d18-4f6d-4584-9b23-58292c0dbe3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_55e72f6d-942a-4764-9deb-c30ff5eef1da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_6c53a7a2-e3ac-4abe-9f22-9b9edf5dd175" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_55e72f6d-942a-4764-9deb-c30ff5eef1da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_a5c4840b-626b-4efa-83bf-e114ae5ac43a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_6c53a7a2-e3ac-4abe-9f22-9b9edf5dd175" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_a5c4840b-626b-4efa-83bf-e114ae5ac43a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_08d119eb-99e8-4aa1-be95-b9cb24d2ad79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_cc2e3edf-b6fb-4736-9f86-3daa33fe6d6a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_08d119eb-99e8-4aa1-be95-b9cb24d2ad79" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_cc2e3edf-b6fb-4736-9f86-3daa33fe6d6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_34a01757-48ad-41c0-ba1f-dd7927d5ab56" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_08d119eb-99e8-4aa1-be95-b9cb24d2ad79" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_34a01757-48ad-41c0-ba1f-dd7927d5ab56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_328743f0-0495-4f05-932a-35989026c70e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_08d119eb-99e8-4aa1-be95-b9cb24d2ad79" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_328743f0-0495-4f05-932a-35989026c70e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_aa29fdb4-62c9-4980-a2fc-8fc07dfb418e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_942399c8-d53a-43bb-8378-26b3188b987a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_aa29fdb4-62c9-4980-a2fc-8fc07dfb418e" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_942399c8-d53a-43bb-8378-26b3188b987a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c9a88f3f-6718-45c2-a02a-9be7e1b4c3ad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_aa29fdb4-62c9-4980-a2fc-8fc07dfb418e" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c9a88f3f-6718-45c2-a02a-9be7e1b4c3ad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0549a4d4-b053-428e-a880-b1d3d4f59764" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_31b6a279-9130-4a4b-b672-0c1844acf98d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0549a4d4-b053-428e-a880-b1d3d4f59764" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_31b6a279-9130-4a4b-b672-0c1844acf98d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_058779b3-fe5c-4fed-ae06-58aa75112b4c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0549a4d4-b053-428e-a880-b1d3d4f59764" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_058779b3-fe5c-4fed-ae06-58aa75112b4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_997a5ddf-3f5d-43ab-a671-dcc850c214bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0549a4d4-b053-428e-a880-b1d3d4f59764" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_997a5ddf-3f5d-43ab-a671-dcc850c214bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_5f900163-7893-4380-b8e9-96a5013b9518" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_4d07f73e-b45b-48aa-9a25-35d686f7067e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_5f900163-7893-4380-b8e9-96a5013b9518" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_4d07f73e-b45b-48aa-9a25-35d686f7067e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_96ed8014-9556-4be5-97cd-d666335654f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_5f900163-7893-4380-b8e9-96a5013b9518" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_96ed8014-9556-4be5-97cd-d666335654f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_7041bbb8-5627-4004-a6a2-bb2abaec1876" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_5f900163-7893-4380-b8e9-96a5013b9518" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_7041bbb8-5627-4004-a6a2-bb2abaec1876" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDeferredIncome_67c0d46d-523b-4914-b99f-0afbf831502b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsDeferredIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsDeferredIncome_67c0d46d-523b-4914-b99f-0afbf831502b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_d5ff83a2-c017-4b04-9ce9-9ae45bbfb848" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_d5ff83a2-c017-4b04-9ce9-9ae45bbfb848" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_a0d71fba-d0b8-4f83-a1bf-6d13c350e4d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_a0d71fba-d0b8-4f83-a1bf-6d13c350e4d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_0c52d0c6-6053-4657-a4bd-c4bac030642e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_0c52d0c6-6053-4657-a4bd-c4bac030642e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_3676cd5b-fd39-467c-abb9-aa462147214a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_3676cd5b-fd39-467c-abb9-aa462147214a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_dece1aae-ca43-49a9-8a6f-2a132d8e4068" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_dece1aae-ca43-49a9-8a6f-2a132d8e4068" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_5b132b4c-85bc-42e1-97d9-19f1ba667fc2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_07a5c604-0376-45ef-b9e5-d58189f73c91" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_5b132b4c-85bc-42e1-97d9-19f1ba667fc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_65904e4d-b9c4-41a7-afe8-911893ad9dab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_55392bcb-9834-4ddb-9c06-126573e1b655" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_65904e4d-b9c4-41a7-afe8-911893ad9dab" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_55392bcb-9834-4ddb-9c06-126573e1b655" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_7accae20-e9b7-4c81-a7ce-8f8b76776f01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_65904e4d-b9c4-41a7-afe8-911893ad9dab" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_7accae20-e9b7-4c81-a7ce-8f8b76776f01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_952d440f-2435-42f7-a152-eae815fec09c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_65904e4d-b9c4-41a7-afe8-911893ad9dab" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_952d440f-2435-42f7-a152-eae815fec09c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_7c348474-3883-4c48-a3b7-4ad6967e278e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_7c348474-3883-4c48-a3b7-4ad6967e278e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_b32cc05a-0f9f-4a68-ad0f-d3bcd0299a34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_b32cc05a-0f9f-4a68-ad0f-d3bcd0299a34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_412161cf-f9b5-44b5-a98a-342d175f02f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_412161cf-f9b5-44b5-a98a-342d175f02f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_e4c85b2b-5c9e-4949-809b-68fba5229284" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_e4c85b2b-5c9e-4949-809b-68fba5229284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_60d770f8-da3e-44b5-bdec-197f6fee3ae5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_60d770f8-da3e-44b5-bdec-197f6fee3ae5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_586a195e-6bb8-4c71-8984-77773279af1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_586a195e-6bb8-4c71-8984-77773279af1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_20c68f5b-43ca-4813-9367-db872135aed3" xlink:href="wdc-20210702.xsd#wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_20c68f5b-43ca-4813-9367-db872135aed3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_6462c7f0-2e8e-41f2-af33-4c2fc4f09010" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_6462c7f0-2e8e-41f2-af33-4c2fc4f09010" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_66d0f874-e3de-4f3f-acce-1966306cd265" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_66d0f874-e3de-4f3f-acce-1966306cd265" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_f7363662-f081-40c5-af6b-8cc156b03862" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_f7363662-f081-40c5-af6b-8cc156b03862" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent_ce9a0d83-aa2e-4667-84c4-b7646c48a0e2" xlink:href="wdc-20210702.xsd#wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017MandatoryDeemedReparationTaxPercent_ce9a0d83-aa2e-4667-84c4-b7646c48a0e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent_aaad461f-69fe-46cb-b6f8-c039561b669e" xlink:href="wdc-20210702.xsd#wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationTaxCutsandJobsActof2017ChangeinTaxRateDeferredTaxesPercent_aaad461f-69fe-46cb-b6f8-c039561b669e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_40674bfe-caf5-4587-a76b-16b0c554c192" xlink:href="wdc-20210702.xsd#wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_40674bfe-caf5-4587-a76b-16b0c554c192" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent_dee9e265-6ab2-47f7-a003-fb75a7902114" xlink:href="wdc-20210702.xsd#wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_af189041-e88a-4764-b56b-5a0fda369227" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignDerivedIntangibleIncomePercent_dee9e265-6ab2-47f7-a003-fb75a7902114" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210702.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_56a83aeb-8b41-40b0-b91c-300d09abfa9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_14cdcc3e-8f5e-4237-821d-6370c458eb2f" 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_WeightedAverageNumberOfDilutedSharesOutstanding_56a83aeb-8b41-40b0-b91c-300d09abfa9c" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_14cdcc3e-8f5e-4237-821d-6370c458eb2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_fb1ebf15-d574-4e33-8a90-8b05a3f54c1a" 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_WeightedAverageNumberOfDilutedSharesOutstanding_56a83aeb-8b41-40b0-b91c-300d09abfa9c" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_fb1ebf15-d574-4e33-8a90-8b05a3f54c1a" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
