<?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="cogt-20260505.xsd" xlink:type="simple"/>
    <context id="C_9d861dbf-528b-405c-8ed0-7ab565b35027">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001622229</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_fb939f1d-d911-45fe-be21-5a56ba801406">0001622229</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_720c4b28-bf1b-417f-9e00-9b840b086bc1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_32896691-211f-4561-868e-4e8fafe8e0e6">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_9b5c7659-9b74-4ef4-b55e-0cbf5e360af6">2026-05-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_8b10d22b-aec1-4aab-a195-7be82cae4ebd">COGENT BIOSCIENCES, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_bd228d15-33aa-4326-834c-b766e466c10d">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_d46fff6e-7225-42ea-9e7c-08c745de3a29">001-38443</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_f451ba6f-5d89-445a-b826-a6568ef1f96c">46-5308248</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_8ded1c8a-2bdb-4add-a728-301fff457fb3">275 Wyman Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_1da69d55-593c-4726-b434-887a29bc38e0">3rd Floor</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_5e4ab1a6-bc99-40be-a9d8-bd5445797f92">Waltham</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_eb89d8ab-dfbc-42e0-891c-d8841c23f32a">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_380100f4-58ba-47ed-9bcc-c551fcfc2c18">02451</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_4d22e878-6c4d-415c-99f5-e3f2652ba139">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_35480342-26c7-4a4b-b15b-49a7570c8920">945-5576</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_54ed64ee-3d6e-4236-aa0e-b6889660cefc">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_a0b16b77-cf66-44d2-9bfc-60d1ab517e15">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_2c8fa0fe-8e95-4313-a910-7c1dc95466bb">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_432cdb7c-1327-485e-8702-81d9c340a622">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_97285511-52af-4588-aca3-957b64a744f4">Common stock, $0.001 Par Value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_3e122ed7-3971-4fd5-825e-fd005dba848b">COGT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_6d517caf-edf9-469e-a537-6d0f008fcbe8">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_9d861dbf-528b-405c-8ed0-7ab565b35027"
      id="F_3616aaae-728b-4550-99d6-9b4122f5b3bf">false</dei:EntityEmergingGrowthCompany>
</xbrl>
