<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025q4"
  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/2025q4/ffd-2025q4.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001828673</identifier>
        </entity>
        <period>
            <startDate>2026-01-29</startDate>
            <endDate>2026-01-29</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-01-29</startDate>
            <endDate>2026-01-29</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-01-29</startDate>
            <endDate>2026-01-29</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-01-29</startDate>
            <endDate>2026-01-29</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-378">S-1</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-379">S-1</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-380">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-381">0001828673</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-382">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-428">S-1</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-429">HCW Biologics Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-430">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-431">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-432">Common stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-433">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-434"
      unitRef="USD">10000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-435"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-436"
      unitRef="USD">1381.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-437">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-438">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-439">Pre-Funded Warrants to purchase shares of Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_2" id="ixv-440">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-441"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-442"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-443">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-444">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-445">Common stock, par value $0.0001 per share, underlying Pre-Funded Warrants</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_3" id="ixv-446">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-447"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-448"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-449" unitRef="USD">10000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-450" unitRef="USD">1381.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-451" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-452" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-453" unitRef="USD">1381.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-454">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. Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act. The proposed maximum aggregate offering price of Common Stock proposed to be sold in the offering will be reduced on a dollar-for-dollar basis based on the offering price of any Pre-Funded Warrants issued in the offering, and the proposed maximum aggregate offering price of the Pre-Funded Warrants to be issued in the offering will be reduced on a dollar-for-dollar basis based on the offering price of any Common Stock issued in the offering. Accordingly, the proposed maximum aggregate offering price of the Common Stock and the Pre-Funded Warrants (including the Common Stock issuable upon exercise of the Pre-Funded Warrants), if any, is $10,000,000.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-455">Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act. In accordance with Rule 457(g), because the shares of Common Stock underlying the Pre-Funded Warrants are registered hereby, no separate registration fee is payable with respect to the Pre-Funded Warrants or the Common Stock issuable upon exercise thereof.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-456">Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act. In accordance with Rule 457(g), because the shares of Common Stock underlying the Pre-Funded Warrants are registered hereby, no separate registration fee is payable with respect to the Pre-Funded Warrants or the Common Stock issuable upon exercise thereof.</ffd:OfferingNote>
</xbrl>
