<?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"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-429">S-1</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-430">S-1</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-431">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-432">0001828673</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-433">HCW Biologics Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-497">S-1</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-498">HCW Biologics Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-499">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-500">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-501">Common Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_1" id="ixv-502">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-503"
      unitRef="Shares">618682</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="2"
      id="ixv-504"
      unitRef="USD">2.55</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-505"
      unitRef="USD">1577639.10</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-506"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-507"
      unitRef="USD">217.87</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-508">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-509">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-510">Pre-Funded Warrants</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_2" id="ixv-511">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-512"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-513"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-514">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-515">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-516">Common Stock Underlying Pre-Funded Warrants</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_3" id="ixv-517">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-518"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-519"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_4" id="ixv-520">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-521">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-522">Common Warrants</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_4" id="ixv-523">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-524"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_4"
      decimals="2"
      id="ixv-525"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_5" id="ixv-526">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-527">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-528">Common Stock underlying Common Warrants</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_5" id="ixv-529">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_5"
      decimals="0"
      id="ixv-530"
      unitRef="Shares">618682</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_5"
      decimals="3"
      id="ixv-531"
      unitRef="USD">2.585</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_5"
      decimals="2"
      id="ixv-532"
      unitRef="USD">1599292.97</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-533"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_5"
      decimals="2"
      id="ixv-534"
      unitRef="USD">220.86</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-535" unitRef="USD">3176932.07</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-536" unitRef="USD">438.73</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-537" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-538" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-539" unitRef="USD">438.73</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-540">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the shares of Common Stock being registered hereby include an indeterminate number of shares of Common Stock that may be issuable as a result of stock splits, stock dividends or similar transactions. The shares of Common Stock being registered for resale consist of (i) 218,682 shares of Common Stock issued in the July 2026 private placement and (ii) 400,000 shares of Common Stock issuable upon exercise of pre-funded warrants issued in the July 2026 private placement. Estimated solely for purposes of calculating the registration fee pursuant to Rule 457(c) under the Securities Act based on the average of the high and low sale prices of the registrant's Common Stock on The Nasdaq Capital Market on August 18, 2026. The registrant will not receive any proceeds from the sale of the shares of Common Stock by the selling stockholders.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-541">Represents 400,000 Pre-Funded Warrants issued in the July 2026 Private Placement. Pursuant to Rule 457(g) under the Securities Act, because the shares of Common Stock issuable upon exercise of the Pre-Funded Warrants are being registered hereby, no separate registration fee is payable with respect to the pre-funded warrants.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-542">Pursuant to Rule 416 under the Securities Act, the shares of Common Stock being registered hereby include an indeterminate number of shares of Common Stock that may be issuable as a result of stock splits, stock dividends or similar transactions. Represents 400,000 shares of Common Stock issuable upon exercise of pre-funded warrants issued in the July 2026 Private Placement. No additional registration fee is due with respect to such shares because the registration fee attributable thereto is reflected in the fee paid for the Common Stock registered pursuant to footnote (1).</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_4" id="ixv-543">Represents up to 618,682 common stock purchase warrants issuable pursuant to the Securities Purchase Agreement entered into in connection with the July 2026 Private Placement, subject to stockholder approval under Nasdaq Listing Rule 5635(d). Pursuant to Rule 457(g) under the Securities Act, because the shares of Common Stock issuable upon exercise of the Common Warrants are being registered hereby, no separate registration fee is payable with respect to the Common Warrants.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_5" id="ixv-544">Pursuant to Rule 416 under the Securities Act, the shares of Common Stock being registered hereby include an indeterminate number of shares of Common Stock that may be issuable as a result of stock splits, stock dividends or similar transactions. Represents 618,682 shares of Common Stock issuable upon exercise of common stock purchase warrants issuable in the July 2026 Private Placement, subject to stockholder approval under Nasdaq Listing Rule 5635(d). Estimated solely for purposes of calculating the registration fee pursuant to Rule 457(g) under the Securities Act based upon the exercise price of $2.585 per share of the Common Warrants.</ffd:OfferingNote>
</xbrl>
