XML 72 R60.htm IDEA: XBRL DOCUMENT
v3.23.1

Financial Instruments - Schedule of Pre-Tax Effect of Derivative Instruments in Cash Flow Hedging Relationships (Details) - USD ($) $ in Millions | 3 Months Ended | 6 Months Ended
--- | --- | ---
Apr. 30, 2023 | Apr. 30, 2022 | Apr. 30, 2023 | Apr. 30, 2022
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Gain/(loss) recognized in Accumulated other comprehensive loss on derivative | $ (66) | $ 603 | $ (689) | $ 902
Total amounts of income/(expense) line items in the statement of financial performance in which the effects of cash flow hedges are recorded | 762 | 1,278 | 1,527 | 2,637
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | (162) | 120 | 172 | 164
Cash flow hedges |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | (162) | 120 | 172 | 164
Cash flow hedges | Net revenue |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Total amounts of income/(expense) line items in the statement of financial performance in which the effects of cash flow hedges are recorded | 12,913 | 16,490 | 26,741 | 33,518
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | (109) | 142 | 277 | 199
Cash flow hedges | Cost of revenue |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Total amounts of income/(expense) line items in the statement of financial performance in which the effects of cash flow hedges are recorded | (9,984) | (13,157) | (21,003) | (26,800)
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | (55) | (21) | (109) | (35)
Cash flow hedges | Other operating expenses |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Total amounts of income/(expense) line items in the statement of financial performance in which the effects of cash flow hedges are recorded | (2,167) | (2,055) | (4,211) | (4,081)
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | (1) | 0 | (2) | 1
Cash flow hedges | Interest and other, net |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Total amounts of income/(expense) line items in the statement of financial performance in which the effects of cash flow hedges are recorded | (160) | (39) | (341) | (71)
Gain/(loss) reclassified from Accumulated other comprehensive (loss) income into earnings | 3 | (1) | 6 | (1)
Foreign currency contracts | Cash flow hedges |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Gain/(loss) recognized in Accumulated other comprehensive loss on derivative | (66) | 553 | (689) | 833
Interest rate contracts | Cash flow hedges |  |  |  |
Pre-tax effect of derivative instruments in cash flow hedging relationships |  |  |  |
Gain/(loss) recognized in Accumulated other comprehensive loss on derivative | $ 0 | $ 50 | $ 0 | $ 69

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 The net result for the period of deducting operating expenses from operating revenues. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 31 -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (f) -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599 + Details
Name: | us-gaap_OperatingIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, before tax and reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=121577181&loc=SL110061190-113977 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 10A -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 15 -URI https://asc.fasb.org/extlink&oid=126968391&loc=d3e689-108580 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 + 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: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_ForeignExchangeContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |