v3.25.3

Supplementary Financial Information - Government Assistance (Narrative) (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Oct. 31, 2025 | Oct. 31, 2024 | Oct. 31, 2023
Capitalized Contract Cost [Line Items] |  |  |
Government assistance recognized | $ 196 | $ 126 | $ 117
Reduction of cost of net revenue | $ 130 | $ 111 | $ 95
Government Assistance Statement Of Income Or Comprehensive Income Extensible Enumeration Not Disclosed Flag | government assistance | government assistance | government assistance
Government Assistance, Expense, Decrease (Increase), Statement of Income or Comprehensive Income [Extensible Enumeration] | Total cost of net revenue | Total cost of net revenue | Total cost of net revenue
Minimum |  |  |
Capitalized Contract Cost [Line Items] |  |  |
Grant agreements are usually for a period | 3 years |  |
Maximum |  |  |
Capitalized Contract Cost [Line Items] |  |  |
Grant agreements are usually for a period | 5 years |  |

X
- Definition Government Assistance Statement Of Income Or Comprehensive Income Extensible Enumeration Not Disclosed Flag + References No definition available. + Details
Name: | hpq_GovernmentAssistanceStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag
Namespace Prefix: | hpq_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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 340 -SubTopic 40 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479483/340-40-50-3 + Details
Name: | us-gaap_CapitalizedContractCostLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of increase (decrease) in income from government assistance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of decrease (increase) in expense from government assistance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Indicates line item in statement of income or comprehensive income that includes decrease (increase) in expense from government assistance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceExpenseStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | duration

X
- Definition Duration of government assistance transaction, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-4 + Details
Name: | us-gaap_GovernmentAssistanceTransactionDuration
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |