<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="sybx-20260116.xsd" xlink:type="simple"/>
    <context id="C_95b49726-722b-460c-811e-50760033ca76">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001527599</identifier>
        </entity>
        <period>
            <startDate>2026-01-16</startDate>
            <endDate>2026-01-16</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_1d906afb-7e98-4fad-9ac4-a5e39a27be06">0001527599</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_9812a382-5a8b-4feb-9448-aae63eaf8984">true</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_279a443b-cf32-4729-a41d-611a5349d1bc">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_a574b76a-20a1-4dd6-b6be-76047c2f76fb">2026-01-16</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_31ddae0a-eab0-4f65-9967-fdf628bad879">SYNLOGIC, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_c0b06ea5-ab2d-4eb0-857c-7408d907522d">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_31e47f63-46f7-4284-96e4-2066da3854bb">001-37566</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_d12bd54c-f7d6-4610-a174-5f9fa394d27a">26-1824804</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_4d57fe15-17c2-4c1e-bb7e-1d0cce495610">PO Box 30</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_194af831-641e-436d-8a8c-ac52e17df921">Winchester</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_86eabb87-93a9-4e35-888a-a20c5d740b02">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_2ea43220-6498-4ea2-8cb3-cf1382228619">01890</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_5703e321-d0fe-4aab-9891-41c0e8c5156f">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_b99d8a66-420e-43a9-9a73-032a8aefabeb">659-2802</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_604601f6-3e48-4627-bd73-e6fcd0e90061">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_5a25c177-c4c1-4de2-9fef-7a22b39731fc">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_efdc1039-cc8c-4178-8a48-332cbb9d0752">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_10162384-33ab-43fe-95e1-a8eaf167ae63">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_d76e5af3-6d27-461b-a69f-adc36c21d363">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_7d75d199-1a1f-4fbe-9191-b8b06b6be904">SYBX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_4b99f247-2130-4f25-91f0-b0fb6837a8e3">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_bb517f66-ec2d-479d-906d-e904423fc365">false</dei:EntityEmergingGrowthCompany>
    <dei:AmendmentDescription
      contextRef="C_95b49726-722b-460c-811e-50760033ca76"
      id="F_795fcc75-02c5-4ae8-a5bc-933e8517849c">This Amendment No. 1 to Current Report on Form 8-K (the &#x201c;Form 8-K/A&#x201d;) amends and restates the Current Report on Form 8-K of Synlogic, Inc. (the &#x201c;Company&#x201d;) filed with the U.S. Securities and Exchange Commission on January 20, 2026 (the &#x201c;Original Form 8-K&#x201d;), which reported the delisting of the Company's shares of common stock from Nasdaq. This Form 8-K/A is being filed to include Item 8.01 to state that the Company believes that it is a &#x201c;public shell&#x201d; and to amend the disclosure in Item 3.01 to disclose the tier of the OTC Markets Group, Inc. upon which the Company expects its shares of common stock to be quoted.</dei:AmendmentDescription>
</xbrl>
