<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000047217</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000047217</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <context id="c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000047217</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usdPershares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c0" id="ixv-139">S-8</ffd:SubmissnTp>
    <ffd:FormTp contextRef="c0" id="ixv-140">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-24">HP INC.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c1" id="ixv-141">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c1" id="ixv-142">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c1" id="ixv-143">Common Stock, $0.01 par value per share, to be issued under the Fifth Amended and Restated HP Inc. 2004 Stock Incentive Plan (the "Plan")</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c1" id="ixv-144">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c1"
      decimals="INF"
      id="ixv-145"
      unitRef="shares">73600000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c1"
      decimals="INF"
      id="ixv-146"
      unitRef="usdPershares">29.86</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c1" decimals="INF" id="ixv-147" unitRef="usd">2197696000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt contextRef="c1" decimals="2" id="ixv-148" unitRef="usd">303501.82</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c2" id="ixv-149">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c2" id="ixv-150">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c2" id="ixv-151">Common Stock, $0.01 par value per share, to be issued under the Company's inducement pool for employees (the "Inducement Pool")</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c2" id="ixv-152">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c2"
      decimals="INF"
      id="ixv-153"
      unitRef="shares">6500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c2"
      decimals="INF"
      id="ixv-154"
      unitRef="usdPershares">29.86</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c2" decimals="INF" id="ixv-155" unitRef="usd">194090000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt contextRef="c2" decimals="2" id="ixv-156" unitRef="usd">26803.83</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c0" decimals="INF" id="ixv-157" unitRef="usd">2391786000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c0" decimals="2" id="ixv-158" unitRef="usd">330305.65</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c0" decimals="2" id="ixv-159" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c0" decimals="2" id="ixv-160" unitRef="usd">330305.65</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c1" id="ixv-108">&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt; &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt; &lt;td style="padding: 0px 0pt;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;(1)&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;Pursuant to Rule 416 under the
Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration
Statement on Form S-8 (this &#x201c;Registration Statement&#x201d;), also covers any additional
shares of Common Stock, par value of $0.01 per share (&#x201c;Common Stock&#x201d;) of HP
Inc. in respect of the securities identified in the above table that may become
issuable through the Plan and the Inducement Pool as a result of any stock
dividend, stock split, recapitalization or other similar transactions.&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt;
   &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;
    &lt;td style="padding: 0px 0pt;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;(2)&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
    &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;Estimated solely for the
purpose of determining the registration fee pursuant to Rules 457(c) and 457(h)
under the Securities Act.&lt;span style="mso-spacerun:yes"&gt;&#160; &lt;/span&gt;The proposed
maximum offering price per share, maximum aggregate offering price and
registration fee are based on a price of $29.86 per share of Common Stock,
which price is an average of the high and low sales prices of the Common Stock
as reported on the New York Stock Exchange on August 20, 2026.&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c2" id="ixv-109">&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt; &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt; &lt;td style="padding: 0px 0pt;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;(1)&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;Pursuant to Rule 416 under the
Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration
Statement on Form S-8 (this &#x201c;Registration Statement&#x201d;), also covers any additional
shares of Common Stock, par value of $0.01 per share (&#x201c;Common Stock&#x201d;) of HP
Inc. in respect of the securities identified in the above table that may become
issuable through the Plan and the Inducement Pool as a result of any stock
dividend, stock split, recapitalization or other similar transactions.&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt;
   &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;
    &lt;td style="padding: 0px 0pt;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;(2)&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
    &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;Estimated solely for the
purpose of determining the registration fee pursuant to Rules 457(c) and 457(h)
under the Securities Act.&lt;span style="mso-spacerun:yes"&gt;&#160; &lt;/span&gt;The proposed
maximum offering price per share, maximum aggregate offering price and
registration fee are based on a price of $29.86 per share of Common Stock,
which price is an average of the high and low sales prices of the Common Stock
as reported on the New York Stock Exchange on August 20, 2026.&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;</ffd:OfferingNote>
    <ffd:FeeRate
      contextRef="c1"
      decimals="INF"
      id="hidden-fact-0"
      unitRef="pure">0.00013810</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="c2"
      decimals="INF"
      id="hidden-fact-1"
      unitRef="pure">0.00013810</ffd:FeeRate>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-165">0000047217</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c0" id="ixv-166">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c0" id="ixv-167">N/A</ffd:OffsetTableNa>
</xbrl>
