<?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="sgmt-20260813.xsd" xlink:type="simple"/>
    <context id="duration_2026-08-13_to_2026-08-13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001400118</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-211">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-08-13_to_2026-08-13"
      id="Hidden_dei_EntityCentralIndexKey">0001400118</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-222">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-223">2026-08-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-224">SAGIMET BIOSCIENCES INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-225">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-226">001-41742</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-227">20-5991472</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-228">Sagimet Biosciences Inc.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-229">950 Tower Lane</dei:EntityAddressAddressLine2>
    <dei:EntityAddressAddressLine3 contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-230">Suite 1500</dei:EntityAddressAddressLine3>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-231">Foster City</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-232">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-233">94404</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-234">(650)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-235">561-8600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-236">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-237">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-238">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-239">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-240">Series A Common Stock, $0.0001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-241">SGMT</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-242">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-243">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="duration_2026-08-13_to_2026-08-13" id="ixv-244">false</dei:EntityExTransitionPeriod>
</xbrl>
