v3.25.3

Borrowings - Schedule of Notes Payable and Short-Term Borrowings (Details) - USD ($) $ in Millions | Oct. 31, 2025 | Oct. 31, 2024
--- | --- | ---
Amount Outstanding |  |
Current portion of long-term debt | $ 788 | $ 1,358
Notes payable to banks and other | $ 845 | $ 1,406
Weighted-Average Interest Rate |  |
Current portion of long-term debt | 3.20% | 5.00%
Notes payable to banks and other |  |
Amount Outstanding |  |
Notes payable to banks and other | $ 57 | $ 48
Weighted-Average Interest Rate |  |
Commercial paper and notes payable to banks, lines of credit and other | 0.00% | 0.00%

X
- Definition Debt Instrument, Interest Rate, Weighted Average Interest Rate [Abstract] + References No definition available. + Details
Name: | hpq_DebtInstrumentInterestRateWeightedAverageInterestRateAbstract
Namespace Prefix: | hpq_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of debt and lease obligation, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(21)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Weighted average interest rate of debt outstanding. + References No definition available. + Details
Name: | us-gaap_DebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of long-term debt and lease obligation, classified as current. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(20)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Weighted average interest rate of short-term debt outstanding calculated at point in time. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481544/470-10-50-7 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_ShortTermDebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_ShortTermDebtTypeAxis=hpq_NotesPayableToBanksAndOtherNotesPayablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |