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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:171fbf21-f849-4331-8f75-e01c78ec23fe,g:fe6fe59e-09bc-4f9f-9357-f3fca8d113f0-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" 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_AccruedLiabilitiesCurrent_a0102ab3-30e4-4159-8282-453a4783e6d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_a0102ab3-30e4-4159-8282-453a4783e6d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_84b64ddc-1079-4683-a15d-38b93b8b822d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" xlink:to="loc_us-gaap_LongTermDebtCurrent_84b64ddc-1079-4683-a15d-38b93b8b822d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_15d04ed5-7b17-4248-851b-8dc47b787e50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_15d04ed5-7b17-4248-851b-8dc47b787e50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_eee69068-5f3d-4ec6-935f-9d935347ba78" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" xlink:to="loc_us-gaap_AccountsPayableCurrent_eee69068-5f3d-4ec6-935f-9d935347ba78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_602bca2a-fe82-402c-8db4-2e7309447c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_38a46be4-76eb-458e-b459-b0f32c9ac8c3" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_602bca2a-fe82-402c-8db4-2e7309447c9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_079df7ad-9164-43c5-85e4-dd1c5efbb499" 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_OtherAssetsCurrent_0af91f02-a058-48a8-9de5-630880b2e869" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_079df7ad-9164-43c5-85e4-dd1c5efbb499" xlink:to="loc_us-gaap_OtherAssetsCurrent_0af91f02-a058-48a8-9de5-630880b2e869" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_e92a606a-6a80-481d-9872-0f8f5a0c33aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_079df7ad-9164-43c5-85e4-dd1c5efbb499" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_e92a606a-6a80-481d-9872-0f8f5a0c33aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_75684864-f6da-405d-9735-12b5d14e9002" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_079df7ad-9164-43c5-85e4-dd1c5efbb499" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_75684864-f6da-405d-9735-12b5d14e9002" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_37714a84-8582-4f82-937e-5b7dcae671ca" 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_079df7ad-9164-43c5-85e4-dd1c5efbb499" xlink:to="loc_us-gaap_InventoryNet_37714a84-8582-4f82-937e-5b7dcae671ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_b712ae83-e93b-494a-af88-4fcc25ea47a7" 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_6f7bfa99-f82f-4376-8cb8-0f25c9f326e8" 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_b712ae83-e93b-494a-af88-4fcc25ea47a7" xlink:to="loc_us-gaap_StockholdersEquity_6f7bfa99-f82f-4376-8cb8-0f25c9f326e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_8088fe70-2a40-4546-be3a-0cd5b438a6aa" 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_b712ae83-e93b-494a-af88-4fcc25ea47a7" xlink:to="loc_us-gaap_Liabilities_8088fe70-2a40-4546-be3a-0cd5b438a6aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_fb31ed15-af50-4600-9be8-34f576ed712f" 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_b712ae83-e93b-494a-af88-4fcc25ea47a7" xlink:to="loc_us-gaap_CommitmentsAndContingencies_fb31ed15-af50-4600-9be8-34f576ed712f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_515ba1a0-b6bd-4e71-acad-215f94cbc07f" 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_b712ae83-e93b-494a-af88-4fcc25ea47a7" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_515ba1a0-b6bd-4e71-acad-215f94cbc07f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_885daabb-8240-41f3-b755-b304d3b7b47c" 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_LiabilitiesCurrent_22c0269e-68de-4b0a-bdc8-3c8bb3c631f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_885daabb-8240-41f3-b755-b304d3b7b47c" xlink:to="loc_us-gaap_LiabilitiesCurrent_22c0269e-68de-4b0a-bdc8-3c8bb3c631f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_6faec2d1-1864-405e-9506-cfdb286946ab" 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_885daabb-8240-41f3-b755-b304d3b7b47c" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_6faec2d1-1864-405e-9506-cfdb286946ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_9cbdf305-6fb8-437f-9f5d-53cd1bfc6508" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_885daabb-8240-41f3-b755-b304d3b7b47c" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_9cbdf305-6fb8-437f-9f5d-53cd1bfc6508" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e1167a7b-022d-4734-8fb8-f00d943033d3" 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_CommonStockValue_fee7dce0-4326-43c8-8477-df73244b39bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e1167a7b-022d-4734-8fb8-f00d943033d3" xlink:to="loc_us-gaap_CommonStockValue_fee7dce0-4326-43c8-8477-df73244b39bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_92b230da-9b10-4311-b5cd-6c06b8ddbeba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e1167a7b-022d-4734-8fb8-f00d943033d3" xlink:to="loc_us-gaap_AdditionalPaidInCapital_92b230da-9b10-4311-b5cd-6c06b8ddbeba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_0033a642-cd26-46eb-bb60-8be90a6127ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e1167a7b-022d-4734-8fb8-f00d943033d3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_0033a642-cd26-46eb-bb60-8be90a6127ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c35d2b3f-0aca-4c28-a752-13dcb7924432" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e1167a7b-022d-4734-8fb8-f00d943033d3" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c35d2b3f-0aca-4c28-a752-13dcb7924432" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" 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_us-gaap_OtherAssetsNoncurrent_14fb3464-b633-42e6-acf4-3caee046f551" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_14fb3464-b633-42e6-acf4-3caee046f551" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_7150cec0-552f-4d39-9b9a-4f6ae057c8f9" xlink:href="wdc-20240628.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_7150cec0-552f-4d39-9b9a-4f6ae057c8f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_fc38e78f-5812-44d9-803e-3629d2ea9f1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_fc38e78f-5812-44d9-803e-3629d2ea9f1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_9f885ea1-5471-4c4a-bddf-55423458d2b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_us-gaap_Goodwill_9f885ea1-5471-4c4a-bddf-55423458d2b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_8432da15-3593-4d87-b325-ab0aa603962b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_8432da15-3593-4d87-b325-ab0aa603962b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a803457a-4efb-4d0e-8ae3-a23dcf75b38e" 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_9962ce67-cd69-4e5e-8422-ab7dfa94ca18" xlink:to="loc_us-gaap_AssetsCurrent_a803457a-4efb-4d0e-8ae3-a23dcf75b38e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" 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_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_8b1e96c7-7145-4224-a1db-be84d6fef78c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_8b1e96c7-7145-4224-a1db-be84d6fef78c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationAssetImpairmentAndOtherCharges_e5833f6d-ea7d-4e3a-b467-8426adda0a29" xlink:href="wdc-20240628.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_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" xlink:to="loc_wdc_EmployeeTerminationAssetImpairmentAndOtherCharges_e5833f6d-ea7d-4e3a-b467-8426adda0a29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ce1df0c3-1fc1-4ac3-993a-c7b57c1552aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ce1df0c3-1fc1-4ac3-993a-c7b57c1552aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessExitCosts1_8bb80f98-63fb-493b-8f3c-888e214ec1f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessExitCosts1"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" xlink:to="loc_us-gaap_BusinessExitCosts1_8bb80f98-63fb-493b-8f3c-888e214ec1f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementLoss_21c09e9c-50d3-4792-af12-f394a67c3dc3" 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_12c363f7-fc46-41e1-9dc4-d04fd18cdd1d" xlink:to="loc_us-gaap_LitigationSettlementLoss_21c09e9c-50d3-4792-af12-f394a67c3dc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_dbf0ab37-9699-4fc1-871f-f705e9936949" 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_0e74fd5d-8f43-4a53-8bb9-08b1810a3215" 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_dbf0ab37-9699-4fc1-871f-f705e9936949" xlink:to="loc_us-gaap_InvestmentIncomeInterest_0e74fd5d-8f43-4a53-8bb9-08b1810a3215" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_551d838d-5b23-48b1-ac77-6da0807f5a49" 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_dbf0ab37-9699-4fc1-871f-f705e9936949" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_551d838d-5b23-48b1-ac77-6da0807f5a49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_7d49d7d0-650f-45da-a36a-e5d84866c4fd" 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_dbf0ab37-9699-4fc1-871f-f705e9936949" xlink:to="loc_us-gaap_InterestExpenseNonoperating_7d49d7d0-650f-45da-a36a-e5d84866c4fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_a15c9eb4-0f90-4045-a1e0-ffa67f407327" 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_95526812-d3ad-48bf-8150-2e7b92e63dea" 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_a15c9eb4-0f90-4045-a1e0-ffa67f407327" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_95526812-d3ad-48bf-8150-2e7b92e63dea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_f40e4808-1069-42f0-ad17-831ef8248ef2" 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_a15c9eb4-0f90-4045-a1e0-ffa67f407327" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_f40e4808-1069-42f0-ad17-831ef8248ef2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_645175d1-fa8a-4853-8bb9-7f2616dde581" 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_8fd6fb97-a3d2-4dc8-a0cb-3254dbad45b6" 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_645175d1-fa8a-4853-8bb9-7f2616dde581" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_8fd6fb97-a3d2-4dc8-a0cb-3254dbad45b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_56aa1a2c-dd44-45ad-8290-3ee4e07f37fe" 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_645175d1-fa8a-4853-8bb9-7f2616dde581" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_56aa1a2c-dd44-45ad-8290-3ee4e07f37fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f885ad52-e949-4a17-b685-d8e95bdfa925" 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_PreferredStockDividendsIncomeStatementImpact_20f749a8-2ee5-4ae2-94c5-a7e275b4c9a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f885ad52-e949-4a17-b685-d8e95bdfa925" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_20f749a8-2ee5-4ae2-94c5-a7e275b4c9a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d1e1533f-fb0c-43f2-8fff-155832010992" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f885ad52-e949-4a17-b685-d8e95bdfa925" xlink:to="loc_us-gaap_NetIncomeLoss_d1e1533f-fb0c-43f2-8fff-155832010992" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_f10cffad-636b-482c-ad66-93c826ce767e" 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_05778db4-2683-42d1-9491-d2e66d64f85a" 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_f10cffad-636b-482c-ad66-93c826ce767e" xlink:to="loc_us-gaap_OperatingExpenses_05778db4-2683-42d1-9491-d2e66d64f85a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b6959d34-cdbb-4f07-b1ca-7efb6467455e" 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_f10cffad-636b-482c-ad66-93c826ce767e" xlink:to="loc_us-gaap_GrossProfit_b6959d34-cdbb-4f07-b1ca-7efb6467455e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_addbee67-de38-453f-a0f9-dd8c9d1a5e53" 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_130d341a-1eb7-4683-a95a-faeb544a910f" 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_addbee67-de38-453f-a0f9-dd8c9d1a5e53" xlink:to="loc_us-gaap_OperatingIncomeLoss_130d341a-1eb7-4683-a95a-faeb544a910f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_b87b46b6-08e9-4c60-8468-a30e6c9857d5" 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_addbee67-de38-453f-a0f9-dd8c9d1a5e53" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_b87b46b6-08e9-4c60-8468-a30e6c9857d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_1bacea9a-89c0-4b32-ba45-1958c834861d" 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_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_421b9f32-746f-4bcd-9a81-0edda8292c90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_1bacea9a-89c0-4b32-ba45-1958c834861d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_421b9f32-746f-4bcd-9a81-0edda8292c90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_d1978191-776e-4717-9724-e7fbef4926f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_1bacea9a-89c0-4b32-ba45-1958c834861d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_d1978191-776e-4717-9724-e7fbef4926f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_eca8b428-7f6c-4145-b1e7-08fd836b1f73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_1bacea9a-89c0-4b32-ba45-1958c834861d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_eca8b428-7f6c-4145-b1e7-08fd836b1f73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_507cacb4-8edf-4a8d-b51f-3f866f7d6a25" 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_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_c0fccf39-815c-4b21-a7b7-6cd2fcdf63b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_507cacb4-8edf-4a8d-b51f-3f866f7d6a25" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_c0fccf39-815c-4b21-a7b7-6cd2fcdf63b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_066c525f-b77f-44c0-9b0b-740dcb0797b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_507cacb4-8edf-4a8d-b51f-3f866f7d6a25" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_066c525f-b77f-44c0-9b0b-740dcb0797b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_f035a60b-259a-446f-b26f-750b9a45e6f9" 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_5d95456c-ab0e-4628-b3ec-ab5ecfc967b2" 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_f035a60b-259a-446f-b26f-750b9a45e6f9" xlink:to="loc_us-gaap_NetIncomeLoss_5d95456c-ab0e-4628-b3ec-ab5ecfc967b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e79ca198-abcd-4598-8b28-4d5d191c24bf" 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_f035a60b-259a-446f-b26f-750b9a45e6f9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e79ca198-abcd-4598-8b28-4d5d191c24bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" 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_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_e3d68edb-6dfc-49ef-a50f-0649eb0556cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_e3d68edb-6dfc-49ef-a50f-0649eb0556cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_aaeab885-b001-48fe-8f3a-18a2745209f5" xlink:href="wdc-20240628.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_aaeab885-b001-48fe-8f3a-18a2745209f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_8bcffad6-3cdb-4196-b9fa-1fc5b97d9e15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_8bcffad6-3cdb-4196-b9fa-1fc5b97d9e15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_85bb0d48-f8a5-439e-89e3-a093d6973bb6" xlink:href="wdc-20240628.xsd#wdc_PaymentsForLongTermLoansForRelatedParties"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_85bb0d48-f8a5-439e-89e3-a093d6973bb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_582b5948-1337-4312-b086-0be30ae0e4c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_582b5948-1337-4312-b086-0be30ae0e4c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0bbacce0-6b4f-4c69-b48a-328bc528dd7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_055d8dbf-44b0-465a-962a-f199a6c4e43f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0bbacce0-6b4f-4c69-b48a-328bc528dd7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" 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_ProceedsFromLinesOfCredit_cf66c01f-5bb9-45ea-b285-4d7f2d29fcb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_cf66c01f-5bb9-45ea-b285-4d7f2d29fcb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_bc5f4e2e-d82e-4e23-be33-7a84b1685171" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_RepaymentsOfDebt_bc5f4e2e-d82e-4e23-be33-7a84b1685171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_03b62027-6d7b-42bb-a40b-86620e518561" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_03b62027-6d7b-42bb-a40b-86620e518561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_1e795696-cec6-4e8b-9a02-0e2c0efce6ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_1e795696-cec6-4e8b-9a02-0e2c0efce6ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_c403610c-fbc4-44b6-bca0-ad97ebc099cb" xlink:href="wdc-20240628.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_c403610c-fbc4-44b6-bca0-ad97ebc099cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_57f3f602-4532-45ee-8ca6-33d3767310b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_57f3f602-4532-45ee-8ca6-33d3767310b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_5d371b91-17ec-46f5-a34b-acc252b2e262" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_5d371b91-17ec-46f5-a34b-acc252b2e262" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentsForRepurchaseOfDebt_6479eaec-0310-4f97-8122-b6b64c0f8897" xlink:href="wdc-20240628.xsd#wdc_PaymentsForRepurchaseOfDebt"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff29b355-4e4e-4c56-86cf-fc417fd65fe9" xlink:to="loc_wdc_PaymentsForRepurchaseOfDebt_6479eaec-0310-4f97-8122-b6b64c0f8897" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" 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_0124d0c4-a645-4d23-92d9-4179aa6e8ee7" 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_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_ShareBasedCompensation_0124d0c4-a645-4d23-92d9-4179aa6e8ee7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_9373961d-d0d7-44d5-aee6-25095e2a1c9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_9373961d-d0d7-44d5-aee6-25095e2a1c9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e1bb4984-81b7-4d98-8227-d0c4aaf38d0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e1bb4984-81b7-4d98-8227-d0c4aaf38d0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_b49bd00b-35d1-4426-a9b3-df584b622103" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_DepreciationAndAmortization_b49bd00b-35d1-4426-a9b3-df584b622103" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_6b888a29-6063-4b1d-a5ee-016f39552824" 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_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_6b888a29-6063-4b1d-a5ee-016f39552824" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_0f4e9259-b569-4a54-82ab-f7f8c3589c87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_0f4e9259-b569-4a54-82ab-f7f8c3589c87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_430fa467-c911-49b9-962c-be719b221a07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_430fa467-c911-49b9-962c-be719b221a07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_7e02faeb-f948-415f-a853-904170d16742" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_7e02faeb-f948-415f-a853-904170d16742" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c0f4d7d4-be02-41e0-897c-01f8d77a95d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c0f4d7d4-be02-41e0-897c-01f8d77a95d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2e96dbc1-2670-4104-b0af-9f9f4258aeac" 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_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_NetIncomeLoss_2e96dbc1-2670-4104-b0af-9f9f4258aeac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_24b6acb8-360d-49aa-86bd-da163e1f9e1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_24b6acb8-360d-49aa-86bd-da163e1f9e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_fbefacc4-dfa4-4795-ab57-0f6f26b00c56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_fbefacc4-dfa4-4795-ab57-0f6f26b00c56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_d2c8ab18-4cd3-4f58-9bff-9bdc71191adf" 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_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_d2c8ab18-4cd3-4f58-9bff-9bdc71191adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_8819e0ec-13f9-4196-b737-a66bf2d57278" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_8819e0ec-13f9-4196-b737-a66bf2d57278" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_99371337-4055-40f6-8974-02cae7345c71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_99371337-4055-40f6-8974-02cae7345c71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_825437b6-16f9-497f-b578-1e6d16653806" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_825437b6-16f9-497f-b578-1e6d16653806" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NonCashPortionOfAssetImpairment_0cf8c7d0-c422-4829-9e0c-6a4121356fdc" xlink:href="wdc-20240628.xsd#wdc_NonCashPortionOfAssetImpairment"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bf60d843-299e-4027-a281-da8c9b112165" xlink:to="loc_wdc_NonCashPortionOfAssetImpairment_0cf8c7d0-c422-4829-9e0c-6a4121356fdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cdc876c5-9c27-4c1e-a58f-6d5488e4c928" 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_355d3dbc-1a4e-4453-99a8-a86211ae2330" 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_cdc876c5-9c27-4c1e-a58f-6d5488e4c928" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_355d3dbc-1a4e-4453-99a8-a86211ae2330" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6e451cd6-afad-44c2-afed-c2a3b907c3a8" 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_cdc876c5-9c27-4c1e-a58f-6d5488e4c928" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6e451cd6-afad-44c2-afed-c2a3b907c3a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a68ae26b-8295-41c2-9b16-29e710e8f6fd" 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_cdc876c5-9c27-4c1e-a58f-6d5488e4c928" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a68ae26b-8295-41c2-9b16-29e710e8f6fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_5a6a7b52-07ed-4957-a623-94dbbf97a52a" 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_cdc876c5-9c27-4c1e-a58f-6d5488e4c928" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_5a6a7b52-07ed-4957-a623-94dbbf97a52a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_151d3601-b1e7-4973-9e16-6528088b12a9" 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_91ed3155-a85c-49a0-97ab-f098e6012190" 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_151d3601-b1e7-4973-9e16-6528088b12a9" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_91ed3155-a85c-49a0-97ab-f098e6012190" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_f000e652-d816-4af4-98b4-a39e0f956461" 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_151d3601-b1e7-4973-9e16-6528088b12a9" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_f000e652-d816-4af4-98b4-a39e0f956461" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_59a97e49-944e-4b38-b389-56f6e5507f8a" 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_151d3601-b1e7-4973-9e16-6528088b12a9" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_59a97e49-944e-4b38-b389-56f6e5507f8a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_8dc30e71-223e-415c-9675-b390462d349e" 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_28e8d6b2-757e-40c6-a18e-5637883ea6e8" 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_8dc30e71-223e-415c-9675-b390462d349e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_28e8d6b2-757e-40c6-a18e-5637883ea6e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d17f57d5-44c0-4f6a-a664-148d45ed0aa8" 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_8dc30e71-223e-415c-9675-b390462d349e" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d17f57d5-44c0-4f6a-a664-148d45ed0aa8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrual_9bbb0a93-e548-496f-87b7-2e34a258cd3f" 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_4f2e1876-45b8-4e45-8b3c-53edec2c023a" 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_9bbb0a93-e548-496f-87b7-2e34a258cd3f" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_4f2e1876-45b8-4e45-8b3c-53edec2c023a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_450bfcea-dfb1-4dc7-8c1b-5ed094a7a4dd" 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_9bbb0a93-e548-496f-87b7-2e34a258cd3f" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_450bfcea-dfb1-4dc7-8c1b-5ed094a7a4dd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_a57abd6f-0b97-474a-ae28-45e2d9ec4d31" 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_e7f0b9e8-0f92-4961-91a0-9becebb1c884" 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_a57abd6f-0b97-474a-ae28-45e2d9ec4d31" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_e7f0b9e8-0f92-4961-91a0-9becebb1c884" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_535ef992-478c-4b57-a2c8-3922328fb4ec" xlink:href="wdc-20240628.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_a57abd6f-0b97-474a-ae28-45e2d9ec4d31" xlink:to="loc_wdc_OtherMiscellaneousLiabilitiesNoncurrent_535ef992-478c-4b57-a2c8-3922328fb4ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_660bbe87-83c1-4444-9cbe-7166828f5155" 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_a57abd6f-0b97-474a-ae28-45e2d9ec4d31" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_660bbe87-83c1-4444-9cbe-7166828f5155" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f5264a62-91e8-4319-b173-61d528427e12" 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_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_ea6d5403-e347-4265-85ca-dc1941bc33bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f5264a62-91e8-4319-b173-61d528427e12" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_ea6d5403-e347-4265-85ca-dc1941bc33bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_8f74fffe-be21-4593-ad86-025eb84331b4" 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_f5264a62-91e8-4319-b173-61d528427e12" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_8f74fffe-be21-4593-ad86-025eb84331b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_6aed77c2-5aa9-4943-b0e2-426271068e6f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f5264a62-91e8-4319-b173-61d528427e12" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_6aed77c2-5aa9-4943-b0e2-426271068e6f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20240628.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b9d14d63-d290-40dc-bf10-2a247c6a8328" 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_3c0e9f71-4d21-4f2b-866c-b29db42f7efe" 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_b9d14d63-d290-40dc-bf10-2a247c6a8328" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_3c0e9f71-4d21-4f2b-866c-b29db42f7efe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_ea9a7238-aef9-406c-abbc-e4e741c3a934" 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_b9d14d63-d290-40dc-bf10-2a247c6a8328" xlink:to="loc_us-gaap_DerivativeAssets_ea9a7238-aef9-406c-abbc-e4e741c3a934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_73ce194d-ac9d-4e50-a4b7-acd5564e364f" 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_f0532627-7217-4934-8f1b-c46376c48ad0" 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_73ce194d-ac9d-4e50-a4b7-acd5564e364f" xlink:to="loc_us-gaap_DerivativeLiabilities_f0532627-7217-4934-8f1b-c46376c48ad0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20240628.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_92ea7195-8db8-4952-84de-962dbedb3889" 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_LongTermDebtNoncurrent_d2650588-0364-47ae-8fa0-a095c08374b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_92ea7195-8db8-4952-84de-962dbedb3889" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_d2650588-0364-47ae-8fa0-a095c08374b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_98a99915-eb1e-4c3f-891d-53bc621ea490" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_92ea7195-8db8-4952-84de-962dbedb3889" xlink:to="loc_us-gaap_LongTermDebtCurrent_98a99915-eb1e-4c3f-891d-53bc621ea490" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1" xlink:type="simple" xlink:href="wdc-20240628.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_65a60977-4053-4615-ab72-d04d096ae791" 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_DebtInstrumentCarryingAmount_050e00fe-0927-45c3-ae9b-0532ee756ab8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_65a60977-4053-4615-ab72-d04d096ae791" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_050e00fe-0927-45c3-ae9b-0532ee756ab8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_aad0c57f-4f21-4c58-990e-6be3b8007907" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_65a60977-4053-4615-ab72-d04d096ae791" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_aad0c57f-4f21-4c58-990e-6be3b8007907" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#DebtDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/DebtDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_1222a05d-4f07-475e-b0eb-a310224207e5" 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_DebtInstrumentCarryingAmount_82cc1454-460c-456a-a81a-369bb5f4572c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_1222a05d-4f07-475e-b0eb-a310224207e5" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_82cc1454-460c-456a-a81a-369bb5f4572c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_df48fd2a-8be7-4c50-a8f7-9e7cba6b72f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_1222a05d-4f07-475e-b0eb-a310224207e5" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_df48fd2a-8be7-4c50-a8f7-9e7cba6b72f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_26f843e1-34ef-43fe-b405-6b36e0616634" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_26f843e1-34ef-43fe-b405-6b36e0616634" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_7465f525-c6aa-4f82-abb9-0561c123ce16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_7465f525-c6aa-4f82-abb9-0561c123ce16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LongTermDebtMaturityRepaymentsOfPrincipalInYearFiveAndThereafter_1b8b9987-57bd-47f3-b4fb-04711a4fd74c" xlink:href="wdc-20240628.xsd#wdc_LongTermDebtMaturityRepaymentsOfPrincipalInYearFiveAndThereafter"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_wdc_LongTermDebtMaturityRepaymentsOfPrincipalInYearFiveAndThereafter_1b8b9987-57bd-47f3-b4fb-04711a4fd74c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_4800f4a0-607c-446d-8132-555bc62e4887" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_4800f4a0-607c-446d-8132-555bc62e4887" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_4331b75e-c216-4030-8566-ace5b5640b31" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_4331b75e-c216-4030-8566-ace5b5640b31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2b7d9879-a73d-4a38-ad3c-0b3bb14905ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1ab29753-d03d-47a1-87b5-6ef1fd5d7b7a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2b7d9879-a73d-4a38-ad3c-0b3bb14905ab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5975a566-114d-4c67-8489-e2f41382e786" 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_DefinedBenefitPlanFairValueOfPlanAssets_c56c8635-37c6-4906-b301-0e0f7b1e073a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5975a566-114d-4c67-8489-e2f41382e786" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_c56c8635-37c6-4906-b301-0e0f7b1e073a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_21346b75-087c-4cbc-94a7-3cf325d08e37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5975a566-114d-4c67-8489-e2f41382e786" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_21346b75-087c-4cbc-94a7-3cf325d08e37" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_55aded5f-3fc5-4090-865b-337897ed9d41" 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_f3436f81-f61f-4f47-9c9e-9e3f7a6f2ecc" 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_55aded5f-3fc5-4090-865b-337897ed9d41" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_f3436f81-f61f-4f47-9c9e-9e3f7a6f2ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_772febc8-116b-4bf9-bf05-e76fbf2955e5" 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_55aded5f-3fc5-4090-865b-337897ed9d41" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_772febc8-116b-4bf9-bf05-e76fbf2955e5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.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_1dac4603-93da-4ae2-89d5-02da93ca6bd8" 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_OtherCommitmentDueInNextTwelveMonths_4dc443e6-1fe5-4ac9-835f-91fce2967042" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_1dac4603-93da-4ae2-89d5-02da93ca6bd8" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_4dc443e6-1fe5-4ac9-835f-91fce2967042" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_128422b5-0d95-4af5-b8ee-35d2603c2fb2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_1dac4603-93da-4ae2-89d5-02da93ca6bd8" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_128422b5-0d95-4af5-b8ee-35d2603c2fb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_779e3a34-3ad5-4425-89c9-868fcd1b03ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_1dac4603-93da-4ae2-89d5-02da93ca6bd8" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_779e3a34-3ad5-4425-89c9-868fcd1b03ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_fa067428-1dcf-4b31-9630-dc5af84b11b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_1dac4603-93da-4ae2-89d5-02da93ca6bd8" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_fa067428-1dcf-4b31-9630-dc5af84b11b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_83f69409-1abe-4c34-9bfa-fa5041ff1388" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFifthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_1dac4603-93da-4ae2-89d5-02da93ca6bd8" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_83f69409-1abe-4c34-9bfa-fa5041ff1388" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_057b3994-ebf7-48fb-aedd-78b7f0fa505e" xlink:href="wdc-20240628.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_c00acf79-3d98-47b0-8f54-e060c847e510" 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_NotesReceivableAndInvestmentsInRelatedParties_057b3994-ebf7-48fb-aedd-78b7f0fa505e" xlink:to="loc_us-gaap_NotesReceivableNet_c00acf79-3d98-47b0-8f54-e060c847e510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_33173219-6acb-4096-82c1-dbad4536fdb0" 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_NotesReceivableAndInvestmentsInRelatedParties_057b3994-ebf7-48fb-aedd-78b7f0fa505e" xlink:to="loc_us-gaap_Investments_33173219-6acb-4096-82c1-dbad4536fdb0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" 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_GuaranteeObligationsMaximumExposureYearTwo_55ef059e-f93f-49be-9ec0-d945b51e7e97" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_55ef059e-f93f-49be-9ec0-d945b51e7e97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6738d339-7697-476f-9fa5-0a855ee8f53d" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6738d339-7697-476f-9fa5-0a855ee8f53d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_0311e89b-e70d-46c5-8e9d-82ee33fae4ab" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_0311e89b-e70d-46c5-8e9d-82ee33fae4ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter_1333fb7e-7412-4880-8401-88d73a9d64d4" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter_1333fb7e-7412-4880-8401-88d73a9d64d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_849ee86a-1439-4e04-94f8-9259539edc6a" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GuaranteeObligationsMaximumExposure_f900354b-ccb8-41aa-bf51-040c1dace9cb" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_849ee86a-1439-4e04-94f8-9259539edc6a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20240628.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_69cd6a34-9afa-4aa2-b3a2-5408f9750471" 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_e8e77c91-620b-4418-8ad4-407c10cc7157" 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_69cd6a34-9afa-4aa2-b3a2-5408f9750471" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_e8e77c91-620b-4418-8ad4-407c10cc7157" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_889ac219-80bb-4eb4-aa61-9869fa03d700" 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_69cd6a34-9afa-4aa2-b3a2-5408f9750471" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_889ac219-80bb-4eb4-aa61-9869fa03d700" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" xlink:type="simple" xlink:href="wdc-20240628.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_0b0f4c91-6ac2-40b4-ab27-8e52f9b03d2c" 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_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_b7dd9143-9611-40a8-a7aa-bbda5cc2ddb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0b0f4c91-6ac2-40b4-ab27-8e52f9b03d2c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_b7dd9143-9611-40a8-a7aa-bbda5cc2ddb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_a7135136-08a7-44bd-9981-81540fba0418" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0b0f4c91-6ac2-40b4-ab27-8e52f9b03d2c" xlink:to="loc_us-gaap_OperatingLeaseLiability_a7135136-08a7-44bd-9981-81540fba0418" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" xlink:type="simple" xlink:href="wdc-20240628.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_50ce368b-800f-45f0-b98f-d963697f5174" 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_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_be1f8c5a-b2bc-416b-b269-42f7f62d4b9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_be1f8c5a-b2bc-416b-b269-42f7f62d4b9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4a3801b1-4222-4d99-b616-cb09a36cbb51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4a3801b1-4222-4d99-b616-cb09a36cbb51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_6da399ad-2e8e-44f6-9968-fe7d3a41e774" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_6da399ad-2e8e-44f6-9968-fe7d3a41e774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_d63a175d-8860-4310-bd6a-8a1a8ce901f7" 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_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_d63a175d-8860-4310-bd6a-8a1a8ce901f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_1474ba7c-1cd8-481d-89e3-53d21d1a4172" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_1474ba7c-1cd8-481d-89e3-53d21d1a4172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_b7128365-fd64-491f-b6bd-6613ac27cfea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_50ce368b-800f-45f0-b98f-d963697f5174" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_b7128365-fd64-491f-b6bd-6613ac27cfea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" 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_PurchaseObligationDueAfterFifthYear_edc3cf1a-622c-4a0f-a175-ec843dd315d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_edc3cf1a-622c-4a0f-a175-ec843dd315d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_2f4ea0c6-1442-498f-8e57-7e4ef6300623" 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_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_2f4ea0c6-1442-498f-8e57-7e4ef6300623" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_0e2bf886-03a7-4d40-87a6-6f1972ce1fbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_0e2bf886-03a7-4d40-87a6-6f1972ce1fbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_4d2ec1e1-fb4e-4fef-bf91-55a053344f80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_4d2ec1e1-fb4e-4fef-bf91-55a053344f80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_bc6ca97f-5d29-4df2-91e3-cefaad8d50e1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_bc6ca97f-5d29-4df2-91e3-cefaad8d50e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_28cabcc4-9960-4a0e-acdf-64d2c38b8284" 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_3004974c-a1b3-4a8a-a7d8-c8ba50b7de6e" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_28cabcc4-9960-4a0e-acdf-64d2c38b8284" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_7d3d4531-b9e7-424a-971a-8fd5ff5cc9c5" 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_8a73cc57-fd88-45fc-a7fb-b4c893bf84c0" 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_7d3d4531-b9e7-424a-971a-8fd5ff5cc9c5" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_8a73cc57-fd88-45fc-a7fb-b4c893bf84c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_f1f43225-5305-4793-89fb-d99887bc755d" 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_7d3d4531-b9e7-424a-971a-8fd5ff5cc9c5" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_f1f43225-5305-4793-89fb-d99887bc755d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_565e1b8a-fe9d-43ea-a709-4ec709a608f1" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_d447695e-426f-455a-ad34-ddc6a5b03303" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_565e1b8a-fe9d-43ea-a709-4ec709a608f1" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_d447695e-426f-455a-ad34-ddc6a5b03303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_aef9d55e-5e69-493d-b356-cc503dc147df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_565e1b8a-fe9d-43ea-a709-4ec709a608f1" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_aef9d55e-5e69-493d-b356-cc503dc147df" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_481a787d-b2d3-4829-bf34-d743406b48d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_79ab687f-5f2d-4f13-88ec-97d06a33de99" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_481a787d-b2d3-4829-bf34-d743406b48d3" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_79ab687f-5f2d-4f13-88ec-97d06a33de99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1ab766b9-0c08-43db-ae55-60a1507d1ee7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_481a787d-b2d3-4829-bf34-d743406b48d3" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1ab766b9-0c08-43db-ae55-60a1507d1ee7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_eb742052-e4c3-44ef-b21a-7c3ec10c77d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_c3a44146-d0cc-4c33-a583-a52b934dfc88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_eb742052-e4c3-44ef-b21a-7c3ec10c77d4" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_c3a44146-d0cc-4c33-a583-a52b934dfc88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_5c1d8790-455b-453a-b48f-cf7148fd9b9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_eb742052-e4c3-44ef-b21a-7c3ec10c77d4" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_5c1d8790-455b-453a-b48f-cf7148fd9b9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_30cadae0-d56c-4fe6-acbd-a2a0c2363605" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_eb742052-e4c3-44ef-b21a-7c3ec10c77d4" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_30cadae0-d56c-4fe6-acbd-a2a0c2363605" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2ae2a41e-f779-4cb2-b99c-161bbb46d796" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_d86c4e4b-a87a-48bc-881d-3965990c8263" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2ae2a41e-f779-4cb2-b99c-161bbb46d796" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_d86c4e4b-a87a-48bc-881d-3965990c8263" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e1151b62-c149-4687-a606-f397d194002c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2ae2a41e-f779-4cb2-b99c-161bbb46d796" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e1151b62-c149-4687-a606-f397d194002c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_e4482e5f-fef2-4ffc-9ae3-e695f844e74b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2ae2a41e-f779-4cb2-b99c-161bbb46d796" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_e4482e5f-fef2-4ffc-9ae3-e695f844e74b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_f7992a67-905e-4a94-bb2a-9cd580bced4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_be3b2e0e-63f2-4174-beab-9b05ff54d17d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f7992a67-905e-4a94-bb2a-9cd580bced4a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_be3b2e0e-63f2-4174-beab-9b05ff54d17d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_c19384dd-2cfe-422a-a658-d0327e97a580" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f7992a67-905e-4a94-bb2a-9cd580bced4a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_c19384dd-2cfe-422a-a658-d0327e97a580" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_413bcee7-0475-4cee-935b-34ba72c80e31" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f7992a67-905e-4a94-bb2a-9cd580bced4a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_413bcee7-0475-4cee-935b-34ba72c80e31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c5229947-4113-4725-b52f-6d6ff26d3452" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_21d26170-c398-4e07-94a1-8cc56ad8578c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c5229947-4113-4725-b52f-6d6ff26d3452" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_21d26170-c398-4e07-94a1-8cc56ad8578c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_6a015df1-df8b-4e8c-8c00-37782b53da49" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c5229947-4113-4725-b52f-6d6ff26d3452" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_6a015df1-df8b-4e8c-8c00-37782b53da49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_152fbea1-296d-4337-94ab-50e3419a47c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c5229947-4113-4725-b52f-6d6ff26d3452" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_152fbea1-296d-4337-94ab-50e3419a47c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_2c44bb7a-df5f-4c5e-806f-d85dfee20086" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_2c44bb7a-df5f-4c5e-806f-d85dfee20086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_b354116b-7476-4bea-b043-053eced41e8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_b354116b-7476-4bea-b043-053eced41e8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_5bf0b6b9-826f-450e-a6e4-78f41c64f14b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_5bf0b6b9-826f-450e-a6e4-78f41c64f14b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_7edc4b2e-93da-4035-ae74-b5159d0fc314" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_7edc4b2e-93da-4035-ae74-b5159d0fc314" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_3b9f4765-ca7a-4ca5-bbf9-b0e57098026d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_3b9f4765-ca7a-4ca5-bbf9-b0e57098026d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_7cc3f9e5-57e1-4047-9092-f1b02a7bd98e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_7cc3f9e5-57e1-4047-9092-f1b02a7bd98e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_0d555ac9-335d-4d18-9e54-d153ba3edd7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d3570103-ad20-4bae-92aa-41515929224f" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_0d555ac9-335d-4d18-9e54-d153ba3edd7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_9b99e704-4d0f-419e-a33b-9986de0e765b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_9b99e704-4d0f-419e-a33b-9986de0e765b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_fdc43d49-9772-4233-9040-1c642ed023c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_fdc43d49-9772-4233-9040-1c642ed023c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_f71f29e2-1926-4517-a461-8a5ee82d626c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_f71f29e2-1926-4517-a461-8a5ee82d626c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_81c189ea-2f0f-47c5-be82-1df847aa37a1" xlink:href="wdc-20240628.xsd#wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent_81c189ea-2f0f-47c5-be82-1df847aa37a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_50698cf8-b62d-417c-ba67-e27e62c282dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_50698cf8-b62d-417c-ba67-e27e62c282dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationIRSTentativeSettlement_e31754e3-86f0-4ab8-846a-c71e264979fc" xlink:href="wdc-20240628.xsd#wdc_EffectiveIncomeTaxRateReconciliationIRSTentativeSettlement"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationIRSTentativeSettlement_e31754e3-86f0-4ab8-846a-c71e264979fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_9fd12a81-0a9f-45a5-8aeb-ca956b8fe700" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_9fd12a81-0a9f-45a5-8aeb-ca956b8fe700" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_bf86ef76-97b8-4332-b740-27f5cf0a86e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_bf86ef76-97b8-4332-b740-27f5cf0a86e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_19a78aa8-4f14-4b1b-855b-e65d39dd3e6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_19a78aa8-4f14-4b1b-855b-e65d39dd3e6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_b8752131-db32-4c83-a288-b2eb18f437e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_b8752131-db32-4c83-a288-b2eb18f437e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_2bc1a647-d965-4858-ba7f-86bee93a0f90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_2bc1a647-d965-4858-ba7f-86bee93a0f90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent_a6957574-755a-485b-843f-cc45ddb709f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent_a6957574-755a-485b-843f-cc45ddb709f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_2520cda9-21ad-41ea-9fa0-8122b79d9636" xlink:href="wdc-20240628.xsd#wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent_2520cda9-21ad-41ea-9fa0-8122b79d9636" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseDomesticReturnToProvisionPercent_4d3da47f-52f1-42c1-99b4-b4ad57c542f8" xlink:href="wdc-20240628.xsd#wdc_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseDomesticReturnToProvisionPercent"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseDomesticReturnToProvisionPercent_4d3da47f-52f1-42c1-99b4-b4ad57c542f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxRateReconciliationReservesAndAccrualsPercent_9506e7be-eaad-4d61-a2f9-d2ab31a63c55" xlink:href="wdc-20240628.xsd#wdc_EffectiveIncomeTaxRateReconciliationReservesAndAccrualsPercent"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_287198cb-b3ca-487c-8c70-c4d14acc6d8a" xlink:to="loc_wdc_EffectiveIncomeTaxRateReconciliationReservesAndAccrualsPercent_9506e7be-eaad-4d61-a2f9-d2ab31a63c55" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#NetIncomeLossPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6121a662-d32a-4a35-89f8-9cdcecce8cf6" 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_WeightedAverageNumberOfSharesOutstandingBasic_30209084-1205-4bbb-98ab-205db47ed687" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6121a662-d32a-4a35-89f8-9cdcecce8cf6" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_30209084-1205-4bbb-98ab-205db47ed687" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_809a6730-cbdc-4ded-9795-df0430c909cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6121a662-d32a-4a35-89f8-9cdcecce8cf6" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_809a6730-cbdc-4ded-9795-df0430c909cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" 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_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_e1d1bbd7-2b22-42d1-aebf-3acc293cf7da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" xlink:to="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_e1d1bbd7-2b22-42d1-aebf-3acc293cf7da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_34724ff5-3e40-48a8-976d-2255da35c8e6" 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_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" xlink:to="loc_us-gaap_LossOnContractTermination_34724ff5-3e40-48a8-976d-2255da35c8e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_0ebcde7f-95d4-4805-bfe9-e020ed54bae1" 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_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" xlink:to="loc_us-gaap_AssetImpairmentCharges_0ebcde7f-95d4-4805-bfe9-e020ed54bae1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_f31e52bb-55a5-4c2c-8b12-ccebcb7bdde1" xlink:href="wdc-20240628.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_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_f31e52bb-55a5-4c2c-8b12-ccebcb7bdde1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_4d7691b6-3576-4ce7-94fc-5d0a27b2de62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_6f5458d6-fda3-4c72-9817-7de53f3ed1d8" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_4d7691b6-3576-4ce7-94fc-5d0a27b2de62" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
