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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:fc8f75a3-0b6f-4ff3-97c8-b0915d66f8b6,g:55b115f6-eed2-4980-9b42-976764ec3332-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="wdc-20240329.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_786907de-6da6-4e2b-a30f-da2aa568200e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:to="loc_us-gaap_AccountsPayableCurrent_786907de-6da6-4e2b-a30f-da2aa568200e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_03bf78ff-dfa0-4218-90b7-23552e83f72c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_03bf78ff-dfa0-4218-90b7-23552e83f72c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_01f4f4fc-2380-426c-8e8d-387f2c942607" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_01f4f4fc-2380-426c-8e8d-387f2c942607" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_588d7ec6-9682-4d8e-b5df-a40c56c219a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_588d7ec6-9682-4d8e-b5df-a40c56c219a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_283a35f4-08d0-485d-b6ba-2537e7f69296" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_78fca74f-5da8-4561-95f9-1b60d7185374" xlink:to="loc_us-gaap_LongTermDebtCurrent_283a35f4-08d0-485d-b6ba-2537e7f69296" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c8f25c4e-85e5-4235-8de3-87186309eaa0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_33d313bb-0df2-4084-86fe-1305afb6db68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_c8f25c4e-85e5-4235-8de3-87186309eaa0" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_33d313bb-0df2-4084-86fe-1305afb6db68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_84184693-c712-4960-81cf-69d245f2f59e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_c8f25c4e-85e5-4235-8de3-87186309eaa0" xlink:to="loc_us-gaap_CommonStockValue_84184693-c712-4960-81cf-69d245f2f59e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_7e9fd484-4f31-4f1e-849b-68d6edac250d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c8f25c4e-85e5-4235-8de3-87186309eaa0" xlink:to="loc_us-gaap_AdditionalPaidInCapital_7e9fd484-4f31-4f1e-849b-68d6edac250d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9e4080db-4c85-43e3-af60-3b0706f76c05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c8f25c4e-85e5-4235-8de3-87186309eaa0" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9e4080db-4c85-43e3-af60-3b0706f76c05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_8892bd4b-5020-44e4-ade4-db0d482569f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_40bd3a87-4a10-43b3-9781-a1d71d6340fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8892bd4b-5020-44e4-ade4-db0d482569f1" xlink:to="loc_us-gaap_StockholdersEquity_40bd3a87-4a10-43b3-9781-a1d71d6340fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_3fc188ee-1fbc-442c-b776-b0b4d10fa690" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8892bd4b-5020-44e4-ade4-db0d482569f1" xlink:to="loc_us-gaap_Liabilities_3fc188ee-1fbc-442c-b776-b0b4d10fa690" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_d56206f8-25f7-413e-983c-76df4acbae66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8892bd4b-5020-44e4-ade4-db0d482569f1" xlink:to="loc_us-gaap_CommitmentsAndContingencies_d56206f8-25f7-413e-983c-76df4acbae66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_e1b47a1c-5e7c-49e0-a139-fd752f3d41c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_8892bd4b-5020-44e4-ade4-db0d482569f1" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_e1b47a1c-5e7c-49e0-a139-fd752f3d41c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6b0c6b23-4901-4a15-9d0f-be7418710d89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_d211f3fb-565f-4f68-8d8e-94bcf0c3b2da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6b0c6b23-4901-4a15-9d0f-be7418710d89" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_d211f3fb-565f-4f68-8d8e-94bcf0c3b2da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_c131b5f7-8c0f-4ab6-9785-f557e1106db7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b0c6b23-4901-4a15-9d0f-be7418710d89" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_c131b5f7-8c0f-4ab6-9785-f557e1106db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_c7bf7617-f3fc-4c3f-8b90-d49fd242ebdc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6b0c6b23-4901-4a15-9d0f-be7418710d89" xlink:to="loc_us-gaap_LiabilitiesCurrent_c7bf7617-f3fc-4c3f-8b90-d49fd242ebdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_14a69847-a6ef-4abd-8354-2384cc7439ec" xlink:href="wdc-20240329.xsd#wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_14a69847-a6ef-4abd-8354-2384cc7439ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_8e29a3ee-ab70-4e5d-9cba-bbe9eda01d81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_8e29a3ee-ab70-4e5d-9cba-bbe9eda01d81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_5267e451-6189-464e-9ea2-1e5014bfc3ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_5267e451-6189-464e-9ea2-1e5014bfc3ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_057bb29b-53f3-40a7-8864-85fdd5ca699b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_057bb29b-53f3-40a7-8864-85fdd5ca699b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_d2e4197e-b714-4292-8e6f-5636c5bd2d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_us-gaap_Goodwill_d2e4197e-b714-4292-8e6f-5636c5bd2d9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_aefc3375-2879-4740-bdea-5b4992533c56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e684f54a-3c92-4f7d-ac50-0c234408992f" xlink:to="loc_us-gaap_AssetsCurrent_aefc3375-2879-4740-bdea-5b4992533c56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_8c53880f-7d7e-4444-b1c6-04e5ca9ab2fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_63a98c8a-8a8d-496f-bd1a-797d39100e60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8c53880f-7d7e-4444-b1c6-04e5ca9ab2fa" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_63a98c8a-8a8d-496f-bd1a-797d39100e60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1cc931f6-cd25-4057-ba93-5d357bbcff7a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8c53880f-7d7e-4444-b1c6-04e5ca9ab2fa" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1cc931f6-cd25-4057-ba93-5d357bbcff7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_77b50998-8c38-4180-9a5d-78e1d2de38ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8c53880f-7d7e-4444-b1c6-04e5ca9ab2fa" xlink:to="loc_us-gaap_OtherAssetsCurrent_77b50998-8c38-4180-9a5d-78e1d2de38ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_0d0a7d67-2791-4e0b-a7b0-acbbdd72adc2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8c53880f-7d7e-4444-b1c6-04e5ca9ab2fa" xlink:to="loc_us-gaap_InventoryNet_0d0a7d67-2791-4e0b-a7b0-acbbdd72adc2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20240329.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_2679a442-e3f8-48f2-b28f-476328711c09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c186888f-7555-43e6-ab20-e63765c6cf96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_NetIncomeLossAvailableToCommonStockholdersBasic_2679a442-e3f8-48f2-b28f-476328711c09" xlink:to="loc_us-gaap_NetIncomeLoss_c186888f-7555-43e6-ab20-e63765c6cf96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_b12bdfcd-7a00-4e6a-85ef-0ecb390194e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_2679a442-e3f8-48f2-b28f-476328711c09" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_b12bdfcd-7a00-4e6a-85ef-0ecb390194e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_16641340-0886-4bed-ac11-2229958b2c0c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_2679a442-e3f8-48f2-b28f-476328711c09" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_16641340-0886-4bed-ac11-2229958b2c0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_22427165-2edc-4f73-9a45-c1840d15bdda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e70fe9b2-685c-4c8d-a75a-85d09d409f41" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_22427165-2edc-4f73-9a45-c1840d15bdda" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e70fe9b2-685c-4c8d-a75a-85d09d409f41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_b831c3c5-9381-4598-a232-54c0155e28d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_22427165-2edc-4f73-9a45-c1840d15bdda" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_b831c3c5-9381-4598-a232-54c0155e28d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_dd974faf-b6ef-4182-8f3b-63051dc23702" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8163edd7-230c-412a-8968-bd255a0a00c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_dd974faf-b6ef-4182-8f3b-63051dc23702" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8163edd7-230c-412a-8968-bd255a0a00c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_c32fcb65-aee7-4053-87c3-b3ea78abb0e1" xlink:href="wdc-20240329.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_dd974faf-b6ef-4182-8f3b-63051dc23702" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_c32fcb65-aee7-4053-87c3-b3ea78abb0e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6a17f8f9-a201-45f7-8b99-5a8324cc58fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_dd974faf-b6ef-4182-8f3b-63051dc23702" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_6a17f8f9-a201-45f7-8b99-5a8324cc58fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessSeparationCosts_d4d0ec05-4b0a-47c5-b4f2-9e86e39fc874" xlink:href="wdc-20240329.xsd#wdc_BusinessSeparationCosts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_dd974faf-b6ef-4182-8f3b-63051dc23702" xlink:to="loc_wdc_BusinessSeparationCosts_d4d0ec05-4b0a-47c5-b4f2-9e86e39fc874" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_e9e7b79a-39dc-4894-9322-0f0463915ac9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_0c72e115-9045-40fc-8a13-3fca62b51d56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e9e7b79a-39dc-4894-9322-0f0463915ac9" xlink:to="loc_us-gaap_InvestmentIncomeInterest_0c72e115-9045-40fc-8a13-3fca62b51d56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_0bd7c29c-adca-4904-b9c2-7c5d0ae41b40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e9e7b79a-39dc-4894-9322-0f0463915ac9" xlink:to="loc_us-gaap_InterestExpense_0bd7c29c-adca-4904-b9c2-7c5d0ae41b40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_fa50fbd0-4884-46f4-a7fe-39a810f6fad1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e9e7b79a-39dc-4894-9322-0f0463915ac9" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_fa50fbd0-4884-46f4-a7fe-39a810f6fad1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4e9c0b82-3ce4-43f0-9c5f-f5371e9595a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5d0c51e2-195f-4ece-92ca-951a251b43d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4e9c0b82-3ce4-43f0-9c5f-f5371e9595a7" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5d0c51e2-195f-4ece-92ca-951a251b43d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8792c14b-39a7-4036-a033-15dc65c2ed4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e9c0b82-3ce4-43f0-9c5f-f5371e9595a7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8792c14b-39a7-4036-a033-15dc65c2ed4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d97a14a8-7dc0-458c-bbf8-d8fa0983d156" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_4dc53333-fc6d-40b1-a062-cc9dc6bf891f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d97a14a8-7dc0-458c-bbf8-d8fa0983d156" xlink:to="loc_us-gaap_OperatingExpenses_4dc53333-fc6d-40b1-a062-cc9dc6bf891f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_fa36405a-de8c-41ad-a29d-111d5dda7eff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d97a14a8-7dc0-458c-bbf8-d8fa0983d156" xlink:to="loc_us-gaap_GrossProfit_fa36405a-de8c-41ad-a29d-111d5dda7eff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_76f385ff-b229-493c-80f8-29ec52f4aef2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e7e61d02-fcdd-4e55-bf03-be918e30a5a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_76f385ff-b229-493c-80f8-29ec52f4aef2" xlink:to="loc_us-gaap_OperatingIncomeLoss_e7e61d02-fcdd-4e55-bf03-be918e30a5a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_3afd97cf-9fbc-4f0c-8b9d-5933c76ed1be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_76f385ff-b229-493c-80f8-29ec52f4aef2" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_3afd97cf-9fbc-4f0c-8b9d-5933c76ed1be" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="wdc-20240329.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9ac3c0f9-78f7-4e4b-9ffe-facb2be498bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_cda806f7-030e-4081-9a4f-614c60b1a07c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9ac3c0f9-78f7-4e4b-9ffe-facb2be498bd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_cda806f7-030e-4081-9a4f-614c60b1a07c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_909cafbe-44c7-4751-8b11-f98517ffd444" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9ac3c0f9-78f7-4e4b-9ffe-facb2be498bd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_909cafbe-44c7-4751-8b11-f98517ffd444" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa6dc6b-f0b5-49e9-b82a-495d7cdbdc56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_201e7871-dda5-486f-8392-57901234b3c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa6dc6b-f0b5-49e9-b82a-495d7cdbdc56" xlink:to="loc_us-gaap_NetIncomeLoss_201e7871-dda5-486f-8392-57901234b3c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_22d046d2-15e4-4689-9fc0-2e1f9da0acd8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa6dc6b-f0b5-49e9-b82a-495d7cdbdc56" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_22d046d2-15e4-4689-9fc0-2e1f9da0acd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_d4a53b6a-edec-4305-b9cc-f594283b4a06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_e54415e3-bf2e-40d4-a05a-488318435d1c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_d4a53b6a-edec-4305-b9cc-f594283b4a06" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_e54415e3-bf2e-40d4-a05a-488318435d1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_ee6e574d-bb5e-4f35-b44c-06c9712a8842" xlink:href="wdc-20240329.xsd#wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_d4a53b6a-edec-4305-b9cc-f594283b4a06" xlink:to="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_ee6e574d-bb5e-4f35-b44c-06c9712a8842" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9f577dac-b87d-44ba-b71c-d23ee159b08a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_d4a53b6a-edec-4305-b9cc-f594283b4a06" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_9f577dac-b87d-44ba-b71c-d23ee159b08a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20240329.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_79dadaa3-5466-4060-bf1d-5607b5b6bdca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_ShareBasedCompensation_79dadaa3-5466-4060-bf1d-5607b5b6bdca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_056b11e1-3d0b-4bbd-a94f-e79381c19be4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_056b11e1-3d0b-4bbd-a94f-e79381c19be4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_6c22778a-4858-42b5-be92-5bda43f1738a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_6c22778a-4858-42b5-be92-5bda43f1738a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_981bf6e7-9df5-4557-a829-edc45623fecb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_981bf6e7-9df5-4557-a829-edc45623fecb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_8338a733-f05f-49ee-93a1-91300f3426ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_8338a733-f05f-49ee-93a1-91300f3426ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_26fe55eb-a515-4b84-ac20-393362b09b54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_26fe55eb-a515-4b84-ac20-393362b09b54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_ea9a1f2d-9486-4f58-9186-a6a254659f72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_ea9a1f2d-9486-4f58-9186-a6a254659f72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_c7f511c0-54c0-4138-b449-ff8c6ad707da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_c7f511c0-54c0-4138-b449-ff8c6ad707da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_dec29d77-161b-4965-b150-c3cecab7620f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_dec29d77-161b-4965-b150-c3cecab7620f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_19b9cb34-0321-4fb1-a502-7a39af07faba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_NetIncomeLoss_19b9cb34-0321-4fb1-a502-7a39af07faba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_52c853a6-a1d1-46bd-9c52-b8692e4b7dc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_52c853a6-a1d1-46bd-9c52-b8692e4b7dc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_8ad71a1a-7584-4f3e-b3ee-2cd17d6d6164" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_8ad71a1a-7584-4f3e-b3ee-2cd17d6d6164" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_52aaf5a2-227d-4ecf-b5a5-054f5f870c16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_52aaf5a2-227d-4ecf-b5a5-054f5f870c16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_67198c4f-ad9f-48e4-a134-1ef564ce4341" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_67198c4f-ad9f-48e4-a134-1ef564ce4341" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_4483e82d-f5f2-4ef8-ae45-54198440cfbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_DepreciationAndAmortization_4483e82d-f5f2-4ef8-ae45-54198440cfbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NonCashPortionOfAssetImpairment_d06215ca-b0f3-4ae9-9734-994a6a28fa39" xlink:href="wdc-20240329.xsd#wdc_NonCashPortionOfAssetImpairment"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_wdc_NonCashPortionOfAssetImpairment_d06215ca-b0f3-4ae9-9734-994a6a28fa39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnRepurchaseOfDebtInstrument_38dc1160-9414-4cc1-9059-e565d2e96db4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnRepurchaseOfDebtInstrument"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_22c4cc10-b8fa-431d-897c-304b3cd895ab" xlink:to="loc_us-gaap_GainLossOnRepurchaseOfDebtInstrument_38dc1160-9414-4cc1-9059-e565d2e96db4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_d20e5d9d-ebb8-40d2-9ce3-10bc27926ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_RepaymentsOfDebt_d20e5d9d-ebb8-40d2-9ce3-10bc27926ce2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_8083cdf7-9eea-42a7-94f1-6b63a975ff6f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_8083cdf7-9eea-42a7-94f1-6b63a975ff6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_c1db8ef0-170d-4c92-9732-bd4e6a5770fd" xlink:href="wdc-20240329.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_c1db8ef0-170d-4c92-9732-bd4e6a5770fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_d402b553-d97a-47b1-872a-d0557f63991b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_d402b553-d97a-47b1-872a-d0557f63991b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_0aaddd7c-7780-4b50-ab5d-315dbbdd1690" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_0aaddd7c-7780-4b50-ab5d-315dbbdd1690" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_d3223314-515d-4db8-9e87-ddbe9c0a6f66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_d3223314-515d-4db8-9e87-ddbe9c0a6f66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_39888be2-8ee7-4c5d-9b09-4189053bf05a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_39888be2-8ee7-4c5d-9b09-4189053bf05a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForRepurchaseOfDebt_4c6fe966-e020-474c-a2e7-cf96b52ea476" xlink:href="wdc-20240329.xsd#wdc_PaymentsForRepurchaseOfDebt"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_00d237a3-56da-43b2-8b56-d2fa95c606cb" xlink:to="loc_wdc_PaymentsForRepurchaseOfDebt_4c6fe966-e020-474c-a2e7-cf96b52ea476" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_f8910652-f11b-4f8a-adda-999bcf228731" xlink:href="wdc-20240329.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_f8910652-f11b-4f8a-adda-999bcf228731" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5b776e50-a26f-4011-ab11-e4cc9a9cab14" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5b776e50-a26f-4011-ab11-e4cc9a9cab14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_9f1cb856-5807-4a4b-ae95-f6696efd997b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_9f1cb856-5807-4a4b-ae95-f6696efd997b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_fa3e32bd-6ece-43f5-8126-877d6e99880c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_fa3e32bd-6ece-43f5-8126-877d6e99880c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_f701f5e3-886b-4504-a663-5e3e88ffddb1" xlink:href="wdc-20240329.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_033d68f8-4382-4391-b41a-eea73be91ee3" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_f701f5e3-886b-4504-a663-5e3e88ffddb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_738f35d4-acf9-42a0-873e-51e056f20926" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9b8b19b7-0367-4486-a81b-441e80078162" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_738f35d4-acf9-42a0-873e-51e056f20926" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9b8b19b7-0367-4486-a81b-441e80078162" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_860ea73b-d21b-4720-883b-3e97e5e00d4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_738f35d4-acf9-42a0-873e-51e056f20926" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_860ea73b-d21b-4720-883b-3e97e5e00d4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9153b273-c1b2-46d2-82ee-560e94623bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_738f35d4-acf9-42a0-873e-51e056f20926" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9153b273-c1b2-46d2-82ee-560e94623bbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_82656b8c-14c3-4580-858e-43313eb52c81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_738f35d4-acf9-42a0-873e-51e056f20926" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_82656b8c-14c3-4580-858e-43313eb52c81" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofInventoriesDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#SupplementalFinancialStatementDataScheduleofInventoriesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofInventoriesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_d7f5a3e7-8085-41dd-9eaa-e3582e0c5907" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_576c8cf4-bda9-4e31-9ee7-72bb5e475d94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d7f5a3e7-8085-41dd-9eaa-e3582e0c5907" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_576c8cf4-bda9-4e31-9ee7-72bb5e475d94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_5bfac53f-b769-4a06-8bf0-e44963d1a666" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d7f5a3e7-8085-41dd-9eaa-e3582e0c5907" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_5bfac53f-b769-4a06-8bf0-e44963d1a666" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_43aae4c1-d736-4bec-b4f6-ac5ba8920500" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d7f5a3e7-8085-41dd-9eaa-e3582e0c5907" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_43aae4c1-d736-4bec-b4f6-ac5ba8920500" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5aab6be1-c190-4e30-aaa8-d61c91804de7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_62d4a5d0-7985-4ecd-9950-181f0dba2613" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5aab6be1-c190-4e30-aaa8-d61c91804de7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_62d4a5d0-7985-4ecd-9950-181f0dba2613" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3fe1eb9e-fc46-42c7-9edc-a90729ce4980" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5aab6be1-c190-4e30-aaa8-d61c91804de7" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3fe1eb9e-fc46-42c7-9edc-a90729ce4980" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrual_021a451e-0064-4e8c-94ba-915c211dbc17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_0809f19d-3f3c-408e-be25-d8483161d78c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_021a451e-0064-4e8c-94ba-915c211dbc17" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_0809f19d-3f3c-408e-be25-d8483161d78c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_cf47fedd-fc59-4bd2-af5f-fb17b025e451" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_021a451e-0064-4e8c-94ba-915c211dbc17" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_cf47fedd-fc59-4bd2-af5f-fb17b025e451" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_513e90f8-daad-4629-8e7d-6937dbc9b225" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_447c3ec2-2a57-4674-aad6-b50862b1c5ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_513e90f8-daad-4629-8e7d-6937dbc9b225" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_447c3ec2-2a57-4674-aad6-b50862b1c5ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_52c6c362-fe84-446e-9ec7-d85851d52583" xlink:href="wdc-20240329.xsd#wdc_OtherMiscellaneousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_513e90f8-daad-4629-8e7d-6937dbc9b225" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_52c6c362-fe84-446e-9ec7-d85851d52583" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_e2d39365-b30a-4ca8-89d4-42a2bb511943" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_513e90f8-daad-4629-8e7d-6937dbc9b225" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_e2d39365-b30a-4ca8-89d4-42a2bb511943" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_384ba3de-e0a7-4a0f-b87a-f9195158e90e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_72dd6ec6-0ac2-4063-b360-5001fe058b98" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_384ba3de-e0a7-4a0f-b87a-f9195158e90e" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_72dd6ec6-0ac2-4063-b360-5001fe058b98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_13c43a6c-f836-4a11-9201-5f37e60ffed5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_384ba3de-e0a7-4a0f-b87a-f9195158e90e" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_13c43a6c-f836-4a11-9201-5f37e60ffed5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3742da7e-15ef-46c2-9481-ae1b97886f2e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_384ba3de-e0a7-4a0f-b87a-f9195158e90e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3742da7e-15ef-46c2-9481-ae1b97886f2e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_e1783a95-b35c-4caf-9163-f0d3e0cfce53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_0ccf04c7-d97f-4228-a2c5-6240ab152c7e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e1783a95-b35c-4caf-9163-f0d3e0cfce53" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_0ccf04c7-d97f-4228-a2c5-6240ab152c7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_a8f2b3d5-43b6-49de-a1f9-8da536f0c037" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e1783a95-b35c-4caf-9163-f0d3e0cfce53" xlink:to="loc_us-gaap_DerivativeAssets_a8f2b3d5-43b6-49de-a1f9-8da536f0c037" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_b711eabe-94ed-491e-af74-f5feb828ac23" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e1783a95-b35c-4caf-9163-f0d3e0cfce53" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_b711eabe-94ed-491e-af74-f5feb828ac23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_6300ce8d-8d3c-4a7b-ae9b-d61ba401f4d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_e7536c0b-e097-4ef4-bc5b-63a3a1465004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_6300ce8d-8d3c-4a7b-ae9b-d61ba401f4d0" xlink:to="loc_us-gaap_DerivativeLiabilities_e7536c0b-e097-4ef4-bc5b-63a3a1465004" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20240329.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_cb02f7ef-faa8-41ec-9d2e-3184a453fc64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_8d875eaa-2aa2-4011-8c76-4a0c228a1d44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_cb02f7ef-faa8-41ec-9d2e-3184a453fc64" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_8d875eaa-2aa2-4011-8c76-4a0c228a1d44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_2c9d0675-0c33-4957-997a-c9be83baea16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_cb02f7ef-faa8-41ec-9d2e-3184a453fc64" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_2c9d0675-0c33-4957-997a-c9be83baea16" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20240329.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_da3f77f0-827a-44dd-a07f-7cfc5e4e125b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_65e28d62-6fce-4f4b-be24-1f01ba78a8e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_LongTermDebt_da3f77f0-827a-44dd-a07f-7cfc5e4e125b" xlink:to="loc_us-gaap_LongTermDebtCurrent_65e28d62-6fce-4f4b-be24-1f01ba78a8e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_5edef6c4-7b5f-43c4-b24b-dc890d18e7bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_LongTermDebt_da3f77f0-827a-44dd-a07f-7cfc5e4e125b" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_5edef6c4-7b5f-43c4-b24b-dc890d18e7bc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_85a42290-1003-4720-bcd3-b15a9ba7aba9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_6e02bbc1-3dc4-439e-9e35-32c66caf6f81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_85a42290-1003-4720-bcd3-b15a9ba7aba9" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_6e02bbc1-3dc4-439e-9e35-32c66caf6f81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_8989cac6-624c-4e56-ab77-890cb1220d48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_85a42290-1003-4720-bcd3-b15a9ba7aba9" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_8989cac6-624c-4e56-ab77-890cb1220d48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_33bb99c4-3140-4f79-a6ab-04f846b01f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_247707e2-7e3d-4002-ad4f-efc5ef273eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_33bb99c4-3140-4f79-a6ab-04f846b01f7b" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_247707e2-7e3d-4002-ad4f-efc5ef273eb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_3d17e09c-2292-4e16-99bb-ad25e8629fcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_33bb99c4-3140-4f79-a6ab-04f846b01f7b" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_3d17e09c-2292-4e16-99bb-ad25e8629fcb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_430c1ff7-8c48-49f7-b02e-e27f343e3e62" xlink:href="wdc-20240329.xsd#wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_af78864e-faee-4948-bc20-512f8d6ddd64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_430c1ff7-8c48-49f7-b02e-e27f343e3e62" xlink:to="loc_us-gaap_NotesReceivableNet_af78864e-faee-4948-bc20-512f8d6ddd64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_a6cba54a-743c-47a6-884e-9328f4e9f3b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_430c1ff7-8c48-49f7-b02e-e27f343e3e62" xlink:to="loc_us-gaap_Investments_a6cba54a-743c-47a6-884e-9328f4e9f3b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_82bba4a3-9e49-4ab4-af8b-3c46e9ae9da9" xlink:href="wdc-20240329.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_82bba4a3-9e49-4ab4-af8b-3c46e9ae9da9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_0017804d-8fdb-4801-bfc0-54b305795e60" xlink:href="wdc-20240329.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_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_0017804d-8fdb-4801-bfc0-54b305795e60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_a56e4bd9-8890-45b1-a939-db18308f2284" xlink:href="wdc-20240329.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_a56e4bd9-8890-45b1-a939-db18308f2284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_23c77858-a9f0-4053-a3fb-cfc8d5398a01" xlink:href="wdc-20240329.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_23c77858-a9f0-4053-a3fb-cfc8d5398a01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63f4cff5-5600-4681-af00-ce363efd2a9c" xlink:href="wdc-20240329.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63f4cff5-5600-4681-af00-ce363efd2a9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_be1ce81a-67c1-49a8-8ca2-d508f736d572" xlink:href="wdc-20240329.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_d692eb27-fa1e-49be-b3a4-df9a2160ac4b" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_be1ce81a-67c1-49a8-8ca2-d508f736d572" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_60b2f480-b60c-478a-ad5e-fc7635667742" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_60b2f480-b60c-478a-ad5e-fc7635667742" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_46136ce9-0afe-4356-a08e-24e08be480db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_46136ce9-0afe-4356-a08e-24e08be480db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9fad79d4-fae7-44e2-b8e1-cb305562e9ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9fad79d4-fae7-44e2-b8e1-cb305562e9ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8474769b-aa6e-4c84-a973-9b54cd897e50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8474769b-aa6e-4c84-a973-9b54cd897e50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_91acc85a-842f-4866-a163-3e09e4299ded" xlink:href="wdc-20240329.xsd#wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_91acc85a-842f-4866-a163-3e09e4299ded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_28cd850d-5273-4b72-87f4-69f23f100a61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2f4e23b9-dbc0-455a-a76a-1965999b497b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_28cd850d-5273-4b72-87f4-69f23f100a61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_d4e9ff17-d80e-4df1-960d-d34400b7e699" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d7aa4f84-91e6-47b1-84b3-bc137f3216e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d4e9ff17-d80e-4df1-960d-d34400b7e699" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d7aa4f84-91e6-47b1-84b3-bc137f3216e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b813d904-366d-43b4-a241-92a6023563af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d4e9ff17-d80e-4df1-960d-d34400b7e699" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b813d904-366d-43b4-a241-92a6023563af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails_1" xlink:type="simple" xlink:href="wdc-20240329.xsd#LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofSupplementalBalanceSheetDisclosuresDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c6d89e88-c1f7-46b2-bfdc-46ca5d6eec02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_fa40e6e4-9f10-4007-8012-c4fe2e1a5ab5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c6d89e88-c1f7-46b2-bfdc-46ca5d6eec02" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_fa40e6e4-9f10-4007-8012-c4fe2e1a5ab5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_0a861f85-f954-46f9-a737-8e93272b3934" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c6d89e88-c1f7-46b2-bfdc-46ca5d6eec02" xlink:to="loc_us-gaap_OperatingLeaseLiability_0a861f85-f954-46f9-a737-8e93272b3934" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_5b6be320-be3e-473f-a965-c098f041f5d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_5b6be320-be3e-473f-a965-c098f041f5d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_960416dc-c297-444c-b03f-32125a7b4e01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_960416dc-c297-444c-b03f-32125a7b4e01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_f7a823c5-b6e8-4e23-86d3-a9d9cab20ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_f7a823c5-b6e8-4e23-86d3-a9d9cab20ca6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_ac5f9d57-7708-46c7-956a-610fce0859c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_ac5f9d57-7708-46c7-956a-610fce0859c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationToBePaidAfterYearFour_1a37212a-21a9-4a7f-84a4-853306d81ad0" xlink:href="wdc-20240329.xsd#wdc_PurchaseObligationToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_wdc_PurchaseObligationToBePaidAfterYearFour_1a37212a-21a9-4a7f-84a4-853306d81ad0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_30654b17-0759-47f3-8a1d-cb369a0cbe73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_14589bd6-cf10-4e94-a7d8-edf2afd664dd" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_30654b17-0759-47f3-8a1d-cb369a0cbe73" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_a55ad166-2832-462d-8628-58fac60e91b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_6259ad15-c4a4-4898-88eb-d7af81c3bc93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a55ad166-2832-462d-8628-58fac60e91b1" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_6259ad15-c4a4-4898-88eb-d7af81c3bc93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_74e19b78-0f57-4530-ac1e-e3ffdddf9fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a55ad166-2832-462d-8628-58fac60e91b1" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_74e19b78-0f57-4530-ac1e-e3ffdddf9fe1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_7df5a9d2-807a-4da0-ae34-52b47f9d27e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_041d7b80-0af7-4a4a-8610-0fbc97fc9f16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_7df5a9d2-807a-4da0-ae34-52b47f9d27e9" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_041d7b80-0af7-4a4a-8610-0fbc97fc9f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_3e4a3178-8d87-41ac-9d2a-a797ccefbce3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_7df5a9d2-807a-4da0-ae34-52b47f9d27e9" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_3e4a3178-8d87-41ac-9d2a-a797ccefbce3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherScheduleofNetchargesDetails" xlink:type="simple" xlink:href="wdc-20240329.xsd#EmployeeTerminationAssetImpairmentandOtherScheduleofNetchargesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherScheduleofNetchargesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_4098bea5-eb01-4973-bad4-93cb49a3e442" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_47cb4e4a-f80c-43fc-be81-9203242cc487" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_4098bea5-eb01-4973-bad4-93cb49a3e442" xlink:to="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_47cb4e4a-f80c-43fc-be81-9203242cc487" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_dd92d721-c9ea-4d90-8d3c-9293eddf1bff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_4098bea5-eb01-4973-bad4-93cb49a3e442" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_dd92d721-c9ea-4d90-8d3c-9293eddf1bff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_5e72605a-fb87-498c-a63a-69d28d20f6b5" xlink:href="wdc-20240329.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_4098bea5-eb01-4973-bad4-93cb49a3e442" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_5e72605a-fb87-498c-a63a-69d28d20f6b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_f77551ce-803b-485b-a9c7-5493079323f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossOnContractTermination"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_4098bea5-eb01-4973-bad4-93cb49a3e442" xlink:to="loc_us-gaap_LossOnContractTermination_f77551ce-803b-485b-a9c7-5493079323f7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
