v3.25.3

Financial Instruments - Schedule of Pre-Tax Effect of Derivative Instruments in Cash Flow Hedging Relationships Included in Earnings (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Oct. 31, 2025 | Oct. 31, 2024 | Oct. 31, 2023
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | $ (98) | $ 274 | $ 84
Cash flow hedges: |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | (98) | 274 | 84
Cash flow hedges: | Products net revenue |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | (32) | 408 | 243
Cash flow hedges: | Cost of products net revenue |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | (81) | (142) | (167)
Cash flow hedges: | Operating expenses |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | 2 | (4) | (4)
Cash flow hedges: | Interest and other, net |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |
Gain/ (loss) reclassified from Accumulated other comprehensive loss into earnings | $ 13 | $ 12 | $ 12

X
- References No definition available. + Details
Name: | us-gaap_EffectOfCashFlowHedgesOnResultsOfOperationsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 182 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-182 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4C -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4C Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482790/220-10-45-11 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482790/220-10-45-15 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OperatingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=hpq_InterestAndOtherExpenseNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |