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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:75988a4e-4563-4106-8372-afcb43236834,g:0cf3ed42-02d2-4815-8d4e-b4c94e853e15-->
<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-20241227.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_LiabilitiesAndStockholdersEquity_40f44379-26b4-4cf8-8240-33e187dbcf45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d5810d87-1e50-4a07-aa88-372c74765c52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_40f44379-26b4-4cf8-8240-33e187dbcf45" xlink:to="loc_us-gaap_StockholdersEquity_d5810d87-1e50-4a07-aa88-372c74765c52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5732590a-3cbf-4fe7-a7a7-2edd8f4e52f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_40f44379-26b4-4cf8-8240-33e187dbcf45" xlink:to="loc_us-gaap_Liabilities_5732590a-3cbf-4fe7-a7a7-2edd8f4e52f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_3a72c754-14a4-446a-b0ef-c12b3e831686" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_40f44379-26b4-4cf8-8240-33e187dbcf45" xlink:to="loc_us-gaap_CommitmentsAndContingencies_3a72c754-14a4-446a-b0ef-c12b3e831686" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_18bae409-29cf-40a7-98c8-b3aeee689650" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_40f44379-26b4-4cf8-8240-33e187dbcf45" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_18bae409-29cf-40a7-98c8-b3aeee689650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_d3bebf88-8ed6-4995-bae9-f9d2d0036779" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:to="loc_us-gaap_AccountsPayableCurrent_d3bebf88-8ed6-4995-bae9-f9d2d0036779" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_c7151a33-0f5a-4f11-a742-16771cab9819" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_c7151a33-0f5a-4f11-a742-16771cab9819" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_4b660e18-75b7-40ee-a871-5507efb35d4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_4b660e18-75b7-40ee-a871-5507efb35d4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_47a75db1-23cc-4aa2-b617-97439ecf5a51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_47a75db1-23cc-4aa2-b617-97439ecf5a51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_59e67ab7-2d35-4fa2-8d2f-f338152eabf1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9e7ae9ea-3932-469f-87b3-3f6d7e951f60" xlink:to="loc_us-gaap_LongTermDebtCurrent_59e67ab7-2d35-4fa2-8d2f-f338152eabf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_4524f310-a395-4f60-85a7-59a9dc57f463" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_a8f8a3ae-3f6d-41e1-8859-48b86ca19750" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4524f310-a395-4f60-85a7-59a9dc57f463" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_a8f8a3ae-3f6d-41e1-8859-48b86ca19750" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_220f0727-0950-4f7a-b60b-571464658e8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4524f310-a395-4f60-85a7-59a9dc57f463" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_220f0727-0950-4f7a-b60b-571464658e8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_64186f2b-1a81-4e2c-bcf6-57b55241a54f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4524f310-a395-4f60-85a7-59a9dc57f463" xlink:to="loc_us-gaap_LiabilitiesCurrent_64186f2b-1a81-4e2c-bcf6-57b55241a54f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_11a095e6-fcb2-4bb1-8816-0795a85105a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_4e2946d2-04e7-4a3a-be6c-d6ccc5b405e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_11a095e6-fcb2-4bb1-8816-0795a85105a3" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_4e2946d2-04e7-4a3a-be6c-d6ccc5b405e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_d639b2a3-c8f2-482f-80f5-e0ae25227481" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_11a095e6-fcb2-4bb1-8816-0795a85105a3" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_d639b2a3-c8f2-482f-80f5-e0ae25227481" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_03ee225f-a170-428d-89cf-0cc23b13ff72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_11a095e6-fcb2-4bb1-8816-0795a85105a3" xlink:to="loc_us-gaap_OtherAssetsCurrent_03ee225f-a170-428d-89cf-0cc23b13ff72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_ae3605f9-5bc4-46ea-a3ff-e08470c5e731" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_11a095e6-fcb2-4bb1-8816-0795a85105a3" xlink:to="loc_us-gaap_InventoryNet_ae3605f9-5bc4-46ea-a3ff-e08470c5e731" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4752b319-c406-4603-9883-ae9f08a5955d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_03620cf8-ee2e-4b98-b5b4-f2fd261abd20" xlink:href="wdc-20241227.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_03620cf8-ee2e-4b98-b5b4-f2fd261abd20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_1cc512d0-f510-46b2-a541-654f8ccd315f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_1cc512d0-f510-46b2-a541-654f8ccd315f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c126ddfe-c462-43da-afd4-cc37cbc23176" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c126ddfe-c462-43da-afd4-cc37cbc23176" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_2c312d8d-63e6-4691-b907-2415680b2886" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_2c312d8d-63e6-4691-b907-2415680b2886" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e5ffbd12-b004-41b9-91b0-755b0417c5f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_us-gaap_Goodwill_e5ffbd12-b004-41b9-91b0-755b0417c5f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_157c78cf-7bfe-48a9-9779-2614ca116c5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4752b319-c406-4603-9883-ae9f08a5955d" xlink:to="loc_us-gaap_AssetsCurrent_157c78cf-7bfe-48a9-9779-2614ca116c5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2bb49767-b85b-4f15-bdad-ee4adf0c98f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_361647ad-da8f-4fba-bacf-b92dbc703f16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2bb49767-b85b-4f15-bdad-ee4adf0c98f2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_361647ad-da8f-4fba-bacf-b92dbc703f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_8ae7cd65-92e4-4b43-b242-fa052dcfb199" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2bb49767-b85b-4f15-bdad-ee4adf0c98f2" xlink:to="loc_us-gaap_CommonStockValue_8ae7cd65-92e4-4b43-b242-fa052dcfb199" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_2209c7b3-7758-495d-b09d-415c80eed81f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2bb49767-b85b-4f15-bdad-ee4adf0c98f2" xlink:to="loc_us-gaap_AdditionalPaidInCapital_2209c7b3-7758-495d-b09d-415c80eed81f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_62c2e228-7383-4ebe-908b-85e43e06e339" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2bb49767-b85b-4f15-bdad-ee4adf0c98f2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_62c2e228-7383-4ebe-908b-85e43e06e339" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20241227.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_51adb91d-8acb-4d4a-a597-cd568a19b514" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7b2e7fb9-304c-49bb-af77-064b94c244f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_51adb91d-8acb-4d4a-a597-cd568a19b514" xlink:to="loc_us-gaap_OperatingIncomeLoss_7b2e7fb9-304c-49bb-af77-064b94c244f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_462fbfd9-f49a-4cab-945e-7394345af041" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_51adb91d-8acb-4d4a-a597-cd568a19b514" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_462fbfd9-f49a-4cab-945e-7394345af041" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_14e48c3d-9c43-4b64-89d7-4b4348b97652" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_74dd8bf2-02e3-41a5-852d-ab33b61d3a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_14e48c3d-9c43-4b64-89d7-4b4348b97652" xlink:to="loc_us-gaap_OperatingExpenses_74dd8bf2-02e3-41a5-852d-ab33b61d3a6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b522f5d3-6f01-46ee-a16f-d2ec2ff3cc15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_14e48c3d-9c43-4b64-89d7-4b4348b97652" xlink:to="loc_us-gaap_GrossProfit_b522f5d3-6f01-46ee-a16f-d2ec2ff3cc15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c315734f-603f-40e4-a50e-21c6109cbbc6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_92b7da1a-424a-4ad1-8371-8c985a876905" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c315734f-603f-40e4-a50e-21c6109cbbc6" xlink:to="loc_us-gaap_NetIncomeLoss_92b7da1a-424a-4ad1-8371-8c985a876905" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_d28ba8c3-16fd-4681-9ffe-2cdfe8169409" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c315734f-603f-40e4-a50e-21c6109cbbc6" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_d28ba8c3-16fd-4681-9ffe-2cdfe8169409" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_20574fdc-d271-42a9-8ba3-068a77b76133" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c315734f-603f-40e4-a50e-21c6109cbbc6" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_20574fdc-d271-42a9-8ba3-068a77b76133" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a1f884d5-35b9-4b05-970e-60eff68ae3ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_44ccac47-5768-42a5-9cb2-f3f724bc421e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_a1f884d5-35b9-4b05-970e-60eff68ae3ad" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_44ccac47-5768-42a5-9cb2-f3f724bc421e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_55e810da-751f-4d6f-a3e0-807faee26dc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_a1f884d5-35b9-4b05-970e-60eff68ae3ad" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_55e810da-751f-4d6f-a3e0-807faee26dc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_1b1527fd-1d82-479d-a98b-83cd65269413" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7f47d207-4331-4514-9eb1-6662cabea1e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1b1527fd-1d82-479d-a98b-83cd65269413" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7f47d207-4331-4514-9eb1-6662cabea1e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_0c8904f1-7c29-4007-98dc-dd5bbe6a3b27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1b1527fd-1d82-479d-a98b-83cd65269413" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_0c8904f1-7c29-4007-98dc-dd5bbe6a3b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_3eb128ff-96da-4351-bda7-1db86fa09e39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_afaa2d1e-ab2a-418f-9c12-7ec16b4fd0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3eb128ff-96da-4351-bda7-1db86fa09e39" xlink:to="loc_us-gaap_InvestmentIncomeInterest_afaa2d1e-ab2a-418f-9c12-7ec16b4fd0e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_565a054b-d6aa-4f9d-8674-d67f73cb7cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_3eb128ff-96da-4351-bda7-1db86fa09e39" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_565a054b-d6aa-4f9d-8674-d67f73cb7cf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_523653c1-6514-4ad6-91dd-1014a27934ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_3eb128ff-96da-4351-bda7-1db86fa09e39" xlink:to="loc_us-gaap_InterestExpenseNonoperating_523653c1-6514-4ad6-91dd-1014a27934ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_43035846-6b09-481e-abda-2b4aaaf4f8c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_43035846-6b09-481e-abda-2b4aaaf4f8c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_55fd6e0a-eb16-4d15-9322-b61f9b71118a" xlink:href="wdc-20241227.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_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_55fd6e0a-eb16-4d15-9322-b61f9b71118a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_1562566b-b58b-4657-8ae9-e3c7bbf644f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_1562566b-b58b-4657-8ae9-e3c7bbf644f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessSeparationCosts_82e52b92-6176-4277-a1b4-9fd25e278df3" xlink:href="wdc-20241227.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_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_wdc_BusinessSeparationCosts_82e52b92-6176-4277-a1b4-9fd25e278df3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementLoss_f771c95b-5e52-4b62-b1df-7ca5c9e810cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationSettlementLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_us-gaap_LitigationSettlementLoss_f771c95b-5e52-4b62-b1df-7ca5c9e810cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_404bdb58-f4a8-439e-bdb7-202c7b9dcb3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_dbf18d7a-7ea2-4679-9129-2c67fd6b7864" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_404bdb58-f4a8-439e-bdb7-202c7b9dcb3e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="wdc-20241227.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_aa5ffba2-ba1a-4d23-ab83-a472bbab9fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_6fbe997e-40d7-408a-872b-d460c908d999" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_aa5ffba2-ba1a-4d23-ab83-a472bbab9fe4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_6fbe997e-40d7-408a-872b-d460c908d999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_f7bb47d9-9b40-4d9a-a9e8-db18f6d72ab3" xlink:href="wdc-20241227.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_aa5ffba2-ba1a-4d23-ab83-a472bbab9fe4" xlink:to="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_f7bb47d9-9b40-4d9a-a9e8-db18f6d72ab3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6e3a07a-fed9-4f2b-be80-2fa52ce2a4f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_665d2a88-e4ed-4934-a398-c36506b104aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c6e3a07a-fed9-4f2b-be80-2fa52ce2a4f9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_665d2a88-e4ed-4934-a398-c36506b104aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_c2ec9360-7f1b-4c44-aace-a8edece39c50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c6e3a07a-fed9-4f2b-be80-2fa52ce2a4f9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_c2ec9360-7f1b-4c44-aace-a8edece39c50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_1f0e347b-bb81-4561-966d-e69eec07e11b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_0187396b-7b5a-485b-b5d0-e732a8b3a411" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1f0e347b-bb81-4561-966d-e69eec07e11b" xlink:to="loc_us-gaap_NetIncomeLoss_0187396b-7b5a-485b-b5d0-e732a8b3a411" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0878ad9b-95c5-484b-9165-73fe116b27bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1f0e347b-bb81-4561-966d-e69eec07e11b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0878ad9b-95c5-484b-9165-73fe116b27bb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20241227.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_NetCashProvidedByUsedInFinancingActivities_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_ee39ebfa-0196-4464-a3cb-f038c7ed10a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_RepaymentsOfDebt_ee39ebfa-0196-4464-a3cb-f038c7ed10a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_691ee155-49f3-4f20-954c-5fdc8d4de268" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_691ee155-49f3-4f20-954c-5fdc8d4de268" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_156c9837-ed35-4f51-822c-47f393c42bd6" xlink:href="wdc-20241227.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_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_156c9837-ed35-4f51-822c-47f393c42bd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_f5517420-64b3-4d3d-8b6d-4c75f914d6a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_f5517420-64b3-4d3d-8b6d-4c75f914d6a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_edb7f222-a2b9-4a5b-b86f-6ff6262b97fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_edb7f222-a2b9-4a5b-b86f-6ff6262b97fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_ff55989c-e4ce-4c23-9a7d-ca47fbacd835" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_ff55989c-e4ce-4c23-9a7d-ca47fbacd835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForRepurchaseOfDebt_cefb1bab-5db9-445d-bcea-378d88c85f7c" xlink:href="wdc-20241227.xsd#wdc_PaymentsForRepurchaseOfDebt"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_wdc_PaymentsForRepurchaseOfDebt_cefb1bab-5db9-445d-bcea-378d88c85f7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3ee41d41-df20-40ff-a47d-d5fed2b49e74" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_580287c9-51b5-4e65-8880-5ac7afdeabc4" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3ee41d41-df20-40ff-a47d-d5fed2b49e74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0516a548-4972-4ef2-ae96-65737df27427" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_fd4713a4-c75b-47d6-a25c-093b37bc4b11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_ShareBasedCompensation_fd4713a4-c75b-47d6-a25c-093b37bc4b11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_14cceaa0-d465-4439-a04d-3eac46e0b480" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_14cceaa0-d465-4439-a04d-3eac46e0b480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_be390841-1f83-4cba-8e8a-198fa7b18780" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_be390841-1f83-4cba-8e8a-198fa7b18780" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_64670f3b-6bdc-40e5-bfb0-d265bc532e26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_64670f3b-6bdc-40e5-bfb0-d265bc532e26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_d2d090c7-ea1d-46d3-a65f-8f179b51d3e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_d2d090c7-ea1d-46d3-a65f-8f179b51d3e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_ef70d6ba-389d-4464-a2ec-11b3a71d97db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_ef70d6ba-389d-4464-a2ec-11b3a71d97db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_ae53e2c6-bca1-4def-9bce-cfb20e1276d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_ae53e2c6-bca1-4def-9bce-cfb20e1276d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_ae8c6678-4663-4fe7-94c3-1bc8e0e79a14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_ae8c6678-4663-4fe7-94c3-1bc8e0e79a14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_fcc85a60-beeb-44fb-9355-93a12445babe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_fcc85a60-beeb-44fb-9355-93a12445babe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9d537b35-f69a-4e06-8137-4016dc6a10e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_NetIncomeLoss_9d537b35-f69a-4e06-8137-4016dc6a10e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3b8ea2e4-ff99-4ff8-a832-390199eca35f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3b8ea2e4-ff99-4ff8-a832-390199eca35f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_5941242c-b429-448b-8d56-7f1a83de734c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_5941242c-b429-448b-8d56-7f1a83de734c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_b12ab17d-818d-4307-aff1-dddaeac2b446" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_b12ab17d-818d-4307-aff1-dddaeac2b446" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_930fa972-63b1-4e0b-9c4a-9c40563f4c38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_930fa972-63b1-4e0b-9c4a-9c40563f4c38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_e172cbb3-3e10-48ba-b74a-48a44f92696a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_DepreciationAndAmortization_e172cbb3-3e10-48ba-b74a-48a44f92696a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NonCashPortionOfAssetImpairment_c37e41cf-62bf-498c-a1f6-120b0e6899e9" xlink:href="wdc-20241227.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_wdc_NonCashPortionOfAssetImpairment_c37e41cf-62bf-498c-a1f6-120b0e6899e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnRepurchaseOfDebtInstrument_e389ee07-4451-40ad-85eb-f0dd8610332e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_GainLossOnRepurchaseOfDebtInstrument_e389ee07-4451-40ad-85eb-f0dd8610332e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_67818d61-4e0c-4ff6-a9e5-d08be8a9150f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0516a548-4972-4ef2-ae96-65737df27427" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_67818d61-4e0c-4ff6-a9e5-d08be8a9150f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_496babad-ce0e-410f-9c0d-62eacdc00337" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_65cd2add-3f22-4c15-94a0-99b7ba05bbeb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_496babad-ce0e-410f-9c0d-62eacdc00337" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_65cd2add-3f22-4c15-94a0-99b7ba05bbeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6e819526-37e5-441e-b239-ceb8acee0630" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_496babad-ce0e-410f-9c0d-62eacdc00337" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6e819526-37e5-441e-b239-ceb8acee0630" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6a3608cd-1f23-48fa-9284-0921549c81b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_496babad-ce0e-410f-9c0d-62eacdc00337" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6a3608cd-1f23-48fa-9284-0921549c81b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b446762a-d259-4320-97d7-776314de68d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_496babad-ce0e-410f-9c0d-62eacdc00337" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b446762a-d259-4320-97d7-776314de68d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_c3a839a4-5316-482b-a86b-2c223b3b62e3" xlink:href="wdc-20241227.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_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_c3a839a4-5316-482b-a86b-2c223b3b62e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_062327be-39ce-4752-9229-7242916f5ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_062327be-39ce-4752-9229-7242916f5ff7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_41bc19a7-c448-403f-aecc-babbc41d4585" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_41bc19a7-c448-403f-aecc-babbc41d4585" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_76920c40-0da9-4d18-93f6-9957c444e5e9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_76920c40-0da9-4d18-93f6-9957c444e5e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_24fe3676-2092-4736-a85d-462dca62898a" xlink:href="wdc-20241227.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_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_24fe3676-2092-4736-a85d-462dca62898a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_5b7ac3d0-f819-46d4-a67e-e3403870b8ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_5b7ac3d0-f819-46d4-a67e-e3403870b8ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DistributionReceivedFromRelatedParty_a02b1495-6472-4ff4-a61a-12c8560a104e" xlink:href="wdc-20241227.xsd#wdc_DistributionReceivedFromRelatedParty"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_8822b2d2-0629-44e3-b505-2b0229203b1d" xlink:to="loc_wdc_DistributionReceivedFromRelatedParty_a02b1495-6472-4ff4-a61a-12c8560a104e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofInventoriesDetails" xlink:type="simple" xlink:href="wdc-20241227.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_ac9a55b1-65e2-4fce-964e-6e63ba7aec60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_f0fae601-2969-4ad1-b1b8-ad7a9a9d41b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ac9a55b1-65e2-4fce-964e-6e63ba7aec60" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_f0fae601-2969-4ad1-b1b8-ad7a9a9d41b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_ce0bb2f1-713f-46ce-9ac0-c923e83b76ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ac9a55b1-65e2-4fce-964e-6e63ba7aec60" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_ce0bb2f1-713f-46ce-9ac0-c923e83b76ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_c55992f2-eaa7-48cb-b104-60cd8e76c569" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ac9a55b1-65e2-4fce-964e-6e63ba7aec60" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_c55992f2-eaa7-48cb-b104-60cd8e76c569" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="wdc-20241227.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_358e73a7-1a7d-420a-8f5d-af4bb3d7cc74" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_94212037-db3a-4a5b-a947-64958cf54315" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_358e73a7-1a7d-420a-8f5d-af4bb3d7cc74" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_94212037-db3a-4a5b-a947-64958cf54315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ddd156ac-90ab-41c8-ac64-cdbe4cdd6d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_358e73a7-1a7d-420a-8f5d-af4bb3d7cc74" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ddd156ac-90ab-41c8-ac64-cdbe4cdd6d0e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20241227.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_d48c5146-6b91-45d0-afc3-a0aff4385ef9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_5303e8c6-c935-407d-abb4-74a7c910d718" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d48c5146-6b91-45d0-afc3-a0aff4385ef9" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_5303e8c6-c935-407d-abb4-74a7c910d718" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_c3397bdc-cc47-456e-a816-cb4baa08843a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d48c5146-6b91-45d0-afc3-a0aff4385ef9" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_c3397bdc-cc47-456e-a816-cb4baa08843a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20241227.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_c60cf57a-e201-4e15-8134-8891008bea91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_7bb00590-948d-4cfe-8f10-b99ca5545bc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c60cf57a-e201-4e15-8134-8891008bea91" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_7bb00590-948d-4cfe-8f10-b99ca5545bc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_e2ff64b4-2fd3-44ed-a9dd-6736629c84ce" xlink:href="wdc-20241227.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_c60cf57a-e201-4e15-8134-8891008bea91" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_e2ff64b4-2fd3-44ed-a9dd-6736629c84ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_b87a7525-d038-4fcd-b713-c9364a465b01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c60cf57a-e201-4e15-8134-8891008bea91" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_b87a7525-d038-4fcd-b713-c9364a465b01" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails" xlink:type="simple" xlink:href="wdc-20241227.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_e5cee130-94d8-4e7b-91b6-e8011c832378" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_24912d47-a4e9-407b-96d0-96c34d14a746" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_e5cee130-94d8-4e7b-91b6-e8011c832378" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_24912d47-a4e9-407b-96d0-96c34d14a746" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_dd8b6e53-ce52-433c-a2d7-0d279a4966b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_e5cee130-94d8-4e7b-91b6-e8011c832378" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_dd8b6e53-ce52-433c-a2d7-0d279a4966b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3b78b634-acb9-45c4-93ff-035a4f78c268" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_e5cee130-94d8-4e7b-91b6-e8011c832378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_3b78b634-acb9-45c4-93ff-035a4f78c268" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="wdc-20241227.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_LiabilitiesFairValueDisclosure_4b0d69ca-aa17-4d18-9509-6d4bc2c8c025" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_c81d1807-c900-4bd3-bbd4-60d3a504fd61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4b0d69ca-aa17-4d18-9509-6d4bc2c8c025" xlink:to="loc_us-gaap_DerivativeLiabilities_c81d1807-c900-4bd3-bbd4-60d3a504fd61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4aec9fab-436d-4382-a697-408ba9ed08df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_155a0499-9ab9-4283-bf23-fccb134ae049" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4aec9fab-436d-4382-a697-408ba9ed08df" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_155a0499-9ab9-4283-bf23-fccb134ae049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_a5cc90a0-1e5b-4145-9af5-0f854fda17bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4aec9fab-436d-4382-a697-408ba9ed08df" xlink:to="loc_us-gaap_DerivativeAssets_a5cc90a0-1e5b-4145-9af5-0f854fda17bb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20241227.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_614f3ed3-d42c-4673-bd1a-641f577538c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_fe7bb2b8-a968-4cea-ab44-61bac3cfeb43" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_614f3ed3-d42c-4673-bd1a-641f577538c4" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_fe7bb2b8-a968-4cea-ab44-61bac3cfeb43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_f761c658-f6a2-4e2c-9796-859f91b45f12" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_614f3ed3-d42c-4673-bd1a-641f577538c4" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_f761c658-f6a2-4e2c-9796-859f91b45f12" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20241227.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_4b52fac7-3b3c-4a3d-b22c-6d5fece48946" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_3bba6ea4-c7f2-446d-bccc-be49fed50c4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4b52fac7-3b3c-4a3d-b22c-6d5fece48946" xlink:to="loc_us-gaap_LongTermDebtCurrent_3bba6ea4-c7f2-446d-bccc-be49fed50c4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_5ca9b0d3-006f-40f4-a691-febcb07bd20d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4b52fac7-3b3c-4a3d-b22c-6d5fece48946" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_5ca9b0d3-006f-40f4-a691-febcb07bd20d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20241227.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_fbd05e5e-14c6-4f91-bc07-09b81f31a3f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_ec5d737a-1c52-46d7-b4b5-a47ee546cc14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fbd05e5e-14c6-4f91-bc07-09b81f31a3f6" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_ec5d737a-1c52-46d7-b4b5-a47ee546cc14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_b045ead1-29b5-4e4b-9d2f-6b5335cac60a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fbd05e5e-14c6-4f91-bc07-09b81f31a3f6" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_b045ead1-29b5-4e4b-9d2f-6b5335cac60a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20241227.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_bfe72f2b-db8a-4ccb-b076-ad0f45474eee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_9c66d8a6-4a1c-44b5-a07c-ec4419d61ec7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bfe72f2b-db8a-4ccb-b076-ad0f45474eee" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_9c66d8a6-4a1c-44b5-a07c-ec4419d61ec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f5770eed-7e30-4fea-b2ce-b0b360ad48a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bfe72f2b-db8a-4ccb-b076-ad0f45474eee" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f5770eed-7e30-4fea-b2ce-b0b360ad48a5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20241227.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear_fe1c64f7-8732-4248-9832-8603ea49d46a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:to="loc_us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear_fe1c64f7-8732-4248-9832-8603ea49d46a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_eafc543e-3514-4e1d-87ec-0ae4527269a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_eafc543e-3514-4e1d-87ec-0ae4527269a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_9e8bce32-e196-40d8-b348-3b76c89b63db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_9e8bce32-e196-40d8-b348-3b76c89b63db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_18c4c6e6-bc8d-49a8-9587-52fc822890b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_18c4c6e6-bc8d-49a8-9587-52fc822890b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_69434a2b-06d2-4f8d-93aa-d47881b37acf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_fde30ecd-44ce-4e50-8826-4056f5cef7e9" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_69434a2b-06d2-4f8d-93aa-d47881b37acf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails" xlink:type="simple" xlink:href="wdc-20241227.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_335a79c2-d3b8-4526-9a65-0845d41d9a37" xlink:href="wdc-20241227.xsd#wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_12a80ec5-024c-420c-898e-7ec029d5f72c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_335a79c2-d3b8-4526-9a65-0845d41d9a37" xlink:to="loc_us-gaap_NotesReceivableNet_12a80ec5-024c-420c-898e-7ec029d5f72c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_e56a4e71-1e27-4e90-8493-402f3a75657b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_335a79c2-d3b8-4526-9a65-0845d41d9a37" xlink:to="loc_us-gaap_Investments_e56a4e71-1e27-4e90-8493-402f3a75657b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails" xlink:type="simple" xlink:href="wdc-20241227.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_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_10816eed-3a1c-4f72-b6fc-aecf7e69c9a1" xlink:href="wdc-20241227.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_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_10816eed-3a1c-4f72-b6fc-aecf7e69c9a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_7dcd790e-9fe8-4d14-9d02-a45bfd56d9a2" xlink:href="wdc-20241227.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_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_7dcd790e-9fe8-4d14-9d02-a45bfd56d9a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_bc21f637-96b3-4fb3-8e75-4495969bbe9a" xlink:href="wdc-20241227.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_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_bc21f637-96b3-4fb3-8e75-4495969bbe9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_4a9813cf-7792-49ef-bb0d-cc869b05d1e8" xlink:href="wdc-20241227.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_4a9813cf-7792-49ef-bb0d-cc869b05d1e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_0de2b936-20d4-485b-9601-721894688e0c" xlink:href="wdc-20241227.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_0de2b936-20d4-485b-9601-721894688e0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_92972588-7e75-46c1-bda6-d866a7a8381c" xlink:href="wdc-20241227.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_fe7e5291-6852-484c-aeff-77072f996d0d" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_92972588-7e75-46c1-bda6-d866a7a8381c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20241227.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_46d1b8d6-0a2f-48f2-8213-beaad07f94f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_dc1e22b2-7521-475c-b843-286238ea09bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_46d1b8d6-0a2f-48f2-8213-beaad07f94f7" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_dc1e22b2-7521-475c-b843-286238ea09bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_2cd626b5-23aa-4f55-b0bb-d32225cc1246" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_46d1b8d6-0a2f-48f2-8213-beaad07f94f7" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_2cd626b5-23aa-4f55-b0bb-d32225cc1246" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" xlink:type="simple" xlink:href="wdc-20241227.xsd#LeasesandOtherCommitmentsMinimumLeasePaymentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_34fd96d5-80e2-425f-98b3-6c309cc18227" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_34fd96d5-80e2-425f-98b3-6c309cc18227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0018c966-9147-40eb-ad8f-f0e7d2fdcb36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0018c966-9147-40eb-ad8f-f0e7d2fdcb36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6e4db572-6de6-4431-a4ea-15790193f2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6e4db572-6de6-4431-a4ea-15790193f2ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_65f10a44-9f47-46ac-b267-9d8f2c2479cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_65f10a44-9f47-46ac-b267-9d8f2c2479cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_140335be-db19-418c-bd92-87382c171886" xlink:href="wdc-20241227.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_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_140335be-db19-418c-bd92-87382c171886" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_428c6ca8-d0a3-48ec-ac81-f7d269a01ac7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_147493a5-9242-4f2b-8dee-f571ecfbb1bb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_428c6ca8-d0a3-48ec-ac81-f7d269a01ac7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" xlink:type="simple" xlink:href="wdc-20241227.xsd#LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1a628b34-9a40-4640-a6de-a14b7617113b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f4581a2a-5725-4ecb-ae35-0a0597e7121f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1a628b34-9a40-4640-a6de-a14b7617113b" xlink:to="loc_us-gaap_OperatingLeaseLiability_f4581a2a-5725-4ecb-ae35-0a0597e7121f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_05249866-cbfc-4202-849f-c37bcbf23fc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1a628b34-9a40-4640-a6de-a14b7617113b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_05249866-cbfc-4202-849f-c37bcbf23fc8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20241227.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_453cf350-7f03-419d-988a-7da8836bb4e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_453cf350-7f03-419d-988a-7da8836bb4e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_520534b3-4a61-4116-8913-7e7713601abb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_520534b3-4a61-4116-8913-7e7713601abb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_ed6a3f26-11c5-48f1-93d3-3726b12d4657" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_ed6a3f26-11c5-48f1-93d3-3726b12d4657" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_ee6c9990-a425-43bf-9dea-ca6e407f6dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_ee6c9990-a425-43bf-9dea-ca6e407f6dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationToBePaidAfterYearFour_a883d0e8-4888-4367-b77e-4f78281ff052" xlink:href="wdc-20241227.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_wdc_PurchaseObligationToBePaidAfterYearFour_a883d0e8-4888-4367-b77e-4f78281ff052" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_8acab76b-1b66-4818-abaa-192f282d2feb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_16c18dbf-34d3-47de-b41e-dc555746510c" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_8acab76b-1b66-4818-abaa-192f282d2feb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20241227.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_7f0049d2-961c-4835-9b20-1431df83ab30" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_c1da2d14-bbe6-441d-a42b-9c5f4a58a524" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_7f0049d2-961c-4835-9b20-1431df83ab30" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_c1da2d14-bbe6-441d-a42b-9c5f4a58a524" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_0d4ba5f7-ec4c-4b65-91e9-784fc26183f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_7f0049d2-961c-4835-9b20-1431df83ab30" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_0d4ba5f7-ec4c-4b65-91e9-784fc26183f9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="simple" xlink:href="wdc-20241227.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_NetIncomeLossAvailableToCommonStockholdersDiluted_e7effd89-9059-4bb1-8629-0749370b4aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_3088c1f1-4594-476a-ae9e-303ab2c30b2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e7effd89-9059-4bb1-8629-0749370b4aa4" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_3088c1f1-4594-476a-ae9e-303ab2c30b2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_85a68c0f-3abf-4058-8a5a-d21f61d28001" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NetIncomeLossAvailableToCommonStockholdersDiluted_e7effd89-9059-4bb1-8629-0749370b4aa4" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_85a68c0f-3abf-4058-8a5a-d21f61d28001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_51c6346c-ded0-4bbe-8b41-d3e207fa5cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e7effd89-9059-4bb1-8629-0749370b4aa4" xlink:to="loc_us-gaap_NetIncomeLoss_51c6346c-ded0-4bbe-8b41-d3e207fa5cd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ff6240ad-ca9e-4079-a953-edf6264056f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_6559215f-bf8b-41c7-b970-ce748c8df7e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ff6240ad-ca9e-4079-a953-edf6264056f8" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_6559215f-bf8b-41c7-b970-ce748c8df7e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_b3fdc0d4-43f0-47dc-9045-e2e1b18d2935" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ff6240ad-ca9e-4079-a953-edf6264056f8" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_b3fdc0d4-43f0-47dc-9045-e2e1b18d2935" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherScheduleofNetChargesDetails" xlink:type="simple" xlink:href="wdc-20241227.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_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RecoveryOfNonCancellablePurchaseOrder_2add789d-5fb8-4e2d-a6e5-8a2b67dd4663" xlink:href="wdc-20241227.xsd#wdc_RecoveryOfNonCancellablePurchaseOrder"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:to="loc_wdc_RecoveryOfNonCancellablePurchaseOrder_2add789d-5fb8-4e2d-a6e5-8a2b67dd4663" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_84264b7c-b1e4-47be-9412-0bc389ab1f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_84264b7c-b1e4-47be-9412-0bc389ab1f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_18913ab6-f4cd-4ab0-9948-631bf314ed29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:to="loc_us-gaap_AssetImpairmentCharges_18913ab6-f4cd-4ab0-9948-631bf314ed29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_ad6a8644-e2a5-4bc6-a643-c35123faac27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:to="loc_us-gaap_LossOnContractTermination_ad6a8644-e2a5-4bc6-a643-c35123faac27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_29fc92bc-8cbe-4285-9bfd-1a681f9bc796" xlink:href="wdc-20241227.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_04fa8c16-2ca3-45bc-aa92-8e3edae30a5c" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_29fc92bc-8cbe-4285-9bfd-1a681f9bc796" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
