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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:66338bd6-73de-45de-867b-24bba9cf103d,g:7aad5e8b-e7d9-4aef-921e-ec6e562c6181-->
<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-20240927.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_Liabilities_ec9d2e9d-6994-49e9-89f6-f3c25e11e888" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_ef3f6176-17dc-4259-a32a-2171ac30746a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ec9d2e9d-6994-49e9-89f6-f3c25e11e888" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_ef3f6176-17dc-4259-a32a-2171ac30746a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_ae705878-22c6-48b2-857b-80c69485ad53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ec9d2e9d-6994-49e9-89f6-f3c25e11e888" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_ae705878-22c6-48b2-857b-80c69485ad53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_da4ffe2b-5cf8-414c-8337-91d3cfd533bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ec9d2e9d-6994-49e9-89f6-f3c25e11e888" xlink:to="loc_us-gaap_LiabilitiesCurrent_da4ffe2b-5cf8-414c-8337-91d3cfd533bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_297f1789-e871-4736-a064-ccf61a5887b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_297f1789-e871-4736-a064-ccf61a5887b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_68732d8e-38a2-4f8a-8a6c-12d3a40a26bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_68732d8e-38a2-4f8a-8a6c-12d3a40a26bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_6d7aee48-cbf3-4cf5-9d1b-f50fa527516c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:to="loc_us-gaap_OtherAssetsCurrent_6d7aee48-cbf3-4cf5-9d1b-f50fa527516c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_e38b9f95-56a1-46d1-95ea-82834270f0b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:to="loc_us-gaap_InventoryNet_e38b9f95-56a1-46d1-95ea-82834270f0b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_e118e8b1-a41a-4909-b365-275dbb71c8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_7ccd6541-86c1-4ea9-971c-cdb82cc1e576" xlink:to="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_e118e8b1-a41a-4909-b365-275dbb71c8fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_9356e200-b117-4a11-8b43-1a56e8895f95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_AccountsPayableCurrent_9356e200-b117-4a11-8b43-1a56e8895f95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_950de421-ae27-4e09-8b97-7763abd0dfdb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_950de421-ae27-4e09-8b97-7763abd0dfdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_08ed5094-8a27-486f-b47c-3be74709ba68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_08ed5094-8a27-486f-b47c-3be74709ba68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_410785cb-7cd7-433c-b4fd-d2742ae924a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_410785cb-7cd7-433c-b4fd-d2742ae924a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_edf81acd-8003-4176-8478-fa3f4466d873" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_LongTermDebtCurrent_edf81acd-8003-4176-8478-fa3f4466d873" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_ae1e6a59-db4d-485a-a666-a7ec439bbfc3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d4e8e04-e359-49cc-8955-7a9ed25c255f" xlink:to="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_ae1e6a59-db4d-485a-a666-a7ec439bbfc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b515278a-b073-4dff-a43a-00e9ca25ada7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_37a3ef1a-69f2-4588-96a9-2018647ea917" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b515278a-b073-4dff-a43a-00e9ca25ada7" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_37a3ef1a-69f2-4588-96a9-2018647ea917" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_2ac99b10-913c-40ea-bf2e-6dbe27d313d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b515278a-b073-4dff-a43a-00e9ca25ada7" xlink:to="loc_us-gaap_CommonStockValue_2ac99b10-913c-40ea-bf2e-6dbe27d313d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_9036835f-a79a-42e8-9755-19afffd97456" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b515278a-b073-4dff-a43a-00e9ca25ada7" xlink:to="loc_us-gaap_AdditionalPaidInCapital_9036835f-a79a-42e8-9755-19afffd97456" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_85c0bd47-6354-4693-bb60-bdb1f55c099a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b515278a-b073-4dff-a43a-00e9ca25ada7" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_85c0bd47-6354-4693-bb60-bdb1f55c099a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_145f5e91-5442-4ba5-9a6f-35b4920c6739" xlink:href="wdc-20240927.xsd#wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_145f5e91-5442-4ba5-9a6f-35b4920c6739" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_c68331ae-8179-484a-a637-d52b511ea2d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_c68331ae-8179-484a-a637-d52b511ea2d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c6c19a8e-900f-4660-8c0d-cf8ed2460f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c6c19a8e-900f-4660-8c0d-cf8ed2460f9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_30c83480-8d64-4b78-b03c-23e3642c7846" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_30c83480-8d64-4b78-b03c-23e3642c7846" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_fa82d750-23a4-409a-ac0c-8bdb93aff329" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_us-gaap_Goodwill_fa82d750-23a4-409a-ac0c-8bdb93aff329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_40649ea0-a7a0-4503-ac5a-31ddab56254a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_516c640b-5f80-4c02-a79c-ad1cc00d10a5" xlink:to="loc_us-gaap_AssetsCurrent_40649ea0-a7a0-4503-ac5a-31ddab56254a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_60e968c3-40af-4b7e-8445-2d2b6ec962f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_91095ca8-da60-402a-a12f-980753c6cb33" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_60e968c3-40af-4b7e-8445-2d2b6ec962f5" xlink:to="loc_us-gaap_StockholdersEquity_91095ca8-da60-402a-a12f-980753c6cb33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d7ab268c-278f-4ca0-a84b-0f882a2e76b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_60e968c3-40af-4b7e-8445-2d2b6ec962f5" xlink:to="loc_us-gaap_Liabilities_d7ab268c-278f-4ca0-a84b-0f882a2e76b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_98375c23-c17d-4f83-bc9a-f13cec3836ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_60e968c3-40af-4b7e-8445-2d2b6ec962f5" xlink:to="loc_us-gaap_CommitmentsAndContingencies_98375c23-c17d-4f83-bc9a-f13cec3836ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_12687abb-16b3-4314-83fd-3a1f207d4cdd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_60e968c3-40af-4b7e-8445-2d2b6ec962f5" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_12687abb-16b3-4314-83fd-3a1f207d4cdd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20240927.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f0c3a048-f314-457f-88d3-eaa53a4a4e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f0c3a048-f314-457f-88d3-eaa53a4a4e0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_dc93e72e-58e8-472e-8435-3b4ba53f9fb3" xlink:href="wdc-20240927.xsd#wdc_Employeeterminationassetimpairmentandothercharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_dc93e72e-58e8-472e-8435-3b4ba53f9fb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_415ad039-8cfb-45e0-8adb-c5448996dbf1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_415ad039-8cfb-45e0-8adb-c5448996dbf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessSeparationCosts_6e8a154e-db82-4952-91d1-1ca6c87da216" xlink:href="wdc-20240927.xsd#wdc_BusinessSeparationCosts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:to="loc_wdc_BusinessSeparationCosts_6e8a154e-db82-4952-91d1-1ca6c87da216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementLoss_ff15c99f-3b0b-4ad6-b36d-0ccd20522ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationSettlementLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_0ac406c6-af2d-456b-ba62-cecdbd11b5f5" xlink:to="loc_us-gaap_LitigationSettlementLoss_ff15c99f-3b0b-4ad6-b36d-0ccd20522ee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_ca064697-7968-4e2d-80f6-7829114ff658" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_2a883d8b-29fc-46ba-bc1e-3c62b16cd4ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_ca064697-7968-4e2d-80f6-7829114ff658" xlink:to="loc_us-gaap_InvestmentIncomeInterest_2a883d8b-29fc-46ba-bc1e-3c62b16cd4ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_04334993-7e8d-483e-8f6b-2682117c76c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_ca064697-7968-4e2d-80f6-7829114ff658" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_04334993-7e8d-483e-8f6b-2682117c76c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_cbc352f7-10ff-47d6-8bdb-002b421c0493" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_ca064697-7968-4e2d-80f6-7829114ff658" xlink:to="loc_us-gaap_InterestExpenseNonoperating_cbc352f7-10ff-47d6-8bdb-002b421c0493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f239e808-98a4-4e54-9bba-aff2cf679b0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ac71edaf-0a90-4be7-8a72-041a4e8a859e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f239e808-98a4-4e54-9bba-aff2cf679b0d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ac71edaf-0a90-4be7-8a72-041a4e8a859e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_a6ca12d5-cbf5-491c-b9aa-3e553a1b4ea3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f239e808-98a4-4e54-9bba-aff2cf679b0d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_a6ca12d5-cbf5-491c-b9aa-3e553a1b4ea3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d076e52f-b01f-46dc-8532-cf0eb7d0675d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e2917b26-210e-4fb6-b3f1-a7e84593fd53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d076e52f-b01f-46dc-8532-cf0eb7d0675d" xlink:to="loc_us-gaap_NetIncomeLoss_e2917b26-210e-4fb6-b3f1-a7e84593fd53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_3cfc9294-b3ff-4a7e-81bb-93872d0a585d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d076e52f-b01f-46dc-8532-cf0eb7d0675d" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_3cfc9294-b3ff-4a7e-81bb-93872d0a585d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_6750ea04-951e-4050-8955-cc5008a9452e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d076e52f-b01f-46dc-8532-cf0eb7d0675d" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_6750ea04-951e-4050-8955-cc5008a9452e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_ad513cb3-18f7-473f-bcea-50ca06334345" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_e6d0c798-6c70-4727-a97c-2b335ebda548" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ad513cb3-18f7-473f-bcea-50ca06334345" xlink:to="loc_us-gaap_OperatingExpenses_e6d0c798-6c70-4727-a97c-2b335ebda548" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_7a106f79-b79d-47b9-ade4-e5b4502e3c3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ad513cb3-18f7-473f-bcea-50ca06334345" xlink:to="loc_us-gaap_GrossProfit_7a106f79-b79d-47b9-ade4-e5b4502e3c3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_2b3596e6-4928-4c83-8c65-821fe66b3d03" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_f9a0c38c-82f9-4006-928c-af05f35c3668" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_2b3596e6-4928-4c83-8c65-821fe66b3d03" xlink:to="loc_us-gaap_OperatingIncomeLoss_f9a0c38c-82f9-4006-928c-af05f35c3668" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_a8a1897d-344b-4f06-a08e-1cf3453babd5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_2b3596e6-4928-4c83-8c65-821fe66b3d03" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_a8a1897d-344b-4f06-a08e-1cf3453babd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_31a9cd99-87b3-46eb-a7d8-d9281633a335" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7fb212ef-fc01-4c94-b9e1-572af5e87c58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_31a9cd99-87b3-46eb-a7d8-d9281633a335" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7fb212ef-fc01-4c94-b9e1-572af5e87c58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_fea34e3a-d2b7-47bd-b8e8-cf5b051ddb7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_31a9cd99-87b3-46eb-a7d8-d9281633a335" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_fea34e3a-d2b7-47bd-b8e8-cf5b051ddb7a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="wdc-20240927.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_8de03cfc-374c-4cc3-be3b-ddfdc431ae96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2d59613e-1f88-45bc-84a6-f77075f0d619" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8de03cfc-374c-4cc3-be3b-ddfdc431ae96" xlink:to="loc_us-gaap_NetIncomeLoss_2d59613e-1f88-45bc-84a6-f77075f0d619" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ebcbdbbb-425e-414a-bf83-50eed5282367" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8de03cfc-374c-4cc3-be3b-ddfdc431ae96" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ebcbdbbb-425e-414a-bf83-50eed5282367" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e740f92a-bfc3-4160-a0d7-66054f4e87d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_9d7cd010-12d9-4d87-974d-8baa521c0b95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e740f92a-bfc3-4160-a0d7-66054f4e87d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_9d7cd010-12d9-4d87-974d-8baa521c0b95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_a0d24c73-b37b-403e-a576-fc5212110f18" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e740f92a-bfc3-4160-a0d7-66054f4e87d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_a0d24c73-b37b-403e-a576-fc5212110f18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_6180396c-ad7d-4b9f-bdf1-23c2bfa80a9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_7115e1ce-e4a2-4f7d-b1ac-03161cb51e42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_6180396c-ad7d-4b9f-bdf1-23c2bfa80a9b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_7115e1ce-e4a2-4f7d-b1ac-03161cb51e42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_aa2574d8-3721-4feb-9503-3f71babf005e" xlink:href="wdc-20240927.xsd#wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_6180396c-ad7d-4b9f-bdf1-23c2bfa80a9b" xlink:to="loc_wdc_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_aa2574d8-3721-4feb-9503-3f71babf005e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20240927.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_81be7e90-a37e-480f-9e43-57249257a0e8" xlink:href="wdc-20240927.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_81be7e90-a37e-480f-9e43-57249257a0e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_278dde0f-177c-44d6-aac1-bb642c667227" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_278dde0f-177c-44d6-aac1-bb642c667227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_5393e365-ec74-49e0-9386-e7aaca16e9e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_5393e365-ec74-49e0-9386-e7aaca16e9e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_d32442f4-dc1a-4216-87c3-2007aed390cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_d32442f4-dc1a-4216-87c3-2007aed390cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_9228c7bd-bed5-4f5f-a633-a0e07f46a8e7" xlink:href="wdc-20240927.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51448abf-b725-4cfb-8579-bdbdac4c6c2f" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_9228c7bd-bed5-4f5f-a633-a0e07f46a8e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_cc407547-8ab4-4eed-96b0-9761de167965" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_ShareBasedCompensation_cc407547-8ab4-4eed-96b0-9761de167965" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_62b2dfd7-92b8-4a60-8733-7b0cb3f7ef0e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_62b2dfd7-92b8-4a60-8733-7b0cb3f7ef0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_e206e85f-36af-4474-9b10-16f91025de43" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_e206e85f-36af-4474-9b10-16f91025de43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_624b3d0f-d0a6-4166-a6a3-580fa99dd7a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_624b3d0f-d0a6-4166-a6a3-580fa99dd7a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_24fa9da9-9898-4f3a-b966-c93b35dd2492" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_24fa9da9-9898-4f3a-b966-c93b35dd2492" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_31273893-b95c-4a13-b6e7-65303d0d626e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_31273893-b95c-4a13-b6e7-65303d0d626e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_05fd60fc-cad5-4c9a-aa99-031774a11a27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_05fd60fc-cad5-4c9a-aa99-031774a11a27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_7052f016-ead4-4c37-89f8-d729bb6ae41d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_7052f016-ead4-4c37-89f8-d729bb6ae41d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_932522ca-3327-4efa-b32c-20712e9ed2a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_932522ca-3327-4efa-b32c-20712e9ed2a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_18fa49f4-802f-41d2-b3c3-adabf873ad7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_NetIncomeLoss_18fa49f4-802f-41d2-b3c3-adabf873ad7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d1124dd6-480c-4202-b309-d415ff4e16af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d1124dd6-480c-4202-b309-d415ff4e16af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_2efe2d1c-966e-4059-b10f-55fa71dd1137" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_2efe2d1c-966e-4059-b10f-55fa71dd1137" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_1b788fd2-f363-4373-92fc-0d43581d0092" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_1b788fd2-f363-4373-92fc-0d43581d0092" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dbbf0486-9f1d-465f-8adb-88236d3cf068" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dbbf0486-9f1d-465f-8adb-88236d3cf068" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_63b1877c-0735-4193-900c-9e9214c127f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_us-gaap_DepreciationAndAmortization_63b1877c-0735-4193-900c-9e9214c127f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NonCashPortionOfAssetImpairment_6c683a38-7bc7-4f90-b830-3eccb01b72b2" xlink:href="wdc-20240927.xsd#wdc_NonCashPortionOfAssetImpairment"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e162e73f-f8f8-459b-ba7f-c2e7dd3bdcfd" xlink:to="loc_wdc_NonCashPortionOfAssetImpairment_6c683a38-7bc7-4f90-b830-3eccb01b72b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4944fd45-8791-4faa-aaa9-d64f105aeb2e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4944fd45-8791-4faa-aaa9-d64f105aeb2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2509405b-d4a3-4882-b734-a91a4c1f1d29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2509405b-d4a3-4882-b734-a91a4c1f1d29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_684ee97c-2a84-4704-a167-566f85cd3843" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_684ee97c-2a84-4704-a167-566f85cd3843" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_40d49ddd-55d1-4529-a9c6-bbdd894bb6b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_40d49ddd-55d1-4529-a9c6-bbdd894bb6b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CashAndCashEquivalentsReclassifiedToAssetsHeldForSale_5c6091b6-13c6-4d55-a81c-a1e6869f69c8" xlink:href="wdc-20240927.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_4ed5ccc1-a4a0-4347-8d96-e608d463b670" xlink:to="loc_wdc_CashAndCashEquivalentsReclassifiedToAssetsHeldForSale_5c6091b6-13c6-4d55-a81c-a1e6869f69c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ffdbd8e-dcf4-4d5b-9b7d-b9a7b9928e29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_6b46b10d-ec4a-4001-ac23-27c1aa0f6755" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ffdbd8e-dcf4-4d5b-9b7d-b9a7b9928e29" xlink:to="loc_us-gaap_RepaymentsOfDebt_6b46b10d-ec4a-4001-ac23-27c1aa0f6755" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_c04c601e-2566-4896-bcc0-ce2d2686f41d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ffdbd8e-dcf4-4d5b-9b7d-b9a7b9928e29" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_c04c601e-2566-4896-bcc0-ce2d2686f41d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_e7f93dea-2d27-4b09-b146-d97a37c2c899" xlink:href="wdc-20240927.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ffdbd8e-dcf4-4d5b-9b7d-b9a7b9928e29" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_e7f93dea-2d27-4b09-b146-d97a37c2c899" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_32e2c807-3923-4a13-8d43-921eb4794236" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ffdbd8e-dcf4-4d5b-9b7d-b9a7b9928e29" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_32e2c807-3923-4a13-8d43-921eb4794236" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofInventoriesDetails" xlink:type="simple" xlink:href="wdc-20240927.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_f0f7c1b2-c5a0-4303-91cf-e988b1273e66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_4c042f69-496c-474b-8c38-097b753aacdc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_f0f7c1b2-c5a0-4303-91cf-e988b1273e66" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_4c042f69-496c-474b-8c38-097b753aacdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_12020ddf-3efc-47ff-9b54-d98e59ab3cae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_f0f7c1b2-c5a0-4303-91cf-e988b1273e66" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_12020ddf-3efc-47ff-9b54-d98e59ab3cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_d31d0cad-0dae-4b34-adbf-ac0f01bc5d0b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_f0f7c1b2-c5a0-4303-91cf-e988b1273e66" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_d31d0cad-0dae-4b34-adbf-ac0f01bc5d0b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="wdc-20240927.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_00f3b9ac-fc4b-491a-bb81-d9861d8d0a87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_fc6ed1b7-773a-47d8-b0c4-06875f0228f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_00f3b9ac-fc4b-491a-bb81-d9861d8d0a87" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_fc6ed1b7-773a-47d8-b0c4-06875f0228f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_de07271e-d719-444c-8c31-0431f9c8b4f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_00f3b9ac-fc4b-491a-bb81-d9861d8d0a87" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_de07271e-d719-444c-8c31-0431f9c8b4f8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofCurrentPortionoftheWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20240927.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_3ceb1c64-8e00-406a-8ac5-1bb97533715c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StandardProductWarrantyAccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_81caf706-6786-4e85-87cf-e19782b7e5ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StandardProductWarrantyAccrualCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StandardProductWarrantyAccrual_3ceb1c64-8e00-406a-8ac5-1bb97533715c" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_81caf706-6786-4e85-87cf-e19782b7e5ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_7cd1d8a3-5353-48b9-9de2-27f7b6ec39d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StandardProductWarrantyAccrualNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StandardProductWarrantyAccrual_3ceb1c64-8e00-406a-8ac5-1bb97533715c" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_7cd1d8a3-5353-48b9-9de2-27f7b6ec39d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20240927.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_79edda10-ff3e-41ba-bbb5-817804dff56e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_cd4ed531-fbf8-42cf-b65a-df27da8f8260" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_79edda10-ff3e-41ba-bbb5-817804dff56e" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_cd4ed531-fbf8-42cf-b65a-df27da8f8260" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_3486491e-5e0a-41f8-88c0-c014725a5ca8" xlink:href="wdc-20240927.xsd#wdc_OtherMiscellaneousLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_79edda10-ff3e-41ba-bbb5-817804dff56e" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_3486491e-5e0a-41f8-88c0-c014725a5ca8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_7e729e9b-0cf5-4c27-a632-824e2be8c973" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_79edda10-ff3e-41ba-bbb5-817804dff56e" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_7e729e9b-0cf5-4c27-a632-824e2be8c973" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAccumulatedOtherComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b1a796e8-e5f1-42b7-a576-188a8c574d25" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_12f9ae39-4815-4fe8-98c5-205260c87863" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b1a796e8-e5f1-42b7-a576-188a8c574d25" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_12f9ae39-4815-4fe8-98c5-205260c87863" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_c73c605f-4914-4c54-99c7-80fbf3a67a08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b1a796e8-e5f1-42b7-a576-188a8c574d25" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_c73c605f-4914-4c54-99c7-80fbf3a67a08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_9f5a647f-dfe0-492d-842a-f152dad21952" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b1a796e8-e5f1-42b7-a576-188a8c574d25" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_9f5a647f-dfe0-492d-842a-f152dad21952" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAssetsandLiabilitiesClassifiedasHeldForSaleDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#SupplementalFinancialStatementDataScheduleofAssetsandLiabilitiesClassifiedasHeldForSaleDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataScheduleofAssetsandLiabilitiesClassifiedasHeldForSaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_34dd4675-5678-448f-816c-135cb658a420" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_6b11e9fa-12f5-4837-b1c9-e84c1955f8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_34dd4675-5678-448f-816c-135cb658a420" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_6b11e9fa-12f5-4837-b1c9-e84c1955f8c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_0b9d7a17-2702-4d7a-a986-3ac2f3ef7417" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_34dd4675-5678-448f-816c-135cb658a420" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_0b9d7a17-2702-4d7a-a986-3ac2f3ef7417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DisposalGroupIncludingDiscontinuedOperationAccruedCompensationCurrent_44147ee1-41c7-44ff-8898-4f29716199ef" xlink:href="wdc-20240927.xsd#wdc_DisposalGroupIncludingDiscontinuedOperationAccruedCompensationCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_34dd4675-5678-448f-816c-135cb658a420" xlink:to="loc_wdc_DisposalGroupIncludingDiscontinuedOperationAccruedCompensationCurrent_44147ee1-41c7-44ff-8898-4f29716199ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherLiabilities_87fb55bf-7eba-4abb-a094-bb48d0bb6e09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_34dd4675-5678-448f-816c-135cb658a420" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherLiabilities_87fb55bf-7eba-4abb-a094-bb48d0bb6e09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment_19882840-eb42-4a67-8bc5-6b01709da9c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment_19882840-eb42-4a67-8bc5-6b01709da9c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents_0d624a74-d95a-4873-b806-98ba4ad6f12c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents_0d624a74-d95a-4873-b806-98ba4ad6f12c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent_c4fa03e4-f8b2-432e-987e-6fdfde7d6983" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent_c4fa03e4-f8b2-432e-987e-6fdfde7d6983" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_744f542f-93cf-46df-9eda-812ab7e54f9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_744f542f-93cf-46df-9eda-812ab7e54f9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets_d8bf035e-9e77-42d9-aff7-8bd99e376ad8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets_d8bf035e-9e77-42d9-aff7-8bd99e376ad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwill1_7c2aec09-1831-44ad-b3a2-d12049f91ab2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwill1"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_9ab4cfd6-8137-4730-9bb5-2a65f6d1a898" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwill1_7c2aec09-1831-44ad-b3a2-d12049f91ab2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_a83cccff-16b7-4061-994a-e38a57d4c386" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_5a687fb8-ae09-4b96-9470-4d5e4d650ffe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_a83cccff-16b7-4061-994a-e38a57d4c386" xlink:to="loc_us-gaap_DerivativeLiabilities_5a687fb8-ae09-4b96-9470-4d5e4d650ffe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3acebc6e-0d90-4d60-a262-838a3075274f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_be3fa003-d340-46ff-823a-74a151efe393" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_3acebc6e-0d90-4d60-a262-838a3075274f" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_be3fa003-d340-46ff-823a-74a151efe393" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_35dfbd82-c205-442c-9c60-b8b60d44e828" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_3acebc6e-0d90-4d60-a262-838a3075274f" xlink:to="loc_us-gaap_DerivativeAssets_35dfbd82-c205-442c-9c60-b8b60d44e828" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20240927.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_6a8f1415-ba2a-4f3a-bde7-ab68a0d13504" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_24e8abd4-6672-4875-bf6f-78fc91a4974e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_6a8f1415-ba2a-4f3a-bde7-ab68a0d13504" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_24e8abd4-6672-4875-bf6f-78fc91a4974e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_5eac3858-2645-4684-83b6-f2e74c5cb4c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_6a8f1415-ba2a-4f3a-bde7-ab68a0d13504" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_5eac3858-2645-4684-83b6-f2e74c5cb4c3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20240927.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_035b0bf7-e7b1-4bdf-ba9d-db30ce7ae9ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_866aadd9-313a-4d4c-ab99-ee59ef8285ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_035b0bf7-e7b1-4bdf-ba9d-db30ce7ae9ce" xlink:to="loc_us-gaap_LongTermDebtCurrent_866aadd9-313a-4d4c-ab99-ee59ef8285ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_b4fe2f27-18bf-4b39-8e5b-d7df1b5ab9b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_035b0bf7-e7b1-4bdf-ba9d-db30ce7ae9ce" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_b4fe2f27-18bf-4b39-8e5b-d7df1b5ab9b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20240927.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_9bf7f58b-4717-4d90-8a45-a609a9a1d353" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_706e807b-8ca1-4e1c-8996-d4801fdb5fed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_9bf7f58b-4717-4d90-8a45-a609a9a1d353" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_706e807b-8ca1-4e1c-8996-d4801fdb5fed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_50f4ef41-16f6-4a60-a3d0-373b72d43d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_9bf7f58b-4717-4d90-8a45-a609a9a1d353" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_50f4ef41-16f6-4a60-a3d0-373b72d43d5b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansScheduleofUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20240927.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_88f817cb-5187-4b51-82d3-dbf7f27e21cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_e42100ab-d888-4856-b9e2-5054b5ff97d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_88f817cb-5187-4b51-82d3-dbf7f27e21cc" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_e42100ab-d888-4856-b9e2-5054b5ff97d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4772ecd0-b389-4e69-82bb-b538f0eb33ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_88f817cb-5187-4b51-82d3-dbf7f27e21cc" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4772ecd0-b389-4e69-82bb-b538f0eb33ca" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear_a9e82e30-6820-4551-b326-74138fd386a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:to="loc_us-gaap_OtherCommitmentsFutureMinimumPaymentsRemainderOfFiscalYear_a9e82e30-6820-4551-b326-74138fd386a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_97c4cc1b-d6b9-4ea3-badc-73d2baa05e52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_97c4cc1b-d6b9-4ea3-badc-73d2baa05e52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_ed68c74f-a63c-4877-9980-8aadd016104b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_ed68c74f-a63c-4877-9980-8aadd016104b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_806b4bd4-44e4-4566-89ee-6da407fad0b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_806b4bd4-44e4-4566-89ee-6da407fad0b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_2c1e812f-f0a3-4b8f-96c4-c52798f34408" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_e334a8f1-1943-4cbd-98a4-8dd446ec3488" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_2c1e812f-f0a3-4b8f-96c4-c52798f34408" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofNotesReceivableandInvestmentsinRelatedPartiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_02fec519-ecb5-4aaa-b9c9-bd7e072e3b57" xlink:href="wdc-20240927.xsd#wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_4fefc321-ee56-442d-9e43-7133f9334350" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_02fec519-ecb5-4aaa-b9c9-bd7e072e3b57" xlink:to="loc_us-gaap_NotesReceivableNet_4fefc321-ee56-442d-9e43-7133f9334350" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_eb4707fa-b21b-4b69-a01e-f55daa354380" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Investments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_wdc_NotesReceivableAndInvestmentsInRelatedPartiesNoncurrent_02fec519-ecb5-4aaa-b9c9-bd7e072e3b57" xlink:to="loc_us-gaap_Investments_eb4707fa-b21b-4b69-a01e-f55daa354380" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesScheduleofRemainingGuaranteeObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_7495c9a1-5ea7-4242-849c-786392f86731" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_7495c9a1-5ea7-4242-849c-786392f86731" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8701469a-fc31-40c3-8cff-1bdd10553e1d" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_8701469a-fc31-40c3-8cff-1bdd10553e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_44741d36-461f-475c-a468-5f81beacfe0d" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_44741d36-461f-475c-a468-5f81beacfe0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_b9e5e71c-64a9-4389-8acb-c0ffc353de00" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_b9e5e71c-64a9-4389-8acb-c0ffc353de00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_5a20e78e-dde0-47dd-8a2d-06ab0eb43d06" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_5a20e78e-dde0-47dd-8a2d-06ab0eb43d06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_2a92b500-d5b4-415d-ba46-5575365c21e1" xlink:href="wdc-20240927.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_911c9e46-f689-4693-b374-861ae1ebfb31" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_2a92b500-d5b4-415d-ba46-5575365c21e1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20240927.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_450c0483-09b5-4daa-90e7-b3e8135849d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_0974e9f8-9622-4eb7-bd06-d5e71f8696c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_450c0483-09b5-4daa-90e7-b3e8135849d2" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_0974e9f8-9622-4eb7-bd06-d5e71f8696c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_cc7c23da-fb9e-4e78-89f5-06b169b85a42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_450c0483-09b5-4daa-90e7-b3e8135849d2" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_cc7c23da-fb9e-4e78-89f5-06b169b85a42" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" xlink:type="simple" xlink:href="wdc-20240927.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_d0b8f0c7-13c1-4f87-8505-749aa41d5657" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_2c6cac37-85c5-401a-a65e-12ed16c8c4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d0b8f0c7-13c1-4f87-8505-749aa41d5657" xlink:to="loc_us-gaap_OperatingLeaseLiability_2c6cac37-85c5-401a-a65e-12ed16c8c4ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_fccb91c6-5d68-4bfd-8391-9234d3dcf1d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d0b8f0c7-13c1-4f87-8505-749aa41d5657" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_fccb91c6-5d68-4bfd-8391-9234d3dcf1d0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" xlink:type="simple" xlink:href="wdc-20240927.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_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_36392754-dee7-4995-8c04-4bd17f9b599c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_36392754-dee7-4995-8c04-4bd17f9b599c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_c153f5b9-eb06-48ba-8d80-7b988e490071" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_c153f5b9-eb06-48ba-8d80-7b988e490071" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_988758fe-31f0-4690-b785-a712ccb7f39a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_988758fe-31f0-4690-b785-a712ccb7f39a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_6bcd1dd5-d0ec-4db1-bedb-3d77cc47391a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_6bcd1dd5-d0ec-4db1-bedb-3d77cc47391a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_118f2021-a6fe-4509-9252-0fe78c2ac910" xlink:href="wdc-20240927.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_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_wdc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_118f2021-a6fe-4509-9252-0fe78c2ac910" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_57bcce9f-7084-42f9-b8a1-462066403197" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4e4f3a44-c624-441a-8479-6fb127fe45ed" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_57bcce9f-7084-42f9-b8a1-462066403197" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsScheduleofMinimumLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20240927.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_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_f3e4a699-d2af-4382-b26b-b782f7e101dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_f3e4a699-d2af-4382-b26b-b782f7e101dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_7634a5bb-0c72-4be0-a28d-f03eb6b7625b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_7634a5bb-0c72-4be0-a28d-f03eb6b7625b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_3eccc926-14f0-495d-bac0-dc847d9a9f8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_3eccc926-14f0-495d-bac0-dc847d9a9f8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_93a5bd9d-cc92-44e5-a23a-24a9d605487d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_93a5bd9d-cc92-44e5-a23a-24a9d605487d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseObligationToBePaidAfterYearFour_181a2c22-ef79-4ede-b093-0cc499aca22b" xlink:href="wdc-20240927.xsd#wdc_PurchaseObligationToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_wdc_PurchaseObligationToBePaidAfterYearFour_181a2c22-ef79-4ede-b093-0cc499aca22b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_71396a18-b9b4-4d0f-91c9-015f64fd8833" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_358bffcf-7475-410c-8373-e7f59aa3d136" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_71396a18-b9b4-4d0f-91c9-015f64fd8833" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20240927.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_66b48b99-fa01-4daa-9a1f-59c535454865" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_4e6702a8-956b-48f9-810b-5a9a2624fed3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_66b48b99-fa01-4daa-9a1f-59c535454865" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_4e6702a8-956b-48f9-810b-5a9a2624fed3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_6d71a7ad-767a-42c0-a4b3-d0b7154cecc2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_66b48b99-fa01-4daa-9a1f-59c535454865" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_6d71a7ad-767a-42c0-a4b3-d0b7154cecc2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareEarningsPerShareBasicandDilutedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_28a35902-572a-4ddc-b548-45a15fec5fbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_cae15c6e-0e7f-427d-8857-79f57cc11bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_28a35902-572a-4ddc-b548-45a15fec5fbd" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_cae15c6e-0e7f-427d-8857-79f57cc11bc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_9902d507-62c5-49a3-bc41-c58c7957d3f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_28a35902-572a-4ddc-b548-45a15fec5fbd" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_9902d507-62c5-49a3-bc41-c58c7957d3f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_84a4b05c-b944-4345-97fc-7b81bb2d5edd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_28a35902-572a-4ddc-b548-45a15fec5fbd" xlink:to="loc_us-gaap_NetIncomeLoss_84a4b05c-b944-4345-97fc-7b81bb2d5edd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a08ea8b3-9141-42c7-999c-2e9c66c3bf1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_8bd2a317-6ee9-4379-8044-9b0c11d8e782" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a08ea8b3-9141-42c7-999c-2e9c66c3bf1d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_8bd2a317-6ee9-4379-8044-9b0c11d8e782" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_163d00cc-8e42-48c7-9887-35cfe0dea6be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a08ea8b3-9141-42c7-999c-2e9c66c3bf1d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_163d00cc-8e42-48c7-9887-35cfe0dea6be" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherScheduleofNetChargesDetails" xlink:type="simple" xlink:href="wdc-20240927.xsd#EmployeeTerminationAssetImpairmentandOtherScheduleofNetChargesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherScheduleofNetChargesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_eb85761c-56cd-4848-be9b-a720ff281fdc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_d09f27cc-2799-40da-b701-bb10530f8c80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_eb85761c-56cd-4848-be9b-a720ff281fdc" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_d09f27cc-2799-40da-b701-bb10530f8c80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_2254d3e5-60ab-4197-99d9-7da1bfcce81a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossOnContractTermination"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_eb85761c-56cd-4848-be9b-a720ff281fdc" xlink:to="loc_us-gaap_LossOnContractTermination_2254d3e5-60ab-4197-99d9-7da1bfcce81a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_8bf55673-9be3-427d-990d-39d5e047cf26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_eb85761c-56cd-4848-be9b-a720ff281fdc" xlink:to="loc_us-gaap_AssetImpairmentCharges_8bf55673-9be3-427d-990d-39d5e047cf26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_9fb7f0a2-b400-4f07-8a49-1ecc8c663394" xlink:href="wdc-20240927.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_eb85761c-56cd-4848-be9b-a720ff281fdc" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_9fb7f0a2-b400-4f07-8a49-1ecc8c663394" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
