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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:e9286e87-b86c-4316-be30-89cacd5cf7d8,g:3dbedcc6-968c-44af-b014-790d872fc5da-->
<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-20251003.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_78525f9c-8198-4382-9ac1-a46514971610" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_b52d30f5-253f-44c4-b4d1-081c0e9e8dc8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_78525f9c-8198-4382-9ac1-a46514971610" xlink:to="loc_us-gaap_AccountsPayableCurrent_b52d30f5-253f-44c4-b4d1-081c0e9e8dc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_9c9cb095-d064-47f4-8ff1-508b06c36bfe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_78525f9c-8198-4382-9ac1-a46514971610" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_9c9cb095-d064-47f4-8ff1-508b06c36bfe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_4f47684f-6f54-41c3-aa53-758b79b456ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_78525f9c-8198-4382-9ac1-a46514971610" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_4f47684f-6f54-41c3-aa53-758b79b456ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_07b3a0a4-d23f-4cc1-be10-c98ce65626f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_78525f9c-8198-4382-9ac1-a46514971610" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_07b3a0a4-d23f-4cc1-be10-c98ce65626f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_8a964476-e54e-4c29-9ef9-12f293531ca9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_78525f9c-8198-4382-9ac1-a46514971610" xlink:to="loc_us-gaap_LongTermDebtCurrent_8a964476-e54e-4c29-9ef9-12f293531ca9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_3c8ddb0d-f5bc-4db5-b9d6-fe2b208ba7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_1e4fd179-e686-423e-857e-e4ebb7a51deb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3c8ddb0d-f5bc-4db5-b9d6-fe2b208ba7e7" xlink:to="loc_us-gaap_AssetsCurrent_1e4fd179-e686-423e-857e-e4ebb7a51deb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_9c1667a1-ad25-4d49-9a17-5c44e72bc99f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3c8ddb0d-f5bc-4db5-b9d6-fe2b208ba7e7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_9c1667a1-ad25-4d49-9a17-5c44e72bc99f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0cee842e-bab3-4e01-8c06-3579930b5927" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3c8ddb0d-f5bc-4db5-b9d6-fe2b208ba7e7" xlink:to="loc_us-gaap_Goodwill_0cee842e-bab3-4e01-8c06-3579930b5927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d0c1d7e5-4ea4-4134-9181-766fbc33910e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3c8ddb0d-f5bc-4db5-b9d6-fe2b208ba7e7" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_d0c1d7e5-4ea4-4134-9181-766fbc33910e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_18688b6d-1e9a-41e7-9dd7-35c8e4b851e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_18688b6d-1e9a-41e7-9dd7-35c8e4b851e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_c252cb2c-1ad9-42be-bd1d-c41f866e9320" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_c252cb2c-1ad9-42be-bd1d-c41f866e9320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_c392662b-5e17-4006-b562-e708f7166c0f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:to="loc_us-gaap_InventoryNet_c392662b-5e17-4006-b562-e708f7166c0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_92c3f75c-36ee-453c-849b-5cb1aad7c850" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_92c3f75c-36ee-453c-849b-5cb1aad7c850" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_6252c5e0-6789-4ffd-8263-237ce00858d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7e3cf54a-5c03-4bdc-a061-fc15b50ae8a9" xlink:to="loc_us-gaap_OtherAssetsCurrent_6252c5e0-6789-4ffd-8263-237ce00858d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValueOutstanding_f564590a-d3a0-4d6e-960a-c0f98d7e4f35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValueOutstanding"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:to="loc_us-gaap_CommonStockValueOutstanding_f564590a-d3a0-4d6e-960a-c0f98d7e4f35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_94411f8f-941f-48df-880a-11d64359d9cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:to="loc_us-gaap_AdditionalPaidInCapital_94411f8f-941f-48df-880a-11d64359d9cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d581d5b4-cdae-4e58-a0b7-71ad09dd31ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d581d5b4-cdae-4e58-a0b7-71ad09dd31ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d3b7bebc-8318-4c36-88e5-19c83710b0c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d3b7bebc-8318-4c36-88e5-19c83710b0c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonValue_26709c96-3019-4d7c-a28a-74f527f2e45b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonValue"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dcd265b3-0f0e-407a-896b-e287c03a0b00" xlink:to="loc_us-gaap_TreasuryStockCommonValue_26709c96-3019-4d7c-a28a-74f527f2e45b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_87544dac-5805-4e02-9f7c-e3f24a1dc396" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_824bcf25-e03b-4d7a-a717-11f73531b82a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_87544dac-5805-4e02-9f7c-e3f24a1dc396" xlink:to="loc_us-gaap_LiabilitiesCurrent_824bcf25-e03b-4d7a-a717-11f73531b82a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_28b7597c-cca6-4943-a7f3-56a3b787f517" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_87544dac-5805-4e02-9f7c-e3f24a1dc396" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_28b7597c-cca6-4943-a7f3-56a3b787f517" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_e7f465f7-cec9-43af-a492-50333daa831c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_87544dac-5805-4e02-9f7c-e3f24a1dc396" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_e7f465f7-cec9-43af-a492-50333daa831c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_dfd2aa03-d2fd-400b-95c2-1e7a97203959" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_374945e7-67d6-451b-8d13-a822f5bb19c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dfd2aa03-d2fd-400b-95c2-1e7a97203959" xlink:to="loc_us-gaap_StockholdersEquity_374945e7-67d6-451b-8d13-a822f5bb19c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_e371102c-c950-42c5-81db-bf39ec2025f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dfd2aa03-d2fd-400b-95c2-1e7a97203959" xlink:to="loc_us-gaap_Liabilities_e371102c-c950-42c5-81db-bf39ec2025f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_4781fb8c-ad52-419e-bd86-b3987dac2dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dfd2aa03-d2fd-400b-95c2-1e7a97203959" xlink:to="loc_us-gaap_CommitmentsAndContingencies_4781fb8c-ad52-419e-bd86-b3987dac2dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_5490c64b-fbf7-44d3-b784-c3e225f7c848" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dfd2aa03-d2fd-400b-95c2-1e7a97203959" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_5490c64b-fbf7-44d3-b784-c3e225f7c848" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20251003.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_cf53c05e-ec78-40f0-bfb2-5f0ddc95cb1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_18138b56-e212-4c16-b4c4-e9f0ee39123a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_cf53c05e-ec78-40f0-bfb2-5f0ddc95cb1e" xlink:to="loc_us-gaap_OperatingIncomeLoss_18138b56-e212-4c16-b4c4-e9f0ee39123a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_7de4bee8-6dc6-47a7-bb98-b353e32c7c88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_cf53c05e-ec78-40f0-bfb2-5f0ddc95cb1e" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_7de4bee8-6dc6-47a7-bb98-b353e32c7c88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_d759ca3a-9ca7-4f56-83b8-b3c12aee0090" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_332f6cb1-67ca-4de0-bab7-4049d3879caf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d759ca3a-9ca7-4f56-83b8-b3c12aee0090" xlink:to="loc_us-gaap_InvestmentIncomeInterest_332f6cb1-67ca-4de0-bab7-4049d3879caf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_bdc9531c-ce68-4f16-99b1-aaa2865c9ee5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_d759ca3a-9ca7-4f56-83b8-b3c12aee0090" xlink:to="loc_us-gaap_InterestExpenseNonoperating_bdc9531c-ce68-4f16-99b1-aaa2865c9ee5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_b4f04ea6-54cf-42eb-912e-c97f3c76232a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_d759ca3a-9ca7-4f56-83b8-b3c12aee0090" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_b4f04ea6-54cf-42eb-912e-c97f3c76232a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_82f19331-f2ce-47af-ba3a-3c81673c224f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_d759ca3a-9ca7-4f56-83b8-b3c12aee0090" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_82f19331-f2ce-47af-ba3a-3c81673c224f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_6fdb52b6-bf39-4de4-8aad-317599a5e486" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_1450df70-d5d3-431c-91a7-a303e1662d55" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_6fdb52b6-bf39-4de4-8aad-317599a5e486" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_1450df70-d5d3-431c-91a7-a303e1662d55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_eb17af2c-58be-408f-a8fc-afc7b1867611" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_6fdb52b6-bf39-4de4-8aad-317599a5e486" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_eb17af2c-58be-408f-a8fc-afc7b1867611" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossRelatedToLitigationSettlement_0f9c8cad-a230-4558-bb70-4d7193a33fa2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossRelatedToLitigationSettlement"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_6fdb52b6-bf39-4de4-8aad-317599a5e486" xlink:to="loc_us-gaap_GainLossRelatedToLitigationSettlement_0f9c8cad-a230-4558-bb70-4d7193a33fa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentCharges_844acc50-a8ba-4a73-b613-2b3676244656" xlink:href="wdc-20251003.xsd#wdc_BusinessRealignmentCharges"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_6fdb52b6-bf39-4de4-8aad-317599a5e486" xlink:to="loc_wdc_BusinessRealignmentCharges_844acc50-a8ba-4a73-b613-2b3676244656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a29c5b73-bf8b-4cac-ab24-7281d735ba53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_6210ef53-6875-4826-b3ca-97b107f373d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a29c5b73-bf8b-4cac-ab24-7281d735ba53" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_6210ef53-6875-4826-b3ca-97b107f373d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_551b4c3c-aed1-4241-90ee-46a43bcb2cac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a29c5b73-bf8b-4cac-ab24-7281d735ba53" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_551b4c3c-aed1-4241-90ee-46a43bcb2cac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_908e65bf-154a-4111-a9ae-c16972007c3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4be37174-3312-4504-b0b5-4f4ce3f2912b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_IncomeLossFromContinuingOperations_908e65bf-154a-4111-a9ae-c16972007c3b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4be37174-3312-4504-b0b5-4f4ce3f2912b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3311d785-63da-46f0-8e51-17b2cef52197" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_IncomeLossFromContinuingOperations_908e65bf-154a-4111-a9ae-c16972007c3b" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3311d785-63da-46f0-8e51-17b2cef52197" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_37f6b100-1581-45ae-8408-f320c2114d76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_91744587-7aa3-4982-8204-e2602033f2c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_37f6b100-1581-45ae-8408-f320c2114d76" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_91744587-7aa3-4982-8204-e2602033f2c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_771c08a9-51eb-4fc2-9e8a-03d73a7dda5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_37f6b100-1581-45ae-8408-f320c2114d76" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_771c08a9-51eb-4fc2-9e8a-03d73a7dda5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_932f23bc-ea7e-4a93-9f97-2c39fb8ca40f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_7dd1df91-f887-4a48-a68f-3f8a4c957deb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_932f23bc-ea7e-4a93-9f97-2c39fb8ca40f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_7dd1df91-f887-4a48-a68f-3f8a4c957deb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_bd9f8957-528d-42be-b5cb-8f4400c084de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_932f23bc-ea7e-4a93-9f97-2c39fb8ca40f" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_bd9f8957-528d-42be-b5cb-8f4400c084de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_21524f7e-0964-4a02-8faf-706f1b48e430" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f62c78fe-25a5-42f7-85fb-75085dc5d004" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_21524f7e-0964-4a02-8faf-706f1b48e430" xlink:to="loc_us-gaap_OperatingExpenses_f62c78fe-25a5-42f7-85fb-75085dc5d004" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_2560af5d-50d7-4fce-b1f2-eaf871d9b06c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_21524f7e-0964-4a02-8faf-706f1b48e430" xlink:to="loc_us-gaap_GrossProfit_2560af5d-50d7-4fce-b1f2-eaf871d9b06c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_d0ddd608-e8ad-4ad3-a05e-a71e3ee934bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_fd07f38f-c32d-4b89-8d76-2b5371d86b72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d0ddd608-e8ad-4ad3-a05e-a71e3ee934bc" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_fd07f38f-c32d-4b89-8d76-2b5371d86b72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_9cc82931-5155-4b44-b471-f58d4cd61aee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d0ddd608-e8ad-4ad3-a05e-a71e3ee934bc" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_9cc82931-5155-4b44-b471-f58d4cd61aee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="wdc-20251003.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_7d694ad3-acb5-49a3-a98e-203ffdaf5d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_c4a2bbe1-caa7-4dec-9366-6ef5e7bdc675" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_7d694ad3-acb5-49a3-a98e-203ffdaf5d6c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_c4a2bbe1-caa7-4dec-9366-6ef5e7bdc675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_db5ff432-2196-4fad-8f02-f2eed763b2bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_7d694ad3-acb5-49a3-a98e-203ffdaf5d6c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_db5ff432-2196-4fad-8f02-f2eed763b2bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_804c2256-2f36-42d9-9357-0f0adb6b4e2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_8255d968-d894-4f21-b633-76e902143eee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_804c2256-2f36-42d9-9357-0f0adb6b4e2c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_8255d968-d894-4f21-b633-76e902143eee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_b418c5e0-8342-46ee-9799-d6d881715719" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_804c2256-2f36-42d9-9357-0f0adb6b4e2c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_b418c5e0-8342-46ee-9799-d6d881715719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_0e2e4389-f5b5-4662-b60f-00498e2839d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ee91e9d8-ba35-43d1-8010-04f02e45885f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0e2e4389-f5b5-4662-b60f-00498e2839d6" xlink:to="loc_us-gaap_NetIncomeLoss_ee91e9d8-ba35-43d1-8010-04f02e45885f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_bd4f591c-76d7-42c8-896b-37b7567e21ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0e2e4389-f5b5-4662-b60f-00498e2839d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_bd4f591c-76d7-42c8-896b-37b7567e21ca" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20251003.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_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_fe3355f5-667a-45ef-901a-cd867bf1fa9c" xlink:href="wdc-20251003.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_fe3355f5-667a-45ef-901a-cd867bf1fa9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a4c6efa-2562-41c0-983e-c54ecfb90503" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a4c6efa-2562-41c0-983e-c54ecfb90503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_d3fb37c0-cc64-4741-899e-0b0c19e0831b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_d3fb37c0-cc64-4741-899e-0b0c19e0831b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_c5839c1d-ff35-411b-99f2-97c7933228fd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_c5839c1d-ff35-411b-99f2-97c7933228fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_65808a38-957f-41d4-99b1-730acf558794" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_us-gaap_RepaymentsOfDebt_65808a38-957f-41d4-99b1-730acf558794" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_08ebaab6-32ae-413f-9088-4c2dd45f5810" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_505d8fb2-c829-4fab-9e0e-6e77839b34d3" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_08ebaab6-32ae-413f-9088-4c2dd45f5810" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_80e29463-fa68-4c1e-be49-d75a4961ad5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_NetIncomeLoss_80e29463-fa68-4c1e-be49-d75a4961ad5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_81fdaa7e-6cbb-4c68-b050-62e55033b1c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_DepreciationAndAmortization_81fdaa7e-6cbb-4c68-b050-62e55033b1c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_dfe90bd7-57c9-4804-af99-46699157f0ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_ShareBasedCompensation_dfe90bd7-57c9-4804-af99-46699157f0ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_b4d7eed2-0cb5-45c3-a719-e113744b0f88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_b4d7eed2-0cb5-45c3-a719-e113744b0f88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_19785ee1-c59c-4b91-b5b1-52d3efb2d7d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_19785ee1-c59c-4b91-b5b1-52d3efb2d7d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_464c9f08-fbe0-4d20-8166-44f616bc830d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_464c9f08-fbe0-4d20-8166-44f616bc830d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_f09fd2e3-a850-451b-b3b3-9ce1b8ff14f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_f09fd2e3-a850-451b-b3b3-9ce1b8ff14f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_87654dff-2efb-4ed3-a1cc-5123cf6a875d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_87654dff-2efb-4ed3-a1cc-5123cf6a875d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_ca27a16c-0f5c-4b1e-9014-1a585ed5d8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_ca27a16c-0f5c-4b1e-9014-1a585ed5d8c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_aa923cb6-79c0-434c-9a02-935a8f25d4a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_aa923cb6-79c0-434c-9a02-935a8f25d4a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_58dc61b0-c133-41be-a455-2c7d2d491768" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_58dc61b0-c133-41be-a455-2c7d2d491768" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_4b8f7814-88ba-47c6-80dd-877139ea159c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_4b8f7814-88ba-47c6-80dd-877139ea159c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_beb59687-3531-4858-9de7-5e368ccf7944" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_beb59687-3531-4858-9de7-5e368ccf7944" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_ccefd59d-3d47-416e-ba82-42605ea49a34" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e6394de8-2d4d-4e0b-b69d-13009a681971" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_ccefd59d-3d47-416e-ba82-42605ea49a34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_427730d4-a2c6-4e11-b34b-d44318750744" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_427730d4-a2c6-4e11-b34b-d44318750744" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_98481702-4441-4f91-98bc-b68ef07ab0e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_98481702-4441-4f91-98bc-b68ef07ab0e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_1d9f4cfc-c4e0-4cf2-9075-8917ec8923ac" xlink:href="wdc-20251003.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_1d9f4cfc-c4e0-4cf2-9075-8917ec8923ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_949dfa42-5fb6-4d34-826a-821a14898178" xlink:href="wdc-20251003.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_949dfa42-5fb6-4d34-826a-821a14898178" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_76f091fd-e1c0-4b7d-a7a5-3d6de6c78b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f0f07be1-07fe-42fc-a3fe-58d9327abf8f" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_76f091fd-e1c0-4b7d-a7a5-3d6de6c78b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9974c5b4-c6f0-4036-9acd-41582d25227b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9974c5b4-c6f0-4036-9acd-41582d25227b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f3b0d00b-ec7e-4366-8ff4-2780247fc54c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f3b0d00b-ec7e-4366-8ff4-2780247fc54c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_62e0b2bb-37ce-4cd7-a4a2-b9b888e8229c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_62e0b2bb-37ce-4cd7-a4a2-b9b888e8229c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d59802d3-3251-4105-8473-0dc24c139c41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d59802d3-3251-4105-8473-0dc24c139c41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CashAndCashEquivalentsReclassifiedToAssetsHeldForSale_1c6e4426-b216-468a-91e9-44c124fa6575" xlink:href="wdc-20251003.xsd#wdc_CashAndCashEquivalentsReclassifiedToAssetsHeldForSale"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_d70e799e-bda5-433a-b627-1e2ad6a86769" xlink:to="loc_wdc_CashAndCashEquivalentsReclassifiedToAssetsHeldForSale_1c6e4426-b216-468a-91e9-44c124fa6575" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DiscontinuedOperationsNetIncomeLossfromDiscontinuedOperationsNetofTaxesDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#DiscontinuedOperationsNetIncomeLossfromDiscontinuedOperationsNetofTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DiscontinuedOperationsNetIncomeLossfromDiscontinuedOperationsNetofTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_e46079c8-9316-47fc-b8a6-4f6423150d45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_7e747bd9-674b-465d-ad70-f7df2b17c968" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_e46079c8-9316-47fc-b8a6-4f6423150d45" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_7e747bd9-674b-465d-ad70-f7df2b17c968" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_94591388-df1b-482d-ad58-33b36d9a2d72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_e46079c8-9316-47fc-b8a6-4f6423150d45" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_94591388-df1b-482d-ad58-33b36d9a2d72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_0bc7881e-b507-4ead-96c8-8246daefd02c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_0bc7881e-b507-4ead-96c8-8246daefd02c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_3bb67b78-c164-4e0c-b6c5-013a19d51333" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_3bb67b78-c164-4e0c-b6c5-013a19d51333" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationResearchAndDevelopmentExpense_14a03453-e22d-455a-b3a2-ac34e6d5a9c7" xlink:href="wdc-20251003.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationResearchAndDevelopmentExpense_14a03453-e22d-455a-b3a2-ac34e6d5a9c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationSellingGeneralAndAdministrativeExpense_c66db2cc-745c-40dd-a773-b82d37b5cd37" xlink:href="wdc-20251003.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationSellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationSellingGeneralAndAdministrativeExpense_c66db2cc-745c-40dd-a773-b82d37b5cd37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationBusinessSeparationCosts_6c127c1b-63de-46ff-9712-d538676aa389" xlink:href="wdc-20251003.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationBusinessSeparationCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationBusinessSeparationCosts_6c127c1b-63de-46ff-9712-d538676aa389" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationBusinessRealignmentCharges_d7752ed1-3c0c-481a-9c58-8f57635ca678" xlink:href="wdc-20251003.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationBusinessRealignmentCharges"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_e24407f0-ce9b-48b2-a292-61e303275e49" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationBusinessRealignmentCharges_d7752ed1-3c0c-481a-9c58-8f57635ca678" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_b38ab615-2e9e-4887-8ee9-c66353dc0990" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_6c070199-4dfb-4c35-93de-785ccdb12857" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_b38ab615-2e9e-4887-8ee9-c66353dc0990" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_6c070199-4dfb-4c35-93de-785ccdb12857" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationOtherNonoperatingIncomeExpense_4e6c6318-cabc-4c7b-ac45-485175e6c323" xlink:href="wdc-20251003.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationOtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_b38ab615-2e9e-4887-8ee9-c66353dc0990" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationOtherNonoperatingIncomeExpense_4e6c6318-cabc-4c7b-ac45-485175e6c323" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofInventoriesDetails" xlink:type="simple" xlink:href="wdc-20251003.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_4bb21b39-caf3-4dfd-ba2c-ee288acb30dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_ff6bb1a4-2f29-4029-99c5-75c15cbcfb2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bb21b39-caf3-4dfd-ba2c-ee288acb30dd" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_ff6bb1a4-2f29-4029-99c5-75c15cbcfb2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a2e50135-2f01-4517-a393-c5a45ffbadc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bb21b39-caf3-4dfd-ba2c-ee288acb30dd" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a2e50135-2f01-4517-a393-c5a45ffbadc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_505dd77d-532a-4b2d-954a-e9a61de2ef92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bb21b39-caf3-4dfd-ba2c-ee288acb30dd" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_505dd77d-532a-4b2d-954a-e9a61de2ef92" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="wdc-20251003.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_90b29778-655b-4b14-8936-2dc6f0e38219" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_a56e8704-9b63-4ce4-808b-b00a1e8122d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_90b29778-655b-4b14-8936-2dc6f0e38219" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_a56e8704-9b63-4ce4-808b-b00a1e8122d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_fde105eb-0fe4-4370-bc9b-891ca4b5e9fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_90b29778-655b-4b14-8936-2dc6f0e38219" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_fde105eb-0fe4-4370-bc9b-891ca4b5e9fc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataNoncurrentAssetsDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#SupplementalFinancialStatementDataNoncurrentAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataNoncurrentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d39cdb86-356f-4a8a-bf6f-650536bba683" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndOtherAssetsNoncurrent_3447244d-39f1-47f3-bc10-fd627ba85ce9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxesAndOtherAssetsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_d39cdb86-356f-4a8a-bf6f-650536bba683" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndOtherAssetsNoncurrent_3447244d-39f1-47f3-bc10-fd627ba85ce9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_a181fb8e-bbfd-4efb-89c3-bdcfc7c53fd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_d39cdb86-356f-4a8a-bf6f-650536bba683" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_a181fb8e-bbfd-4efb-89c3-bdcfc7c53fd5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20251003.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_ea6ab8c7-43b0-4e13-919a-5d2b0b07034a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_3f610b45-55ec-4198-9013-6514bb3e0a10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ea6ab8c7-43b0-4e13-919a-5d2b0b07034a" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_3f610b45-55ec-4198-9013-6514bb3e0a10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_9d0da98b-23bf-47e1-b664-8ee2bc669da3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ea6ab8c7-43b0-4e13-919a-5d2b0b07034a" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_9d0da98b-23bf-47e1-b664-8ee2bc669da3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20251003.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_dde727b7-1d90-4c01-a64f-211045254da5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_9e818833-97c5-405f-a9e5-29e7f0cede0b" xlink:href="wdc-20251003.xsd#wdc_OtherMiscellaneousLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_dde727b7-1d90-4c01-a64f-211045254da5" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_9e818833-97c5-405f-a9e5-29e7f0cede0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_ab6f20a3-cd03-48a9-a78a-e82b97dc1ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_dde727b7-1d90-4c01-a64f-211045254da5" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_ab6f20a3-cd03-48a9-a78a-e82b97dc1ccb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8ec7bcad-64ab-4dbf-ab61-525abfbcaf63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_ee98af80-e7bd-4499-a402-f6f16a258c24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8ec7bcad-64ab-4dbf-ab61-525abfbcaf63" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_ee98af80-e7bd-4499-a402-f6f16a258c24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_b1553a08-5af8-4ebe-be41-0de2eb38e8af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8ec7bcad-64ab-4dbf-ab61-525abfbcaf63" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_b1553a08-5af8-4ebe-be41-0de2eb38e8af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_6747848d-a0f2-47ea-83fc-a58f46a5a164" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_8ec7bcad-64ab-4dbf-ab61-525abfbcaf63" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_6747848d-a0f2-47ea-83fc-a58f46a5a164" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_40f99c4d-99ae-46b2-a164-75f15f820886" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_02fa23c0-5bb6-4bc2-8d34-f9a6c38457eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_40f99c4d-99ae-46b2-a164-75f15f820886" xlink:to="loc_us-gaap_DerivativeAssets_02fa23c0-5bb6-4bc2-8d34-f9a6c38457eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_52b23ac4-91fd-41f2-9458-b5fc5b8ed58d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_40f99c4d-99ae-46b2-a164-75f15f820886" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_52b23ac4-91fd-41f2-9458-b5fc5b8ed58d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_ee77974f-3a25-46da-ab38-3c3876359d65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_40f99c4d-99ae-46b2-a164-75f15f820886" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_ee77974f-3a25-46da-ab38-3c3876359d65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_9606e5ef-fb6e-4089-89d3-2a90e93179e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_c5083f5b-34ee-4ff3-a0eb-8b67ac31e1ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9606e5ef-fb6e-4089-89d3-2a90e93179e1" xlink:to="loc_us-gaap_DerivativeLiabilities_c5083f5b-34ee-4ff3-a0eb-8b67ac31e1ec" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20251003.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_36050d7e-5d9a-431e-ac11-37438229f4c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_937349c3-fb77-473f-8e1d-a4e1486724bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_36050d7e-5d9a-431e-ac11-37438229f4c4" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_937349c3-fb77-473f-8e1d-a4e1486724bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_8a454b94-4643-4553-8a73-5823df9085c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_36050d7e-5d9a-431e-ac11-37438229f4c4" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_8a454b94-4643-4553-8a73-5823df9085c6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20251003.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_d0e16c3a-bac4-45bc-883e-abc3cb3b0a64" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_ee2bf2e5-d03c-462d-9966-bf0e7b1c7cfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d0e16c3a-bac4-45bc-883e-abc3cb3b0a64" xlink:to="loc_us-gaap_LongTermDebtCurrent_ee2bf2e5-d03c-462d-9966-bf0e7b1c7cfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_f763a43a-6ff2-4959-b5fa-f950a28a0313" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d0e16c3a-bac4-45bc-883e-abc3cb3b0a64" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_f763a43a-6ff2-4959-b5fa-f950a28a0313" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20251003.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_5cf91a0a-a9a6-435a-981d-2f469ef7514b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a84befac-447c-4a49-a003-6149614b4a60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5cf91a0a-a9a6-435a-981d-2f469ef7514b" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a84befac-447c-4a49-a003-6149614b4a60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_59536b5a-eed2-4166-ac97-97c9675b68d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5cf91a0a-a9a6-435a-981d-2f469ef7514b" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_59536b5a-eed2-4166-ac97-97c9675b68d9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" xlink:type="simple" xlink:href="wdc-20251003.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_ac19716c-ebb2-411c-a5f5-1d571a6656cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_ac19716c-ebb2-411c-a5f5-1d571a6656cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_5032f5d9-befb-4354-91f0-ed547d4f9f0f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_5032f5d9-befb-4354-91f0-ed547d4f9f0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4b49b9c6-641e-475c-bbc9-43aa2b04ac31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4b49b9c6-641e-475c-bbc9-43aa2b04ac31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_be468fac-aaab-4fcb-b019-9378ee8780f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_be468fac-aaab-4fcb-b019-9378ee8780f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_29a8b875-e8e9-4003-8244-4c8f68d53432" xlink:href="wdc-20251003.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_29a8b875-e8e9-4003-8244-4c8f68d53432" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_c0bb76a2-7818-44d1-9925-f0a036041a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5b89246f-ab94-49cb-8293-de76c5090339" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_c0bb76a2-7818-44d1-9925-f0a036041a2c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" xlink:type="simple" xlink:href="wdc-20251003.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_b0dc6d1b-e297-41e9-afed-bd55df99b90f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_d9d16129-c641-4231-b91b-f57fcdd05cae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b0dc6d1b-e297-41e9-afed-bd55df99b90f" xlink:to="loc_us-gaap_OperatingLeaseLiability_d9d16129-c641-4231-b91b-f57fcdd05cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_60db864d-e72c-4f4e-aed5-4fd8f3fcf4d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b0dc6d1b-e297-41e9-afed-bd55df99b90f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_60db864d-e72c-4f4e-aed5-4fd8f3fcf4d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20251003.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_48a83f3d-7578-4578-ba4e-2f474cc38b9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_c70e2670-8917-401b-b81b-b6ce04a2080c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_48a83f3d-7578-4578-ba4e-2f474cc38b9f" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_c70e2670-8917-401b-b81b-b6ce04a2080c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_26c7e1bc-c597-4f11-a318-3d0763230306" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_48a83f3d-7578-4578-ba4e-2f474cc38b9f" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_26c7e1bc-c597-4f11-a318-3d0763230306" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessRealignmentChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#BusinessRealignmentChargesExpenseRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/BusinessRealignmentChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentCharges_f61591d4-d7d3-49c4-885c-f53f18108a83" xlink:href="wdc-20251003.xsd#wdc_BusinessRealignmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_a7bfd5a9-f7e9-419d-94e3-2d13c85204ea" xlink:href="wdc-20251003.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_BusinessRealignmentCharges_f61591d4-d7d3-49c4-885c-f53f18108a83" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_a7bfd5a9-f7e9-419d-94e3-2d13c85204ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_24de2be0-651c-40fd-86a2-66a23e325825" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossOnContractTermination"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_BusinessRealignmentCharges_f61591d4-d7d3-49c4-885c-f53f18108a83" xlink:to="loc_us-gaap_LossOnContractTermination_24de2be0-651c-40fd-86a2-66a23e325825" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20251003.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_5145e420-30d6-4221-89c1-7c50b49e67b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_9cf1d583-35e4-47f5-ab55-6379378b08c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5145e420-30d6-4221-89c1-7c50b49e67b3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_9cf1d583-35e4-47f5-ab55-6379378b08c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_73032e1a-1851-4cae-97d9-ba615c271b56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5145e420-30d6-4221-89c1-7c50b49e67b3" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_73032e1a-1851-4cae-97d9-ba615c271b56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20251003.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_dddb6697-9c45-487e-9e1d-f32f0460161e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_51c9a844-b85b-4274-999a-4a5ecbce67c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dddb6697-9c45-487e-9e1d-f32f0460161e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_51c9a844-b85b-4274-999a-4a5ecbce67c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_bfb82c61-4c08-4dbb-8f8f-87fb8df4830a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_dddb6697-9c45-487e-9e1d-f32f0460161e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_bfb82c61-4c08-4dbb-8f8f-87fb8df4830a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20251003.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_004de52e-cfda-4151-bd50-db0c5dadf51f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_20eca0e1-037f-4077-9c10-ddfe93442e65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_004de52e-cfda-4151-bd50-db0c5dadf51f" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_20eca0e1-037f-4077-9c10-ddfe93442e65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_ea4910a6-19ff-4609-89ef-d0c99bb42dbd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_004de52e-cfda-4151-bd50-db0c5dadf51f" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_ea4910a6-19ff-4609-89ef-d0c99bb42dbd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomePerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="simple" xlink:href="wdc-20251003.xsd#NetIncomePerCommonShareEarningsPerShareBasicandDilutedDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomePerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c95139a2-cd95-42ea-b23f-bf791d7080c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersBasic_a5fffc41-38f3-41ab-a1fb-223d1ade3d4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c95139a2-cd95-42ea-b23f-bf791d7080c3" xlink:to="loc_us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersBasic_a5fffc41-38f3-41ab-a1fb-223d1ade3d4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_333cffa2-0f74-4920-9bf6-eb97c0517ffe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c95139a2-cd95-42ea-b23f-bf791d7080c3" xlink:to="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_333cffa2-0f74-4920-9bf6-eb97c0517ffe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_e1419d1a-af12-48f0-b45c-2c26eb7c7b12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_5b8027e0-b79c-4ff7-b53f-9a3faf3f5161" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_e1419d1a-af12-48f0-b45c-2c26eb7c7b12" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_5b8027e0-b79c-4ff7-b53f-9a3faf3f5161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_37612e52-0f5f-416c-a6d6-1901e18e6547" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_e1419d1a-af12-48f0-b45c-2c26eb7c7b12" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_37612e52-0f5f-416c-a6d6-1901e18e6547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_9acc96b7-0a12-423e-ab45-a57b121acd9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_e1419d1a-af12-48f0-b45c-2c26eb7c7b12" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_9acc96b7-0a12-423e-ab45-a57b121acd9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_35f55f15-eb7a-4865-b41e-8d78b31eeb47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_cf74b120-d020-4a6e-80fc-c29ab738cc04" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_35f55f15-eb7a-4865-b41e-8d78b31eeb47" xlink:to="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_cf74b120-d020-4a6e-80fc-c29ab738cc04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecurities_4566c084-763e-42f1-8e1f-bb3541113138" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DilutiveSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_35f55f15-eb7a-4865-b41e-8d78b31eeb47" xlink:to="loc_us-gaap_DilutiveSecurities_4566c084-763e-42f1-8e1f-bb3541113138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_eb5099c3-c996-4e32-a699-58d7edaa8e0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_6e281313-51ac-4aac-b9ae-1cbbe2c35a95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_eb5099c3-c996-4e32-a699-58d7edaa8e0e" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_6e281313-51ac-4aac-b9ae-1cbbe2c35a95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_37ddd8a0-3a65-416d-bcdb-2e2197931d8d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_eb5099c3-c996-4e32-a699-58d7edaa8e0e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_37ddd8a0-3a65-416d-bcdb-2e2197931d8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e1bf8034-7108-4485-82f6-65270c2db376" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersDiluted_cc0e2342-ca8a-48ee-a6b8-7bbcb39634cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersDiluted"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e1bf8034-7108-4485-82f6-65270c2db376" xlink:to="loc_us-gaap_NetIncomeLossFromDiscontinuedOperationsAvailableToCommonShareholdersDiluted_cc0e2342-ca8a-48ee-a6b8-7bbcb39634cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_acd31807-2cb3-4cc3-8cb8-b67eb810dcfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e1bf8034-7108-4485-82f6-65270c2db376" xlink:to="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_acd31807-2cb3-4cc3-8cb8-b67eb810dcfb" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
