v3.25.3

Taxes on Earnings - Schedule of Deferred Tax Assets for Net Operating Loss Carryforwards (Details) - USD ($) $ in Millions | Oct. 31, 2025 | Oct. 31, 2024 | Oct. 31, 2023 | Oct. 31, 2022
--- | --- | --- | --- | ---
Operating Loss Carryforwards [Line Items] |  |  |  |
Valuation allowance | $ (6,479) | $ (6,688) | $ (6,994) | $ (7,592)
Operating loss carryforwards |  |  |  |
Operating Loss Carryforwards [Line Items] |  |  |  |
Gross NOLs | 25,984 |  |  |
Deferred Taxes on NOLs | 6,575 |  |  |
Valuation allowance | (6,051) |  |  |
Federal | Operating loss carryforwards |  |  |  |
Operating Loss Carryforwards [Line Items] |  |  |  |
Gross NOLs | 33 |  |  |
Deferred Taxes on NOLs | 7 |  |  |
Valuation allowance | (1) |  |  |
State | Operating loss carryforwards |  |  |  |
Operating Loss Carryforwards [Line Items] |  |  |  |
Gross NOLs | 1,817 |  |  |
Deferred Taxes on NOLs | 97 |  |  |
Valuation allowance | (23) |  |  |
Foreign | Operating loss carryforwards |  |  |  |
Operating Loss Carryforwards [Line Items] |  |  |  |
Gross NOLs | 24,134 |  |  |
Deferred Taxes on NOLs | 6,471 |  |  |
Valuation allowance | $ (6,027) |  |  |

X
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_OperatingLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_OperatingLossCarryforwardsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_TaxCreditCarryforwardAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_ValuationAllowanceByDeferredTaxAssetAxis=hpq_NetOperatingLossCarryforwardsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_DomesticCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_StateAndLocalJurisdictionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_ForeignCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |