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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019c9232-4f0a-7e8e-b527-4e75fc6b16ec,g:d5eac6ec-a73e-4865-b294-7bda8359ece7-->
<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-20260430.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7c9e-af4a-7eec534901bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-7425-a80c-24b497e1dca2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7c9e-af4a-7eec534901bc" xlink:to="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-7425-a80c-24b497e1dca2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-790a-aeed-a3954e28596c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7c9e-af4a-7eec534901bc" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-790a-aeed-a3954e28596c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-7819-ae4e-2c027488e728" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019c9232-510a-7165-bf07-21224ccb1e0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7819-ae4e-2c027488e728" xlink:to="loc_us-gaap_CostsAndExpenses_019c9232-510a-7165-bf07-21224ccb1e0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019c9232-510a-7255-956f-9153d866ecad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-7819-ae4e-2c027488e728" xlink:to="loc_us-gaap_GrossProfit_019c9232-510a-7255-956f-9153d866ecad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c9232-510a-7a0a-b0b3-1f52e02a0ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7b13-bd87-1b68b3833171" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c9232-510a-7a0a-b0b3-1f52e02a0ab7" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7b13-bd87-1b68b3833171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019c9232-510a-7f7b-a870-f6797428e481" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c9232-510a-7a0a-b0b3-1f52e02a0ab7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019c9232-510a-7f7b-a870-f6797428e481" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019c9232-510a-72fa-abfe-8151bd471742" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-784e-b870-d6f3799d6175" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-72fa-abfe-8151bd471742" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-784e-b870-d6f3799d6175" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019c9232-510a-77a3-970a-b6aeeed28830" xlink:href="hpq-20260430.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_019c9232-510a-72fa-abfe-8151bd471742" xlink:to="loc_hpq_RestructuringandOtherCharges_019c9232-510a-77a3-970a-b6aeeed28830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019c9232-510a-7dee-88ba-f851d108f8f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-72fa-abfe-8151bd471742" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019c9232-510a-7dee-88ba-f851d108f8f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-7b54-9c13-a432fd537734" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-72fa-abfe-8151bd471742" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-7b54-9c13-a432fd537734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019c9232-510a-7904-b8f2-18f41ad4b320" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-72fa-abfe-8151bd471742" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019c9232-510a-7904-b8f2-18f41ad4b320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019c9232-510a-786f-b712-aea9f1cb5cc1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_019c9232-510a-7aa3-8851-8309e126e2c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-786f-b712-aea9f1cb5cc1" xlink:to="loc_us-gaap_CostOfRevenue_019c9232-510a-7aa3-8851-8309e126e2c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019c9232-510a-7652-8d4f-a2f8d5dbc3f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-786f-b712-aea9f1cb5cc1" xlink:to="loc_us-gaap_Revenues_019c9232-510a-7652-8d4f-a2f8d5dbc3f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="simple" xlink:href="hpq-20260430.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-7608-8c88-b5847a42f7e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019c9232-510a-7d2a-aeca-9cdedafa892b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-7608-8c88-b5847a42f7e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019c9232-510a-7d2a-aeca-9cdedafa892b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-510a-7f4f-9925-951635c66568" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-7608-8c88-b5847a42f7e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-510a-7f4f-9925-951635c66568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019c9232-510a-7971-8867-4ff787d9f68d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c9232-510a-7b70-a6d8-c9c9684a6930" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019c9232-510a-7971-8867-4ff787d9f68d" xlink:to="loc_us-gaap_NetIncomeLoss_019c9232-510a-7b70-a6d8-c9c9684a6930" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-73b9-bfe0-acd6d6e6576b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019c9232-510a-7971-8867-4ff787d9f68d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-73b9-bfe0-acd6d6e6576b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019c9232-510a-7b87-adfa-e1ea8e499057" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationBeforeTax_019c9232-510a-7d88-a8a3-e9d4b9a77cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7b87-adfa-e1ea8e499057" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationBeforeTax_019c9232-510a-7d88-a8a3-e9d4b9a77cd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_019c9232-510a-7d39-bf9d-dfe913b75eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7b87-adfa-e1ea8e499057" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_019c9232-510a-7d39-bf9d-dfe913b75eb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_019c9232-510a-7b68-9acb-a0a30ab8e0fd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7b87-adfa-e1ea8e499057" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_019c9232-510a-7b68-9acb-a0a30ab8e0fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019c9232-510a-7321-86d2-3864bd5311b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_019c9232-510a-7305-b652-46ce00ebcd78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7321-86d2-3864bd5311b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_019c9232-510a-7305-b652-46ce00ebcd78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019c9232-510a-744a-a02f-cc0a8ee46bfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7321-86d2-3864bd5311b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019c9232-510a-744a-a02f-cc0a8ee46bfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019c9232-510a-7bf1-b6c4-692e67c2877f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7321-86d2-3864bd5311b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019c9232-510a-7bf1-b6c4-692e67c2877f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019c9232-510a-7872-80b3-9c5dbac9e2e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7321-86d2-3864bd5311b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019c9232-510a-7872-80b3-9c5dbac9e2e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_019c9232-510a-73d6-b59b-73b357b6098e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019c9232-510a-79a8-af37-d58ed6e844e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-73d6-b59b-73b357b6098e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019c9232-510a-79a8-af37-d58ed6e844e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019c9232-510a-7672-bff2-300cbfbb4ab0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-73d6-b59b-73b357b6098e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019c9232-510a-7672-bff2-300cbfbb4ab0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7692-8095-7ef8d2dde63b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019c9232-510a-743b-80bd-8d576e142687" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c9232-510a-7692-8095-7ef8d2dde63b" xlink:to="loc_us-gaap_LiabilitiesCurrent_019c9232-510a-743b-80bd-8d576e142687" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-76c2-937d-242cd1efd581" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c9232-510a-7692-8095-7ef8d2dde63b" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-76c2-937d-242cd1efd581" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019c9232-510a-7b75-b5cc-ea91e1dd0a9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c9232-510a-7692-8095-7ef8d2dde63b" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019c9232-510a-7b75-b5cc-ea91e1dd0a9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-510a-7966-b65b-45df56115d3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7692-8095-7ef8d2dde63b" xlink:to="loc_us-gaap_StockholdersEquity_019c9232-510a-7966-b65b-45df56115d3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019c9232-510a-7b1b-b560-4e3cad141409" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019c9232-510a-738f-b89c-242413739c58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c9232-510a-7b1b-b560-4e3cad141409" xlink:to="loc_us-gaap_AssetsCurrent_019c9232-510a-738f-b89c-242413739c58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7f9c-af98-c73fd8a74e12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c9232-510a-7b1b-b560-4e3cad141409" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7f9c-af98-c73fd8a74e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019c9232-510a-743c-b001-cbb95538884f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7b1b-b560-4e3cad141409" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019c9232-510a-743c-b001-cbb95538884f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019c9232-510a-7a6f-8249-1aea1eee9b96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7b1b-b560-4e3cad141409" xlink:to="loc_us-gaap_Goodwill_019c9232-510a-7a6f-8249-1aea1eee9b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019c9232-510a-743c-b329-a837a7661257" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c9232-510a-75ad-885d-af7f66cf82d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-743c-b329-a837a7661257" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c9232-510a-75ad-885d-af7f66cf82d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019c9232-510a-7cac-acb5-af8c13731bed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019c9232-510a-743c-b329-a837a7661257" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019c9232-510a-7cac-acb5-af8c13731bed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019c9232-510a-7165-a695-e419fcb0a1c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019c9232-510a-743c-b329-a837a7661257" xlink:to="loc_us-gaap_InventoryNet_019c9232-510a-7165-a695-e419fcb0a1c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_019c9232-510a-70fb-963b-77b2481be17d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-743c-b329-a837a7661257" xlink:to="loc_us-gaap_OtherAssetsCurrent_019c9232-510a-70fb-963b-77b2481be17d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-510a-7290-9079-d10e00e3a18e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019c9232-510a-79aa-831b-6989c70bb1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7290-9079-d10e00e3a18e" xlink:to="loc_us-gaap_PreferredStockValue_019c9232-510a-79aa-831b-6989c70bb1dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019c9232-510a-72b6-9314-f8be71a52367" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7290-9079-d10e00e3a18e" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019c9232-510a-72b6-9314-f8be71a52367" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019c9232-510a-7843-a1ab-1d0dcd280ead" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7290-9079-d10e00e3a18e" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019c9232-510a-7843-a1ab-1d0dcd280ead" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019c9232-510a-7f5b-8e89-64d0a3ef10e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7290-9079-d10e00e3a18e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019c9232-510a-7f5b-8e89-64d0a3ef10e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019c9232-510a-7a57-8add-26bfe6516460" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7290-9079-d10e00e3a18e" xlink:to="loc_us-gaap_CommonStockValue_019c9232-510a-7a57-8add-26bfe6516460" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019c9232-510a-73a4-a401-48eb8e0c0986" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_019c9232-510a-7acb-a157-52c05f3350ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-73a4-a401-48eb8e0c0986" xlink:to="loc_us-gaap_DebtCurrent_019c9232-510a-7acb-a157-52c05f3350ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019c9232-510a-7a60-9ac3-c58170589069" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-73a4-a401-48eb8e0c0986" xlink:to="loc_us-gaap_AccountsPayableCurrent_019c9232-510a-7a60-9ac3-c58170589069" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_019c9232-510a-713b-9138-30492d221101" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-73a4-a401-48eb8e0c0986" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_019c9232-510a-713b-9138-30492d221101" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="hpq-20260430.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_NetCashProvidedByUsedInFinancingActivities_019c9232-510a-7689-9e91-c8983cf23b36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_019c9232-510a-78bd-8bdf-d43c3643305b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_019c9232-510a-78bd-8bdf-d43c3643305b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_019c9232-510a-710a-94e9-0c3f18d8b5bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_us-gaap_RepaymentsOfDebt_019c9232-510a-710a-94e9-0c3f18d8b5bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NetPaymentsProceedsRelatedToStockBasedAwardActivities_019c9232-510a-7071-b3fa-7949b8a77a28" xlink:href="hpq-20260430.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_hpq_NetPaymentsProceedsRelatedToStockBasedAwardActivities_019c9232-510a-7071-b3fa-7949b8a77a28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019d72f4-45ef-7d28-9e1e-9a2e1b88eaa2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019d72f4-45ef-7d28-9e1e-9a2e1b88eaa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019d72f4-45ef-751a-8cf7-d39394db4aba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019d72f4-45ef-751a-8cf7-d39394db4aba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_019dd488-4d2b-7d3b-a500-9d9c84eec9e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7689-9e91-c8983cf23b36" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_019dd488-4d2b-7d3b-a500-9d9c84eec9e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_019c9232-510a-74a8-b864-cb9273996e5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_019c9232-510a-74a8-b864-cb9273996e5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_019c9232-510a-7745-8539-b8f97dc21449" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_019c9232-510a-7745-8539-b8f97dc21449" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019c9232-510a-7db6-a683-34605a7a1faa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019c9232-510a-7db6-a683-34605a7a1faa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CollateralPostedReturnedForDerivatives_019c9232-510a-7467-9e35-7e2f6f7d2257" xlink:href="hpq-20260430.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_hpq_CollateralPostedReturnedForDerivatives_019c9232-510a-7467-9e35-7e2f6f7d2257" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019c9232-510a-7bbc-ae8d-ff78ff660511" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019c9232-510a-7bbc-ae8d-ff78ff660511" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_019e2937-2a56-7568-a81f-d2fb571c0605" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c45-94b3-78d6c3a7a2b0" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_019e2937-2a56-7568-a81f-d2fb571c0605" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c9232-510a-761f-95c2-2b5d70cb7984" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_NetIncomeLoss_019c9232-510a-761f-95c2-2b5d70cb7984" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019c9232-510a-707c-bc32-2a7e3e7ce800" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019c9232-510a-707c-bc32-2a7e3e7ce800" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019c9232-510a-7eb8-9825-58dad3aac404" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_ShareBasedCompensation_019c9232-510a-7eb8-9825-58dad3aac404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019c9232-510a-754a-9b67-94ae8078cd5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019c9232-510a-754a-9b67-94ae8078cd5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019c9232-510a-74af-ac7f-119eb55c1524" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019c9232-510a-74af-ac7f-119eb55c1524" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019c9232-510a-7d96-a149-fbfa712454af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019c9232-510a-7d96-a149-fbfa712454af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019c9232-510a-7d06-a135-254c71d47c0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019c9232-510a-7d06-a135-254c71d47c0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_019c9232-510a-7017-a576-721e0dab6b79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_019c9232-510a-7017-a576-721e0dab6b79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019c9232-510a-7b76-81d7-509a06ecef28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019c9232-510a-7b76-81d7-509a06ecef28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInRestructuringReserve_019c9232-510a-7e22-b629-3f83b5684416" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInRestructuringReserve_019c9232-510a-7e22-b629-3f83b5684416" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019c9232-510a-7702-8ad2-6d2978cd0a5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019c9232-510a-7702-8ad2-6d2978cd0a5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_IncreaseDecreaseInNetInvestmentInLeases_019c9232-510a-7414-b1d6-0c27dd1efe4e" xlink:href="hpq-20260430.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_hpq_IncreaseDecreaseInNetInvestmentInLeases_019c9232-510a-7414-b1d6-0c27dd1efe4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_IncreaseDecreaseInRestructuringAndOther_019c9232-510a-7dce-a184-623aae1d7c61" xlink:href="hpq-20260430.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_019c9232-510a-75f0-aef7-3a5ebbc94058" xlink:to="loc_hpq_IncreaseDecreaseInRestructuringAndOther_019c9232-510a-7dce-a184-623aae1d7c61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c9232-510a-7c63-8433-b10904e16377" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c9232-510a-7891-a4b0-659892ed2c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c9232-510a-7c63-8433-b10904e16377" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c9232-510a-7891-a4b0-659892ed2c8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c9232-510a-7a91-8706-fb2b0b00a084" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c9232-510a-7c63-8433-b10904e16377" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c9232-510a-7a91-8706-fb2b0b00a084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c9232-510a-7088-b06c-31491893ccf9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c9232-510a-7c63-8433-b10904e16377" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c9232-510a-7088-b06c-31491893ccf9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-791a-99a7-c678c4a76669" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-791a-99a7-c678c4a76669" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019c9232-510a-7e16-a7f5-de5f14513559" xlink:href="hpq-20260430.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019c9232-510a-7e16-a7f5-de5f14513559" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c9232-510a-71b0-8f4d-a758f31e73e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c9232-510a-71b0-8f4d-a758f31e73e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019c9232-510a-7bf9-91e6-3a4e7a9cc932" xlink:href="hpq-20260430.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_hpq_RestructuringandOtherCharges_019c9232-510a-7bf9-91e6-3a4e7a9cc932" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-7cec-9979-ee9d1b511066" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-7cec-9979-ee9d1b511066" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-7c51-ad23-30dd1efe576f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-7c51-ad23-30dd1efe576f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-777a-bdb7-854fa159caf7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-777a-bdb7-854fa159caf7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalFees_019c9232-510a-7239-8b52-0af1fa824063" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7d2e-b6dd-b7759129883b" xlink:to="loc_us-gaap_LegalFees_019c9232-510a-7239-8b52-0af1fa824063" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-77ad-a203-18d0f1fbf1f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c9232-510a-7530-9fe9-319e4de2ba38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c9232-510a-77ad-a203-18d0f1fbf1f8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c9232-510a-7530-9fe9-319e4de2ba38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_019c9232-510a-7b88-9d70-1183744f305e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77ad-a203-18d0f1fbf1f8" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_019c9232-510a-7b88-9d70-1183744f305e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInventoryDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7f86-9620-105e9ff4f92f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_019c9232-510a-7237-a6ca-77187d1c9e58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f86-9620-105e9ff4f92f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_019c9232-510a-7237-a6ca-77187d1c9e58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_019c9232-510a-7752-9fd0-fe1b079eb9e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f86-9620-105e9ff4f92f" xlink:to="loc_us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_019c9232-510a-7752-9fd0-fe1b079eb9e2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentAssetsDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-77fe-959d-60ebfd20a658" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValueAddedTaxReceivableCurrent_019c9232-510a-713c-b32b-f6c0d8fc6973" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77fe-959d-60ebfd20a658" xlink:to="loc_us-gaap_ValueAddedTaxReceivableCurrent_019c9232-510a-713c-b32b-f6c0d8fc6973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NontradeReceivablesCurrent_019c9232-510a-7444-82a4-39a28a2ffce7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77fe-959d-60ebfd20a658" xlink:to="loc_us-gaap_NontradeReceivablesCurrent_019c9232-510a-7444-82a4-39a28a2ffce7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019c9232-510a-7397-8ea2-fe3053c171c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77fe-959d-60ebfd20a658" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019c9232-510a-7397-8ea2-fe3053c171c4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7e3e-b7c0-1802d2a02a28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019c9232-510a-78ad-883f-da2526db180d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7e3e-b7c0-1802d2a02a28" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019c9232-510a-78ad-883f-da2526db180d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019c9232-510a-706c-a32d-5fd32108ddb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7e3e-b7c0-1802d2a02a28" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019c9232-510a-706c-a32d-5fd32108ddb1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019c9232-510a-74a0-b06e-f351b360b477" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019c9232-510a-74a0-b06e-f351b360b477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019c9232-510a-756f-9876-4c235e1ada6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019c9232-510a-756f-9876-4c235e1ada6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019c9232-510a-79be-a4c5-a5bf712904f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019c9232-510a-79be-a4c5-a5bf712904f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019c9232-510a-7801-93c4-9a57e66434fc" xlink:href="hpq-20260430.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019c9232-510a-7801-93c4-9a57e66434fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019c9232-510a-798d-8d5b-ed95689fcf57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019c9232-510a-798d-8d5b-ed95689fcf57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsAssetsNoncurrent_019c9232-510a-7e06-a3b2-f0be16e42132" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f4e-bc52-43e27627ca8c" xlink:to="loc_us-gaap_DepositsAssetsNoncurrent_019c9232-510a-7e06-a3b2-f0be16e42132" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_TaxesPayableOtherThanIncomeCurrent_019c9232-510a-7f1f-9d12-ba6b243b7d5e" xlink:href="hpq-20260430.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_hpq_TaxesPayableOtherThanIncomeCurrent_019c9232-510a-7f1f-9d12-ba6b243b7d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_019c9232-510a-7d99-b476-dd9a6b2902c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_019c9232-510a-7d99-b476-dd9a6b2902c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019c9232-510a-733b-80f1-e08cf8e07367" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019c9232-510a-733b-80f1-e08cf8e07367" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_019c9232-510a-71d0-abe0-8fbd2ca6bbf6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_019c9232-510a-71d0-abe0-8fbd2ca6bbf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019c9232-510a-75b9-ba3a-1bae149b3404" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019c9232-510a-75b9-ba3a-1bae149b3404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019c9232-510a-7402-97c3-ec266429a8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019c9232-510a-7402-97c3-ec266429a8e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_019c9232-510a-77c4-9170-5bb73cd93b56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_TaxesPayableCurrent_019c9232-510a-77c4-9170-5bb73cd93b56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019c9232-510a-7caa-a440-b9403b1c4950" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7f6f-83da-dcb88acf1e94" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019c9232-510a-7caa-a440-b9403b1c4950" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent_019c9232-510a-7e53-9c9b-77856eceaeec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent_019c9232-510a-7e53-9c9b-77856eceaeec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_019c9232-510a-70c8-9904-3868d1771071" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_us-gaap_DeferredTaxLiabilities_019c9232-510a-70c8-9904-3868d1771071" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_TaxesPayableNoncurrent_019c9232-510a-7fc9-96bc-97a219361829" xlink:href="hpq-20260430.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_hpq_TaxesPayableNoncurrent_019c9232-510a-7fc9-96bc-97a219361829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019c9232-510a-75b6-b758-683fb80cac5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019c9232-510a-75b6-b758-683fb80cac5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019c9232-510a-7cd1-a1e1-d21b77bfca4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019c9232-510a-7cd1-a1e1-d21b77bfca4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019c9232-510a-7a45-8efd-ff1c1422a273" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7ae4-bbcd-1001f966b051" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019c9232-510a-7a45-8efd-ff1c1422a273" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofInterestandOtherNetDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7893-b993-bab9bb74a07e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019c9232-510a-7378-b449-7f3c7550b8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7893-b993-bab9bb74a07e" xlink:to="loc_us-gaap_InterestExpenseDebt_019c9232-510a-7378-b449-7f3c7550b8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_FactoringCosts_019c9232-510a-7e0e-ab71-601046a16015" xlink:href="hpq-20260430.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_019c9232-510a-7893-b993-bab9bb74a07e" xlink:to="loc_hpq_FactoringCosts_019c9232-510a-7e0e-ab71-601046a16015" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NonOperatingRetirementRelatedCredits_019c9232-510a-7189-b492-201e1b3c8b2b" xlink:href="hpq-20260430.xsd#hpq_NonOperatingRetirementRelatedCredits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-7893-b993-bab9bb74a07e" xlink:to="loc_hpq_NonOperatingRetirementRelatedCredits_019c9232-510a-7189-b492-201e1b3c8b2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019c9232-510a-7b8a-9fd4-c2cda8717b2f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-7893-b993-bab9bb74a07e" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019c9232-510a-7b8a-9fd4-c2cda8717b2f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="hpq-20260430.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_LiabilitiesFairValueDisclosure_019c9232-510a-7d5a-98aa-0cf3529c2dbb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7290-a6f3-b7be1458d164" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019c9232-510a-7d5a-98aa-0cf3529c2dbb" xlink:to="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7290-a6f3-b7be1458d164" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019c9232-510a-761e-9b25-64d0b406503b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019c9232-510a-7108-8e7b-29340c110e1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-761e-9b25-64d0b406503b" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_019c9232-510a-7108-8e7b-29340c110e1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019c9232-510a-731c-af6b-c78b56b24cc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-761e-9b25-64d0b406503b" xlink:to="loc_us-gaap_DerivativeAssets_019c9232-510a-731c-af6b-c78b56b24cc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7a41-b3ee-fd06a0bf86e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-761e-9b25-64d0b406503b" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7a41-b3ee-fd06a0bf86e3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019c9232-510a-7552-995a-083e26b57b3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7996-9c9b-8df05fc26723" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7552-995a-083e26b57b3c" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7996-9c9b-8df05fc26723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019c9232-510a-760f-86ca-b21d6b1e75fc" xlink:href="hpq-20260430.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_019c9232-510a-7552-995a-083e26b57b3c" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019c9232-510a-760f-86ca-b21d6b1e75fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019c9232-510a-7d9c-b6da-b96efec9463c" xlink:href="hpq-20260430.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_019c9232-510a-7552-995a-083e26b57b3c" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019c9232-510a-7d9c-b6da-b96efec9463c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-793e-8826-5b4ac9d2635e" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7f51-b69f-6c31354061f8" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-793e-8826-5b4ac9d2635e" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7f51-b69f-6c31354061f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-73f3-9b37-a93fed870f0a" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-793e-8826-5b4ac9d2635e" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-73f3-9b37-a93fed870f0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-7fb4-b2f4-7ace437aa331" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-793e-8826-5b4ac9d2635e" xlink:to="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-7fb4-b2f4-7ace437aa331" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-77ea-b6bd-d4dda2457d5c" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-798c-9579-8a12e6d244aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77ea-b6bd-d4dda2457d5c" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-798c-9579-8a12e6d244aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-73b9-8615-fea9b236ae33" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-77ea-b6bd-d4dda2457d5c" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-73b9-8615-fea9b236ae33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019c9232-510a-7da0-adb0-51e441037d15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7aa5-9605-37c23d226cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7da0-adb0-51e441037d15" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7aa5-9605-37c23d226cdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7142-85b7-3c2d98c042db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7da0-adb0-51e441037d15" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7142-85b7-3c2d98c042db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019c9232-510a-7f17-a420-b593c84bfa40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7da0-adb0-51e441037d15" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019c9232-510a-7f17-a420-b593c84bfa40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-755a-b217-0c39ec049f6b" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7b77-9f60-415b1c8eb3d6" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-755a-b217-0c39ec049f6b" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7b77-9f60-415b1c8eb3d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7d95-90d2-ab07bea0e9e7" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-755a-b217-0c39ec049f6b" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7d95-90d2-ab07bea0e9e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-76d1-a43a-4ebee3a258b6" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-755a-b217-0c39ec049f6b" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-76d1-a43a-4ebee3a258b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_019c9232-510a-737b-a844-dc5cc60fa7b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7828-b16f-fa28326a08d4" xlink:href="hpq-20260430.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_019c9232-510a-737b-a844-dc5cc60fa7b4" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7828-b16f-fa28326a08d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7755-9c21-380ae7e45f12" xlink:href="hpq-20260430.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_019c9232-510a-737b-a844-dc5cc60fa7b4" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7755-9c21-380ae7e45f12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019c9232-510a-79a8-9d39-9b178ab961c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_019c9232-510a-737b-a844-dc5cc60fa7b4" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019c9232-510a-79a8-9d39-9b178ab961c5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails_1" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7721-a2ab-dffc344bcb0f" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019c9232-510a-738b-a005-0529d02f4df6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7721-a2ab-dffc344bcb0f" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_019c9232-510a-738b-a005-0529d02f4df6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-76df-9172-6c0189639352" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-7721-a2ab-dffc344bcb0f" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-76df-9172-6c0189639352" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofContractualMaturitiesofInvestmentsinAvailableforSaleDebtSecuritiesDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-74b1-9e16-570246c20abd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019c9232-510a-79f0-ba07-334b0d75e6da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-74b1-9e16-570246c20abd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019c9232-510a-79f0-ba07-334b0d75e6da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019c9232-510a-7cd7-bafb-774e16955474" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-74b1-9e16-570246c20abd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019c9232-510a-7cd7-bafb-774e16955474" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_019c9232-510a-7a90-927a-2eda1bf9ccb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019c9232-510a-7f75-ab2d-0d2492c16dfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7a90-927a-2eda1bf9ccb8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019c9232-510a-7f75-ab2d-0d2492c16dfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019c9232-510a-75ed-b8da-f8142ce413cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7a90-927a-2eda1bf9ccb8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019c9232-510a-75ed-b8da-f8142ce413cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofInformationRelatedtothePotentialEffectofEntitysMasterNettingAgreementsandCollateralSecurityAgreementsDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-7c5f-8ffe-e841acd3ddec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019c9232-510a-711d-a6d8-a7649c003487" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c5f-8ffe-e841acd3ddec" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019c9232-510a-711d-a6d8-a7649c003487" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019c9232-510a-73ff-810f-4a2928125305" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-7c5f-8ffe-e841acd3ddec" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019c9232-510a-73ff-810f-4a2928125305" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019c9232-510a-710d-a825-1c7692525d19" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019c9232-510a-7a3d-bb76-1da34f55f8ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-710d-a825-1c7692525d19" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019c9232-510a-7a3d-bb76-1da34f55f8ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019c9232-510a-74aa-bb52-3ae1647865b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-710d-a825-1c7692525d19" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019c9232-510a-74aa-bb52-3ae1647865b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019c9232-510a-77a7-98c4-4c55a0b0f261" xlink:href="hpq-20260430.xsd#hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7709-813a-0f992a6fc244" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_hpq_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNet_019c9232-510a-77a7-98c4-4c55a0b0f261" xlink:to="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7709-813a-0f992a6fc244" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019c9232-510a-759c-8a5a-2ce1fd284d76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77a7-98c4-4c55a0b0f261" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019c9232-510a-759c-8a5a-2ce1fd284d76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019c9232-510a-78d8-ad30-5711d8248dca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-77a7-98c4-4c55a0b0f261" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019c9232-510a-78d8-ad30-5711d8248dca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019c9232-510a-74fc-b547-493c3f613349" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019c9232-510a-78ad-b67c-0c775ba17a87" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019c9232-510a-74fc-b547-493c3f613349" xlink:to="loc_us-gaap_DerivativeAssets_019c9232-510a-78ad-b67c-0c775ba17a87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019c9232-510a-7a20-8267-b51a9485a177" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019c9232-510a-74fc-b547-493c3f613349" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019c9232-510a-7a20-8267-b51a9485a177" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019c9232-510a-740f-a400-cd0a674b40da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019c9232-510a-74fc-b547-493c3f613349" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019c9232-510a-740f-a400-cd0a674b40da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_019c9232-510a-75e3-bbd4-7abade3e23cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:to="loc_us-gaap_OtherBorrowings_019c9232-510a-75e3-bbd4-7abade3e23cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_019c9232-510a-7f65-8d08-5e6c3f964397" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_019c9232-510a-7f65-8d08-5e6c3f964397" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019c9232-510a-73ab-9df3-170ced9d3255" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:to="loc_us-gaap_LongTermDebtCurrent_019c9232-510a-73ab-9df3-170ced9d3255" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-7efb-a211-f720a0e39c84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-7efb-a211-f720a0e39c84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019c9232-510a-78ff-9104-5776c8f5e857" xlink:href="hpq-20260430.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_019c9232-510a-79e4-9287-b5035ea4d214" xlink:to="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019c9232-510a-78ff-9104-5776c8f5e857" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-51e3-76ee-8527-06cfdf056969" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019c9232-51e3-765a-8a1c-d7f37b9f9503" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e3-76ee-8527-06cfdf056969" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019c9232-51e3-765a-8a1c-d7f37b9f9503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019c9232-51e3-737e-abd4-51ec59325b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e3-76ee-8527-06cfdf056969" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019c9232-51e3-737e-abd4-51ec59325b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-51e3-7a8c-a3bd-98941b917b13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-51e3-76ee-8527-06cfdf056969" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-51e3-7a8c-a3bd-98941b917b13" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-51e3-720f-8d62-bb767da6dea8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c9232-51e3-7fb8-8c2e-6d9b2f215f3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e3-720f-8d62-bb767da6dea8" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c9232-51e3-7fb8-8c2e-6d9b2f215f3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019c9232-51e3-7c93-9793-59f6b8d2e0af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e3-720f-8d62-bb767da6dea8" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019c9232-51e3-7c93-9793-59f6b8d2e0af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hp.com/role/CommitmentsDetails" xlink:type="simple" xlink:href="hpq-20260430.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_019c9232-51e4-70a8-aa28-5c17b2040c20" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_019c9232-51e4-70a8-aa28-5c17b2040c20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_019c9232-51e4-7828-81c3-3b6b65439e16" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_019c9232-51e4-7828-81c3-3b6b65439e16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_019c9232-51e4-7bed-8c17-b0d265948fe5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_019c9232-51e4-7bed-8c17-b0d265948fe5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_019c9232-51e4-70e4-9903-ec3d691a19dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_019c9232-51e4-70e4-9903-ec3d691a19dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_019c9232-51e4-787f-b043-737b1a36f50a" xlink:href="hpq-20260430.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_hpq_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_019c9232-51e4-787f-b043-737b1a36f50a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_019c9232-51e4-745d-a53f-8b1efce466cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019c9232-51e4-7d1b-8a3f-a8c7711bd68d" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_019c9232-51e4-745d-a53f-8b1efce466cb" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
