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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019dbb5a-2d42-78b3-9f3f-db89629fe72d,g:cdf4c2ff-1a0e-4e53-a44b-f648d7e5b8e2-->
<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/Cover" xlink:type="simple" xlink:href="hpq-20260609.xsd#Cover"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/Cover" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_019e073f-3574-76e4-b2d8-4d8ac0ed2791" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:to="loc_dei_DocumentInformationTable_019e073f-3574-76e4-b2d8-4d8ac0ed2791" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1898-3400-7382-8f9f-152a40bd5e7a" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_019e073f-3574-76e4-b2d8-4d8ac0ed2791" xlink:to="loc_dei_LegalEntityAxis_019e1898-3400-7382-8f9f-152a40bd5e7a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1898-3400-7382-8f9f-152a40bd5e7a_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1898-3400-7382-8f9f-152a40bd5e7a" xlink:to="loc_dei_EntityDomain_019e1898-3400-7382-8f9f-152a40bd5e7a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1898-3400-7540-ba7d-6bb8e38acb3e" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1898-3400-7382-8f9f-152a40bd5e7a" xlink:to="loc_dei_EntityDomain_019e1898-3400-7540-ba7d-6bb8e38acb3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1898-3400-7969-93d1-0da82e829695" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1898-3400-7540-ba7d-6bb8e38acb3e" xlink:to="loc_hpq_EBP004Member_019e1898-3400-7969-93d1-0da82e829695" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_019e1897-4ecc-7085-84c0-1f71f837718b" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:to="loc_dei_DocumentType_019e1897-4ecc-7085-84c0-1f71f837718b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_019e0754-b798-7c98-89b3-8f236f1594b7" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:to="loc_dei_AmendmentFlag_019e0754-b798-7c98-89b3-8f236f1594b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_019e0751-a995-7bd4-a7e0-8520fc9f3cf2" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:to="loc_dei_EntityCentralIndexKey_019e0751-a995-7bd4-a7e0-8520fc9f3cf2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_019e1898-3400-7902-a85b-9365626658b6" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e073f-3574-74c8-9d9e-6f585a1ab2ec" xlink:to="loc_dei_EntityRegistrantName_019e1898-3400-7902-a85b-9365626658b6" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/StatementsofNetAssetsAvailableforBenefits" xlink:type="simple" xlink:href="hpq-20260609.xsd#StatementsofNetAssetsAvailableforBenefits"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/StatementsofNetAssetsAvailableforBenefits" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems_019e0758-36b6-7fe1-833f-951d104accfb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitTable_019e0758-36b6-74a8-8f98-92b96d24682d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems_019e0758-36b6-7fe1-833f-951d104accfb" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitTable_019e0758-36b6-74a8-8f98-92b96d24682d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e0758-36b6-7cdb-807c-4340dc960148" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitTable_019e0758-36b6-74a8-8f98-92b96d24682d" xlink:to="loc_dei_LegalEntityAxis_019e0758-36b6-7cdb-807c-4340dc960148" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e0758-36b6-7cdb-807c-4340dc960148_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e0758-36b6-7cdb-807c-4340dc960148" xlink:to="loc_dei_EntityDomain_019e0758-36b6-7cdb-807c-4340dc960148_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e0758-36b6-7383-abf4-769689323209" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e0758-36b6-7cdb-807c-4340dc960148" xlink:to="loc_dei_EntityDomain_019e0758-36b6-7383-abf4-769689323209" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e0758-36b6-734a-9b5c-231dea78d206" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e0758-36b6-7383-abf4-769689323209" xlink:to="loc_hpq_EBP004Member_019e0758-36b6-734a-9b5c-231dea78d206" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAssetAbstract_019e0763-6a0a-7bee-aad7-b19f8e3a503e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAssetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems_019e0758-36b6-7fe1-833f-951d104accfb" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAssetAbstract_019e0763-6a0a-7bee-aad7-b19f8e3a503e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e0758-36b6-7c82-a62d-9ac1336c7c44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanAssetAbstract_019e0763-6a0a-7bee-aad7-b19f8e3a503e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e0758-36b6-7c82-a62d-9ac1336c7c44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanAssetAbstract_019e0763-6a0a-7bee-aad7-b19f8e3a503e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionReceivable_019e0759-6e17-7337-b9c6-7287d156e966" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerContributionReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionReceivable_019e0759-6e17-7337-b9c6-7287d156e966" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentIncomeReceivable_019e0760-f1dd-786d-a888-56c77b0962ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentIncomeReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentIncomeReceivable_019e0760-f1dd-786d-a888-56c77b0962ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipant_019e075b-02be-7d22-b03c-11668466dea2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipant_019e075b-02be-7d22-b03c-11668466dea2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableInvestmentSale_019e0761-815c-7d31-9ec2-58d8ae6de8a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReceivableInvestmentSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableInvestmentSale_019e0761-815c-7d31-9ec2-58d8ae6de8a0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReceivable_019e0762-7249-7e84-96fb-3e2f30449ccf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReceivableAbstract_019e0763-1a4b-7898-8ef4-23867e2f5f13" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReceivable_019e0762-7249-7e84-96fb-3e2f30449ccf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAsset_019e0762-06d1-7a7e-b6e9-3c277fd34346" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanAssetAbstract_019e0763-6a0a-7bee-aad7-b19f8e3a503e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAsset_019e0762-06d1-7a7e-b6e9-3c277fd34346" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract_019e0763-f264-78bb-826a-819203e2161f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems_019e0758-36b6-7fe1-833f-951d104accfb" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract_019e0763-f264-78bb-826a-819203e2161f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityInvestmentPurchase_019e0764-3c38-71c3-bbe6-8e29c9cf72a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanLiabilityInvestmentPurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract_019e0763-f264-78bb-826a-819203e2161f" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityInvestmentPurchase_019e0764-3c38-71c3-bbe6-8e29c9cf72a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDebtInterestPayable_019e0765-774e-7792-a04a-ab0986e9c637" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDebtInterestPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract_019e0763-f264-78bb-826a-819203e2161f" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanDebtInterestPayable_019e0765-774e-7792-a04a-ab0986e9c637" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanLiability_019e0765-dd60-7709-95ef-68c7d343dd6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanLiabilityAbstract_019e0763-f264-78bb-826a-819203e2161f" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanLiability_019e0765-dd60-7709-95ef-68c7d343dd6c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e0766-1194-75b7-83a1-cb00ab9edc88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfNetAssetAvailableForBenefitLineItems_019e0758-36b6-7fe1-833f-951d104accfb" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e0766-1194-75b7-83a1-cb00ab9edc88" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/StatementofChangesinNetAssetsAvailableforBenefits" xlink:type="simple" xlink:href="hpq-20260609.xsd#StatementofChangesinNetAssetsAvailableforBenefits"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/StatementofChangesinNetAssetsAvailableforBenefits" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitTable_019e14f2-43bb-7c80-9696-9d812112c2d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitTable_019e14f2-43bb-7c80-9696-9d812112c2d7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e14f2-43bb-781d-b885-8a0e021ca5dc" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitTable_019e14f2-43bb-7c80-9696-9d812112c2d7" xlink:to="loc_dei_LegalEntityAxis_019e14f2-43bb-781d-b885-8a0e021ca5dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e14f2-43bb-781d-b885-8a0e021ca5dc_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e14f2-43bb-781d-b885-8a0e021ca5dc" xlink:to="loc_dei_EntityDomain_019e14f2-43bb-781d-b885-8a0e021ca5dc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e14f2-43bb-7f25-b3ba-b07c2986d2ff" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e14f2-43bb-781d-b885-8a0e021ca5dc" xlink:to="loc_dei_EntityDomain_019e14f2-43bb-7f25-b3ba-b07c2986d2ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e14f2-43bb-7b72-a7e5-c2b4283adfd8" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e14f2-43bb-7f25-b3ba-b07c2986d2ff" xlink:to="loc_hpq_EBP004Member_019e14f2-43bb-7b72-a7e5-c2b4283adfd8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForEmployerContributionCash_019e14f2-43bb-77bc-bed7-58c6bb4fbdb5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForEmployerContributionCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForEmployerContributionCash_019e14f2-43bb-77bc-bed7-58c6bb4fbdb5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRollover_019e14f2-43bb-71bd-911d-c151f1126fe3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRollover"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRollover_019e14f2-43bb-71bd-911d-c151f1126fe3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover_019e14f2-43bb-7774-bb0a-6c62802c76f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover_019e14f2-43bb-7774-bb0a-6c62802c76f6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContribution_019e14f2-43bb-77e2-a6f6-f418db72bd24" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContributionAbstract_019e14f2-43bb-7cf2-b698-a2c2fc38ba73" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForContribution_019e14f2-43bb-77e2-a6f6-f418db72bd24" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract_019e14f2-43bb-7855-97de-4858b51e74e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract_019e14f2-43bb-7855-97de-4858b51e74e6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForGainLossOnInvestment_019e14f2-43bb-767b-bcc4-17e88a5412a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForGainLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract_019e14f2-43bb-7855-97de-4858b51e74e6" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForGainLossOnInvestment_019e14f2-43bb-767b-bcc4-17e88a5412a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestAndDividendIncomeOnInvestment_019e14f2-43bb-79db-99b8-dad6ea125c6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestAndDividendIncomeOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract_019e14f2-43bb-7855-97de-4858b51e74e6" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestAndDividendIncomeOnInvestment_019e14f2-43bb-79db-99b8-dad6ea125c6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestment_019e14f2-43bb-77f4-be92-2cd2f34e6f40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestmentAbstract_019e14f2-43bb-7855-97de-4858b51e74e6" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecreaseForIncomeLossOnInvestment_019e14f2-43bb-77f4-be92-2cd2f34e6f40" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestIncomeOnNoteReceivableFromParticipant_019e14f2-43bb-7500-bab8-43e303f8ebc1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestIncomeOnNoteReceivableFromParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForInterestIncomeOnNoteReceivableFromParticipant_019e14f2-43bb-7500-bab8-43e303f8ebc1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease_019e14f2-43bb-78df-a141-954f65fa492e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseAbstract_019e14f2-43bb-78e2-a9e9-e6c4cec4ed5d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease_019e14f2-43bb-78df-a141-954f65fa492e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract_019e14f2-43bb-7755-b4d4-e9322afa86a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract_019e14f2-43bb-7755-b4d4-e9322afa86a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant_019e14f2-43bb-7a13-997b-cf5befba565d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract_019e14f2-43bb-7755-b4d4-e9322afa86a8" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant_019e14f2-43bb-7a13-997b-cf5befba565d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForAdministrativeExpense_019e14f2-43bb-77ab-bdd7-365aa5cb2bcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract_019e14f2-43bb-7755-b4d4-e9322afa86a8" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForAdministrativeExpense_019e14f2-43bb-77ab-bdd7-365aa5cb2bcd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease_019e14f2-43bb-76d3-87c5-f545e3bb037f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseAbstract_019e14f2-43bb-7755-b4d4-e9322afa86a8" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease_019e14f2-43bb-76d3-87c5-f545e3bb037f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease_019e14f2-43bb-77be-bf7e-4ce950944d8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease_019e14f2-43bb-77be-bf7e-4ce950944d8a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e14f2-43bb-7605-9d79-7bafca69ff8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanStatementOfChangeInNetAssetAvailableForBenefitLineItems_019e14f2-43bb-7e4d-9892-3473fe534c2d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e14f2-43bb-7605-9d79-7bafca69ff8e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e14f2-43bb-7ff4-8d1b-7d030cfd2c45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/DescriptionofthePlan" xlink:type="simple" xlink:href="hpq-20260609.xsd#DescriptionofthePlan"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/DescriptionofthePlan" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-89c6-7f4a-b6b0-81d1dfbaa7fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-89c6-7bb2-876c-cbb229f2b150" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-89c6-7f4a-b6b0-81d1dfbaa7fc" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-89c6-7bb2-876c-cbb229f2b150" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1506-89c6-70ee-b35b-566171900eb7" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-89c6-7bb2-876c-cbb229f2b150" xlink:to="loc_dei_LegalEntityAxis_019e1506-89c6-70ee-b35b-566171900eb7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1506-89c6-70ee-b35b-566171900eb7_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1506-89c6-70ee-b35b-566171900eb7" xlink:to="loc_dei_EntityDomain_019e1506-89c6-70ee-b35b-566171900eb7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1506-89c6-7912-a3fd-b56fe865e1da" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1506-89c6-70ee-b35b-566171900eb7" xlink:to="loc_dei_EntityDomain_019e1506-89c6-7912-a3fd-b56fe865e1da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1506-89c6-7092-b185-c6807720ace0" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1506-89c6-7912-a3fd-b56fe865e1da" xlink:to="loc_hpq_EBP004Member_019e1506-89c6-7092-b185-c6807720ace0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTextBlock_019e1506-89c6-7154-99e1-7289d9446dfb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-89c6-7f4a-b6b0-81d1dfbaa7fc" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTextBlock_019e1506-89c6-7154-99e1-7289d9446dfb" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="hpq-20260609.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e157f-7ae1-7710-9722-1bb148a8166e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e157f-7ae1-7c31-8d93-2df743477c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e157f-7ae1-7710-9722-1bb148a8166e" xlink:to="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e157f-7ae1-7c31-8d93-2df743477c8e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e157f-7ae1-7522-a530-7199cf113e36" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e157f-7ae1-7c31-8d93-2df743477c8e" xlink:to="loc_dei_LegalEntityAxis_019e157f-7ae1-7522-a530-7199cf113e36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e157f-7ae1-7522-a530-7199cf113e36_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e157f-7ae1-7522-a530-7199cf113e36" xlink:to="loc_dei_EntityDomain_019e157f-7ae1-7522-a530-7199cf113e36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e157f-7ae1-705e-9f9a-9d6908b3d5a2" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e157f-7ae1-7522-a530-7199cf113e36" xlink:to="loc_dei_EntityDomain_019e157f-7ae1-705e-9f9a-9d6908b3d5a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e157f-7ae1-7e10-8f9c-df033b34a607" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e157f-7ae1-705e-9f9a-9d6908b3d5a2" xlink:to="loc_hpq_EBP004Member_019e157f-7ae1-7e10-8f9c-df033b34a607" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanSummaryOfAccountingPolicyTextBlock_019e157f-7ae1-73c0-a68b-118ac1eae678" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanSummaryOfAccountingPolicyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e157f-7ae1-7710-9722-1bb148a8166e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanSummaryOfAccountingPolicyTextBlock_019e157f-7ae1-73c0-a68b-118ac1eae678" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="hpq-20260609.xsd#FairValueMeasurements"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FairValueMeasurements" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e2-1c82-7ce5-a522-1fd2e592bd0d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e2-1c81-7e3e-9f1b-2cb2739da849" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e2-1c82-7ce5-a522-1fd2e592bd0d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e2-1c81-7e3e-9f1b-2cb2739da849" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e2-1c81-7a68-b55e-611a30390cfe" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e2-1c81-7e3e-9f1b-2cb2739da849" xlink:to="loc_dei_LegalEntityAxis_019e15e2-1c81-7a68-b55e-611a30390cfe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e2-1c81-7a68-b55e-611a30390cfe_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e2-1c81-7a68-b55e-611a30390cfe" xlink:to="loc_dei_EntityDomain_019e15e2-1c81-7a68-b55e-611a30390cfe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e2-1c81-73c4-887f-e1686674ef31" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e2-1c81-7a68-b55e-611a30390cfe" xlink:to="loc_dei_EntityDomain_019e15e2-1c81-73c4-887f-e1686674ef31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15e2-1c81-7dd0-b94d-871b48ca7215" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e2-1c81-73c4-887f-e1686674ef31" xlink:to="loc_hpq_EBP004Member_019e15e2-1c81-7dd0-b94d-871b48ca7215" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTextBlock_019e15e2-1c82-78f1-9bec-b220455d006a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e2-1c82-7ce5-a522-1fd2e592bd0d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTextBlock_019e15e2-1c82-78f1-9bec-b220455d006a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/IncomeTaxStatus" xlink:type="simple" xlink:href="hpq-20260609.xsd#IncomeTaxStatus"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/IncomeTaxStatus" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusLineItems_019e157c-7b1d-70b0-b4a5-d2e2450f43ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanTaxStatusLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusTable_019e157c-7b1d-7632-b60c-328227d6b303" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanTaxStatusTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusLineItems_019e157c-7b1d-70b0-b4a5-d2e2450f43ec" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusTable_019e157c-7b1d-7632-b60c-328227d6b303" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e157c-7b1d-7139-be87-5e07d62c3423" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusTable_019e157c-7b1d-7632-b60c-328227d6b303" xlink:to="loc_dei_LegalEntityAxis_019e157c-7b1d-7139-be87-5e07d62c3423" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e157c-7b1d-7139-be87-5e07d62c3423_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e157c-7b1d-7139-be87-5e07d62c3423" xlink:to="loc_dei_EntityDomain_019e157c-7b1d-7139-be87-5e07d62c3423_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e157c-7b1d-7add-8355-8c50171f544e" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e157c-7b1d-7139-be87-5e07d62c3423" xlink:to="loc_dei_EntityDomain_019e157c-7b1d-7add-8355-8c50171f544e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e157c-7b1d-7e29-87c8-7dc795968025" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e157c-7b1d-7add-8355-8c50171f544e" xlink:to="loc_hpq_EBP004Member_019e157c-7b1d-7e29-87c8-7dc795968025" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusTextBlock_019e157c-7b1d-7c50-bfd3-9752a87df6b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanTaxStatusTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusLineItems_019e157c-7b1d-70b0-b4a5-d2e2450f43ec" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanTaxStatusTextBlock_019e157c-7b1d-7c50-bfd3-9752a87df6b6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactions" xlink:type="simple" xlink:href="hpq-20260609.xsd#RelatedPartyandPartyinInterestTransactions"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactions" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e6-efab-7144-b3cc-fd450314d69e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e6-efab-7e63-8ad0-d12c69e8a879" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e6-efab-7144-b3cc-fd450314d69e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e6-efab-7e63-8ad0-d12c69e8a879" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e6-efab-716b-89c6-cd6035821cbe" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e6-efab-7e63-8ad0-d12c69e8a879" xlink:to="loc_dei_LegalEntityAxis_019e15e6-efab-716b-89c6-cd6035821cbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e6-efab-716b-89c6-cd6035821cbe_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e6-efab-716b-89c6-cd6035821cbe" xlink:to="loc_dei_EntityDomain_019e15e6-efab-716b-89c6-cd6035821cbe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e6-efab-755f-9015-fb94bd613d76" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e6-efab-716b-89c6-cd6035821cbe" xlink:to="loc_dei_EntityDomain_019e15e6-efab-755f-9015-fb94bd613d76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15e6-efab-741c-9b33-b6d6ce0ad28c" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e6-efab-755f-9015-fb94bd613d76" xlink:to="loc_hpq_EBP004Member_019e15e6-efab-741c-9b33-b6d6ce0ad28c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTextBlock_019e15e6-efab-73ca-a5cb-c24c6238b0f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e6-efab-7144-b3cc-fd450314d69e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTextBlock_019e15e6-efab-73ca-a5cb-c24c6238b0f0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RiskandUncertainties" xlink:type="simple" xlink:href="hpq-20260609.xsd#RiskandUncertainties"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RiskandUncertainties" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpRiskAndUncertaintyLineItems_019e15f4-b3f4-7ba8-8ea3-6afc92c183cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpRiskAndUncertaintyLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpRiskAndUncertaintyTable_019e15f4-b3f4-7408-b795-abda8ca3a6c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpRiskAndUncertaintyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EbpRiskAndUncertaintyLineItems_019e15f4-b3f4-7ba8-8ea3-6afc92c183cc" xlink:to="loc_us-gaap-ebp_EbpRiskAndUncertaintyTable_019e15f4-b3f4-7408-b795-abda8ca3a6c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EbpRiskAndUncertaintyTable_019e15f4-b3f4-7408-b795-abda8ca3a6c1" xlink:to="loc_dei_LegalEntityAxis_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de" xlink:to="loc_dei_EntityDomain_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15f4-b3f4-7a08-b3f6-711d40d07e97" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15f4-b3f4-7215-bfbd-6f9f9f8d49de" xlink:to="loc_dei_EntityDomain_019e15f4-b3f4-7a08-b3f6-711d40d07e97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15f4-b3f4-70b9-8398-b2717916130c" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15f4-b3f4-7a08-b3f6-711d40d07e97" xlink:to="loc_hpq_EBP004Member_019e15f4-b3f4-70b9-8398-b2717916130c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRiskAndUncertaintyTextBlock_019e15f4-b3f4-7e31-b384-a76c34ad6b78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRiskAndUncertaintyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpRiskAndUncertaintyLineItems_019e15f4-b3f4-7ba8-8ea3-6afc92c183cc" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRiskAndUncertaintyTextBlock_019e15f4-b3f4-7e31-b384-a76c34ad6b78" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500" xlink:type="simple" xlink:href="hpq-20260609.xsd#ReconciliationofFinancialStatementstoForm5500"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15db-7fd2-7c08-a82a-0ab05a6d8979" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15db-7fd1-7555-bf2e-ccab93c8a635" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15db-7fd2-7c08-a82a-0ab05a6d8979" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15db-7fd1-7555-bf2e-ccab93c8a635" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15db-7fd2-777c-8bcb-b84b9ab679ef" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15db-7fd1-7555-bf2e-ccab93c8a635" xlink:to="loc_dei_LegalEntityAxis_019e15db-7fd2-777c-8bcb-b84b9ab679ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15db-7fd2-777c-8bcb-b84b9ab679ef_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15db-7fd2-777c-8bcb-b84b9ab679ef" xlink:to="loc_dei_EntityDomain_019e15db-7fd2-777c-8bcb-b84b9ab679ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15db-7fd2-7101-87c8-2da7e48641f1" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15db-7fd2-777c-8bcb-b84b9ab679ef" xlink:to="loc_dei_EntityDomain_019e15db-7fd2-7101-87c8-2da7e48641f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15db-7fd2-7636-ab12-9691aab0ad58" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15db-7fd2-7101-87c8-2da7e48641f1" xlink:to="loc_hpq_EBP004Member_019e15db-7fd2-7636-ab12-9691aab0ad58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TextBlock_019e15db-7fd2-7d70-aa6a-0d5070b13595" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15db-7fd2-7c08-a82a-0ab05a6d8979" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TextBlock_019e15db-7fd2-7d70-aa6a-0d5070b13595" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SubsequentEvents" xlink:type="simple" xlink:href="hpq-20260609.xsd#SubsequentEvents"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SubsequentEvents" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpSubsequentEventLineItems_019e1608-f4c0-764b-a34d-8f119344ca25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpSubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpSubsequentEventTable_019e1608-f4c0-7dbd-a9ac-2859579993fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpSubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EbpSubsequentEventLineItems_019e1608-f4c0-764b-a34d-8f119344ca25" xlink:to="loc_us-gaap-ebp_EbpSubsequentEventTable_019e1608-f4c0-7dbd-a9ac-2859579993fd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1608-f4c0-7a87-9bc5-84dbe5a10515" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EbpSubsequentEventTable_019e1608-f4c0-7dbd-a9ac-2859579993fd" xlink:to="loc_dei_LegalEntityAxis_019e1608-f4c0-7a87-9bc5-84dbe5a10515" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1608-f4c0-7a87-9bc5-84dbe5a10515_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1608-f4c0-7a87-9bc5-84dbe5a10515" xlink:to="loc_dei_EntityDomain_019e1608-f4c0-7a87-9bc5-84dbe5a10515_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1608-f4c0-73a4-8d98-2d235e11a535" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1608-f4c0-7a87-9bc5-84dbe5a10515" xlink:to="loc_dei_EntityDomain_019e1608-f4c0-73a4-8d98-2d235e11a535" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1608-f4c0-7140-aa4c-bba1211f4914" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1608-f4c0-73a4-8d98-2d235e11a535" xlink:to="loc_hpq_EBP004Member_019e1608-f4c0-7140-aa4c-bba1211f4914" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanSubsequentEventTextBlock_019e1608-f4c0-745c-8769-16ff68279d96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanSubsequentEventTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpSubsequentEventLineItems_019e1608-f4c0-764b-a34d-8f119344ca25" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanSubsequentEventTextBlock_019e1608-f4c0-745c-8769-16ff68279d96" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYear" xlink:type="simple" xlink:href="hpq-20260609.xsd#ScheduleHLine4iScheduleofAssetsHeldAtEndofYear"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYear" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-be7b-7175-b9e9-fd36a453ea98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e156f-f9a9-777f-98f5-32eea57f1515" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-be7b-7175-b9e9-fd36a453ea98" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e156f-f9a9-777f-98f5-32eea57f1515" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1570-be7b-7aaa-9828-88dc66aa2dcc" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e156f-f9a9-777f-98f5-32eea57f1515" xlink:to="loc_dei_LegalEntityAxis_019e1570-be7b-7aaa-9828-88dc66aa2dcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-be7b-7aaa-9828-88dc66aa2dcc_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1570-be7b-7aaa-9828-88dc66aa2dcc" xlink:to="loc_dei_EntityDomain_019e1570-be7b-7aaa-9828-88dc66aa2dcc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-be7b-7c7c-8910-f6b8e252707f" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1570-be7b-7aaa-9828-88dc66aa2dcc" xlink:to="loc_dei_EntityDomain_019e1570-be7b-7c7c-8910-f6b8e252707f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1570-be7b-7744-a07c-fa96f19325de" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1570-be7b-7c7c-8910-f6b8e252707f" xlink:to="loc_hpq_EBP004Member_019e1570-be7b-7744-a07c-fa96f19325de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTableTextBlock_019e1570-be7b-76cd-84e2-4d8850e82d72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-be7b-7175-b9e9-fd36a453ea98" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTableTextBlock_019e1570-be7b-76cd-84e2-4d8850e82d72" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="hpq-20260609.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1581-54df-7eb7-924b-aae48510b903" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:to="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1581-54df-7eb7-924b-aae48510b903" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1581-54df-7908-ba3f-15dc1bf2df69" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1581-54df-7eb7-924b-aae48510b903" xlink:to="loc_dei_LegalEntityAxis_019e1581-54df-7908-ba3f-15dc1bf2df69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1581-54df-7908-ba3f-15dc1bf2df69_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1581-54df-7908-ba3f-15dc1bf2df69" xlink:to="loc_dei_EntityDomain_019e1581-54df-7908-ba3f-15dc1bf2df69_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1581-54df-7608-a2b2-d6f172244341" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1581-54df-7908-ba3f-15dc1bf2df69" xlink:to="loc_dei_EntityDomain_019e1581-54df-7608-a2b2-d6f172244341" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1581-54df-7112-9d31-425023efa3a4" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1581-54df-7608-a2b2-d6f172244341" xlink:to="loc_hpq_EBP004Member_019e1581-54df-7112-9d31-425023efa3a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock_019e1581-54df-7d91-9b85-ffdbff163ace" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock_019e1581-54df-7d91-9b85-ffdbff163ace" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanUseOfEstimatePolicyTextBlock_019e1581-fe24-758a-b36e-7682f052edc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanUseOfEstimatePolicyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanUseOfEstimatePolicyTextBlock_019e1581-fe24-758a-b36e-7682f052edc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentPolicyTextBlock_019e1582-9032-7f6d-b140-189dd46d1064" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentPolicyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentPolicyTextBlock_019e1582-9032-7f6d-b140-189dd46d1064" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock_019e1583-1c5f-7e49-bede-8a7f1879e0e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1581-54df-79d2-aaa0-0b5c82b00470" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock_019e1583-1c5f-7e49-bede-8a7f1879e0e7" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="hpq-20260609.xsd#FairValueMeasurementsTables"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FairValueMeasurementsTables" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e4-3c6e-779e-a476-f3eca1e6ed7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e4-3c6e-7d6d-8941-1dfc07f0c38c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e4-3c6e-779e-a476-f3eca1e6ed7b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e4-3c6e-7d6d-8941-1dfc07f0c38c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e4-3c6e-7b95-8c87-29cb699a2678" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e4-3c6e-7d6d-8941-1dfc07f0c38c" xlink:to="loc_dei_LegalEntityAxis_019e15e4-3c6e-7b95-8c87-29cb699a2678" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e4-3c6e-7b95-8c87-29cb699a2678_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e4-3c6e-7b95-8c87-29cb699a2678" xlink:to="loc_dei_EntityDomain_019e15e4-3c6e-7b95-8c87-29cb699a2678_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e4-3c6e-7f90-8f0e-e6c99c3539f3" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e4-3c6e-7b95-8c87-29cb699a2678" xlink:to="loc_dei_EntityDomain_019e15e4-3c6e-7f90-8f0e-e6c99c3539f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15e4-3c6e-7e60-9d79-b39efbe61c87" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e4-3c6e-7f90-8f0e-e6c99c3539f3" xlink:to="loc_hpq_EBP004Member_019e15e4-3c6e-7e60-9d79-b39efbe61c87" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTableTextBlock_019e15e4-3c6e-78a8-adff-c0dcabf8fa0d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e4-3c6e-779e-a476-f3eca1e6ed7b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTableTextBlock_019e15e4-3c6e-78a8-adff-c0dcabf8fa0d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500Tables" xlink:type="simple" xlink:href="hpq-20260609.xsd#ReconciliationofFinancialStatementstoForm5500Tables"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500Tables" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dc-77bb-77ce-9582-6c6ec95db1c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dc-77bb-7f4e-8a3d-51b5b678f47c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dc-77bb-77ce-9582-6c6ec95db1c6" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dc-77bb-7f4e-8a3d-51b5b678f47c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15dc-77bb-788c-b924-a663641c2365" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dc-77bb-7f4e-8a3d-51b5b678f47c" xlink:to="loc_dei_LegalEntityAxis_019e15dc-77bb-788c-b924-a663641c2365" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15dc-77bb-788c-b924-a663641c2365_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15dc-77bb-788c-b924-a663641c2365" xlink:to="loc_dei_EntityDomain_019e15dc-77bb-788c-b924-a663641c2365_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15dc-77bb-7c86-bf55-e02bf61977f0" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15dc-77bb-788c-b924-a663641c2365" xlink:to="loc_dei_EntityDomain_019e15dc-77bb-7c86-bf55-e02bf61977f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15dc-77bb-7586-943c-ea9d7722a62c" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15dc-77bb-7c86-bf55-e02bf61977f0" xlink:to="loc_hpq_EBP004Member_019e15dc-77bb-7586-943c-ea9d7722a62c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TableTextBlock_019e15dc-77bb-72a8-813c-6078393cf8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dc-77bb-77ce-9582-6c6ec95db1c6" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500TableTextBlock_019e15dc-77bb-72a8-813c-6078393cf8b9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/DescriptionofthePlanDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#DescriptionofthePlanDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/DescriptionofthePlanDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-3e67-7739-bfcc-d6cf248e9e85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-3e67-7739-bfcc-d6cf248e9e85" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1506-3e67-77b1-99c4-03eb7cbb784b" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanTable_019e1506-3e67-7739-bfcc-d6cf248e9e85" xlink:to="loc_dei_LegalEntityAxis_019e1506-3e67-77b1-99c4-03eb7cbb784b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1506-3e67-77b1-99c4-03eb7cbb784b_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1506-3e67-77b1-99c4-03eb7cbb784b" xlink:to="loc_dei_EntityDomain_019e1506-3e67-77b1-99c4-03eb7cbb784b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1506-3e67-772a-ab9f-d9bb3fb276bb" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1506-3e67-77b1-99c4-03eb7cbb784b" xlink:to="loc_dei_EntityDomain_019e1506-3e67-772a-ab9f-d9bb3fb276bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1511-3b95-7e3f-97e9-996d45e45889" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1506-3e67-772a-ab9f-d9bb3fb276bb" xlink:to="loc_hpq_EBP004Member_019e1511-3b95-7e3f-97e9-996d45e45889" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPParticipantContributionsMaximumPlanBalancePercentInCommonStockFund_019e3e71-c8a4-7d0d-a7fc-0954d6a16dbc" xlink:href="hpq-20260609.xsd#hpq_EBPParticipantContributionsMaximumPlanBalancePercentInCommonStockFund"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPParticipantContributionsMaximumPlanBalancePercentInCommonStockFund_019e3e71-c8a4-7d0d-a7fc-0954d6a16dbc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantContributionAutomaticDeferralRate_019e3dce-7fe3-7be7-878b-5591877ab8be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanParticipantContributionAutomaticDeferralRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantContributionAutomaticDeferralRate_019e3dce-7fe3-7be7-878b-5591877ab8be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage_019e4b04-aa4b-7994-8154-6646625eeb28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage_019e4b04-aa4b-7994-8154-6646625eeb28" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_BPParticipantContributionAfterTaxMaximumAnnualCompensationToTotalCompensationPercentage_019e1517-de05-73f3-8c72-7ae90fdbb2c9" xlink:href="hpq-20260609.xsd#hpq_BPParticipantContributionAfterTaxMaximumAnnualCompensationToTotalCompensationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_BPParticipantContributionAfterTaxMaximumAnnualCompensationToTotalCompensationPercentage_019e1517-de05-73f3-8c72-7ae90fdbb2c9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionMatchingPercentage_019e1553-5f7d-76e0-922e-eb2d0515edd7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerContributionMatchingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionMatchingPercentage_019e1553-5f7d-76e0-922e-eb2d0515edd7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionParticipantCompensationMatchedPercentage_019e1554-37a5-744c-ba9e-5147d7cdfbe0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerContributionParticipantCompensationMatchedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerContributionParticipantCompensationMatchedPercentage_019e1554-37a5-744c-ba9e-5147d7cdfbe0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPEmployerContributionMinimumVestingAge_019e6ae8-803e-7aa9-9ed2-559d9f641103" xlink:href="hpq-20260609.xsd#hpq_EBPEmployerContributionMinimumVestingAge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPEmployerContributionMinimumVestingAge_019e6ae8-803e-7aa9-9ed2-559d9f641103" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPEmployerRequisiteVestingServicePeriod_019e8e0f-227d-7da6-8d8e-70f88677ab81" xlink:href="hpq-20260609.xsd#hpq_EBPEmployerRequisiteVestingServicePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPEmployerRequisiteVestingServicePeriod_019e8e0f-227d-7da6-8d8e-70f88677ab81" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPEmployerContributionVestingServicePeriod_019e1559-88f7-7011-8907-41bdeca0d0aa" xlink:href="hpq-20260609.xsd#hpq_EBPEmployerContributionVestingServicePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPEmployerContributionVestingServicePeriod_019e1559-88f7-7011-8907-41bdeca0d0aa" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPEmployerContributionVestingPercentage_019e1557-5255-7232-8e28-2e314f82fdc0" xlink:href="hpq-20260609.xsd#hpq_EBPEmployerContributionVestingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPEmployerContributionVestingPercentage_019e1557-5255-7232-8e28-2e314f82fdc0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPEmployerContributionMaximumVestingAge_019e1558-2c0f-7ddb-b79e-7ec1bbacbf6a" xlink:href="hpq-20260609.xsd#hpq_EBPEmployerContributionMaximumVestingAge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPEmployerContributionMaximumVestingAge_019e1558-2c0f-7ddb-b79e-7ec1bbacbf6a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPNoteReceivableFromParticipantGeneralLoanMaximumBorrowingTerm_019e155c-b82f-7159-859a-e5c0c6768734" xlink:href="hpq-20260609.xsd#hpq_EBPNoteReceivableFromParticipantGeneralLoanMaximumBorrowingTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPNoteReceivableFromParticipantGeneralLoanMaximumBorrowingTerm_019e155c-b82f-7159-859a-e5c0c6768734" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPNoteReceivableFromParticipantAccountPrimaryResidenceMaximumBorrowingTerm_019e155c-ff73-7613-8747-fd6fdb092346" xlink:href="hpq-20260609.xsd#hpq_EBPNoteReceivableFromParticipantAccountPrimaryResidenceMaximumBorrowingTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPNoteReceivableFromParticipantAccountPrimaryResidenceMaximumBorrowingTerm_019e155c-ff73-7613-8747-fd6fdb092346" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMinimumBorrowingAmount_019e155a-8dfb-782c-be00-b8bdf8a84718" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMinimumBorrowingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMinimumBorrowingAmount_019e155a-8dfb-782c-be00-b8bdf8a84718" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingAmount_019e155a-aa52-7245-819a-2264139b56c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingAmount_019e155a-aa52-7245-819a-2264139b56c0" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingToTotalAccountPercentage_019e155b-d3a2-773a-a834-5ab45781f136" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingToTotalAccountPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNoteReceivableFromParticipantAccountMaximumBorrowingToTotalAccountPercentage_019e155b-d3a2-773a-a834-5ab45781f136" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPParticipantLoanBasisSpreadOnVariableRate_019e155b-3135-7578-a32a-77ac04edab94" xlink:href="hpq-20260609.xsd#hpq_EBPParticipantLoanBasisSpreadOnVariableRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPParticipantLoanBasisSpreadOnVariableRate_019e155b-3135-7578-a32a-77ac04edab94" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccount_019e1560-d966-72b3-9316-8f62f363b56c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccount_019e1560-d966-72b3-9316-8f62f363b56c" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccountDecreaseForEmployerContribution_019e155f-a49d-7cee-9d70-acd18ed1b0d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccountDecreaseForEmployerContribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanForfeitedNonvestedAccountDecreaseForEmployerContribution_019e155f-a49d-7cee-9d70-acd18ed1b0d7" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_BPAdministrativeExpensePerAccount_019e3dca-0b39-71a0-af83-f37d67314afa" xlink:href="hpq-20260609.xsd#hpq_BPAdministrativeExpensePerAccount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_BPAdministrativeExpensePerAccount_019e3dca-0b39-71a0-af83-f37d67314afa" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPRevenueSharingAmountToOffsetPlanExpenses_019e3dc6-4f1a-7734-965c-f7d8269f77a1" xlink:href="hpq-20260609.xsd#hpq_EBPRevenueSharingAmountToOffsetPlanExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPRevenueSharingAmountToOffsetPlanExpenses_019e3dc6-4f1a-7734-965c-f7d8269f77a1" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPUndistributedAdministrativeRevenue_019e3dc8-eaaa-78b7-b5c8-bfd46a53ddc7" xlink:href="hpq-20260609.xsd#hpq_EBPUndistributedAdministrativeRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanDescriptionOfPlanLineItems_019e1506-3e67-77fa-9c5e-4d1f76286bb1" xlink:to="loc_hpq_EBPUndistributedAdministrativeRevenue_019e3dc8-eaaa-78b7-b5c8-bfd46a53ddc7" xlink:type="arc" order="21"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#SummaryofSignificantAccountingPoliciesDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1587-6de1-79e5-b062-bf093f4feb9e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1587-6de1-7aa5-a61b-771c6b286871" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1587-6de1-79e5-b062-bf093f4feb9e" xlink:to="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1587-6de1-7aa5-a61b-771c6b286871" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1587-6de1-715d-a5d8-ce113b53759e" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleTable_019e1587-6de1-7aa5-a61b-771c6b286871" xlink:to="loc_dei_LegalEntityAxis_019e1587-6de1-715d-a5d8-ce113b53759e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1587-6de1-715d-a5d8-ce113b53759e_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1587-6de1-715d-a5d8-ce113b53759e" xlink:to="loc_dei_EntityDomain_019e1587-6de1-715d-a5d8-ce113b53759e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1587-6de1-761d-8381-4ad3c67d9d07" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1587-6de1-715d-a5d8-ce113b53759e" xlink:to="loc_dei_EntityDomain_019e1587-6de1-761d-8381-4ad3c67d9d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1587-6de1-7d9a-8bcc-76efe47b756c" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1587-6de1-761d-8381-4ad3c67d9d07" xlink:to="loc_hpq_EBP004Member_019e1587-6de1-7d9a-8bcc-76efe47b756c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantIncreaseForAllocationToWithdrawingParticipantNotYetPaid_019e4b07-997f-7876-95f3-43567dc2ca6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantIncreaseForAllocationToWithdrawingParticipantNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EbpAccountingStandardUpdateAndChangeInAccountingPrincipleLineItems_019e1587-6de1-79e5-b062-bf093f4feb9e" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantIncreaseForAllocationToWithdrawingParticipantNotYetPaid_019e4b07-997f-7876-95f3-43567dc2ca6c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#FairValueMeasurementsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/FairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e5-1f0e-7fc6-9e4c-5bbb6c9391e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e5-1f0e-7f86-9272-400305bb5bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e5-1f0e-7fc6-9e4c-5bbb6c9391e4" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e5-1f0e-7f86-9272-400305bb5bc8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e15e5-1f0e-745e-9687-4f595b8eec50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e5-1f0e-7f86-9272-400305bb5bc8" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e15e5-1f0e-745e-9687-4f595b8eec50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-745e-9687-4f595b8eec50_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e15e5-1f0e-745e-9687-4f595b8eec50" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-745e-9687-4f595b8eec50_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-7096-a2d2-6bde604686ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e15e5-1f0e-745e-9687-4f595b8eec50" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-7096-a2d2-6bde604686ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel12And3Member_019e15e5-1f0e-7e80-8a1c-13e878a08dd1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel12And3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-7096-a2d2-6bde604686ed" xlink:to="loc_us-gaap_FairValueInputsLevel12And3Member_019e15e5-1f0e-7e80-8a1c-13e878a08dd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e15e5-1f0e-734d-a8c4-e806248893a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueInputsLevel12And3Member_019e15e5-1f0e-7e80-8a1c-13e878a08dd1" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e15e5-1f0e-734d-a8c4-e806248893a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e15e5-1f0e-7092-8ff6-bd9900ac74c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueInputsLevel12And3Member_019e15e5-1f0e-7e80-8a1c-13e878a08dd1" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e15e5-1f0e-7092-8ff6-bd9900ac74c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_019e15e5-1f0e-73eb-b248-9cc6f4f22bc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e15e5-1f0e-7096-a2d2-6bde604686ed" xlink:to="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_019e15e5-1f0e-73eb-b248-9cc6f4f22bc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e15e5-1f0e-7adf-9b6a-02c65bca13b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e5-1f0e-7f86-9272-400305bb5bc8" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e15e5-1f0e-7adf-9b6a-02c65bca13b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7adf-9b6a-02c65bca13b4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e5-1f0e-7adf-9b6a-02c65bca13b4" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7adf-9b6a-02c65bca13b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e5-1f0e-7adf-9b6a-02c65bca13b4" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanSelfDirectedBrokerageAccountMember_019e15e5-1f0e-7d1a-9ccf-fa2fe8ade44c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanSelfDirectedBrokerageAccountMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanSelfDirectedBrokerageAccountMember_019e15e5-1f0e-7d1a-9ccf-fa2fe8ade44c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e4b10-e97a-7bdd-8d7d-9914b55cb717" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e4b10-e97a-7bdd-8d7d-9914b55cb717" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_019e15e5-1f0e-78c8-bc8e-e16b0ebce306" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_019e15e5-1f0e-78c8-bc8e-e16b0ebce306" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MutualFundMember_019e15e5-1f0e-7c47-b688-6da2feea04e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MutualFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:to="loc_us-gaap_MutualFundMember_019e15e5-1f0e-7c47-b688-6da2feea04e2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember_019e15e5-1f0e-7467-8482-e211792eb819" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e5-1f0e-7b78-b616-3e65f5841e0a" xlink:to="loc_us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember_019e15e5-1f0e-7467-8482-e211792eb819" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e5-1f0e-72f8-b7da-550124cf6a35" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavTable_019e15e5-1f0e-7f86-9272-400305bb5bc8" xlink:to="loc_dei_LegalEntityAxis_019e15e5-1f0e-72f8-b7da-550124cf6a35" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e5-1f0e-72f8-b7da-550124cf6a35_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e5-1f0e-72f8-b7da-550124cf6a35" xlink:to="loc_dei_EntityDomain_019e15e5-1f0e-72f8-b7da-550124cf6a35_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e5-1f0e-764e-8a88-3c72dcff7ca6" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e5-1f0e-72f8-b7da-550124cf6a35" xlink:to="loc_dei_EntityDomain_019e15e5-1f0e-764e-8a88-3c72dcff7ca6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15e5-1f0e-7193-bfbb-146a68625225" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e5-1f0e-764e-8a88-3c72dcff7ca6" xlink:to="loc_hpq_EBP004Member_019e15e5-1f0e-7193-bfbb-146a68625225" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e5-1f0e-772c-8056-65c7daf461bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentFairValueAndNavLineItems_019e15e5-1f0e-7fc6-9e4c-5bbb6c9391e4" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e5-1f0e-772c-8056-65c7daf461bd" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactionsDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#RelatedPartyandPartyinInterestTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-7e49-ad6d-89b941f0d540_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-7e49-ad6d-89b941f0d540_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e15e7-ddcb-7675-a007-53ece11dc4f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e15e7-ddcb-7675-a007-53ece11dc4f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:to="loc_dei_EntityDomain_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:to="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15f8-d0eb-78e4-8b40-aeb47f7d224e" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:to="loc_hpq_EBP004Member_019e15f8-d0eb-78e4-8b40-aeb47f7d224e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIdentifierAxis_019e15fa-8746-7bc1-b88d-473eba382434" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIdentifierAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_us-gaap_InvestmentIdentifierAxis_019e15fa-8746-7bc1-b88d-473eba382434" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7538-a3c2-762e4faf395b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7538-a3c2-762e4faf395b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPVanguardGroupMember_019e8e47-cac3-7469-9db7-c131490a18ad" xlink:href="hpq-20260609.xsd#hpq_EBPVanguardGroupMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:to="loc_hpq_EBPVanguardGroupMember_019e8e47-cac3-7469-9db7-c131490a18ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPBlackrockInc.Member_019e8e47-cac3-7e6a-89c6-b4288b21550b" xlink:href="hpq-20260609.xsd#hpq_EBPBlackrockInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:to="loc_hpq_EBPBlackrockInc.Member_019e8e47-cac3-7e6a-89c6-b4288b21550b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e15e7-ddcb-7770-b2f5-f354a389f209" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e15e7-ddcb-7770-b2f5-f354a389f209" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e7-ddcb-7630-a777-241a808c32ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e7-ddcb-7630-a777-241a808c32ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost_019e15e9-6faf-7673-96e4-a44b09216ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost_019e15e9-6faf-7673-96e4-a44b09216ef4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice_019e15e9-a13f-7c8a-8579-87e7739e16d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice_019e15e9-a13f-7c8a-8579-87e7739e16d0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment_019e15ee-3176-7bc9-a219-9c7a61442ea8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment_019e15ee-3176-7bc9-a219-9c7a61442ea8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPRelatedPartyEmployerStockOwnedPercentage_019e4b0a-daae-7225-af9c-63acc51f6444" xlink:href="hpq-20260609.xsd#hpq_EBPRelatedPartyEmployerStockOwnedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_hpq_EBPRelatedPartyEmployerStockOwnedPercentage_019e4b0a-daae-7225-af9c-63acc51f6444" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactionsDetails_1" xlink:type="simple" xlink:href="hpq-20260609.xsd#RelatedPartyandPartyinInterestTransactionsDetails_1"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/RelatedPartyandPartyinInterestTransactionsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-7e49-ad6d-89b941f0d540_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-7e49-ad6d-89b941f0d540_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e15e7-ddcb-7e49-ad6d-89b941f0d540" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e15e7-ddcb-7675-a007-53ece11dc4f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e15e7-ddcb-72dd-a742-fc65259a6855" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanEmployerCommonStockMember_019e15e7-ddcb-7675-a007-53ece11dc4f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:to="loc_dei_EntityDomain_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15e7-ddcb-7563-98e7-53f4fc4fcfcf" xlink:to="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15f8-d0eb-78e4-8b40-aeb47f7d224e" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15e7-ddcb-71cc-9b39-9634ee41beaa" xlink:to="loc_hpq_EBP004Member_019e15f8-d0eb-78e4-8b40-aeb47f7d224e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsTable_019e15e7-ddcb-725a-a4ad-40f5055506cd" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7538-a3c2-762e4faf395b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7538-a3c2-762e4faf395b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestAxis_019e8e47-cac3-7538-a3c2-762e4faf395b" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPVanguardGroupMember_019e8e47-cac3-7469-9db7-c131490a18ad" xlink:href="hpq-20260609.xsd#hpq_EBPVanguardGroupMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:to="loc_hpq_EBPVanguardGroupMember_019e8e47-cac3-7469-9db7-c131490a18ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPBlackrockInc.Member_019e8e47-cac3-7e6a-89c6-b4288b21550b" xlink:href="hpq-20260609.xsd#hpq_EBPBlackrockInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestDomain_019e8e47-cac3-7c5b-8e8a-34615d516174" xlink:to="loc_hpq_EBPBlackrockInc.Member_019e8e47-cac3-7e6a-89c6-b4288b21550b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e15e7-ddcb-7770-b2f5-f354a389f209" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e15e7-ddcb-7770-b2f5-f354a389f209" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e7-ddcb-7630-a777-241a808c32ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentExcludingPlanInterestInMasterTrustFairValue_019e15e7-ddcb-7630-a777-241a808c32ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost_019e15e9-6faf-7673-96e4-a44b09216ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentAcquiredExcludingPlanInterestInMasterTrustCost_019e15e9-6faf-7673-96e4-a44b09216ef4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice_019e15e9-a13f-7c8a-8579-87e7739e16d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentSoldExcludingPlanInterestInMasterTrustSellingPrice_019e15e9-a13f-7c8a-8579-87e7739e16d0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment_019e15ee-3176-7bc9-a219-9c7a61442ea8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForDividendIncomeOnInvestment_019e15ee-3176-7bc9-a219-9c7a61442ea8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBPRelatedPartyEmployerStockOwnedPercentage_019e4b0a-daae-7225-af9c-63acc51f6444" xlink:href="hpq-20260609.xsd#hpq_EBPRelatedPartyEmployerStockOwnedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanRelatedPartyAndPartyInInterestTransactionsLineItems_019e15e7-ddcb-75b3-8d3f-c7afc28c10c9" xlink:to="loc_hpq_EBPRelatedPartyEmployerStockOwnedPercentage_019e4b0a-daae-7225-af9c-63acc51f6444" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500ReconciliationofNetAssetsAvailableforBenefitDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#ReconciliationofFinancialStatementstoForm5500ReconciliationofNetAssetsAvailableforBenefitDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500ReconciliationofNetAssetsAvailableforBenefitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dd-b6e4-7d66-8133-8b638d47bb0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dd-b6e4-7f05-8c12-60ec84a848e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dd-b6e4-7d66-8133-8b638d47bb0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dd-b6e4-7f05-8c12-60ec84a848e8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15dd-b6e4-7361-83ac-5c55b54eab0d" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15dd-b6e4-7f05-8c12-60ec84a848e8" xlink:to="loc_dei_LegalEntityAxis_019e15dd-b6e4-7361-83ac-5c55b54eab0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15dd-b6e4-7361-83ac-5c55b54eab0d_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15dd-b6e4-7361-83ac-5c55b54eab0d" xlink:to="loc_dei_EntityDomain_019e15dd-b6e4-7361-83ac-5c55b54eab0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15dd-b6e4-71e5-9f36-5a8b0f4ac3b8" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15dd-b6e4-7361-83ac-5c55b54eab0d" xlink:to="loc_dei_EntityDomain_019e15dd-b6e4-71e5-9f36-5a8b0f4ac3b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15dd-b6e4-749b-b258-22bf4007f1ad" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15dd-b6e4-71e5-9f36-5a8b0f4ac3b8" xlink:to="loc_hpq_EBP004Member_019e15dd-b6e4-749b-b258-22bf4007f1ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e15dd-b6e4-7495-aa1e-5af678e36dd9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dd-b6e4-7d66-8133-8b638d47bb0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanNetAssetAvailableForBenefit_019e15dd-b6e4-7495-aa1e-5af678e36dd9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid_019e3e62-0e2f-7a65-9d45-f21bb12ce908" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dd-b6e4-7d66-8133-8b638d47bb0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid_019e3e62-0e2f-7a65-9d45-f21bb12ce908" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionNetAssetAvailableForBenefit_019e15dd-b6e4-7c01-ab21-9c62c10106f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionNetAssetAvailableForBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15dd-b6e4-7d66-8133-8b638d47bb0a" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionNetAssetAvailableForBenefit_019e15dd-b6e4-7c01-ab21-9c62c10106f9" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500ReconciliationofBenefitsPaidtoParticipantsDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#ReconciliationofFinancialStatementstoForm5500ReconciliationofBenefitsPaidtoParticipantsDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ReconciliationofFinancialStatementstoForm5500ReconciliationofBenefitsPaidtoParticipantsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15df-ea27-72e5-8ef5-9ab75a33ea4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15df-ea27-72e5-8ef5-9ab75a33ea4b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e15df-ea27-7e95-ae77-84fd7142ad8b" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500Table_019e15df-ea27-72e5-8ef5-9ab75a33ea4b" xlink:to="loc_dei_LegalEntityAxis_019e15df-ea27-7e95-ae77-84fd7142ad8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15df-ea27-7e95-ae77-84fd7142ad8b_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e15df-ea27-7e95-ae77-84fd7142ad8b" xlink:to="loc_dei_EntityDomain_019e15df-ea27-7e95-ae77-84fd7142ad8b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e15df-ea27-7d58-9986-06372f14927c" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e15df-ea27-7e95-ae77-84fd7142ad8b" xlink:to="loc_dei_EntityDomain_019e15df-ea27-7d58-9986-06372f14927c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e15df-ea27-72d9-af2b-1331d5b402d5" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e15df-ea27-7d58-9986-06372f14927c" xlink:to="loc_hpq_EBP004Member_019e15df-ea27-72d9-af2b-1331d5b402d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant_019e15df-ea27-7e52-b61d-5ebc7d304175" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant_019e15df-ea27-7e52-b61d-5ebc7d304175" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid_019e4b0f-98f3-7c77-8686-32d6b2f812c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500NetAssetAvailableForBenefitAllocationToWithdrawingParticipantNotYetPaid_019e4b0f-98f3-7c77-8686-32d6b2f812c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantDecreaseForDeemedDistributionPriorPeriod_019e15df-ea27-765b-ba23-8ff173bef8e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantDecreaseForDeemedDistributionPriorPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500PaymentToParticipantDecreaseForDeemedDistributionPriorPeriod_019e15df-ea27-765b-ba23-8ff173bef8e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionPaymentToParticipant_019e15df-ea27-7bb8-a545-020aa81f0cdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionPaymentToParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanReconciliationToForm5500LineItems_019e15df-ea27-7708-a619-b637fbe0f70d" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanForm5500CaptionPaymentToParticipant_019e15df-ea27-7bb8-a545-020aa81f0cdd" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails" xlink:type="simple" xlink:href="hpq-20260609.xsd#ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIdentifierAxis_019e1570-616c-7451-8b2b-960a57316c18" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIdentifierAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_us-gaap_InvestmentIdentifierAxis_019e1570-616c-7451-8b2b-960a57316c18" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-616c-7fee-98ff-f8d80e5fc0b5_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:to="loc_dei_EntityDomain_019e1570-616c-7fee-98ff-f8d80e5fc0b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:to="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1570-616c-75a8-a84d-4be333cbb24b" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:to="loc_hpq_EBP004Member_019e1570-616c-75a8-a84d-4be333cbb24b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7898-b722-3d91a64c354b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7898-b722-3d91a64c354b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_019e1604-9aa6-719a-a319-b3c2ee84be04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_019e1604-9aa6-719a-a319-b3c2ee84be04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommonCollectiveTrustFairValueMember_019e1573-f183-7d35-8bb3-0660e8819e6c" xlink:href="hpq-20260609.xsd#hpq_CommonCollectiveTrustFairValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_hpq_CommonCollectiveTrustFairValueMember_019e1573-f183-7d35-8bb3-0660e8819e6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommonInvestmentTrustFairValueMember_019e1580-5562-788d-b540-64e3f2e4a837" xlink:href="hpq-20260609.xsd#hpq_CommonInvestmentTrustFairValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_hpq_CommonInvestmentTrustFairValueMember_019e1580-5562-788d-b540-64e3f2e4a837" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e3dd9-991d-786b-8b31-e684df2e6233_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:to="loc_srt_RangeMember_019e3dd9-991d-786b-8b31-e684df2e6233_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:to="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e3dd9-991d-77f2-8c48-fe360c1a81fa" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:to="loc_srt_MinimumMember_019e3dd9-991d-77f2-8c48-fe360c1a81fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e3dda-1db9-7d21-9d86-0f56ffe464c7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:to="loc_srt_MaximumMember_019e3dda-1db9-7d21-9d86-0f56ffe464c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_019e3dd6-3d29-7a95-9f83-550430a8ad00" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_dei_EntityTaxIdentificationNumber_019e3dd6-3d29-7a95-9f83-550430a8ad00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanPlanNumber_019e3dd6-5c23-71b7-bc77-689fe874f126" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanPlanNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanPlanNumber_019e3dd6-5c23-71b7-bc77-689fe874f126" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e1570-616c-7f39-be63-ac62c0233875" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e1570-616c-7f39-be63-ac62c0233875" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue_019e1570-616c-7a78-a7e0-7032bc0a1410" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue_019e1570-616c-7a78-a7e0-7032bc0a1410" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution_019e15f8-e511-78c4-8179-4cfe62570dca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution_019e15f8-e511-78c4-8179-4cfe62570dca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate_019e3dd9-991d-73e8-8b96-ceca8c01473b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate_019e3dd9-991d-73e8-8b96-ceca8c01473b" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails_1" xlink:type="simple" xlink:href="hpq-20260609.xsd#ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails_1"/>
  <link:definitionLink xlink:role="http://www.hp.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-616c-7fee-98ff-f8d80e5fc0b5_default" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:to="loc_dei_EntityDomain_019e1570-616c-7fee-98ff-f8d80e5fc0b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_019e1570-616c-7fee-98ff-f8d80e5fc0b5" xlink:to="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_EBP004Member_019e1570-616c-75a8-a84d-4be333cbb24b" xlink:href="hpq-20260609.xsd#hpq_EBP004Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_019e1570-616c-7dd8-9837-e8f350978bcb" xlink:to="loc_hpq_EBP004Member_019e1570-616c-75a8-a84d-4be333cbb24b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7898-b722-3d91a64c354b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7898-b722-3d91a64c354b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e1570-616c-7898-b722-3d91a64c354b" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_019e1604-9aa6-719a-a319-b3c2ee84be04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_019e1604-9aa6-719a-a319-b3c2ee84be04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommonCollectiveTrustFairValueMember_019e1573-f183-7d35-8bb3-0660e8819e6c" xlink:href="hpq-20260609.xsd#hpq_CommonCollectiveTrustFairValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_hpq_CommonCollectiveTrustFairValueMember_019e1573-f183-7d35-8bb3-0660e8819e6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hpq_CommonInvestmentTrustFairValueMember_019e1580-5562-788d-b540-64e3f2e4a837" xlink:href="hpq-20260609.xsd#hpq_CommonInvestmentTrustFairValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e1570-616c-7725-afb7-ac66d39e6ff8" xlink:to="loc_hpq_CommonInvestmentTrustFairValueMember_019e1580-5562-788d-b540-64e3f2e4a837" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentTable_019e1570-3540-7140-ad41-45c4ba1bf656" xlink:to="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e3dd9-991d-786b-8b31-e684df2e6233_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:to="loc_srt_RangeMember_019e3dd9-991d-786b-8b31-e684df2e6233_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e3dd9-991d-786b-8b31-e684df2e6233" xlink:to="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e3dd9-991d-77f2-8c48-fe360c1a81fa" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:to="loc_srt_MinimumMember_019e3dd9-991d-77f2-8c48-fe360c1a81fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e3dda-1db9-7d21-9d86-0f56ffe464c7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e3dd9-991d-797a-87c7-7c819f755f88" xlink:to="loc_srt_MaximumMember_019e3dda-1db9-7d21-9d86-0f56ffe464c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_019e3dd6-3d29-7a95-9f83-550430a8ad00" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_dei_EntityTaxIdentificationNumber_019e3dd6-3d29-7a95-9f83-550430a8ad00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanPlanNumber_019e3dd6-5c23-71b7-bc77-689fe874f126" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanPlanNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanPlanNumber_019e3dd6-5c23-71b7-bc77-689fe874f126" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e1570-616c-7f39-be63-ac62c0233875" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanInvestmentNumberOfShares_019e1570-616c-7f39-be63-ac62c0233875" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue_019e1570-616c-7a78-a7e0-7032bc0a1410" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentInvestmentExcludingPlanInterestInMasterTrustCurrentValue_019e1570-616c-7a78-a7e0-7032bc0a1410" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution_019e15f8-e511-78c4-8179-4cfe62570dca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanAssetHeldForInvestmentParticipantLoanAfterDeemedDistribution_019e15f8-e511-78c4-8179-4cfe62570dca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate_019e3dd9-991d-73e8-8b96-ceca8c01473b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/ebp/elts/us-gaap-ebp-2026.xsd#us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap-ebp_EmployeeBenefitPlanScheduleOfAssetHeldForInvestmentLineItems_019e1570-616c-78f7-bbd8-704fd7aeeb90" xlink:to="loc_us-gaap-ebp_EmployeeBenefitPlanParticipantLoanInterestRate_019e3dd9-991d-73e8-8b96-ceca8c01473b" xlink:type="arc" order="5"/>
  </link:definitionLink>
</link:linkbase>
