<?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" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofEarningsUnaudited" xlink:type="simple" xlink:href="hpq-20260430.xsd#CondensedConsolidatedStatementsofEarningsUnaudited"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofEarningsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019c9232-5109-7081-9659-893edd009f33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_StatementTable_019c9232-5109-7081-9659-893edd009f33" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019c9232-5109-740a-9feb-8e44f2c7acf1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019c9232-5109-7081-9659-893edd009f33" xlink:to="loc_srt_ProductOrServiceAxis_019c9232-5109-740a-9feb-8e44f2c7acf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019c9232-5109-740a-9feb-8e44f2c7acf1_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019c9232-5109-740a-9feb-8e44f2c7acf1" xlink:to="loc_srt_ProductsAndServicesDomain_019c9232-5109-740a-9feb-8e44f2c7acf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019c9232-5109-73bb-b207-267b20e8e23b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019c9232-5109-740a-9feb-8e44f2c7acf1" xlink:to="loc_srt_ProductsAndServicesDomain_019c9232-5109-73bb-b207-267b20e8e23b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_019c9232-5109-75cd-b13a-b320e1d53609" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019c9232-5109-73bb-b207-267b20e8e23b" xlink:to="loc_us-gaap_ProductMember_019c9232-5109-75cd-b13a-b320e1d53609" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_019c9232-5109-7b78-ac6f-cc1cbae55dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019c9232-5109-73bb-b207-267b20e8e23b" xlink:to="loc_us-gaap_ServiceMember_019c9232-5109-7b78-ac6f-cc1cbae55dc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_019c9232-5109-7f7e-aacf-7e34098ff483" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_RevenuesAbstract_019c9232-5109-7f7e-aacf-7e34098ff483" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019c9232-5109-7398-9d25-2c1973fe0a09" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_019c9232-5109-7f7e-aacf-7e34098ff483" xlink:to="loc_us-gaap_Revenues_019c9232-5109-7398-9d25-2c1973fe0a09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_019c9232-5109-7d96-968a-36062287b196" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_CostOfRevenue_019c9232-5109-7d96-968a-36062287b196" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019c9232-5109-7d32-84e7-93a98c2fab15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_GrossProfit_019c9232-5109-7d32-84e7-93a98c2fab15" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019c9232-5109-782b-afc9-56982486ced5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019c9232-5109-782b-afc9-56982486ced5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019c9232-5109-7d1a-a867-2d5a90ccc91a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019c9232-5109-7d1a-a867-2d5a90ccc91a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019c9232-5109-71f2-91d9-7c8a507550e4" xlink:href="hpq-20260430.xsd#hpq_RestructuringandOtherCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_hpq_RestructuringandOtherCharges_019c9232-5109-71f2-91d9-7c8a507550e4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-5109-7c4a-8188-1551b2ad490f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-5109-7c4a-8188-1551b2ad490f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-5109-79c1-8c8e-66a8d7b7c63d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-5109-79c1-8c8e-66a8d7b7c63d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019c9232-5109-7156-8449-ea4d720cfde9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_019c9232-5109-7a3e-adcd-4aca6cc8a913" xlink:to="loc_us-gaap_CostsAndExpenses_019c9232-5109-7156-8449-ea4d720cfde9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019c9232-5109-743e-a0b5-cf12648279d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_OperatingIncomeLoss_019c9232-5109-743e-a0b5-cf12648279d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019c9232-5109-745e-8157-e56c5b0940f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019c9232-5109-745e-8157-e56c5b0940f5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-5109-7d5a-b1b8-18f1f37db923" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-5109-7d5a-b1b8-18f1f37db923" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019c9232-5109-7c8b-be03-fab35bc249a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019c9232-5109-7c8b-be03-fab35bc249a0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c9232-5109-75c7-bdc6-62ca2418dbfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_NetIncomeLoss_019c9232-5109-75c7-bdc6-62ca2418dbfd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_019c9232-510a-7074-b5c6-afd60eac423a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_EarningsPerShareAbstract_019c9232-510a-7074-b5c6-afd60eac423a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_019c9232-510a-7c31-a7d4-4122024b61ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_019c9232-510a-7074-b5c6-afd60eac423a" xlink:to="loc_us-gaap_EarningsPerShareBasic_019c9232-510a-7c31-a7d4-4122024b61ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_019c9232-510a-7cc8-b780-4979769389aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_019c9232-510a-7074-b5c6-afd60eac423a" xlink:to="loc_us-gaap_EarningsPerShareDiluted_019c9232-510a-7cc8-b780-4979769389aa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_019c9232-510a-7a9e-90bc-e1e5662d3cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-5109-7012-8b11-24e2df8d0196" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_019c9232-510a-7a9e-90bc-e1e5662d3cf1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c9232-510a-7685-bb1a-d785d4f9f664" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_019c9232-510a-7a9e-90bc-e1e5662d3cf1" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c9232-510a-7685-bb1a-d785d4f9f664" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019c9232-510a-7f0c-a7ee-77e0f9d851cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_019c9232-510a-7a9e-90bc-e1e5662d3cf1" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019c9232-510a-7f0c-a7ee-77e0f9d851cd" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/CondensedConsolidatedStatementsofStockholdersDeficitUnaudited" xlink:type="simple" xlink:href="hpq-20260430.xsd#CondensedConsolidatedStatementsofStockholdersDeficitUnaudited"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/CondensedConsolidatedStatementsofStockholdersDeficitUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019c9232-510a-7380-a2fa-2f191079dbf4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019c9232-510a-7112-9e31-e6a30579458c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019c9232-510a-7380-a2fa-2f191079dbf4" xlink:to="loc_us-gaap_StatementTable_019c9232-510a-7112-9e31-e6a30579458c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019c9232-510a-752e-9bf9-d7640c9c4385" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019c9232-510a-7112-9e31-e6a30579458c" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019c9232-510a-752e-9bf9-d7640c9c4385" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019c9232-510a-752e-9bf9-d7640c9c4385_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019c9232-510a-752e-9bf9-d7640c9c4385" xlink:to="loc_us-gaap_EquityComponentDomain_019c9232-510a-752e-9bf9-d7640c9c4385_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019c9232-510a-752e-9bf9-d7640c9c4385" xlink:to="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019c9232-510a-7d1a-954e-166be202f1f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:to="loc_us-gaap_CommonStockMember_019c9232-510a-7d1a-954e-166be202f1f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019c9232-510a-709a-ac5d-8c34b0da9ea1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019c9232-510a-709a-ac5d-8c34b0da9ea1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019c9232-510a-7a62-af1d-863c523c106c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:to="loc_us-gaap_RetainedEarningsMember_019c9232-510a-7a62-af1d-863c523c106c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019c9232-510a-771d-83e0-304040dd7f25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-510a-72b0-91c1-aa8879b5be69" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019c9232-510a-771d-83e0-304040dd7f25" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-510a-7380-a2fa-2f191079dbf4" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019c9232-510a-7ff8-aaeb-34582405d611" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019c9232-510a-7ff8-aaeb-34582405d611" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-510a-79f0-a1a4-f19db86fae57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_StockholdersEquity_019c9232-510a-79f0-a1a4-f19db86fae57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c9232-510a-7351-a9f9-f02b4fd05fa3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_NetIncomeLoss_019c9232-510a-7351-a9f9-f02b4fd05fa3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-77ef-984f-bedc4d223b00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-510a-77ef-984f-bedc4d223b00" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019c9232-510a-7147-b1e8-4962ef3d65ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_019c9232-510a-7147-b1e8-4962ef3d65ca" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_019c9232-510a-7c83-9f12-8c3e443d9f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_019c9232-510a-7c83-9f12-8c3e443d9f5f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_019c9232-510a-72c0-ad73-90bb49e7c986" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_019c9232-510a-72c0-ad73-90bb49e7c986" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019c9232-510a-7201-b3b1-43e79ea483d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019c9232-510a-7201-b3b1-43e79ea483d3" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019c9232-510a-72e5-a002-506e8421ab88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019c9232-510a-72e5-a002-506e8421ab88" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DividendsCommonStockCashNet_019c9232-510a-7690-9238-e13a6e37a0f5" xlink:href="hpq-20260430.xsd#hpq_DividendsCommonStockCashNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_hpq_DividendsCommonStockCashNet_019c9232-510a-7690-9238-e13a6e37a0f5" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019c9232-510a-7427-a8b1-00dc60c0144d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019c9232-510a-7633-abc4-c5264a61005b" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019c9232-510a-7427-a8b1-00dc60c0144d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019c9232-510a-7f9e-b1a0-d6f85913405c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-510a-766f-a65e-6f9826b7f52c" 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_CommonStockDividendsPerShareDeclared_019d769f-1241-76d2-84dd-140c7697f691" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019c9232-510a-7380-a2fa-2f191079dbf4" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_019d769f-1241-76d2-84dd-140c7697f691" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SegmentInformationNarrativeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SegmentInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SegmentInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-7c46-b33d-a2bf0a4cb626" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7e2a-bad3-352b91d1f9bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-7c46-b33d-a2bf0a4cb626" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7e2a-bad3-352b91d1f9bf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-701b-8ce4-00574ae78be3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7e2a-bad3-352b91d1f9bf" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-701b-8ce4-00574ae78be3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c9232-510a-701b-8ce4-00574ae78be3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-701b-8ce4-00574ae78be3" xlink:to="loc_us-gaap_SegmentDomain_019c9232-510a-701b-8ce4-00574ae78be3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c9232-510a-7da3-b72d-a158c7aead6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-701b-8ce4-00574ae78be3" xlink:to="loc_us-gaap_SegmentDomain_019c9232-510a-7da3-b72d-a158c7aead6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PrintingMember_019c9232-510a-7c11-89e1-2c643525c88f" xlink:href="hpq-20260430.xsd#hpq_PrintingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c9232-510a-7da3-b72d-a158c7aead6a" xlink:to="loc_hpq_PrintingMember_019c9232-510a-7c11-89e1-2c643525c88f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CorporateInvestmentsMember_019c9232-510a-78f1-997c-00b087e2f98a" xlink:href="hpq-20260430.xsd#hpq_CorporateInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c9232-510a-7da3-b72d-a158c7aead6a" xlink:to="loc_hpq_CorporateInvestmentsMember_019c9232-510a-78f1-997c-00b087e2f98a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillTransfers_019e45bc-24e8-77ec-854a-9296e73cb694" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillTransfers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-7c46-b33d-a2bf0a4cb626" xlink:to="loc_us-gaap_GoodwillTransfers_019e45bc-24e8-77ec-854a-9296e73cb694" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SegmentInformationScheduleofReconciliationofSegmentOperatingResultstoHPConsolidatedResultsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7dcc-aea8-7754556e0aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7dcc-aea8-7754556e0aa4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsAxis_019c9232-510a-78b8-b164-0748e81ea353" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7dcc-aea8-7754556e0aa4" xlink:to="loc_us-gaap_SubsegmentsAxis_019c9232-510a-78b8-b164-0748e81ea353" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_019c9232-510a-78b8-b164-0748e81ea353_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_019c9232-510a-78b8-b164-0748e81ea353" xlink:to="loc_us-gaap_SubsegmentsDomain_019c9232-510a-78b8-b164-0748e81ea353_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_019c9232-510a-78b8-b164-0748e81ea353" xlink:to="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommercialPSMember_019c9232-510a-7902-9afc-a36f91acc25b" xlink:href="hpq-20260430.xsd#hpq_CommercialPSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:to="loc_hpq_CommercialPSMember_019c9232-510a-7902-9afc-a36f91acc25b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_ConsumerPSMember_019c9232-510a-79ce-8f9c-325ec944cf09" xlink:href="hpq-20260430.xsd#hpq_ConsumerPSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:to="loc_hpq_ConsumerPSMember_019c9232-510a-79ce-8f9c-325ec944cf09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_SuppliesMember_019c9232-510a-7ac0-9582-3f28cc10c921" xlink:href="hpq-20260430.xsd#hpq_SuppliesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:to="loc_hpq_SuppliesMember_019c9232-510a-7ac0-9582-3f28cc10c921" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommercialPrintingMember_019c9232-510a-72db-b9a2-a2228ef2ca5a" xlink:href="hpq-20260430.xsd#hpq_CommercialPrintingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:to="loc_hpq_CommercialPrintingMember_019c9232-510a-72db-b9a2-a2228ef2ca5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_ConsumerPrintingMember_019c9232-510a-7cc2-8a9c-37f61c69a79c" xlink:href="hpq-20260430.xsd#hpq_ConsumerPrintingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_019c9232-510a-7e56-8c31-d752f7fc90f7" xlink:to="loc_hpq_ConsumerPrintingMember_019c9232-510a-7cc2-8a9c-37f61c69a79c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-7f72-9eb0-ea09d2db9d65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7dcc-aea8-7754556e0aa4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-7f72-9eb0-ea09d2db9d65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c9232-510a-7f72-9eb0-ea09d2db9d65_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-7f72-9eb0-ea09d2db9d65" xlink:to="loc_us-gaap_SegmentDomain_019c9232-510a-7f72-9eb0-ea09d2db9d65_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c9232-510a-7488-a15c-4403e83deb90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c9232-510a-7f72-9eb0-ea09d2db9d65" xlink:to="loc_us-gaap_SegmentDomain_019c9232-510a-7488-a15c-4403e83deb90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PersonalSystemsMember_019c9232-510a-7b98-9f60-e80d7b2b64f6" xlink:href="hpq-20260430.xsd#hpq_PersonalSystemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c9232-510a-7488-a15c-4403e83deb90" xlink:to="loc_hpq_PersonalSystemsMember_019c9232-510a-7b98-9f60-e80d7b2b64f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PrintingMember_019c9232-510a-7a19-b080-b767a6fdc325" xlink:href="hpq-20260430.xsd#hpq_PrintingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c9232-510a-7488-a15c-4403e83deb90" xlink:to="loc_hpq_PrintingMember_019c9232-510a-7a19-b080-b767a6fdc325" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CorporateInvestmentsMember_019c9232-510a-7f63-867f-078ebc4c7256" xlink:href="hpq-20260430.xsd#hpq_CorporateInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c9232-510a-7488-a15c-4403e83deb90" xlink:to="loc_hpq_CorporateInvestmentsMember_019c9232-510a-7f63-867f-078ebc4c7256" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_019c9232-510a-7685-86fb-af2704bb634c" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019c9232-510a-7dcc-aea8-7754556e0aa4" xlink:to="loc_srt_ConsolidationItemsAxis_019c9232-510a-7685-86fb-af2704bb634c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019c9232-510a-7685-86fb-af2704bb634c_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_019c9232-510a-7685-86fb-af2704bb634c" xlink:to="loc_srt_ConsolidationItemsDomain_019c9232-510a-7685-86fb-af2704bb634c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019c9232-510a-7ae0-98fb-d916ebb9b728" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_019c9232-510a-7685-86fb-af2704bb634c" xlink:to="loc_srt_ConsolidationItemsDomain_019c9232-510a-7ae0-98fb-d916ebb9b728" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_019c9232-510a-78f8-bf4f-8a1b676ba6d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019c9232-510a-7ae0-98fb-d916ebb9b728" xlink:to="loc_us-gaap_OperatingSegmentsMember_019c9232-510a-78f8-bf4f-8a1b676ba6d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_019c9232-510a-75e6-b211-67718333a19d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019c9232-510a-7ae0-98fb-d916ebb9b728" xlink:to="loc_us-gaap_CorporateNonSegmentMember_019c9232-510a-75e6-b211-67718333a19d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_019c9232-510a-71d5-a172-dd844860c94e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019c9232-510a-7ae0-98fb-d916ebb9b728" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_019c9232-510a-71d5-a172-dd844860c94e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_019c9232-510a-7cc2-bb49-abdfa486d248" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:to="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_019c9232-510a-7cc2-bb49-abdfa486d248" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019c9232-510a-7e8c-b255-68afee5d4a97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_019c9232-510a-7cc2-bb49-abdfa486d248" xlink:to="loc_us-gaap_Revenues_019c9232-510a-7e8c-b255-68afee5d4a97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenueAbstract_019c9232-510a-7c2a-a382-2a1299478d15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:to="loc_us-gaap_CostOfRevenueAbstract_019c9232-510a-7c2a-a382-2a1299478d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_019c9232-510a-791e-94fd-5f622449a448" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostOfRevenueAbstract_019c9232-510a-7c2a-a382-2a1299478d15" xlink:to="loc_us-gaap_CostOfRevenue_019c9232-510a-791e-94fd-5f622449a448" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_019c9232-510a-7531-95cb-b23cf8cfc6e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:to="loc_us-gaap_OperatingExpensesAbstract_019c9232-510a-7531-95cb-b23cf8cfc6e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019c9232-510a-7c07-9d03-275e6ee1d832" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019c9232-510a-7531-95cb-b23cf8cfc6e0" xlink:to="loc_us-gaap_CostsAndExpenses_019c9232-510a-7c07-9d03-275e6ee1d832" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019c9232-510a-71f6-a70c-56d4325ab664" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-72ca-b4ae-42c30e55188e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_OperatingIncomeLoss_019c9232-510a-72ca-b4ae-42c30e55188e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019c9232-510a-77c5-a141-09953f7719df" xlink:href="hpq-20260430.xsd#hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_hpq_SegmentReportingInformationCorporateAndUnallocatedCostsGainsAndEliminations_019c9232-510a-77c5-a141-09953f7719df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c9232-510a-76d5-8ff7-ae8a932f1c79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c9232-510a-76d5-8ff7-ae8a932f1c79" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_RestructuringandOtherCharges_019c9232-510a-7187-8c15-78666e09934e" xlink:href="hpq-20260430.xsd#hpq_RestructuringandOtherCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_hpq_RestructuringandOtherCharges_019c9232-510a-7187-8c15-78666e09934e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-726c-bbb3-f2d6d7820ac4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019c9232-510a-726c-bbb3-f2d6d7820ac4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-78d8-b513-aeb323b782cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019c9232-510a-78d8-b513-aeb323b782cd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalFees_019c9232-510a-71e9-b4ae-d37593300c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LegalFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_LegalFees_019c9232-510a-71e9-b4ae-d37593300c7b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-7829-a775-b02d7cb88e6f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019c9232-510a-7829-a775-b02d7cb88e6f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-72c9-a34f-2cc268acadf4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_019c9232-510a-74e4-b0dc-9ee88d96ac9b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c9232-510a-72c9-a34f-2cc268acadf4" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RestructuringandOtherChargesScheduleofRestructuringandOtherChargesDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#RestructuringandOtherChargesScheduleofRestructuringandOtherChargesDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RestructuringandOtherChargesScheduleofRestructuringandOtherChargesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4de8-584b-7c38-a45a-ef08c5194232" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7548-82af-24b125407516" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4de8-584b-7c38-a45a-ef08c5194232" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7548-82af-24b125407516" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_019e4de8-584b-7c14-807c-6a4456ff76f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7548-82af-24b125407516" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_019e4de8-584b-7c14-807c-6a4456ff76f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-7c14-807c-6a4456ff76f5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4de8-584b-7c14-807c-6a4456ff76f5" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-7c14-807c-6a4456ff76f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4de8-584b-7c14-807c-6a4456ff76f5" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4de8-584b-7738-87e3-c0f94d796db8" xlink:href="hpq-20260430.xsd#hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:to="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4de8-584b-7738-87e3-c0f94d796db8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NonLaborMember_019e4de8-584b-73fc-b260-14f98456b883" xlink:href="hpq-20260430.xsd#hpq_NonLaborMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:to="loc_hpq_NonLaborMember_019e4de8-584b-73fc-b260-14f98456b883" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialTerminationBenefitsMember_019e4de8-584b-7812-b2c4-1001a8cf5c72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SpecialTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:to="loc_us-gaap_SpecialTerminationBenefitsMember_019e4de8-584b-7812-b2c4-1001a8cf5c72" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_OtherChargesMember_019e4de8-584b-7faf-b87b-3ddb7a62441d" xlink:href="hpq-20260430.xsd#hpq_OtherChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4de8-584b-75ef-9463-fa9a173a624d" xlink:to="loc_hpq_OtherChargesMember_019e4de8-584b-7faf-b87b-3ddb7a62441d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_019e4de8-584b-7946-80db-11f9a9027c4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7548-82af-24b125407516" xlink:to="loc_us-gaap_RestructuringPlanAxis_019e4de8-584b-7946-80db-11f9a9027c4c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7946-80db-11f9a9027c4c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4de8-584b-7946-80db-11f9a9027c4c" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7946-80db-11f9a9027c4c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7ed8-ac85-5aa32428fde3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4de8-584b-7946-80db-11f9a9027c4c" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7ed8-ac85-5aa32428fde3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2026PlanMember_019e4de8-584b-76f0-8d6b-432feb9a7612" xlink:href="hpq-20260430.xsd#hpq_Fiscal2026PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7ed8-ac85-5aa32428fde3" xlink:to="loc_hpq_Fiscal2026PlanMember_019e4de8-584b-76f0-8d6b-432feb9a7612" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_OtherPlanMember_019e4de8-584b-7c4b-b51e-54bc85116e83" xlink:href="hpq-20260430.xsd#hpq_OtherPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7ed8-ac85-5aa32428fde3" xlink:to="loc_hpq_OtherPlanMember_019e4de8-584b-7c4b-b51e-54bc85116e83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2023PlanMember_019e6375-4871-7f7a-947f-c6b0f8e27e45" xlink:href="hpq-20260430.xsd#hpq_Fiscal2023PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4de8-584b-7ed8-ac85-5aa32428fde3" xlink:to="loc_hpq_Fiscal2023PlanMember_019e6375-4871-7f7a-947f-c6b0f8e27e45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCosts_019e64f2-730f-7951-bc2a-54e3b3389224" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4de8-584b-7c38-a45a-ef08c5194232" xlink:to="loc_us-gaap_RestructuringCosts_019e64f2-730f-7951-bc2a-54e3b3389224" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RestructuringandOtherChargesScheduleofRestructuringActivitiesbyPlanDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#RestructuringandOtherChargesScheduleofRestructuringActivitiesbyPlanDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RestructuringandOtherChargesScheduleofRestructuringActivitiesbyPlanDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4df6-73ec-78c8-a22f-a8c3201d1e23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e4df6-3a6d-7243-bb23-f6112760631f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4df6-73ec-78c8-a22f-a8c3201d1e23" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e4df6-3a6d-7243-bb23-f6112760631f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_019e4df6-73ec-749d-97ea-bb1e39b2c46e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e4df6-3a6d-7243-bb23-f6112760631f" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_019e4df6-73ec-749d-97ea-bb1e39b2c46e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-749d-97ea-bb1e39b2c46e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4df6-73ec-749d-97ea-bb1e39b2c46e" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-749d-97ea-bb1e39b2c46e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-714e-a67c-97e9a6f5f136" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4df6-73ec-749d-97ea-bb1e39b2c46e" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-714e-a67c-97e9a6f5f136" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4df6-73ec-7d3f-9e64-0787dd021aed" xlink:href="hpq-20260430.xsd#hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-714e-a67c-97e9a6f5f136" xlink:to="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4df6-73ec-7d3f-9e64-0787dd021aed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NonLaborMember_019e4df6-73ec-7e46-9d49-f9655e3a655d" xlink:href="hpq-20260430.xsd#hpq_NonLaborMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4df6-73ec-714e-a67c-97e9a6f5f136" xlink:to="loc_hpq_NonLaborMember_019e4df6-73ec-7e46-9d49-f9655e3a655d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_019e4df6-73ec-7b04-96a9-aa19a34668ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e4df6-3a6d-7243-bb23-f6112760631f" xlink:to="loc_us-gaap_RestructuringPlanAxis_019e4df6-73ec-7b04-96a9-aa19a34668ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-7b04-96a9-aa19a34668ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4df6-73ec-7b04-96a9-aa19a34668ca" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-7b04-96a9-aa19a34668ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-73c4-a8ca-f1a7508498e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4df6-73ec-7b04-96a9-aa19a34668ca" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-73c4-a8ca-f1a7508498e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2026PlanMember_019e4df6-73ec-73f9-8564-253870748369" xlink:href="hpq-20260430.xsd#hpq_Fiscal2026PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-73c4-a8ca-f1a7508498e9" xlink:to="loc_hpq_Fiscal2026PlanMember_019e4df6-73ec-73f9-8564-253870748369" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_OtherPlanMember_019e4df6-73ec-72ba-b785-8c623af83294" xlink:href="hpq-20260430.xsd#hpq_OtherPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4df6-73ec-73c4-a8ca-f1a7508498e9" xlink:to="loc_hpq_OtherPlanMember_019e4df6-73ec-72ba-b785-8c623af83294" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4df6-73ec-78c8-a22f-a8c3201d1e23" xlink:to="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_019e4df6-73ec-75bf-b34a-916f0390af06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:to="loc_us-gaap_RestructuringReserve_019e4df6-73ec-75bf-b34a-916f0390af06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019e4df6-73ec-75b6-9803-bf11f98eed96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:to="loc_us-gaap_RestructuringCharges_019e4df6-73ec-75b6-9803-bf11f98eed96" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_019e4df6-73ec-7982-b0e9-085ba4bbb8dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:to="loc_us-gaap_PaymentsForRestructuring_019e4df6-73ec-7982-b0e9-085ba4bbb8dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveAccrualAdjustment1_019e4df6-73ec-7da3-ab3e-d10db26c4aab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveAccrualAdjustment1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_019e4dfb-bd97-7d74-8c48-fabb7ddc3878" xlink:to="loc_us-gaap_RestructuringReserveAccrualAdjustment1_019e4df6-73ec-7da3-ab3e-d10db26c4aab" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_019e4df8-990a-79b8-ac7f-86006ed2d2f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserve"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveAbstract_019e4df8-2867-7626-8a83-4cd4e439e2de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4df6-73ec-78c8-a22f-a8c3201d1e23" xlink:to="loc_us-gaap_RestructuringReserveAbstract_019e4df8-2867-7626-8a83-4cd4e439e2de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveCurrent_019e4df6-73ec-7a0b-bb8c-71c4b3ecf517" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveAbstract_019e4df8-2867-7626-8a83-4cd4e439e2de" xlink:to="loc_us-gaap_RestructuringReserveCurrent_019e4df6-73ec-7a0b-bb8c-71c4b3ecf517" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveNoncurrent_019e4df6-73ec-74dd-926b-57233c679c47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveAbstract_019e4df8-2867-7626-8a83-4cd4e439e2de" xlink:to="loc_us-gaap_RestructuringReserveNoncurrent_019e4df6-73ec-74dd-926b-57233c679c47" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RestructuringandOtherChargesNarrativeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#RestructuringandOtherChargesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RestructuringandOtherChargesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7a57-be73-85dfac98b9c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7a57-be73-85dfac98b9c8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e4def-c63b-75dc-859c-25293b4b94e3" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7a57-be73-85dfac98b9c8" xlink:to="loc_srt_RangeAxis_019e4def-c63b-75dc-859c-25293b4b94e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e4def-c63b-75dc-859c-25293b4b94e3_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e4def-c63b-75dc-859c-25293b4b94e3" xlink:to="loc_srt_RangeMember_019e4def-c63b-75dc-859c-25293b4b94e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e4def-c63b-7a46-ad66-fc75b81fc323" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e4def-c63b-75dc-859c-25293b4b94e3" xlink:to="loc_srt_RangeMember_019e4def-c63b-7a46-ad66-fc75b81fc323" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e4def-c63b-7fc4-8721-86ef76c8e9cf" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e4def-c63b-7a46-ad66-fc75b81fc323" xlink:to="loc_srt_MinimumMember_019e4def-c63b-7fc4-8721-86ef76c8e9cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e4def-c63b-792c-8f47-0d011270d954" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e4def-c63b-7a46-ad66-fc75b81fc323" xlink:to="loc_srt_MaximumMember_019e4def-c63b-792c-8f47-0d011270d954" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_019e4def-c63b-7f81-8714-4778d9e14193" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7a57-be73-85dfac98b9c8" xlink:to="loc_us-gaap_RestructuringPlanAxis_019e4def-c63b-7f81-8714-4778d9e14193" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-7f81-8714-4778d9e14193_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4def-c63b-7f81-8714-4778d9e14193" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-7f81-8714-4778d9e14193_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-753e-9748-18ea03ba4a8b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e4def-c63b-7f81-8714-4778d9e14193" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-753e-9748-18ea03ba4a8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2026PlanMember_019e4def-c63b-7b88-93bf-846b7dd3210e" xlink:href="hpq-20260430.xsd#hpq_Fiscal2026PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-753e-9748-18ea03ba4a8b" xlink:to="loc_hpq_Fiscal2026PlanMember_019e4def-c63b-7b88-93bf-846b7dd3210e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2023PlanMember_019e4def-c63b-77cc-9067-8aeb4cbdbdd4" xlink:href="hpq-20260430.xsd#hpq_Fiscal2023PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-753e-9748-18ea03ba4a8b" xlink:to="loc_hpq_Fiscal2023PlanMember_019e4def-c63b-77cc-9067-8aeb4cbdbdd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EnhancedEarlyRetirementMember_019e64e7-a07f-7f17-85dd-88bf00796891" xlink:href="hpq-20260430.xsd#hpq_EnhancedEarlyRetirementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e4def-c63b-753e-9748-18ea03ba4a8b" xlink:to="loc_hpq_EnhancedEarlyRetirementMember_019e64e7-a07f-7f17-85dd-88bf00796891" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_019e4def-c63b-7135-8de1-b59323980d3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019c9232-510a-7a57-be73-85dfac98b9c8" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_019e4def-c63b-7135-8de1-b59323980d3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7135-8de1-b59323980d3c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4def-c63b-7135-8de1-b59323980d3c" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7135-8de1-b59323980d3c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e4def-c63b-7135-8de1-b59323980d3c" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LaborAndNonLaborActionsMember_019e4def-c63b-7118-bae3-3871200becf7" xlink:href="hpq-20260430.xsd#hpq_LaborAndNonLaborActionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_hpq_LaborAndNonLaborActionsMember_019e4def-c63b-7118-bae3-3871200becf7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LaborCostsMember_019e4def-c63b-7587-9122-26218c9809c8" xlink:href="hpq-20260430.xsd#hpq_LaborCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_hpq_LaborCostsMember_019e4def-c63b-7587-9122-26218c9809c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_SeveranceCostsMember_019e5e6c-6eec-79f3-ba16-5a81eb954d7c" xlink:href="hpq-20260430.xsd#hpq_SeveranceCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_hpq_SeveranceCostsMember_019e5e6c-6eec-79f3-ba16-5a81eb954d7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_InfrastructureCostsMember_019e5e6c-6eec-7bf5-86be-5a8bc8a62ff0" xlink:href="hpq-20260430.xsd#hpq_InfrastructureCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_hpq_InfrastructureCostsMember_019e5e6c-6eec-7bf5-86be-5a8bc8a62ff0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4def-c63b-72ae-a032-b4225911486f" xlink:href="hpq-20260430.xsd#hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_hpq_EmployeeSeveranceAndEnhancedEarlyRetirementProgramMember_019e4def-c63b-72ae-a032-b4225911486f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialTerminationBenefitsMember_019e4def-f369-7564-acff-344a0fd856fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SpecialTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e4def-c63b-7199-bada-6acdf1d5e7ef" xlink:to="loc_us-gaap_SpecialTerminationBenefitsMember_019e4def-f369-7564-acff-344a0fd856fe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_019e4def-c63b-7833-accf-a75eec11a38b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_019e4def-c63b-7833-accf-a75eec11a38b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_019e4def-c63b-7af3-8afe-910a7137b7cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_019e4def-c63b-7af3-8afe-910a7137b7cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_019e5e6c-6eec-7043-adec-2a1d39ec339c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_019e5e6c-6eec-7043-adec-2a1d39ec339c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EligibleAgeWithTenYearsOfServiceForEnhancedEarlyRetirementProgram_019e4def-f369-7a2a-9d65-a6e59c916c6d" xlink:href="hpq-20260430.xsd#hpq_EligibleAgeWithTenYearsOfServiceForEnhancedEarlyRetirementProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_hpq_EligibleAgeWithTenYearsOfServiceForEnhancedEarlyRetirementProgram_019e4def-f369-7a2a-9d65-a6e59c916c6d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019e4def-f369-7555-9ead-a625366036c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_RestructuringCharges_019e4def-f369-7555-9ead-a625366036c5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_HealthCareCoverageExtensionEnhancedEarlyRetirementProgramPeriod_019e4def-f369-7796-abc9-f712e978c1e4" xlink:href="hpq-20260430.xsd#hpq_HealthCareCoverageExtensionEnhancedEarlyRetirementProgramPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_hpq_HealthCareCoverageExtensionEnhancedEarlyRetirementProgramPeriod_019e4def-f369-7796-abc9-f712e978c1e4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringCosts_019e4def-f369-7285-a7d4-5f9c61a49f00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherRestructuringCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e4def-c63b-7c75-9d5c-9a776d98b5c9" xlink:to="loc_us-gaap_OtherRestructuringCosts_019e4def-f369-7285-a7d4-5f9c61a49f00" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019c9232-510a-7c28-9df5-4aa7a42841cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019c9232-510a-7e64-a62c-f061cf508535" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019c9232-510a-7c28-9df5-4aa7a42841cc" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019c9232-510a-7e64-a62c-f061cf508535" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019c9232-510a-7334-acce-2b7876146138" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019c9232-510a-7e64-a62c-f061cf508535" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019c9232-510a-7334-acce-2b7876146138" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7334-acce-2b7876146138_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019c9232-510a-7334-acce-2b7876146138" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7334-acce-2b7876146138_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7817-8653-be2affd2e99f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019c9232-510a-7334-acce-2b7876146138" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7817-8653-be2affd2e99f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandBuildingsAndImprovementsMember_019c9232-510a-7599-92f8-606a073e4a89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LandBuildingsAndImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7817-8653-be2affd2e99f" xlink:to="loc_us-gaap_LandBuildingsAndImprovementsMember_019c9232-510a-7599-92f8-606a073e4a89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_019c9232-510a-784c-8d22-8537a0e17b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019c9232-510a-7817-8653-be2affd2e99f" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_019c9232-510a-784c-8d22-8537a0e17b6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019c9232-510a-75c6-85e1-23f10dc41bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019c9232-510a-7c28-9df5-4aa7a42841cc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019c9232-510a-75c6-85e1-23f10dc41bf9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019c9232-510a-7a4e-b669-c75183b7a7e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019c9232-510a-7c28-9df5-4aa7a42841cc" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019c9232-510a-7a4e-b669-c75183b7a7e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7eef-a1bb-9aa72bbbde8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019c9232-510a-7c28-9df5-4aa7a42841cc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019c9232-510a-7eef-a1bb-9aa72bbbde8e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofOtherNonCurrentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e4859-fc65-711c-990f-eeaeb0470898" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e4859-fc65-711c-990f-eeaeb0470898" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e485b-5c94-73f9-b2b7-7a23065f478b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e4859-fc65-711c-990f-eeaeb0470898" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e485b-5c94-73f9-b2b7-7a23065f478b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e485b-5c94-73f9-b2b7-7a23065f478b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e485b-5c94-73f9-b2b7-7a23065f478b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e485b-5c94-73f9-b2b7-7a23065f478b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e485b-5c94-784d-88c9-c517fc322331" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e485b-5c94-73f9-b2b7-7a23065f478b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e485b-5c94-784d-88c9-c517fc322331" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CustomerContractsCustomerListsDistributionAgreementsAndTechnologyAndPatentsMember_019e485b-5c94-7938-81a9-b892920d840f" xlink:href="hpq-20260430.xsd#hpq_CustomerContractsCustomerListsDistributionAgreementsAndTechnologyAndPatentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e485b-5c94-784d-88c9-c517fc322331" xlink:to="loc_hpq_CustomerContractsCustomerListsDistributionAgreementsAndTechnologyAndPatentsMember_019e485b-5c94-7938-81a9-b892920d840f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_019e485e-4acf-735b-b04a-a9815050085e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e4859-fc65-711c-990f-eeaeb0470898" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_019e485e-4acf-735b-b04a-a9815050085e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e485e-4acf-735b-b04a-a9815050085e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e485e-4acf-735b-b04a-a9815050085e" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e485e-4acf-735b-b04a-a9815050085e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_019e485e-4acf-7897-9c5d-97584c02fc13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_019e485e-4acf-735b-b04a-a9815050085e" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_019e485e-4acf-7897-9c5d-97584c02fc13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialTerminationBenefitsMember_019e485e-4acf-7668-840f-55f8f7874d9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SpecialTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_019e485e-4acf-7897-9c5d-97584c02fc13" xlink:to="loc_us-gaap_SpecialTerminationBenefitsMember_019e485e-4acf-7668-840f-55f8f7874d9a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_019e485e-4acf-71ae-aaef-ffb3fa4a3899" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e4859-fc65-711c-990f-eeaeb0470898" xlink:to="loc_us-gaap_RestructuringPlanAxis_019e485e-4acf-71ae-aaef-ffb3fa4a3899" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e485e-4acf-71ae-aaef-ffb3fa4a3899_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e485e-4acf-71ae-aaef-ffb3fa4a3899" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e485e-4acf-71ae-aaef-ffb3fa4a3899_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e485e-4acf-7e87-84fb-b86b546925e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e485e-4acf-71ae-aaef-ffb3fa4a3899" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e485e-4acf-7e87-84fb-b86b546925e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_Fiscal2026PlanMember_019e485e-4acf-7511-897b-e5f55529f3f5" xlink:href="hpq-20260430.xsd#hpq_Fiscal2026PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e485e-4acf-7e87-84fb-b86b546925e5" xlink:to="loc_hpq_Fiscal2026PlanMember_019e485e-4acf-7511-897b-e5f55529f3f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019c9232-510a-7c3c-a830-c73accac3fb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019c9232-510a-7c3c-a830-c73accac3fb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019c9232-510a-7643-bad4-84436850ea91" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019c9232-510a-7643-bad4-84436850ea91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019c9232-510a-7b51-a5c1-60bf0d500bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019c9232-510a-7b51-a5c1-60bf0d500bf0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019c9232-510a-74b9-b6f4-f8af5661a4fc" xlink:href="hpq-20260430.xsd#hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_hpq_PrepaidPensionAndPostRetirementBenefitAssetNonCurrent_019c9232-510a-74b9-b6f4-f8af5661a4fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsAssetsNoncurrent_019c9232-510a-72d7-9589-ee5b12b91245" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_DepositsAssetsNoncurrent_019c9232-510a-72d7-9589-ee5b12b91245" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019c9232-510a-725c-8d13-cdd0d5fda73b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019c9232-510a-725c-8d13-cdd0d5fda73b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019c9232-510a-789f-8d24-b57cd0262d7a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019c9232-510a-789f-8d24-b57cd0262d7a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_019e485b-5c94-74cd-9901-cee0366fb48c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_019e485b-5c94-74cd-9901-cee0366fb48c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveAccrualAdjustment1_019e4855-23f1-7ba7-8b0b-363b41aead2f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringReserveAccrualAdjustment1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_RestructuringReserveAccrualAdjustment1_019e4855-23f1-7ba7-8b0b-363b41aead2f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019e64e5-38f5-7525-92be-02ce7fc3bc45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e485b-5c94-7534-b9b3-790bba840d27" xlink:to="loc_us-gaap_RestructuringCharges_019e64e5-38f5-7525-92be-02ce7fc3bc45" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofNetRevenuebyRegionDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SupplementaryFinancialInformationScheduleofNetRevenuebyRegionDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationScheduleofNetRevenuebyRegionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019c9232-510a-7f81-881a-fb9949ee6097" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019c9232-510a-7294-a7f0-1f6c6205319b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019c9232-510a-7f81-881a-fb9949ee6097" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019c9232-510a-7294-a7f0-1f6c6205319b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019c9232-510a-70d1-9b09-4ebacdd44acc" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019c9232-510a-7294-a7f0-1f6c6205319b" xlink:to="loc_srt_StatementGeographicalAxis_019c9232-510a-70d1-9b09-4ebacdd44acc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019c9232-510a-70d1-9b09-4ebacdd44acc_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019c9232-510a-70d1-9b09-4ebacdd44acc" xlink:to="loc_srt_SegmentGeographicalDomain_019c9232-510a-70d1-9b09-4ebacdd44acc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019c9232-510a-7e33-9a1b-40352774e034" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019c9232-510a-70d1-9b09-4ebacdd44acc" xlink:to="loc_srt_SegmentGeographicalDomain_019c9232-510a-7e33-9a1b-40352774e034" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AmericasMember_019c9232-510a-7b21-871f-7b25c8172781" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_AmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019c9232-510a-7e33-9a1b-40352774e034" xlink:to="loc_srt_AmericasMember_019c9232-510a-7b21-871f-7b25c8172781" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EMEAMember_019c9232-510a-7434-9d97-c7d74e438aea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019c9232-510a-7e33-9a1b-40352774e034" xlink:to="loc_us-gaap_EMEAMember_019c9232-510a-7434-9d97-c7d74e438aea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaPacificMember_019c9232-510a-7347-aeb8-f3687928c4dd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_AsiaPacificMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019c9232-510a-7e33-9a1b-40352774e034" xlink:to="loc_srt_AsiaPacificMember_019c9232-510a-7347-aeb8-f3687928c4dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019c9232-510a-7c02-a8fa-ed2ec773a1d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019c9232-510a-7f81-881a-fb9949ee6097" xlink:to="loc_us-gaap_Revenues_019c9232-510a-7c02-a8fa-ed2ec773a1d7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019c9232-510a-7341-a076-0bfafacd6e1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019c9232-510a-7341-a076-0bfafacd6e1f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019c9232-510a-7f18-8e6e-c7aaa51b848f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019c9232-510a-7341-a076-0bfafacd6e1f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019c9232-510a-7f18-8e6e-c7aaa51b848f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019c9232-510a-742a-85c3-95501e7934e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019c9232-510a-742a-85c3-95501e7934e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c9232-510a-788f-a54c-e6c05b49684f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c9232-510a-788f-a54c-e6c05b49684f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails_1" xlink:type="simple" xlink:href="hpq-20260430.xsd#SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails_1"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SupplementaryFinancialInformationValueofRemainingPerformanceObligationsNarrativeDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019c9232-510a-7341-a076-0bfafacd6e1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019c9232-510a-7341-a076-0bfafacd6e1f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019c9232-510a-742a-85c3-95501e7934e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019c9232-510a-742a-85c3-95501e7934e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c9232-510a-788f-a54c-e6c05b49684f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019c9232-510a-76c4-b42c-ef3a3babf4c5" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c9232-510a-788f-a54c-e6c05b49684f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c9232-510a-7ce5-a095-ce2bf707dc9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c9232-510a-7760-89d7-aa94dbdff9b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c9232-510a-7ce5-a095-ce2bf707dc9c" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c9232-510a-7760-89d7-aa94dbdff9b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019c9232-510a-71dc-b081-90e26b26cabc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c9232-510a-7760-89d7-aa94dbdff9b9" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019c9232-510a-71dc-b081-90e26b26cabc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-71dc-b081-90e26b26cabc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019c9232-510a-71dc-b081-90e26b26cabc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-71dc-b081-90e26b26cabc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-7893-be74-fce81f28391f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019c9232-510a-71dc-b081-90e26b26cabc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-7893-be74-fce81f28391f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019c9232-510a-7a06-aade-4d223166a443" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-7893-be74-fce81f28391f" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019c9232-510a-7a06-aade-4d223166a443" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019c9232-510a-7643-9b2e-d354e6231835" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-7893-be74-fce81f28391f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019c9232-510a-7643-9b2e-d354e6231835" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019c9232-510a-7bad-86fe-b358c448c878" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019c9232-510a-7893-be74-fce81f28391f" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019c9232-510a-7bad-86fe-b358c448c878" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7c55-b251-9d826732be74" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c9232-510a-7760-89d7-aa94dbdff9b9" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7c55-b251-9d826732be74" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-7c55-b251-9d826732be74_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7c55-b251-9d826732be74" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-7c55-b251-9d826732be74_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7c55-b251-9d826732be74" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_FinancialInstitutionInstrumentMember_019c9232-510a-7246-8f9b-2c871ae1269e" xlink:href="hpq-20260430.xsd#hpq_FinancialInstitutionInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:to="loc_hpq_FinancialInstitutionInstrumentMember_019c9232-510a-7246-8f9b-2c871ae1269e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_MarketableEquitySecuritiesandMutualFundsMember_019c9232-510a-7e9c-82d2-43aa087b631d" xlink:href="hpq-20260430.xsd#hpq_MarketableEquitySecuritiesandMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:to="loc_hpq_MarketableEquitySecuritiesandMutualFundsMember_019c9232-510a-7e9c-82d2-43aa087b631d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_019c9232-510a-7d70-a532-30e193ad0012" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:to="loc_us-gaap_InterestRateContractMember_019c9232-510a-7d70-a532-30e193ad0012" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-7a8f-827e-ddb10e581649" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:to="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-7a8f-827e-ddb10e581649" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherContractMember_019c9232-510a-7a89-814b-1a400a9c9a88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-707c-9cea-4b882969b98e" xlink:to="loc_us-gaap_OtherContractMember_019c9232-510a-7a89-814b-1a400a9c9a88" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-7e09-8ff2-b1d08943c4fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c9232-510a-7760-89d7-aa94dbdff9b9" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-7e09-8ff2-b1d08943c4fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-7e09-8ff2-b1d08943c4fb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-7e09-8ff2-b1d08943c4fb" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-7e09-8ff2-b1d08943c4fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-73e6-8bb4-77ba6fbaf108" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-7e09-8ff2-b1d08943c4fb" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-73e6-8bb4-77ba6fbaf108" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_019c9232-510a-7c14-bc15-3ae700f19649" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-73e6-8bb4-77ba6fbaf108" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_019c9232-510a-7c14-bc15-3ae700f19649" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c9232-510a-7ce5-a095-ce2bf707dc9c" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7e48-82d6-2dbdb58c8a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-7e48-82d6-2dbdb58c8a0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019c9232-510a-7467-b4b9-cd68c414d01b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_019c9232-510a-7467-b4b9-cd68c414d01b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019c9232-510a-7eaf-8b47-3eb42d258cb6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:to="loc_us-gaap_DerivativeAssets_019c9232-510a-7eaf-8b47-3eb42d258cb6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019c9232-510a-7822-8143-c6252caffdd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_019c9232-510a-71d1-b35e-f01dbd97a2d3" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_019c9232-510a-7822-8143-c6252caffdd3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_019c9232-510a-7345-a827-799b1e34738c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c9232-510a-7ce5-a095-ce2bf707dc9c" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_019c9232-510a-7345-a827-799b1e34738c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7870-9d46-a52122323171" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_019c9232-510a-7345-a827-799b1e34738c" xlink:to="loc_us-gaap_DerivativeLiabilities_019c9232-510a-7870-9d46-a52122323171" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019c9232-510a-7aa1-908f-843ffc857064" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_019c9232-510a-7345-a827-799b1e34738c" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_019c9232-510a-7aa1-908f-843ffc857064" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_019c9232-510a-7c86-8897-2235870d6d32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c9232-510a-7ce5-a095-ce2bf707dc9c" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_019c9232-510a-7c86-8897-2235870d6d32" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofCashEquivalentsandAvailableforSaleInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:href="hpq-20260430.xsd#hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsTable_019c9232-510a-76f4-b7d4-f01d0f212310" xlink:href="hpq-20260430.xsd#hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsTable_019c9232-510a-76f4-b7d4-f01d0f212310" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7e70-a1be-c5df3ed98b98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsTable_019c9232-510a-76f4-b7d4-f01d0f212310" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7e70-a1be-c5df3ed98b98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-7e70-a1be-c5df3ed98b98_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7e70-a1be-c5df3ed98b98" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-7e70-a1be-c5df3ed98b98_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-771c-9a90-55c3b805853c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c9232-510a-7e70-a1be-c5df3ed98b98" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-771c-9a90-55c3b805853c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_FinancialInstitutionInstrumentMember_019c9232-510a-785f-9891-bd029460c52e" xlink:href="hpq-20260430.xsd#hpq_FinancialInstitutionInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-771c-9a90-55c3b805853c" xlink:to="loc_hpq_FinancialInstitutionInstrumentMember_019c9232-510a-785f-9891-bd029460c52e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_MarketableEquitySecuritiesandMutualFundsMember_019c9232-510a-7da8-ac1c-d6c7d150a684" xlink:href="hpq-20260430.xsd#hpq_MarketableEquitySecuritiesandMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c9232-510a-771c-9a90-55c3b805853c" xlink:to="loc_hpq_MarketableEquitySecuritiesandMutualFundsMember_019c9232-510a-7da8-ac1c-d6c7d150a684" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-71a7-b296-a2fd89f6c363" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsTable_019c9232-510a-76f4-b7d4-f01d0f212310" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-71a7-b296-a2fd89f6c363" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-71a7-b296-a2fd89f6c363_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-71a7-b296-a2fd89f6c363" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-71a7-b296-a2fd89f6c363_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-7976-98f3-0973c1863190" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019c9232-510a-71a7-b296-a2fd89f6c363" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-7976-98f3-0973c1863190" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_019c9232-510a-7af0-a245-9d2f6882663e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019c9232-510a-7976-98f3-0973c1863190" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_019c9232-510a-7af0-a245-9d2f6882663e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019c9232-510a-7d06-89bf-c43979df831a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_019c9232-510a-7d06-89bf-c43979df831a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019c9232-510a-7b85-a24f-955a973ceb89" xlink:href="hpq-20260430.xsd#hpq_CashAndCashEquivalentsGrossUnrealizedGains"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedGains_019c9232-510a-7b85-a24f-955a973ceb89" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019c9232-510a-70e9-b897-1c9eb3c51818" xlink:href="hpq-20260430.xsd#hpq_CashAndCashEquivalentsGrossUnrealizedLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:to="loc_hpq_CashAndCashEquivalentsGrossUnrealizedLosses_019c9232-510a-70e9-b897-1c9eb3c51818" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-72b6-9c1c-57ec75aeb310" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsAbstract_019c9232-510a-79be-abad-84aa0f6c382e" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019c9232-510a-72b6-9c1c-57ec75aeb310" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019c9232-510a-73ac-9dcd-28a37250e14d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019c9232-510a-73ac-9dcd-28a37250e14d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-72ef-b04c-cb7a4d94dcad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-72ef-b04c-cb7a4d94dcad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7bdc-a7e2-1ad97390d60b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-7bdc-a7e2-1ad97390d60b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019c9232-510a-715f-8361-fb5d334b5215" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019c9232-510a-715f-8361-fb5d334b5215" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_019c9232-510a-7f30-bf78-be83469b28c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_019c9232-510a-7f30-bf78-be83469b28c8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7e96-b372-22ab1543578b" xlink:href="hpq-20260430.xsd#hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7e96-b372-22ab1543578b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7aad-8997-c8fb8aca51ed" xlink:href="hpq-20260430.xsd#hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7aad-8997-c8fb8aca51ed" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019c9232-510a-7fb0-a074-d6f7c9970446" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019c9232-510a-7fb0-a074-d6f7c9970446" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-7fb5-9c80-689d8944ef99" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAmortizedCost_019c9232-510a-7fb5-9c80-689d8944ef99" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7d94-b416-6f887f7a0f52" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax_019c9232-510a-7d94-b416-6f887f7a0f52" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-70d6-914d-187987742023" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax_019c9232-510a-70d6-914d-187987742023" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-7694-aa76-676c62c6395a" xlink:href="hpq-20260430.xsd#hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019c9232-510a-7833-8356-8d7302884ce1" xlink:to="loc_hpq_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAndEquitySecuritiesFVNI_019c9232-510a-7694-aa76-676c62c6395a" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-747d-9b6f-6e08c12cd904" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesAmortizedCostBasisExcludingAccruedInterest_019c9232-510a-747d-9b6f-6e08c12cd904" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7c95-b4ad-4e2a4f862df2" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainbeforeTax_019c9232-510a-7c95-b4ad-4e2a4f862df2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7ca9-b30e-cf2a81670823" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_hpq_CashEquivalentsandAvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossbeforeTax_019c9232-510a-7ca9-b30e-cf2a81670823" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-7dae-a6ac-0fb8fa622bca" xlink:href="hpq-20260430.xsd#hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_hpq_CashEquivalentsAndAvailableForSaleSecuritiesFairValueExcludingAccruedInterest_019c9232-510a-7dae-a6ac-0fb8fa622bca" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_019c9232-510a-7929-acb5-906164252fde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_ScheduleOfCashEquivalentsAndAvailableForSaleInvestmentsLineItems_019c9232-510a-7b9f-b561-073d420d23f8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_019c9232-510a-7929-acb5-906164252fde" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsNarrativeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7e28-9ab4-a25d89ed85ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7e28-9ab4-a25d89ed85ea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-788b-8a02-4c4d2dc5cc87" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7e28-9ab4-a25d89ed85ea" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-788b-8a02-4c4d2dc5cc87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-788b-8a02-4c4d2dc5cc87_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-788b-8a02-4c4d2dc5cc87" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-788b-8a02-4c4d2dc5cc87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7b5a-b3eb-0686fd12c6da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-788b-8a02-4c4d2dc5cc87" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7b5a-b3eb-0686fd12c6da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_019c9232-510a-7559-9e01-ad6e35a6ab2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7b5a-b3eb-0686fd12c6da" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_019c9232-510a-7559-9e01-ad6e35a6ab2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-717c-88cd-1835a8a5fdec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7e28-9ab4-a25d89ed85ea" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-717c-88cd-1835a8a5fdec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-717c-88cd-1835a8a5fdec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-717c-88cd-1835a8a5fdec" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-717c-88cd-1835a8a5fdec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7c20-b486-f144876b2727" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-717c-88cd-1835a8a5fdec" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7c20-b486-f144876b2727" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-73fa-a5c2-431c8f0927bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7c20-b486-f144876b2727" xlink:to="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-73fa-a5c2-431c8f0927bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EquitySecuritiesCostMethodandOtherEquityInvestments_019c9232-510a-7d8b-a3ed-bc583f4fc932" xlink:href="hpq-20260430.xsd#hpq_EquitySecuritiesCostMethodandOtherEquityInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_hpq_EquitySecuritiesCostMethodandOtherEquityInvestments_019c9232-510a-7d8b-a3ed-bc583f4fc932" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_019c9232-510a-74a5-b197-50defec5f5c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeNetLiabilityPositionAggregateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_019c9232-510a-74a5-b197-50defec5f5c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DerivativePeriodtoCollateralize_019c9232-510a-7380-842d-1fa3c4c64311" xlink:href="hpq-20260430.xsd#hpq_DerivativePeriodtoCollateralize"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_hpq_DerivativePeriodtoCollateralize_019c9232-510a-7380-842d-1fa3c4c64311" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaximumLengthOfTimeForeignCurrencyCashFlowHedge_019c9232-510a-7600-9a1a-94da44d7fd36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MaximumLengthOfTimeForeignCurrencyCashFlowHedge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_us-gaap_MaximumLengthOfTimeForeignCurrencyCashFlowHedge_019c9232-510a-7600-9a1a-94da44d7fd36" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_019c9232-510a-7431-afa4-15090e22bb25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-7a85-8400-d24a06b9a19e" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_019c9232-510a-7431-afa4-15090e22bb25" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofGrossNotionalandFairValueofDerivativeFinancialInstrumentsintheConsolidatedCondensedBalanceSheetsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofGrossNotionalandFairValueofDerivativeFinancialInstrumentsintheConsolidatedCondensedBalanceSheetsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofGrossNotionalandFairValueofDerivativeFinancialInstrumentsintheConsolidatedCondensedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_019c9232-510a-7f9d-b8ba-8a24a0c2aa54" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:to="loc_us-gaap_HedgingDesignationAxis_019c9232-510a-7f9d-b8ba-8a24a0c2aa54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-7f9d-b8ba-8a24a0c2aa54_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_019c9232-510a-7f9d-b8ba-8a24a0c2aa54" xlink:to="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-7f9d-b8ba-8a24a0c2aa54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-75cb-b414-f0547d11e0d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_019c9232-510a-7f9d-b8ba-8a24a0c2aa54" xlink:to="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-75cb-b414-f0547d11e0d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_019c9232-510a-7b10-a5ef-598c98faf708" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-75cb-b414-f0547d11e0d6" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_019c9232-510a-7b10-a5ef-598c98faf708" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_019c9232-510a-7a84-a149-42fc2777ab05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_019c9232-510a-75cb-b414-f0547d11e0d6" xlink:to="loc_us-gaap_NondesignatedMember_019c9232-510a-7a84-a149-42fc2777ab05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7728-8d79-0c27b7a97938" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7728-8d79-0c27b7a97938" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7728-8d79-0c27b7a97938_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7728-8d79-0c27b7a97938" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7728-8d79-0c27b7a97938_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7515-be49-e0fbfeae59e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7728-8d79-0c27b7a97938" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7515-be49-e0fbfeae59e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_019c9232-510a-71ec-9ec7-ad035df7f025" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7515-be49-e0fbfeae59e6" xlink:to="loc_us-gaap_FairValueHedgingMember_019c9232-510a-71ec-9ec7-ad035df7f025" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-74c6-9b6f-da6745615365" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7515-be49-e0fbfeae59e6" xlink:to="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-74c6-9b6f-da6745615365" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-73aa-aed0-2af0acea13bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-73aa-aed0-2af0acea13bf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-73aa-aed0-2af0acea13bf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-73aa-aed0-2af0acea13bf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-73aa-aed0-2af0acea13bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-76bb-94f1-33726ec828df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-73aa-aed0-2af0acea13bf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-76bb-94f1-33726ec828df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_019c9232-510a-74c8-94e7-236c90484b93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-76bb-94f1-33726ec828df" xlink:to="loc_us-gaap_InterestRateContractMember_019c9232-510a-74c8-94e7-236c90484b93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-7998-a969-2ea1ed367dd7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-76bb-94f1-33726ec828df" xlink:to="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-7998-a969-2ea1ed367dd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherContractMember_019c9232-510a-748c-a861-1cf6f501e47c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-76bb-94f1-33726ec828df" xlink:to="loc_us-gaap_OtherContractMember_019c9232-510a-748c-a861-1cf6f501e47c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-7c28-8f03-5e697a311836" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019c9232-510a-7b27-a330-d27501d77fd7" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-7c28-8f03-5e697a311836" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7c28-8f03-5e697a311836_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-7c28-8f03-5e697a311836" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7c28-8f03-5e697a311836_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019c9232-510a-7c28-8f03-5e697a311836" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_019c9232-510a-7be6-89c9-208c15378a6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_019c9232-510a-7be6-89c9-208c15378a6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_019c9232-510a-79c4-ae38-1afd12f5fdfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_019c9232-510a-79c4-ae38-1afd12f5fdfd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_019c9232-510a-7c57-96f0-8783b703bd17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_019c9232-510a-7c57-96f0-8783b703bd17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_019c9232-510a-70fa-b647-65133dc580a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019c9232-510a-7df1-b2e0-6767e6a37e98" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_019c9232-510a-70fa-b647-65133dc580a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_019c9232-510a-74dc-8434-43a7edda6745" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_DerivativeNotionalAmount_019c9232-510a-74dc-8434-43a7edda6745" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_019c9232-510a-72be-a710-b514c16f3021" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_019c9232-510a-72be-a710-b514c16f3021" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019c9232-510a-7a22-b63a-505ba9c4ef40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_DerivativeAssets_019c9232-510a-7a22-b63a-505ba9c4ef40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration_019c9232-510a-7b5e-8734-66d2d5857304" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration_019c9232-510a-7b5e-8734-66d2d5857304" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019c9232-510a-77cf-bc46-eff685025622" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019c9232-510a-734a-8d21-c4c5167358e2" xlink:to="loc_us-gaap_DerivativeLiabilities_019c9232-510a-77cf-bc46-eff685025622" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsandRelatedHedgedItemsinaFairValueHedgingRelationshipDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsandRelatedHedgedItemsinaFairValueHedgingRelationshipDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsandRelatedHedgedItemsinaFairValueHedgingRelationshipDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-71ee-996d-222b7a599043" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7ae3-974e-14c452dd8516" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-71ee-996d-222b7a599043" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7ae3-974e-14c452dd8516" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-710a-84c2-d5e3f3cfd2af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7ae3-974e-14c452dd8516" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-710a-84c2-d5e3f3cfd2af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-710a-84c2-d5e3f3cfd2af_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-710a-84c2-d5e3f3cfd2af" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-710a-84c2-d5e3f3cfd2af_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7040-876a-016ff947e76e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-710a-84c2-d5e3f3cfd2af" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7040-876a-016ff947e76e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_019c9232-510a-7b0e-9a29-a142e8af487e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7040-876a-016ff947e76e" xlink:to="loc_us-gaap_InterestRateContractMember_019c9232-510a-7b0e-9a29-a142e8af487e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-746a-b7f6-f380be4cc7cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7ae3-974e-14c452dd8516" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-746a-b7f6-f380be4cc7cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-746a-b7f6-f380be4cc7cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-746a-b7f6-f380be4cc7cd" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-746a-b7f6-f380be4cc7cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7891-9d09-a5e846cb729b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-746a-b7f6-f380be4cc7cd" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7891-9d09-a5e846cb729b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_InterestAndOtherIncomeExpenseMember_019c9232-510a-7364-a043-1d5b2b5885d8" xlink:href="hpq-20260430.xsd#hpq_InterestAndOtherIncomeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7891-9d09-a5e846cb729b" xlink:to="loc_hpq_InterestAndOtherIncomeExpenseMember_019c9232-510a-7364-a043-1d5b2b5885d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019c9232-510a-7f2c-a53b-249defedf1a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-71ee-996d-222b7a599043" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019c9232-510a-7f2c-a53b-249defedf1a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019c9232-510a-7e28-9c5b-bf5d5f074921" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-71ee-996d-222b7a599043" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019c9232-510a-7e28-9c5b-bf5d5f074921" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinAccumulatedOtherComprehensiveLossIncomeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinAccumulatedOtherComprehensiveLossIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinAccumulatedOtherComprehensiveLossIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7978-8008-6beda87e85f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7a31-a49c-a7a4370e8389" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7978-8008-6beda87e85f8" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7a31-a49c-a7a4370e8389" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7005-900f-305e81d0f665" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7a31-a49c-a7a4370e8389" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7005-900f-305e81d0f665" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7005-900f-305e81d0f665_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7005-900f-305e81d0f665" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7005-900f-305e81d0f665_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7345-9a15-51e86235d246" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7005-900f-305e81d0f665" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7345-9a15-51e86235d246" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-712d-9a6e-d3165823ae10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7345-9a15-51e86235d246" xlink:to="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-712d-9a6e-d3165823ae10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_019c9232-510a-7978-99ef-d9537a494792" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7345-9a15-51e86235d246" xlink:to="loc_us-gaap_InterestRateContractMember_019c9232-510a-7978-99ef-d9537a494792" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7b05-abe6-42f8c319a716" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7a31-a49c-a7a4370e8389" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7b05-abe6-42f8c319a716" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7b05-abe6-42f8c319a716_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7b05-abe6-42f8c319a716" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-7b05-abe6-42f8c319a716_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75eb-baa9-d2b7b681d4fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-7b05-abe6-42f8c319a716" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75eb-baa9-d2b7b681d4fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-7259-9ba8-010f46f85c86" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75eb-baa9-d2b7b681d4fb" xlink:to="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-7259-9ba8-010f46f85c86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019c9232-510a-7b7c-bb19-0e84ee2dbda7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7978-8008-6beda87e85f8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_019c9232-510a-7b7c-bb19-0e84ee2dbda7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinEarningsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinEarningsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsinCashFlowHedgingRelationshipsIncludedinEarningsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-79e9-9a79-85a73b23fc88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7691-ae3a-fc83566cb410" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-79e9-9a79-85a73b23fc88" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7691-ae3a-fc83566cb410" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-74e6-a487-37eae2c4f745" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7691-ae3a-fc83566cb410" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-74e6-a487-37eae2c4f745" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-74e6-a487-37eae2c4f745_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-74e6-a487-37eae2c4f745" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-74e6-a487-37eae2c4f745_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75b5-b3d5-7ebcf3ebc1aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019c9232-510a-74e6-a487-37eae2c4f745" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75b5-b3d5-7ebcf3ebc1aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-7027-a24d-c6f3bf959e9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019c9232-510a-75b5-b3d5-7ebcf3ebc1aa" xlink:to="loc_us-gaap_CashFlowHedgingMember_019c9232-510a-7027-a24d-c6f3bf959e9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7ae4-a97e-6b68b853d1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7691-ae3a-fc83566cb410" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7ae4-a97e-6b68b853d1bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7ae4-a97e-6b68b853d1bb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7ae4-a97e-6b68b853d1bb" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7ae4-a97e-6b68b853d1bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7ae4-a97e-6b68b853d1bb" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesMember_019c9232-510a-783d-8e8c-df9d9541a380" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:to="loc_us-gaap_SalesMember_019c9232-510a-783d-8e8c-df9d9541a380" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_019c9232-510a-7411-afb7-4595c31bd987" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:to="loc_us-gaap_CostOfSalesMember_019c9232-510a-7411-afb7-4595c31bd987" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenseMember_019c9232-510a-7ca6-aef4-b73ffef02347" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:to="loc_us-gaap_OperatingExpenseMember_019c9232-510a-7ca6-aef4-b73ffef02347" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_InterestAndOtherExpenseNetMember_019c9232-510a-79fd-bb05-0e10a53b2f9e" xlink:href="hpq-20260430.xsd#hpq_InterestAndOtherExpenseNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7562-9062-1a158ca958ec" xlink:to="loc_hpq_InterestAndOtherExpenseNetMember_019c9232-510a-79fd-bb05-0e10a53b2f9e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfCashFlowHedgesOnResultsOfOperationsAbstract_019c9232-510a-7dc1-82e3-43771c7e3b33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectOfCashFlowHedgesOnResultsOfOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-79e9-9a79-85a73b23fc88" xlink:to="loc_us-gaap_EffectOfCashFlowHedgesOnResultsOfOperationsAbstract_019c9232-510a-7dc1-82e3-43771c7e3b33" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019c9232-510a-7233-95bc-643e9a8b307a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectOfCashFlowHedgesOnResultsOfOperationsAbstract_019c9232-510a-7dc1-82e3-43771c7e3b33" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_019c9232-510a-7233-95bc-643e9a8b307a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsNotDesignatedasHedgingInstrumentsRecognizedinInterestandOtherNetintheConsolidatedCondensedStatementsofEarningsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsNotDesignatedasHedgingInstrumentsRecognizedinInterestandOtherNetintheConsolidatedCondensedStatementsofEarningsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FinancialInstrumentsScheduleofPreTaxEffectofDerivativeInstrumentsNotDesignatedasHedgingInstrumentsRecognizedinInterestandOtherNetintheConsolidatedCondensedStatementsofEarningsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7237-9bb2-9d2a29588021" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7f61-bb7b-2300685bbb5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7237-9bb2-9d2a29588021" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7f61-bb7b-2300685bbb5d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7482-a329-4d8938a7b0b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7f61-bb7b-2300685bbb5d" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7482-a329-4d8938a7b0b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7482-a329-4d8938a7b0b9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7482-a329-4d8938a7b0b9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7482-a329-4d8938a7b0b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7e0c-b43a-fbac65c28818" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019c9232-510a-7482-a329-4d8938a7b0b9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7e0c-b43a-fbac65c28818" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_InterestAndOtherIncomeExpenseMember_019c9232-510a-77b1-86f8-68ea70da5cca" xlink:href="hpq-20260430.xsd#hpq_InterestAndOtherIncomeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019c9232-510a-7e0c-b43a-fbac65c28818" xlink:to="loc_hpq_InterestAndOtherIncomeExpenseMember_019c9232-510a-77b1-86f8-68ea70da5cca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7810-b431-c83dce886a7f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019c9232-510a-7f61-bb7b-2300685bbb5d" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7810-b431-c83dce886a7f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7810-b431-c83dce886a7f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7810-b431-c83dce886a7f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7810-b431-c83dce886a7f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7d49-ab93-d82ff27aa1e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c9232-510a-7810-b431-c83dce886a7f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7d49-ab93-d82ff27aa1e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-717c-9db3-999447a1394f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7d49-ab93-d82ff27aa1e5" xlink:to="loc_us-gaap_ForeignExchangeContractMember_019c9232-510a-717c-9db3-999447a1394f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherContractMember_019c9232-510a-724c-8e5d-e9da3f88406c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c9232-510a-7d49-ab93-d82ff27aa1e5" xlink:to="loc_us-gaap_OtherContractMember_019c9232-510a-724c-8e5d-e9da3f88406c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_019c9232-510a-7a67-8b4d-8f78a6022af4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019c9232-510a-7237-9bb2-9d2a29588021" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_019c9232-510a-7a67-8b4d-8f78a6022af4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/BorrowingsScheduleofNotesPayableandShortTermBorrowingsDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#BorrowingsScheduleofNotesPayableandShortTermBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/BorrowingsScheduleofNotesPayableandShortTermBorrowingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtLineItems_019c9232-510a-71d0-a549-94c3e46def3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermDebtLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShortTermDebtTable_019c9232-510a-710e-b18d-a063f662810a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShortTermDebtTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShortTermDebtLineItems_019c9232-510a-71d0-a549-94c3e46def3c" xlink:to="loc_us-gaap_ScheduleOfShortTermDebtTable_019c9232-510a-710e-b18d-a063f662810a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_019c9232-510a-7d54-9130-c241c715fde6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_019c9232-510a-710e-b18d-a063f662810a" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_019c9232-510a-7d54-9130-c241c715fde6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019c9232-510a-7d54-9130-c241c715fde6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019c9232-510a-7d54-9130-c241c715fde6" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019c9232-510a-7d54-9130-c241c715fde6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019c9232-510a-75cd-9ae4-82f469e35030" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019c9232-510a-7d54-9130-c241c715fde6" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019c9232-510a-75cd-9ae4-82f469e35030" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NotesPayableToBanksLinesOfCreditAndOtherNotesPayablesMember_019c9232-510a-71cb-8a24-f8ad0fb4c3b6" xlink:href="hpq-20260430.xsd#hpq_NotesPayableToBanksLinesOfCreditAndOtherNotesPayablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_019c9232-510a-75cd-9ae4-82f469e35030" xlink:to="loc_hpq_NotesPayableToBanksLinesOfCreditAndOtherNotesPayablesMember_019c9232-510a-71cb-8a24-f8ad0fb4c3b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrentAbstract_019c9232-510a-7e5e-971a-341d1c9f0ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_019c9232-510a-71d0-a549-94c3e46def3c" xlink:to="loc_us-gaap_DebtCurrentAbstract_019c9232-510a-7e5e-971a-341d1c9f0ccb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_019c9232-510a-7643-9fed-7258894e1246" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtCurrentAbstract_019c9232-510a-7e5e-971a-341d1c9f0ccb" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_019c9232-510a-7643-9fed-7258894e1246" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_019c9232-510a-72b4-931c-16b7383c26a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtCurrentAbstract_019c9232-510a-7e5e-971a-341d1c9f0ccb" xlink:to="loc_us-gaap_DebtCurrent_019c9232-510a-72b4-931c-16b7383c26a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract_019c9232-510a-75a0-a266-b93daadf632a" xlink:href="hpq-20260430.xsd#hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_019c9232-510a-71d0-a549-94c3e46def3c" xlink:to="loc_hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract_019c9232-510a-75a0-a266-b93daadf632a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_019c9232-510a-71e9-8c73-fdccf1a8b94d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract_019c9232-510a-75a0-a266-b93daadf632a" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_019c9232-510a-71e9-8c73-fdccf1a8b94d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_019c9232-510a-7fa7-aa23-724fa7d1dfb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract_019c9232-510a-75a0-a266-b93daadf632a" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_019c9232-510a-7fa7-aa23-724fa7d1dfb7" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#BorrowingsScheduleofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019c9232-510a-75fa-9f24-660639ef9a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_DebtInstrumentTable_019c9232-510a-75fa-9f24-660639ef9a6b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-7ce9-9ca2-944c2498bdf5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019c9232-510a-75fa-9f24-660639ef9a6b" xlink:to="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-7ce9-9ca2-944c2498bdf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7ce9-9ca2-944c2498bdf5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-7ce9-9ca2-944c2498bdf5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7ce9-9ca2-944c2498bdf5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7b4f-92c3-49bee81ef926" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-7ce9-9ca2-944c2498bdf5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7b4f-92c3-49bee81ef926" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7b4f-92c3-49bee81ef926" xlink:to="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJune2026Member_019c9232-510a-7585-aa1f-5ca5ef5f5665" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJune2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJune2026Member_019c9232-510a-7585-aa1f-5ca5ef5f5665" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJune2027Member_019c9232-510a-7001-aaf1-d7b37b1eefe6" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJune2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJune2027Member_019c9232-510a-7001-aaf1-d7b37b1eefe6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJanuary2028Member_019c9232-510a-7bf6-8f89-3785c343ab97" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJanuary2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJanuary2028Member_019c9232-510a-7bf6-8f89-3785c343ab97" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueApril2029Member_019c9232-510a-749a-babd-a59739530ce9" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueApril2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueApril2029Member_019c9232-510a-749a-babd-a59739530ce9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_U.S.DollarGlobalNotesDueApril2030Member_019c9232-510a-7497-8caa-b5bd74f9e240" xlink:href="hpq-20260430.xsd#hpq_U.S.DollarGlobalNotesDueApril2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_U.S.DollarGlobalNotesDueApril2030Member_019c9232-510a-7497-8caa-b5bd74f9e240" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJune2030Member_019c9232-510a-71d1-a3a0-7c27665c2ddc" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJune2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJune2030Member_019c9232-510a-71d1-a3a0-7c27665c2ddc" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJune2031Member_019c9232-510a-750f-977f-a348e39b7fe3" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJune2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJune2031Member_019c9232-510a-750f-977f-a348e39b7fe3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueApril2032Member_019c9232-510a-7e97-85bf-23e0f3778bee" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueApril2032Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueApril2032Member_019c9232-510a-7e97-85bf-23e0f3778bee" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueJanuary2033Member_019c9232-510a-7112-8cff-aadd36fe8265" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueJanuary2033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueJanuary2033Member_019c9232-510a-7112-8cff-aadd36fe8265" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_U.S.DollarGlobalNotesDueApril2035Member_019c9232-510a-731b-a98a-361352943bc0" xlink:href="hpq-20260430.xsd#hpq_U.S.DollarGlobalNotesDueApril2035Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_U.S.DollarGlobalNotesDueApril2035Member_019c9232-510a-731b-a98a-361352943bc0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_USDollarGlobalNotesDueSeptember2041Member_019c9232-510a-768d-a902-deb24ada3205" xlink:href="hpq-20260430.xsd#hpq_USDollarGlobalNotesDueSeptember2041Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hpq_USDollarGlobalNotesMember_019c9232-510a-7957-b933-b3185824ca4d" xlink:to="loc_hpq_USDollarGlobalNotesDueSeptember2041Member_019c9232-510a-768d-a902-deb24ada3205" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_OtherLongTermDebtMember_019c9232-510a-7236-be0b-ff0619004868" xlink:href="hpq-20260430.xsd#hpq_OtherLongTermDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7b4f-92c3-49bee81ef926" xlink:to="loc_hpq_OtherLongTermDebtMember_019c9232-510a-7236-be0b-ff0619004868" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019c9232-510a-753a-9fca-cae55d43343e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019c9232-510a-75fa-9f24-660639ef9a6b" xlink:to="loc_srt_RangeAxis_019c9232-510a-753a-9fca-cae55d43343e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c9232-510a-753a-9fca-cae55d43343e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019c9232-510a-753a-9fca-cae55d43343e" xlink:to="loc_srt_RangeMember_019c9232-510a-753a-9fca-cae55d43343e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c9232-510a-7a3b-b406-08e69ee32df4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019c9232-510a-753a-9fca-cae55d43343e" xlink:to="loc_srt_RangeMember_019c9232-510a-7a3b-b406-08e69ee32df4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019c9232-510a-7b0a-b248-e99eb0fbc12d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c9232-510a-7a3b-b406-08e69ee32df4" xlink:to="loc_srt_MinimumMember_019c9232-510a-7b0a-b248-e99eb0fbc12d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019c9232-510a-75ad-bc70-dbc2f6928171" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c9232-510a-7a3b-b406-08e69ee32df4" xlink:to="loc_srt_MaximumMember_019c9232-510a-75ad-bc70-dbc2f6928171" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019c9232-510a-7caf-b7cf-8dff1b2208f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019c9232-510a-7caf-b7cf-8dff1b2208f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtInstrumentDiscountRateAtIssuance_019c9232-510a-76b6-90bc-85ea98a87663" xlink:href="hpq-20260430.xsd#hpq_DebtInstrumentDiscountRateAtIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_hpq_DebtInstrumentDiscountRateAtIssuance_019c9232-510a-76b6-90bc-85ea98a87663" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019c9232-510a-7e5a-b2be-82023a12df20" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019c9232-510a-7e5a-b2be-82023a12df20" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019c9232-510a-7d97-95a0-77d86d06c3ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_LongTermDebt_019c9232-510a-7d97-95a0-77d86d06c3ad" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_019c9232-510a-773a-9cf3-c2c749fb492e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_OtherBorrowings_019c9232-510a-773a-9cf3-c2c749fb492e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019c9232-510a-7805-93a7-1cccbad07daa" xlink:href="hpq-20260430.xsd#hpq_DebtInstrumentChangeInFairValueOfHedgedDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_hpq_DebtInstrumentChangeInFairValueOfHedgedDebt_019c9232-510a-7805-93a7-1cccbad07daa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_019c9232-510a-7a29-bd4f-525c0b937d01" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_019c9232-510a-7a29-bd4f-525c0b937d01" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019c9232-510a-7ede-8002-ff0d5400130e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_LongTermDebtCurrent_019c9232-510a-7ede-8002-ff0d5400130e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-7a48-9b8f-8f87099adeac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019c9232-510a-7494-ae5a-4ffc364b50bb" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019c9232-510a-7a48-9b8f-8f87099adeac" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/BorrowingsNarrativeDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#BorrowingsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/BorrowingsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_019c9232-510a-7851-bef7-b9d5e974576b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_019c9232-510a-72a2-87b2-d92db3338b3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019c9232-510a-7851-bef7-b9d5e974576b" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_019c9232-510a-72a2-87b2-d92db3338b3c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-792d-baaf-4cc07b83702e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019c9232-510a-72a2-87b2-d92db3338b3c" xlink:to="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-792d-baaf-4cc07b83702e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-792d-baaf-4cc07b83702e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-792d-baaf-4cc07b83702e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-792d-baaf-4cc07b83702e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7a69-9217-c6cff7c18be9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019c9232-510a-792d-baaf-4cc07b83702e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7a69-9217-c6cff7c18be9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NewRevolvingFacilityMember_019c9232-510a-7f26-b0c8-122afc177f4d" xlink:href="hpq-20260430.xsd#hpq_NewRevolvingFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019c9232-510a-7a69-9217-c6cff7c18be9" xlink:to="loc_hpq_NewRevolvingFacilityMember_019c9232-510a-7f26-b0c8-122afc177f4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019c9232-510a-7844-9831-7ef4d1de0248" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019c9232-510a-72a2-87b2-d92db3338b3c" xlink:to="loc_us-gaap_CreditFacilityAxis_019c9232-510a-7844-9831-7ef4d1de0248" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019c9232-510a-7844-9831-7ef4d1de0248_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019c9232-510a-7844-9831-7ef4d1de0248" xlink:to="loc_us-gaap_CreditFacilityDomain_019c9232-510a-7844-9831-7ef4d1de0248_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019c9232-510a-74e2-8a59-68b0bff22184" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019c9232-510a-7844-9831-7ef4d1de0248" xlink:to="loc_us-gaap_CreditFacilityDomain_019c9232-510a-74e2-8a59-68b0bff22184" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019c9232-510a-736a-834a-53ce4a945f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019c9232-510a-74e2-8a59-68b0bff22184" xlink:to="loc_us-gaap_CommercialPaperMember_019c9232-510a-736a-834a-53ce4a945f5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_019c9232-510a-7b72-91e4-e6a68316e1bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019c9232-510a-74e2-8a59-68b0bff22184" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_019c9232-510a-7b72-91e4-e6a68316e1bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_019c9232-510a-7e14-b65d-5faa2bd412b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019c9232-510a-74e2-8a59-68b0bff22184" xlink:to="loc_us-gaap_LineOfCreditMember_019c9232-510a-7e14-b65d-5faa2bd412b9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019c9232-510a-75d0-b7ed-6d1361b4f5a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019c9232-510a-7851-bef7-b9d5e974576b" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019c9232-510a-75d0-b7ed-6d1361b4f5a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_019c9232-510a-7977-8ca9-69c8a77d4dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019c9232-510a-7851-bef7-b9d5e974576b" xlink:to="loc_us-gaap_DebtInstrumentTerm_019c9232-510a-7977-8ca9-69c8a77d4dc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019c9232-510a-734a-bb03-ad8d09fcadb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019c9232-510a-7851-bef7-b9d5e974576b" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019c9232-510a-734a-bb03-ad8d09fcadb8" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/StockholdersDeficitScheduleofTaxesRelatedtoOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019c9232-51e3-73cf-ac28-eabcced0c6ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019c9232-51e3-7b95-9b20-c34de18dd864" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019c9232-51e3-73cf-ac28-eabcced0c6ba" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019c9232-51e3-7b95-9b20-c34de18dd864" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019c9232-51e3-7eb0-a8a4-28e588814938" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019c9232-51e3-7b95-9b20-c34de18dd864" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019c9232-51e3-7eb0-a8a4-28e588814938" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7eb0-a8a4-28e588814938_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019c9232-51e3-7eb0-a8a4-28e588814938" xlink:to="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7eb0-a8a4-28e588814938_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019c9232-51e3-7eb0-a8a4-28e588814938" xlink:to="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019c9232-51e3-7521-9075-759dd4896f7c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019c9232-51e3-7521-9075-759dd4896f7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_019c9232-51e3-787a-b09e-189899e6750c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_019c9232-51e3-787a-b09e-189899e6750c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_019c9232-51e3-73c1-bbc0-2f073471bf52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_019c9232-51e3-73c1-bbc0-2f073471bf52" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AccumulatedDefinedBenefitPlansAdjustmentActuarialGainLossAndNetPriorServiceCostCreditMember_019c9232-51e3-7872-9106-ea8b24ccbeed" xlink:href="hpq-20260430.xsd#hpq_AccumulatedDefinedBenefitPlansAdjustmentActuarialGainLossAndNetPriorServiceCostCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_hpq_AccumulatedDefinedBenefitPlansAdjustmentActuarialGainLossAndNetPriorServiceCostCreditMember_019c9232-51e3-7872-9106-ea8b24ccbeed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AccumulatedDefinedBenefitPlansAdjustmentCurtailmentsSettlementsAndOtherMember_019c9232-51e3-73de-9b01-0f9aa39173fa" xlink:href="hpq-20260430.xsd#hpq_AccumulatedDefinedBenefitPlansAdjustmentCurtailmentsSettlementsAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_hpq_AccumulatedDefinedBenefitPlansAdjustmentCurtailmentsSettlementsAndOtherMember_019c9232-51e3-73de-9b01-0f9aa39173fa" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_019c9232-51e3-7edd-ab1a-440f1010d75a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_019c9232-51e3-7edd-ab1a-440f1010d75a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019c9232-51e3-7ca7-abce-a43fa9823cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019c9232-51e3-7f6f-99c8-10040e19aae8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019c9232-51e3-7ca7-abce-a43fa9823cc5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019c9232-51e3-73cf-ac28-eabcced0c6ba" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-51e3-7e64-a22d-af4a4bd83f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:to="loc_us-gaap_StockholdersEquity_019c9232-51e3-7e64-a22d-af4a4bd83f0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019c9232-51e3-75ff-ac0e-c6040ca5d62d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019c9232-51e3-75ff-ac0e-c6040ca5d62d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019c9232-51e3-7ab9-af9c-31c6a4ffb3f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019c9232-51e3-7ab9-af9c-31c6a4ffb3f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-51e3-7402-92a0-72cbcfaf42f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019c9232-51e3-7402-92a0-72cbcfaf42f5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-51e3-7b3f-8e91-51b061e20269" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019c9232-51e3-7309-9140-07621af72e1a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019c9232-51e3-7b3f-8e91-51b061e20269" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c9232-51e3-795a-8a23-45aabd3fd52d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/LitigationandContingenciesDetails" xlink:type="simple" xlink:href="hpq-20260430.xsd#LitigationandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/LitigationandContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_019c9232-51e3-7c59-aec5-b1760db5c068" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_us-gaap_LossContingenciesTable_019c9232-51e3-7c59-aec5-b1760db5c068" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_019c9232-51e3-7e62-87bf-ca75b42ef57f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019c9232-51e3-7c59-aec5-b1760db5c068" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_019c9232-51e3-7e62-87bf-ca75b42ef57f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-7e62-87bf-ca75b42ef57f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_019c9232-51e3-7e62-87bf-ca75b42ef57f" xlink:to="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-7e62-87bf-ca75b42ef57f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-75db-9118-85b7ac3168a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_019c9232-51e3-7e62-87bf-ca75b42ef57f" xlink:to="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-75db-9118-85b7ac3168a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_IndiaDirectorateOfRevenueIntelligenceProceedingsMember_019c9232-51e3-7c40-b761-8a86abe7c7d1" xlink:href="hpq-20260430.xsd#hpq_IndiaDirectorateOfRevenueIntelligenceProceedingsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-75db-9118-85b7ac3168a3" xlink:to="loc_hpq_IndiaDirectorateOfRevenueIntelligenceProceedingsMember_019c9232-51e3-7c40-b761-8a86abe7c7d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AutonomyRelatedLegalMattersMember_019c9232-51e3-750b-bd2d-ca8a44ebedce" xlink:href="hpq-20260430.xsd#hpq_AutonomyRelatedLegalMattersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_019c9232-51e3-75db-9118-85b7ac3168a3" xlink:to="loc_hpq_AutonomyRelatedLegalMattersMember_019c9232-51e3-750b-bd2d-ca8a44ebedce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_019c9232-51e3-76f5-96e7-9dd42a12e522" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019c9232-51e3-7c59-aec5-b1760db5c068" xlink:to="loc_srt_LitigationCaseAxis_019c9232-51e3-76f5-96e7-9dd42a12e522" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019c9232-51e3-76f5-96e7-9dd42a12e522_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_019c9232-51e3-76f5-96e7-9dd42a12e522" xlink:to="loc_srt_LitigationCaseTypeDomain_019c9232-51e3-76f5-96e7-9dd42a12e522_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019c9232-51e3-726b-9c16-d21d7f8d8b6b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_019c9232-51e3-76f5-96e7-9dd42a12e522" xlink:to="loc_srt_LitigationCaseTypeDomain_019c9232-51e3-726b-9c16-d21d7f8d8b6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_PhilipsPatentLitigationMember_019c9232-51e3-7043-b19a-dc5d31414e74" xlink:href="hpq-20260430.xsd#hpq_PhilipsPatentLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019c9232-51e3-726b-9c16-d21d7f8d8b6b" xlink:to="loc_hpq_PhilipsPatentLitigationMember_019c9232-51e3-7043-b19a-dc5d31414e74" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_019c9232-51e3-7cd9-b6b6-b9f311968873" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019c9232-51e3-7c59-aec5-b1760db5c068" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_019c9232-51e3-7cd9-b6b6-b9f311968873" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019c9232-51e3-7cd9-b6b6-b9f311968873_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019c9232-51e3-7cd9-b6b6-b9f311968873" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019c9232-51e3-7cd9-b6b6-b9f311968873_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019c9232-51e3-7317-b035-5e5da505a479" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019c9232-51e3-7cd9-b6b6-b9f311968873" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019c9232-51e3-7317-b035-5e5da505a479" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AcquisitionOfAutonomyMember_019c9232-51e3-7589-a89e-6e47852b8d60" xlink:href="hpq-20260430.xsd#hpq_AcquisitionOfAutonomyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019c9232-51e3-7317-b035-5e5da505a479" xlink:to="loc_hpq_AcquisitionOfAutonomyMember_019c9232-51e3-7589-a89e-6e47852b8d60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LossContingencyNumberofDefendantsCurrentEmployee_019c9232-51e3-784a-954c-f14152f29897" xlink:href="hpq-20260430.xsd#hpq_LossContingencyNumberofDefendantsCurrentEmployee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_LossContingencyNumberofDefendantsCurrentEmployee_019c9232-51e3-784a-954c-f14152f29897" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LossContingencyNumberofDefendantsFormerEmployee_019c9232-51e3-75db-b818-d277737a1711" xlink:href="hpq-20260430.xsd#hpq_LossContingencyNumberofDefendantsFormerEmployee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_LossContingencyNumberofDefendantsFormerEmployee_019c9232-51e3-75db-b818-d277737a1711" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_019c9232-51e3-7e37-be5f-a0d27be4cc6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyDamagesSoughtValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_019c9232-51e3-7e37-be5f-a0d27be4cc6e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LossContingencyDepositToPreventInterruptionOfBusiness_019c9232-51e3-7405-9202-776d35f76699" xlink:href="hpq-20260430.xsd#hpq_LossContingencyDepositToPreventInterruptionOfBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_LossContingencyDepositToPreventInterruptionOfBusiness_019c9232-51e3-7405-9202-776d35f76699" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DutiesPenaltiesAffirmedUnderShowCauseNotices_019c9232-51e3-7800-9024-3a971e8b20c0" xlink:href="hpq-20260430.xsd#hpq_DutiesPenaltiesAffirmedUnderShowCauseNotices"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_DutiesPenaltiesAffirmedUnderShowCauseNotices_019c9232-51e3-7800-9024-3a971e8b20c0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AmountDepositedUnderProductsShowCauseNotice_019c9232-51e3-7dc6-bddf-32f0e27ae2db" xlink:href="hpq-20260430.xsd#hpq_AmountDepositedUnderProductsShowCauseNotice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_AmountDepositedUnderProductsShowCauseNotice_019c9232-51e3-7dc6-bddf-32f0e27ae2db" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AdditionalDepositAgainstProductsRelatedShowCauseNotice_019c9232-51e3-7189-8582-9c2aa8780dab" xlink:href="hpq-20260430.xsd#hpq_AdditionalDepositAgainstProductsRelatedShowCauseNotice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_AdditionalDepositAgainstProductsRelatedShowCauseNotice_019c9232-51e3-7189-8582-9c2aa8780dab" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AdditionalDepositAgainstPartsRelatedShowCauseNotice_019c9232-51e3-7630-906e-165e714ff685" xlink:href="hpq-20260430.xsd#hpq_AdditionalDepositAgainstPartsRelatedShowCauseNotice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_AdditionalDepositAgainstPartsRelatedShowCauseNotice_019c9232-51e3-7630-906e-165e714ff685" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_AdditionalDepositAgainstProductOrder_019c9232-51e3-78e0-b4ef-75e2c6359954" xlink:href="hpq-20260430.xsd#hpq_AdditionalDepositAgainstProductOrder"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_AdditionalDepositAgainstProductOrder_019c9232-51e3-78e0-b4ef-75e2c6359954" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyPatentsAllegedlyInfringedNumber_019c9232-51e3-7307-bd95-00abc5e82e52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyPatentsAllegedlyInfringedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_us-gaap_LossContingencyPatentsAllegedlyInfringedNumber_019c9232-51e3-7307-bd95-00abc5e82e52" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_LossContingencyPatentsWithdrawn_019c9232-51e3-7e5c-8e4a-a7ca4ecff55a" xlink:href="hpq-20260430.xsd#hpq_LossContingencyPatentsWithdrawn"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_LossContingencyPatentsWithdrawn_019c9232-51e3-7e5c-8e4a-a7ca4ecff55a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NumberOfSubsidiaries_019c9232-51e3-7665-bd05-2c79fc51ac85" xlink:href="hpq-20260430.xsd#hpq_NumberOfSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_NumberOfSubsidiaries_019c9232-51e3-7665-bd05-2c79fc51ac85" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_NumberOfMembers_019c9232-51e3-77ec-a39f-2151a1fcdfca" xlink:href="hpq-20260430.xsd#hpq_NumberOfMembers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_hpq_NumberOfMembers_019c9232-51e3-77ec-a39f-2151a1fcdfca" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesAwardedValue_019c9232-51e3-7cde-8e42-33643fb098c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyDamagesAwardedValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019c9232-51e3-7257-90fe-5ed5bb8145ea" xlink:to="loc_us-gaap_LossContingencyDamagesAwardedValue_019c9232-51e3-7cde-8e42-33643fb098c8" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_OtherAssetsCurrent" xlink:type="arc" order="101"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_OtherAssetsNoncurrent" xlink:type="arc" order="102"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent" xlink:type="arc" order="31"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent" xlink:type="arc" order="32"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DavidMcQuarrieMember_019e29c1-98ca-7ba8-bdb2-e7dae171030f" xlink:href="hpq-20260430.xsd#hpq_DavidMcQuarrieMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_hpq_DavidMcQuarrieMember_019e29c1-98ca-7ba8-bdb2-e7dae171030f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#TradingArrangmentsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllTradingArrangementsMember" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#ecd_AllTradingArrangementsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_DavidMcQuarrieTradingArrangementCommonStockUnderlyingEmployeeStockOptionMember_019e29c4-b907-7820-ab59-8b9959e14d1a" xlink:href="hpq-20260430.xsd#hpq_DavidMcQuarrieTradingArrangementCommonStockUnderlyingEmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_hpq_DavidMcQuarrieTradingArrangementCommonStockUnderlyingEmployeeStockOptionMember_019e29c4-b907-7820-ab59-8b9959e14d1a" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
