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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019faead-9ae2-793e-ba42-f63624080d44,g:148238a6-b214-4a2f-b9fe-a4924e397f14-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofEarningsUnaudited" xlink:type="simple" xlink:href="hpq-20260731.xsd#CondensedConsolidatedStatementsofEarningsUnaudited"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofEarningsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019faead-9cfd-73f6-90d0-f6132f7a09cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfd-7dd5-b6bc-b572fc09f107" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019faead-9cfd-73f6-90d0-f6132f7a09cd" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfd-7dd5-b6bc-b572fc09f107" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019faead-9cfd-7e69-94e3-4ddba41049be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019faead-9cfd-73f6-90d0-f6132f7a09cd" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019faead-9cfd-7e69-94e3-4ddba41049be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019faead-9cfd-7fff-b1e8-e6699d040088" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019faead-9cfd-7fff-b1e8-e6699d040088" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019faead-9cfd-7475-a17e-a261689d5ab3" xlink:href="hpq-20260731.xsd#hpq_RestructuringandOtherCharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:to="loc_hpq_RestructuringandOtherCharges_019faead-9cfd-7475-a17e-a261689d5ab3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019faead-9cfd-78ec-a0ad-f9b572aad4ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019faead-9cfd-78ec-a0ad-f9b572aad4ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019faead-9cfd-75d9-aa6c-ba6a9bbf9163" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019faead-9cfd-75d9-aa6c-ba6a9bbf9163" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019faead-9cfd-76ba-89e1-9c74fc621bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74e4-8089-7e7d513b3dad" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019faead-9cfd-76ba-89e1-9c74fc621bdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfd-7ea7-80f4-8f55575dcacf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019faead-9cfd-7470-8eb2-6c15e0162679" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfd-7ea7-80f4-8f55575dcacf" xlink:to="loc_us-gaap_OperatingIncomeLoss_019faead-9cfd-7470-8eb2-6c15e0162679" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfd-7326-8c8d-9e77c223361b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfd-7ea7-80f4-8f55575dcacf" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfd-7326-8c8d-9e77c223361b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019faead-9cfd-70cc-8c09-9025587dce8c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74b2-adb7-92fe8cc5d3af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019faead-9cfd-70cc-8c09-9025587dce8c" xlink:to="loc_us-gaap_CostsAndExpenses_019faead-9cfd-74b2-adb7-92fe8cc5d3af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019faead-9cfd-7f27-865f-33ee71c660bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019faead-9cfd-70cc-8c09-9025587dce8c" xlink:to="loc_us-gaap_GrossProfit_019faead-9cfd-7f27-865f-33ee71c660bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019faead-9cfd-773e-8631-1ceace41ec5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_019faead-9cfd-7735-8304-54178e2e1aab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_019faead-9cfd-773e-8631-1ceace41ec5b" xlink:to="loc_us-gaap_CostOfRevenue_019faead-9cfd-7735-8304-54178e2e1aab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019faead-9cfd-7e6b-ae99-fbb74d75f70b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_019faead-9cfd-773e-8631-1ceace41ec5b" xlink:to="loc_us-gaap_Revenues_019faead-9cfd-7e6b-ae99-fbb74d75f70b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="hpq-20260731.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfe-7ec0-9460-4717e5bd58c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-7c20-9988-5c29ca6da365" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfe-7ec0-9460-4717e5bd58c4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-7c20-9988-5c29ca6da365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019faead-9cfe-7291-8c77-d5655304ba8c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfe-7ec0-9460-4717e5bd58c4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019faead-9cfe-7291-8c77-d5655304ba8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-7714-a4d2-6b9a3be7b0b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfe-7ec0-9460-4717e5bd58c4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-7714-a4d2-6b9a3be7b0b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019faead-9cfe-7b26-ad56-cf5aee603189" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfe-7ec0-9460-4717e5bd58c4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019faead-9cfe-7b26-ad56-cf5aee603189" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9cfd-7e33-a867-5421f2c2a92e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfd-7b04-be9f-08ac7ac034ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9cfd-7e33-a867-5421f2c2a92e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019faead-9cfd-7b04-be9f-08ac7ac034ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019faead-9cfd-75dc-91a4-f9723e3d4536" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9cfd-7e33-a867-5421f2c2a92e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019faead-9cfd-75dc-91a4-f9723e3d4536" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019faead-9cfd-7b1a-b60f-6c6e2921009e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019faead-9cfe-7564-ac9c-f0ada76c1569" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019faead-9cfd-7b1a-b60f-6c6e2921009e" xlink:to="loc_us-gaap_NetIncomeLoss_019faead-9cfe-7564-ac9c-f0ada76c1569" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9cfe-7118-9106-06a60db98737" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019faead-9cfd-7b1a-b60f-6c6e2921009e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9cfe-7118-9106-06a60db98737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-785c-bed0-65042b2958e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationBeforeTax_019faead-9cfe-7a18-b8b7-d04ee52db01b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-785c-bed0-65042b2958e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationBeforeTax_019faead-9cfe-7a18-b8b7-d04ee52db01b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_019faead-9cfe-7a15-a027-04afd29aeb1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-785c-bed0-65042b2958e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_019faead-9cfe-7a15-a027-04afd29aeb1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_019faead-9cfe-71fa-ba3d-12a3c9d5a37a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019faead-9cfe-785c-bed0-65042b2958e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_019faead-9cfe-71fa-ba3d-12a3c9d5a37a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019faead-9cfe-77db-b48c-cb7d5ab310a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019faead-9cfe-741f-a9c5-34522fe19ee0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019faead-9cfe-77db-b48c-cb7d5ab310a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019faead-9cfe-741f-a9c5-34522fe19ee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019faead-9cfe-7d87-b4bb-c2849bdeb5e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019faead-9cfe-77db-b48c-cb7d5ab310a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019faead-9cfe-7d87-b4bb-c2849bdeb5e3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="hpq-20260731.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019faead-9cfe-769a-8dac-95a4838da63e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-7df4-b3e9-398cce6a5d2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019faead-9cfe-769a-8dac-95a4838da63e" xlink:to="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-7df4-b3e9-398cce6a5d2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019faead-9cfe-730a-b666-d5f8a5dbd70f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019faead-9cfe-769a-8dac-95a4838da63e" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019faead-9cfe-730a-b666-d5f8a5dbd70f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7708-ab0b-2ba6238596de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019faead-9cfe-769a-8dac-95a4838da63e" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7708-ab0b-2ba6238596de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019faead-9cfe-73ee-a7c7-faf9cba3e880" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019faead-9cfe-769a-8dac-95a4838da63e" xlink:to="loc_us-gaap_StockholdersEquity_019faead-9cfe-73ee-a7c7-faf9cba3e880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-76ad-9f34-5775f1d1e9bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_019faead-9cfe-75c6-984a-a568f10a4088" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-76ad-9f34-5775f1d1e9bb" xlink:to="loc_us-gaap_DebtCurrent_019faead-9cfe-75c6-984a-a568f10a4088" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019faead-9cfe-7f86-a832-6accd88d2797" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-76ad-9f34-5775f1d1e9bb" xlink:to="loc_us-gaap_AccountsPayableCurrent_019faead-9cfe-7f86-a832-6accd88d2797" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7e5d-9928-04a7f4fbc7fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019faead-9cfe-76ad-9f34-5775f1d1e9bb" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7e5d-9928-04a7f4fbc7fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019faead-9cfe-7b13-943c-e3375d7dda56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:to="loc_us-gaap_PreferredStockValue_019faead-9cfe-7b13-943c-e3375d7dda56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019faead-9cfe-780c-b708-97216b2b6e39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019faead-9cfe-780c-b708-97216b2b6e39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019faead-9cfe-7aff-8d24-0a1803d09d06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019faead-9cfe-7aff-8d24-0a1803d09d06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019faead-9cfe-7234-aac2-21eb312bf026" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019faead-9cfe-7234-aac2-21eb312bf026" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019faead-9cfe-7e62-882d-cabbe75e6656" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019faead-9cfe-74a1-970c-4b6e9a632b1d" xlink:to="loc_us-gaap_CommonStockValue_019faead-9cfe-7e62-882d-cabbe75e6656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019faead-9cfe-7b24-a481-aec56e703c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019faead-9cfe-763a-acb3-d60afe4fe5a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019faead-9cfe-7b24-a481-aec56e703c9e" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019faead-9cfe-763a-acb3-d60afe4fe5a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019faead-9cfe-7a7a-958f-f31be65f13f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019faead-9cfe-7b24-a481-aec56e703c9e" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019faead-9cfe-7a7a-958f-f31be65f13f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019faead-9cfe-7bb2-b47e-579eaafe6c49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019faead-9cfe-7b24-a481-aec56e703c9e" xlink:to="loc_us-gaap_InventoryNet_019faead-9cfe-7bb2-b47e-579eaafe6c49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af5-a5b7-715817645011" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019faead-9cfe-7b24-a481-aec56e703c9e" xlink:to="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af5-a5b7-715817645011" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019faead-9cfe-7bc2-a2f7-e38dc8e7720b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019faead-9cfe-7ec3-b1da-55b5bb40a1fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019faead-9cfe-7bc2-a2f7-e38dc8e7720b" xlink:to="loc_us-gaap_AssetsCurrent_019faead-9cfe-7ec3-b1da-55b5bb40a1fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019faead-9cfe-7b84-b889-853c668707df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019faead-9cfe-7bc2-a2f7-e38dc8e7720b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019faead-9cfe-7b84-b889-853c668707df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-7ce0-8d52-c014c67fd2d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019faead-9cfe-7bc2-a2f7-e38dc8e7720b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-7ce0-8d52-c014c67fd2d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019faead-9cfe-77b7-805d-f95b03a681fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019faead-9cfe-7bc2-a2f7-e38dc8e7720b" xlink:to="loc_us-gaap_Goodwill_019faead-9cfe-77b7-805d-f95b03a681fe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="hpq-20260731.xsd#CondensedConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_019faead-9cfe-7875-8612-0a2876b05309" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_019faead-9cfe-7875-8612-0a2876b05309" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_019faead-9cfe-77b0-b752-6945f592bb06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireMarketableSecurities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_019faead-9cfe-77b0-b752-6945f592bb06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019faead-9cfe-7019-962b-dc177eae0f2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019faead-9cfe-7019-962b-dc177eae0f2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CollateralPostedReturnedForDerivatives_019faead-9cfe-7a5f-8d80-8e518d811e30" xlink:href="hpq-20260731.xsd#hpq_CollateralPostedReturnedForDerivatives"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_hpq_CollateralPostedReturnedForDerivatives_019faead-9cfe-7a5f-8d80-8e518d811e30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019faead-9cfe-753a-bb2a-09fbf0133172" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019faead-9cfe-753a-bb2a-09fbf0133172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_019faead-9cfe-741f-9fc6-9c35affe7566" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7d74-bda8-828598a867c2" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_019faead-9cfe-741f-9fc6-9c35affe7566" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_019faead-9cfe-7ee9-8466-f694898c1533" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_019faead-9cfe-7ee9-8466-f694898c1533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_019faead-9cfe-721d-b56d-6baa98ef527f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_us-gaap_RepaymentsOfDebt_019faead-9cfe-721d-b56d-6baa98ef527f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NetPaymentsProceedsRelatedToStockBasedAwardActivities_019faead-9cfe-72b2-abb3-eddb58dd4d0f" xlink:href="hpq-20260731.xsd#hpq_NetPaymentsProceedsRelatedToStockBasedAwardActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_hpq_NetPaymentsProceedsRelatedToStockBasedAwardActivities_019faead-9cfe-72b2-abb3-eddb58dd4d0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019faead-9cfe-7216-aec5-28f245ad2107" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019faead-9cfe-7216-aec5-28f245ad2107" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019faead-9cfe-75db-88c0-5203399c8da9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019faead-9cfe-75db-88c0-5203399c8da9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_019faead-9cfe-7787-bbda-e94cc64e6836" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-7df6-8103-e9557b7e2698" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_019faead-9cfe-7787-bbda-e94cc64e6836" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019faead-9cfe-77d0-a93f-9c030f1239b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_NetIncomeLoss_019faead-9cfe-77d0-a93f-9c030f1239b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019faead-9cfe-7d31-b69a-650e62cfaa92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019faead-9cfe-7d31-b69a-650e62cfaa92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019faead-9cfe-7e34-91f6-2921de25a838" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_ShareBasedCompensation_019faead-9cfe-7e34-91f6-2921de25a838" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019faead-9cfe-7971-872a-2437c0975a5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019faead-9cfe-7971-872a-2437c0975a5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019faead-9cfe-78e8-9e38-ed2101615f0d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019faead-9cfe-78e8-9e38-ed2101615f0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019faead-9cfe-715e-8bdb-d31e485b6bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019faead-9cfe-715e-8bdb-d31e485b6bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019faead-9cfe-778b-84cd-3e93bcb7d997" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019faead-9cfe-778b-84cd-3e93bcb7d997" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_019faead-9cfe-78fb-8241-dd738f76292a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_019faead-9cfe-78fb-8241-dd738f76292a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019faead-9cfe-72a7-a6a2-238fc05ed479" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019faead-9cfe-72a7-a6a2-238fc05ed479" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInRestructuringReserve_019faead-9cfe-714c-9909-624953c03a3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInRestructuringReserve"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInRestructuringReserve_019faead-9cfe-714c-9909-624953c03a3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019faead-9cfe-781e-88b9-685d50d5e2bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019faead-9cfe-781e-88b9-685d50d5e2bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_IncreaseDecreaseInNetInvestmentInLeases_019faead-9cfe-77cb-9dc9-13e905c428c3" xlink:href="hpq-20260731.xsd#hpq_IncreaseDecreaseInNetInvestmentInLeases"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_hpq_IncreaseDecreaseInNetInvestmentInLeases_019faead-9cfe-77cb-9dc9-13e905c428c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_IncreaseDecreaseInRestructuringAndOther_019faead-9cfe-7ebd-b5e1-c66ac734a82c" xlink:href="hpq-20260731.xsd#hpq_IncreaseDecreaseInRestructuringAndOther"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7dd8-bfb6-33f9890a4a27" xlink:to="loc_hpq_IncreaseDecreaseInRestructuringAndOther_019faead-9cfe-7ebd-b5e1-c66ac734a82c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019faead-9cfe-7d9c-b92d-c6c9b92f8f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7558-b38a-c91c1afedceb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019faead-9cfe-7d9c-b92d-c6c9b92f8f5c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019faead-9cfe-7558-b38a-c91c1afedceb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7c5b-8135-9885064753ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019faead-9cfe-7d9c-b92d-c6c9b92f8f5c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019faead-9cfe-7c5b-8135-9885064753ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-76c2-99b1-16bab5fa9408" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019faead-9cfe-7d9c-b92d-c6c9b92f8f5c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019faead-9cfe-76c2-99b1-16bab5fa9408" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019faead-9cfe-75b9-8ddb-08f07f1db40d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_OperatingIncomeLoss_019faead-9cfe-75b9-8ddb-08f07f1db40d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019faead-9cfe-7ae7-b91a-50d37c223038" xlink:href="hpq-20260731.xsd#hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019faead-9cfe-7ae7-b91a-50d37c223038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019faead-9cfe-7c8b-8ed3-eabf314c0471" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019faead-9cfe-7c8b-8ed3-eabf314c0471" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019faead-9cfe-76b4-96e8-65bf81ad177a" xlink:href="hpq-20260731.xsd#hpq_RestructuringandOtherCharges"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_hpq_RestructuringandOtherCharges_019faead-9cfe-76b4-96e8-65bf81ad177a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019faead-9cfe-705c-97bf-6bd80907b7c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019faead-9cfe-705c-97bf-6bd80907b7c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019faead-9cfe-7092-b21a-8399b8e7fd0c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019faead-9cfe-7092-b21a-8399b8e7fd0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-79dd-875f-a43c2875a075" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-79dd-875f-a43c2875a075" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalFees_019faead-9cfe-722c-b43c-39696b178bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LegalFees"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019faead-9cfe-7fcb-b406-43dfbce6df7b" xlink:to="loc_us-gaap_LegalFees_019faead-9cfe-722c-b43c-39696b178bf0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofCashCashEquivalentsandRestrictedCashDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019faead-9cfe-796e-b3d0-97b5a570d622" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019faead-9cfe-75e8-81fa-bd8749cb8be6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019faead-9cfe-796e-b3d0-97b5a570d622" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019faead-9cfe-75e8-81fa-bd8749cb8be6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_019faead-9cfe-7dc9-88fc-175c4c9ba376" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019faead-9cfe-796e-b3d0-97b5a570d622" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_019faead-9cfe-7dc9-88fc-175c4c9ba376" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInventoryDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019faead-9cfe-7969-9cee-451b1e980a1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_019faead-9cfe-790b-a5e0-1cab004d8e86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_019faead-9cfe-7969-9cee-451b1e980a1a" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_019faead-9cfe-790b-a5e0-1cab004d8e86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_019faead-9cfe-7a7b-826a-1cf0b8df22f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_019faead-9cfe-7969-9cee-451b1e980a1a" xlink:to="loc_us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_019faead-9cfe-7a7b-826a-1cf0b8df22f3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentAssetsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofOtherCurrentAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af1-820a-95478d006b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValueAddedTaxReceivableCurrent_019faead-9cfe-74c4-9893-d2bb24531bb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ValueAddedTaxReceivableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af1-820a-95478d006b3d" xlink:to="loc_us-gaap_ValueAddedTaxReceivableCurrent_019faead-9cfe-74c4-9893-d2bb24531bb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NontradeReceivablesCurrent_019faead-9cfe-7b86-843d-ab26fc1f6487" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NontradeReceivablesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af1-820a-95478d006b3d" xlink:to="loc_us-gaap_NontradeReceivablesCurrent_019faead-9cfe-7b86-843d-ab26fc1f6487" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019faead-9cfe-76e0-9ea9-2eae9e005602" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_019faead-9cfe-7af1-820a-95478d006b3d" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019faead-9cfe-76e0-9ea9-2eae9e005602" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019faead-9cfe-75d1-84fc-0991fad5851f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019faead-9cfe-7269-8b03-d12d810d63c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019faead-9cfe-75d1-84fc-0991fad5851f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019faead-9cfe-7269-8b03-d12d810d63c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019faead-9cfe-70cd-9363-cb5973de4d56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019faead-9cfe-75d1-84fc-0991fad5851f" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019faead-9cfe-70cd-9363-cb5973de4d56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019faead-9cfe-7050-a803-4696f61c9b90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019faead-9cfe-7050-a803-4696f61c9b90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019faead-9cfe-7df8-83aa-953d89f1105f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019faead-9cfe-7df8-83aa-953d89f1105f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019faead-9cfe-729f-b514-6ec874ca265e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019faead-9cfe-729f-b514-6ec874ca265e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019faead-9cfe-7ce6-a8c7-ccd50df13c01" xlink:href="hpq-20260731.xsd#hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019faead-9cfe-7ce6-a8c7-ccd50df13c01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019faead-9cfe-7c80-821a-510766917926" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019faead-9cfe-7c80-821a-510766917926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsAssetsNoncurrent_019faead-9cfe-74ed-86f2-7ac3fb7e47c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019faead-9cfe-74d9-897f-4b730d99ce30" xlink:to="loc_us-gaap_DepositsAssetsNoncurrent_019faead-9cfe-74ed-86f2-7ac3fb7e47c3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofOtherCurrentLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_TaxesPayableOtherThanIncomeCurrent_019faead-9cfe-7b62-abf6-23e830be3491" xlink:href="hpq-20260731.xsd#hpq_TaxesPayableOtherThanIncomeCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_hpq_TaxesPayableOtherThanIncomeCurrent_019faead-9cfe-7b62-abf6-23e830be3491" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_019faead-9cfe-7b7c-a958-ced8ab2e341a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProductWarrantyAccrualClassifiedCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_019faead-9cfe-7b7c-a958-ced8ab2e341a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019faead-9cfe-77e5-b402-d9f39fc81aa2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019faead-9cfe-77e5-b402-d9f39fc81aa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_019faead-9cfe-770a-a9b2-b716fa9a79c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedMarketingCostsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_019faead-9cfe-770a-a9b2-b716fa9a79c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019faead-9cfe-72a5-9a5b-d4f76d782f14" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019faead-9cfe-72a5-9a5b-d4f76d782f14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019faead-9cfe-7ad7-bca9-42e8da96cdfb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019faead-9cfe-7ad7-bca9-42e8da96cdfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_019faead-9cfe-7647-a7aa-24cad377e477" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_TaxesPayableCurrent_019faead-9cfe-7647-a7aa-24cad377e477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019faead-9cfe-71af-9299-3cfb1596b577" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_019faead-9cfe-7b88-a012-b3003ccbc328" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019faead-9cfe-71af-9299-3cfb1596b577" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofOtherNonCurrentLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent_019faead-9cfe-7030-8f24-f6b1b8f1aa07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent_019faead-9cfe-7030-8f24-f6b1b8f1aa07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_019faead-9cfe-7b13-b88c-00b268a8bf43" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_us-gaap_DeferredTaxLiabilities_019faead-9cfe-7b13-b88c-00b268a8bf43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_TaxesPayableNoncurrent_019faead-9cfe-7e0d-be4c-a770c4c12488" xlink:href="hpq-20260731.xsd#hpq_TaxesPayableNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_hpq_TaxesPayableNoncurrent_019faead-9cfe-7e0d-be4c-a770c4c12488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019faead-9cfe-7fb2-ad6a-c2c70be5c52a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019faead-9cfe-7fb2-ad6a-c2c70be5c52a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019faead-9cfe-769e-b9ce-072fe6542409" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherSundryLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019faead-9cfe-769e-b9ce-072fe6542409" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019faead-9cfe-7024-b595-ec62d81934b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019faead-9cfe-7893-b0f2-8f64939881c7" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019faead-9cfe-7024-b595-ec62d81934b2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInterestandOtherNetDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#SupplementaryFinancialInformationScheduleofInterestandOtherNetDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInterestandOtherNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019faead-9cfe-7847-8acf-d8d329bb925c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:to="loc_us-gaap_InterestExpenseDebt_019faead-9cfe-7847-8acf-d8d329bb925c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_FactoringCosts_019faead-9cfe-7997-b0cb-f1ed619ea952" xlink:href="hpq-20260731.xsd#hpq_FactoringCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:to="loc_hpq_FactoringCosts_019faead-9cfe-7997-b0cb-f1ed619ea952" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossRelatedToLitigationSettlement_019faead-9cfe-77e9-afba-4192d920abb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossRelatedToLitigationSettlement"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:to="loc_us-gaap_GainLossRelatedToLitigationSettlement_019faead-9cfe-77e9-afba-4192d920abb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NonOperatingRetirementRelatedCredits_019faead-9cfe-7d4a-bc31-1367294f0601" xlink:href="hpq-20260731.xsd#hpq_NonOperatingRetirementRelatedCredits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:to="loc_hpq_NonOperatingRetirementRelatedCredits_019faead-9cfe-7d4a-bc31-1367294f0601" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019ff667-05c0-7b77-8479-6dbf306cbd69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019faead-9cfe-765d-a554-7f4949108b32" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019ff667-05c0-7b77-8479-6dbf306cbd69" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019faead-9cfe-79eb-853d-d5d4cad8cc93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019faead-9cfe-7e2f-9a8b-98459dd581a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019faead-9cfe-79eb-853d-d5d4cad8cc93" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_019faead-9cfe-7e2f-9a8b-98459dd581a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019faead-9cfe-7488-b869-e6c4144856dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019faead-9cfe-79eb-853d-d5d4cad8cc93" xlink:to="loc_us-gaap_DerivativeAssets_019faead-9cfe-7488-b869-e6c4144856dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-722a-9c6c-5b3d3aaad6b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019faead-9cfe-79eb-853d-d5d4cad8cc93" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-722a-9c6c-5b3d3aaad6b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019faead-9cfe-70be-bb12-ba43c9d64d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019faead-9cfe-766f-b907-1f2f49927176" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019faead-9cfe-70be-bb12-ba43c9d64d1b" xlink:to="loc_us-gaap_DerivativeLiabilities_019faead-9cfe-766f-b907-1f2f49927176" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-7702-9778-b6f2db66fb09" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-75fd-a259-bab7bece3a01" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-7702-9778-b6f2db66fb09" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-75fd-a259-bab7bece3a01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-79b5-9e7f-2573afffe6ab" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-7702-9778-b6f2db66fb09" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-79b5-9e7f-2573afffe6ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_019faead-9cfe-74a3-a6cd-891d11fc2240" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019faead-9cfe-73c7-93d8-cc01425d1dd8" xlink:href="hpq-20260731.xsd#hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_019faead-9cfe-74a3-a6cd-891d11fc2240" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019faead-9cfe-73c7-93d8-cc01425d1dd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019faead-9cfe-7f9c-b1cf-c200e8884698" xlink:href="hpq-20260731.xsd#hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_019faead-9cfe-74a3-a6cd-891d11fc2240" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019faead-9cfe-7f9c-b1cf-c200e8884698" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019faead-9cfe-7469-b7d4-92d6f9123cde" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_019faead-9cfe-74a3-a6cd-891d11fc2240" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019faead-9cfe-7469-b7d4-92d6f9123cde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019faead-9cfe-7cb5-a258-02ed815662d8" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-71e5-88b8-96364fdc2267" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019faead-9cfe-7cb5-a258-02ed815662d8" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-71e5-88b8-96364fdc2267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019faead-9cfe-7bbc-9ac3-24eba04b47a2" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019faead-9cfe-7cb5-a258-02ed815662d8" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019faead-9cfe-7bbc-9ac3-24eba04b47a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-7afe-9cfc-61764139d577" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-778d-84c3-5f5aad26d681" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-7afe-9cfc-61764139d577" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019faead-9cfe-778d-84c3-5f5aad26d681" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019faead-9cfe-7800-bd5b-63f88d093e9d" xlink:href="hpq-20260731.xsd#hpq_CashAndCashEquivalentsGrossUnrealizedGains"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-7afe-9cfc-61764139d577" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019faead-9cfe-7800-bd5b-63f88d093e9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019faead-9cfe-7ab7-a0d4-9e31692d1a6e" xlink:href="hpq-20260731.xsd#hpq_CashAndCashEquivalentsGrossUnrealizedLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_019faead-9cfe-7afe-9cfc-61764139d577" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019faead-9cfe-7ab7-a0d4-9e31692d1a6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019faead-9cfe-7f5b-9a10-f3c335b43655" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019faead-9cfe-74df-930f-cae2050ca047" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019faead-9cfe-7f5b-9a10-f3c335b43655" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019faead-9cfe-74df-930f-cae2050ca047" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019faead-9cfe-786b-ab3e-948b3ab8e1ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019faead-9cfe-7f5b-9a10-f3c335b43655" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019faead-9cfe-786b-ab3e-948b3ab8e1ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019faead-9cfe-7bb7-b3c9-35da5b9e09e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019faead-9cfe-7f5b-9a10-f3c335b43655" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019faead-9cfe-7bb7-b3c9-35da5b9e09e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-7de4-b334-0500d7011597" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019faead-9cfe-79c3-89da-85dec4d05a79" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-7de4-b334-0500d7011597" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019faead-9cfe-79c3-89da-85dec4d05a79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019faead-9cfe-7ea6-a2c0-1ee5de98cd7b" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-7de4-b334-0500d7011597" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019faead-9cfe-7ea6-a2c0-1ee5de98cd7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019faead-9cfe-70b7-a971-e17284e6e658" xlink:href="hpq-20260731.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019faead-9cfe-7de4-b334-0500d7011597" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019faead-9cfe-70b7-a971-e17284e6e658" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails_1" xlink:type="simple" xlink:href="hpq-20260731.xsd#FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails_1"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-721f-aa3b-a56f04e177b2" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019faead-9cfe-7250-8bad-e815b9075e2f" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-721f-aa3b-a56f04e177b2" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019faead-9cfe-7250-8bad-e815b9075e2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019faead-9cfe-71df-bf9b-3e061eb1e5bc" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-721f-aa3b-a56f04e177b2" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019faead-9cfe-71df-bf9b-3e061eb1e5bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019faead-9cfe-7473-a04d-869f7ac14f0d" xlink:href="hpq-20260731.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019faead-9cfe-721f-aa3b-a56f04e177b2" xlink:to="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019faead-9cfe-7473-a04d-869f7ac14f0d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofContractualMaturitiesofInvestmentsinAvailableforSaleDebtSecuritiesDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#FinancialInstrumentsScheduleofContractualMaturitiesofInvestmentsinAvailableforSaleDebtSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofContractualMaturitiesofInvestmentsinAvailableforSaleDebtSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_019faead-9cfe-72f9-affb-87fef4f81b2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019faead-9cfe-7479-851c-b84620605941" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_019faead-9cfe-72f9-affb-87fef4f81b2a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019faead-9cfe-7479-851c-b84620605941" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019faead-9cfe-7af8-a634-909e21e7980a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_019faead-9cfe-72f9-affb-87fef4f81b2a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019faead-9cfe-7af8-a634-909e21e7980a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_019faead-9cfe-7269-9d5b-231eb2939448" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019faead-9cfe-7453-a4c4-6d54d46034e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_019faead-9cfe-7269-9d5b-231eb2939448" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019faead-9cfe-7453-a4c4-6d54d46034e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019faead-9cfe-70a0-80ce-80025ad431ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_019faead-9cfe-7269-9d5b-231eb2939448" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019faead-9cfe-70a0-80ce-80025ad431ab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofInformationRelatedtothePotentialEffectofEntitysMasterNettingAgreementsandCollateralSecurityAgreementsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#FinancialInstrumentsScheduleofInformationRelatedtothePotentialEffectofEntitysMasterNettingAgreementsandCollateralSecurityAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofInformationRelatedtothePotentialEffectofEntitysMasterNettingAgreementsandCollateralSecurityAgreementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019faead-9dae-7819-9ac3-42211f75a228" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019faead-9dae-71f9-9a89-44677e8e8db7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019faead-9dae-7819-9ac3-42211f75a228" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019faead-9dae-71f9-9a89-44677e8e8db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019faead-9dae-708e-83f8-ddaf0d788ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019faead-9dae-7819-9ac3-42211f75a228" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019faead-9dae-708e-83f8-ddaf0d788ae9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019faead-9dae-7eaf-943a-6df906df8592" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019faead-9dae-72b2-a9f8-cb37e4d3e5fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019faead-9dae-7eaf-943a-6df906df8592" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019faead-9dae-72b2-a9f8-cb37e4d3e5fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019faead-9dae-796f-bf0d-593dafb7bd8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019faead-9dae-7eaf-943a-6df906df8592" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019faead-9dae-796f-bf0d-593dafb7bd8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DerivativeAssetIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7da2-8f4b-eb5403e85358" xlink:href="hpq-20260731.xsd#hpq_DerivativeAssetIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019faead-9dae-7cd7-ad2f-d41d6cd16479" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeAssetIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7da2-8f4b-eb5403e85358" xlink:to="loc_us-gaap_DerivativeAssets_019faead-9dae-7cd7-ad2f-d41d6cd16479" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019faead-9dae-7669-b70a-7e3b12f9cc7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeAssetIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7da2-8f4b-eb5403e85358" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019faead-9dae-7669-b70a-7e3b12f9cc7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019faead-9dae-7de5-90ea-13b541106c20" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeAssetIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7da2-8f4b-eb5403e85358" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019faead-9dae-7de5-90ea-13b541106c20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7308-bf15-7e384eeadba8" xlink:href="hpq-20260731.xsd#hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019faead-9dae-7d8a-87e9-043048277c11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7308-bf15-7e384eeadba8" xlink:to="loc_us-gaap_DerivativeLiabilities_019faead-9dae-7d8a-87e9-043048277c11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019faead-9dae-710d-82de-6724236385be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7308-bf15-7e384eeadba8" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019faead-9dae-710d-82de-6724236385be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019faead-9dae-7c68-893b-8bca9967edf4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019faead-9dae-7308-bf15-7e384eeadba8" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019faead-9dae-7c68-893b-8bca9967edf4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#BorrowingsScheduleofLongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_019faead-9dae-796e-adc6-7b44a9351e8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:to="loc_us-gaap_OtherBorrowings_019faead-9dae-796e-adc6-7b44a9351e8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_019faead-9dae-7609-adf5-30df755e63fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_019faead-9dae-7609-adf5-30df755e63fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019faead-9dae-7e3d-8742-fd89dd862395" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:to="loc_us-gaap_LongTermDebtCurrent_019faead-9dae-7e3d-8742-fd89dd862395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019faead-9dae-7417-8cbb-daf1c3b62ff9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019faead-9dae-7417-8cbb-daf1c3b62ff9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019faead-9dae-7a4d-83c5-c6bbe0472672" xlink:href="hpq-20260731.xsd#hpq_DebtInstrumentChangeInFairValueOfHedgedDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019faead-9dae-72c5-ad7a-80c1d0636a04" xlink:to="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019faead-9dae-7a4d-83c5-c6bbe0472672" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9dae-7276-b002-831e218fca2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019faead-9dae-72cf-8e93-a7b571930630" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9dae-7276-b002-831e218fca2c" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019faead-9dae-72cf-8e93-a7b571930630" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019faead-9dae-79b7-b605-8de0faf47aa2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9dae-7276-b002-831e218fca2c" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019faead-9dae-79b7-b605-8de0faf47aa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019faead-9dae-7abe-a87b-845d18c8bafe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019faead-9dae-7276-b002-831e218fca2c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019faead-9dae-7abe-a87b-845d18c8bafe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#EarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019faead-9dae-7228-a07d-88158f74fbf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019faead-9dae-7bde-b60b-bc9dff98470f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019faead-9dae-7228-a07d-88158f74fbf2" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019faead-9dae-7bde-b60b-bc9dff98470f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019faead-9dae-773e-8900-734caf8d3b83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019faead-9dae-7228-a07d-88158f74fbf2" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019faead-9dae-773e-8900-734caf8d3b83" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CommitmentsDetails" xlink:type="simple" xlink:href="hpq-20260731.xsd#CommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_019faead-9daf-73f4-aebc-efc9e86b40b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_019faead-9daf-73f4-aebc-efc9e86b40b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_019faead-9daf-7261-b7cc-23fed9c84991" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_019faead-9daf-7261-b7cc-23fed9c84991" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_019faead-9daf-7a75-ae90-fdadf7efae0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_019faead-9daf-7a75-ae90-fdadf7efae0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_019faead-9daf-7639-97b9-a0a208c5bfcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_019faead-9daf-7639-97b9-a0a208c5bfcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_019faead-9daf-72be-99f7-f7c2dc7f5d3e" xlink:href="hpq-20260731.xsd#hpq_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_hpq_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_019faead-9daf-72be-99f7-f7c2dc7f5d3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_019faead-9daf-7068-aa18-b5481e43bae6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019faead-9daf-7a7d-9173-e2b13354a75f" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_019faead-9daf-7068-aa18-b5481e43bae6" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
