v3.25.3

Retirement and Post-Retirement Benefit Plans - Schedule of Weighted-Average Target Asset Allocations Across Benefit Plans (Details) | Oct. 31, 2025
--- | ---
Post-Retirement Benefit Plans |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 100.00%
Post-Retirement Benefit Plans | Equity-related investments |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
Post-Retirement Benefit Plans | Debt securities |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 100.00%
Post-Retirement Benefit Plans | Real estate |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
Post-Retirement Benefit Plans | Cash and cash equivalents |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
Post-Retirement Benefit Plans | Other |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
U.S. | Defined Benefit Plans |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 100.00%
U.S. | Defined Benefit Plans | Equity-related investments |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
U.S. | Defined Benefit Plans | Debt securities |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 92.00%
U.S. | Defined Benefit Plans | Real estate |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
U.S. | Defined Benefit Plans | Cash and cash equivalents |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 0.00%
U.S. | Defined Benefit Plans | Other |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 8.00%
Non-U.S. | Defined Benefit Plans |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 100.00%
Non-U.S. | Defined Benefit Plans | Equity-related investments |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 34.60%
Non-U.S. | Defined Benefit Plans | Debt securities |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 38.80%
Non-U.S. | Defined Benefit Plans | Real estate |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 9.10%
Non-U.S. | Defined Benefit Plans | Cash and cash equivalents |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 5.60%
Non-U.S. | Defined Benefit Plans | Other |
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items] |
Total | 11.90%

X
- Definition Percentage of target investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 17 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480482/715-20-55-17 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (d)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480506/715-20-50-1 + Details
Name: | us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_EquitySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_DebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_RealEstateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_DefinedBenefitPlanCashAndCashEquivalentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=hpq_OtherPlanAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanSponsorLocationAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=us-gaap_PensionPlansDefinedBenefitMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanSponsorLocationAxis=us-gaap_ForeignPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |