<?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">0001650648</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>8</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>9</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_10">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>10</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_11">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>11</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <context id="offrl_12">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001650648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>12</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-500">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-501">S-3</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-502">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-503">0001650648</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-504">4D Molecular Therapeutics, 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:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-508"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-509"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-510"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-511"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-512"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FormTp contextRef="rc" id="ixv-636">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-637">4D Molecular Therapeutics, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-638">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-639">Common Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-640">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-641">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-642">Preferred Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_2" id="ixv-643">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-644">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-645">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_3" id="ixv-646">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-647">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-648">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_4" id="ixv-649">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-650">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-651">Units</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_5" id="ixv-652">true</ffd:Rule457oFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_6" id="ixv-653">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_6" id="ixv-654">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule457oFlg contextRef="offrl_6" id="ixv-655">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_6"
      decimals="2"
      id="ixv-656"
      unitRef="USD">199999993.69</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_6"
      decimals="7"
      id="ixv-657"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_6"
      decimals="2"
      id="ixv-658"
      unitRef="USD">27620.00</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_7" id="ixv-659">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_7" id="ixv-660">Common Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_7" id="ixv-661">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_7" id="ixv-662">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_7" id="ixv-663">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_7" id="ixv-664">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_8" id="ixv-665">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_8" id="ixv-666">Preferred Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_8" id="ixv-667">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_8" id="ixv-668">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_8" id="ixv-669">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_8" id="ixv-670">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_9" id="ixv-671">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_9" id="ixv-672">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_9" id="ixv-673">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_9" id="ixv-674">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_9" id="ixv-675">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_9" id="ixv-676">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_10" id="ixv-677">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_10" id="ixv-678">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_10" id="ixv-679">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_10" id="ixv-680">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_10" id="ixv-681">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_10" id="ixv-682">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_11" id="ixv-683">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_11" id="ixv-684">Units</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_11" id="ixv-685">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_11" id="ixv-686">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_11" id="ixv-687">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_11" id="ixv-688">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_12" id="ixv-689">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule415a6Flg contextRef="offrl_12" id="ixv-690">true</ffd:Rule415a6Flg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_12"
      decimals="2"
      id="ixv-691"
      unitRef="USD">200000006.31</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp contextRef="offrl_12" id="ixv-692">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_12" id="ixv-693">333-273845</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_12" id="ixv-694">2023-08-15</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="offrl_12"
      decimals="2"
      id="ixv-695"
      unitRef="USD">22040.00</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-696" unitRef="USD">400000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-697" unitRef="USD">27620.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-698" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-699" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-700" unitRef="USD">27620.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_6" id="ixv-701">An unspecified number of securities or aggregate principal amount, as applicable, is being registered as may from time to time be offered at unspecified prices and, in addition, an unspecified number of securities is being registered as may be issued from time to time upon conversion of or exchange for any preferred stock or debt securities that provide for conversion or exchange, upon exercise of warrants, or pursuant to any anti-dilution adjustments with respect to any such securities. Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the securities being registered hereunder include such indeterminate number of additional securities as may be issuable as a result of stock splits, stock dividends or similar transactions. Includes rights to acquire common stock or preferred stock under any stockholder rights plan then in effect, if applicable under the terms of any such plan. The proposed maximum per security and aggregate offering prices per class of securities will be determined from time to time by the registrant in connection with the issuance by the registrant of the securities registered hereunder and are not specified as to each class of security. The registration fee has been calculated in accordance with Rule 457(o) under the Securities Act. Estimated solely for the purpose of calculating the registration fee. No separate consideration will be received for shares of common stock that are issued upon conversion of debt securities or preferred stock or upon exercise of common stock warrants registered hereunder. The aggregate maximum offering price of all securities issued by the registrant pursuant to this registration statement will not exceed $400,000,000.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_12" id="ixv-702">The registrant previously registered the offer and sale of securities having a maximum aggregate offering price of $300,000,000 pursuant to a registration statement on Form S-3 (File No. 333-273845) initially filed with the Securities and Exchange Commission on August 9, 2023 (the "Expiring Registration Statement") and, in connection therewith, paid a filing fee of $33,060. Of such securities, an aggregate of $200,000,006.31 remain unsold (the "Unsold Securities"). Pursuant to Rule 415(a)(6) under the Securities Act, the securities registered pursuant to this registration statement include the Unsold Securities, and the filing fee of $22,040.00 associated therewith (which amount is based on the filing fee rate in effect at the time of the filing of the Expiring Registration Statement) is hereby carried forward to be applied to the Unsold Securities and no additional filing fee is due with respect to such Unsold Securities in connection with the filing of this registration statement. Pursuant to Rule 415(a)(6), the offering of the Unsold Securities pursuant to the Expiring Registration Statement shall be deemed terminated as of the effective date of this registration statement.</ffd:OfferingNote>
</xbrl>
