<?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">0001701108</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="offrl_8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>8</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="ofst_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="ofst_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="ofst_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <context id="ofst_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001701108</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-528">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-529">S-3</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-530">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-531">0001701108</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-532">Spero Therapeutics, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa" xsi:nil="true"/>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-536"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-537"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-538"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-539"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-540"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_6"
      decimals="7"
      id="ixv-541"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_7"
      decimals="7"
      id="ixv-542"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:OffsetClmdInd contextRef="ofst_1" id="ixv-543">true</ffd:OffsetClmdInd>
    <ffd:OffsetClmdInd contextRef="ofst_2" id="ixv-544">true</ffd:OffsetClmdInd>
    <ffd:OffsetClmdInd contextRef="ofst_3" id="ixv-545">false</ffd:OffsetClmdInd>
    <ffd:OffsetClmdInd contextRef="ofst_4" id="ixv-546">false</ffd:OffsetClmdInd>
    <ffd:FormTp contextRef="rc" id="ixv-670">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-671">Spero Therapeutics, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-672">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-673">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-674">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-675">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-676">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_2" id="ixv-677">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-678">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-679">Preferred Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_3" id="ixv-680">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-681">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-682">Depositary Shares</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_4" id="ixv-683">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-684">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-685">Subscription Rights</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_5" id="ixv-686">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_6" id="ixv-687">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_6" id="ixv-688">Units</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_6" id="ixv-689">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_7" id="ixv-690">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_7" id="ixv-691">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_7" id="ixv-692">true</ffd:Rule457oFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_8" id="ixv-693">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_8" id="ixv-694">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule457oFlg contextRef="offrl_8" id="ixv-695">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_8"
      decimals="2"
      id="ixv-696"
      unitRef="USD">300000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_8"
      decimals="7"
      id="ixv-697"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_8"
      decimals="2"
      id="ixv-698"
      unitRef="USD">41430.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-699" unitRef="USD">300000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-700" unitRef="USD">41430.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-701" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-702" unitRef="USD">33445.90</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-703" unitRef="USD">7984.10</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_8" id="ixv-704">(a) Pursuant to Instruction 2.A(iii)(b) of Item 16(b) of Form S-3, this information is not required to be included. An indeterminate amount of the securities of each identified class is being registered as may from time to time be offered under this registration statement at indeterminate prices, along with an indeterminate number of securities that may be issued upon exercise, settlement, exchange or conversion of securities offered or sold under this registration statement, as shall have an aggregate offering price up to $300,000,000. Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), this registration statement also covers any additional securities that may be offered or issued in connection with any stock split, stock dividend or pursuant to anti-dilution provisions of any of the securities. Separate consideration may or may not be received for securities that are issuable upon conversion, exercise or exchange of other securities. In addition, the total amount to be registered and the proposed maximum aggregate offering price are estimated solely for the purpose of calculating the registration fee pursuant to Rule 457(o) under the Securities Act. (b) Each depositary share will be issued under a deposit agreement, will represent an interest in a fractional share or multiple shares of preferred stock and will be evidenced by a depositary receipt. (c) The subscription rights to purchase shares of common stock or preferred stock or other securities will be offered without additional consideration. (d) Units may be issued under a unit agreement and will represent an interest in one or more securities registered under this registration statement including shares of common stock or preferred stock, debt securities or warrants, in any combination, which may or may not be separable from one another.</ffd:OfferingNote>
    <ffd:Rule457pOffsetFlg contextRef="ofst_1" id="ixv-705">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_1" id="ixv-706">Spero Therapeutics, Inc.</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_1" id="ixv-707">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_1" id="ixv-708">333-277998</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="ofst_1" id="ixv-709">2024-03-15</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="ofst_1" decimals="2" id="ixv-710" unitRef="USD">2744.55</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp contextRef="ofst_1" id="ixv-711">Unallocated (Universal) Shelf</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl contextRef="ofst_1" id="ixv-712">Unallocated (Universal) Shelf</ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrUnsoldOfferingAmt contextRef="ofst_1" decimals="2" id="ixv-713" unitRef="USD">300000000.00</ffd:OffsetPrrUnsoldOfferingAmt>
    <ffd:Rule457pOffsetFlg contextRef="ofst_2" id="ixv-714">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_2" id="ixv-715">Spero Therapeutics, Inc. </ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_2" id="ixv-716">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_2" id="ixv-717">333-254170</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="ofst_2" id="ixv-718">2021-03-11</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="ofst_2" decimals="2" id="ixv-719" unitRef="USD">30701.35</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp contextRef="ofst_2" id="ixv-720">Unallocated (Universal) Shelf</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl contextRef="ofst_2" id="ixv-721">Unallocated (Universal) Shelf </ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrUnsoldOfferingAmt contextRef="ofst_2" decimals="2" id="ixv-722" unitRef="USD">281405543.00</ffd:OffsetPrrUnsoldOfferingAmt>
    <ffd:Rule457pOffsetFlg contextRef="ofst_3" id="ixv-723">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_3" id="ixv-724">Spero Therapeutics, Inc.</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_3" id="ixv-725">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_3" id="ixv-726">333-277998</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt contextRef="ofst_3" id="ixv-727">2024-03-15</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="ofst_3" decimals="2" id="ixv-728" unitRef="USD">2744.55</ffd:OffsetPrrFeeAmt>
    <ffd:Rule457pOffsetFlg contextRef="ofst_4" id="ixv-729">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_4" id="ixv-730">Spero Therapeutics, Inc.</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_4" id="ixv-731">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_4" id="ixv-732">333-254170</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt contextRef="ofst_4" id="ixv-733">2021-03-11</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="ofst_4" decimals="2" id="ixv-734" unitRef="USD">32730.00</ffd:OffsetPrrFeeAmt>
    <ffd:TermntnCmpltnWdrwl contextRef="ofst_1" id="ixv-735">Pursuant to Rule 457(p) under the Securities Act, the registration fee applicable to the $300,000,000 of securities of the registrant being registered hereby in the amount of $41,430.00 is offset by $33,445.90, which represents the aggregate registration fee previously paid with respect to (a) $300,000,000 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-277998), which was filed with the Securities and Exchange Commission on March 15, 2024 and declared effective by the Commission on March 22, 2024, and (b) $281,405,543 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-254170), which was filed with the Commission on March 11, 2021 and declared effective by the Commission on March 29, 2021. All offerings of the unsold securities associated with the claimed fee offset pursuant to Rule 457(p) have been completed or terminated.</ffd:TermntnCmpltnWdrwl>
    <ffd:TermntnCmpltnWdrwl contextRef="ofst_2" id="ixv-736">Pursuant to Rule 457(p) under the Securities Act, the registration fee applicable to the $300,000,000 of securities of the registrant being registered hereby in the amount of $41,430.00 is offset by $33,445.90, which represents the aggregate registration fee previously paid with respect to (a) $300,000,000 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-277998), which was filed with the Securities and Exchange Commission on March 15, 2024 and declared effective by the Commission on March 22, 2024, and (b) $281,405,543 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-254170), which was filed with the Commission on March 11, 2021 and declared effective by the Commission on March 29, 2021. All offerings of the unsold securities associated with the claimed fee offset pursuant to Rule 457(p) have been completed or terminated.</ffd:TermntnCmpltnWdrwl>
    <ffd:OffsetNote contextRef="ofst_3" id="ixv-737">Pursuant to Rule 457(p) under the Securities Act, the registration fee applicable to the $300,000,000 of securities of the registrant being registered hereby in the amount of $41,430.00 is offset by $33,445.90, which represents the aggregate registration fee previously paid with respect to (a) $300,000,000 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-277998), which was filed with the Securities and Exchange Commission on March 15, 2024 and declared effective by the Commission on March 22, 2024, and (b) $281,405,543 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-254170), which was filed with the Commission on March 11, 2021 and declared effective by the Commission on March 29, 2021. All offerings of the unsold securities associated with the claimed fee offset pursuant to Rule 457(p) have been completed or terminated.</ffd:OffsetNote>
    <ffd:OffsetNote contextRef="ofst_4" id="ixv-738">Pursuant to Rule 457(p) under the Securities Act, the registration fee applicable to the $300,000,000 of securities of the registrant being registered hereby in the amount of $41,430.00 is offset by $33,445.90, which represents the aggregate registration fee previously paid with respect to (a) $300,000,000 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-277998), which was filed with the Securities and Exchange Commission on March 15, 2024 and declared effective by the Commission on March 22, 2024, and (b) $281,405,543 of unsold securities under the registrant's Registration Statement on Form S-3 (File No. 333-254170), which was filed with the Commission on March 11, 2021 and declared effective by the Commission on March 29, 2021. All offerings of the unsold securities associated with the claimed fee offset pursuant to Rule 457(p) have been completed or terminated.</ffd:OffsetNote>
</xbrl>
