<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>230</ContextCount>
  <ElementCount>235</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>52</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CondensedConsolidatedStatementsofOperationsandComprehensiveLoss</Role>
      <ShortName>Condensed Consolidated Statements of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Condensed Consolidated Statements of Stockholders??? Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CondensedConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders??? Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CondensedConsolidatedStatementsofCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Disclosure - Nature of the business and basis of presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Natureofthebusinessandbasisofpresentation</Role>
      <ShortName>Nature of the business and basis of presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Summaryofsignificantaccountingpolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Fairvaluemeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Marketable securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Marketablesecurities</Role>
      <ShortName>Marketable securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Propertyandequipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Accrued expenses and other current liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Accruedexpensesandothercurrentliabilities</Role>
      <ShortName>Accrued expenses and other current liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Collaboration and license agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Collaborationandlicenseagreements</Role>
      <ShortName>Collaboration and license agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Stockholders equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Stockholdersequity</Role>
      <ShortName>Stockholders equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Stock-based compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Stockbasedcompensation</Role>
      <ShortName>Stock-based compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Commitment and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Commitmentandcontingencies</Role>
      <ShortName>Commitment and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Loss per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Losspershare</Role>
      <ShortName>Loss per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Restructuring</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Restructuring</Role>
      <ShortName>Restructuring</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Segment reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/Segmentreporting</Role>
      <ShortName>Segment reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/SummaryofsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/FairvaluemeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Fairvaluemeasurements</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Marketable securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/MarketablesecuritiesTables</Role>
      <ShortName>Marketable securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Marketablesecurities</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/PropertyandequipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Propertyandequipment</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Accrued expenses and other current liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/AccruedexpensesandothercurrentliabilitiesTables</Role>
      <ShortName>Accrued expenses and other current liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Accruedexpensesandothercurrentliabilities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Collaboration and license agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsTables</Role>
      <ShortName>Collaboration and license agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Collaborationandlicenseagreements</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Stock-based compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/StockbasedcompensationTables</Role>
      <ShortName>Stock-based compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Stockbasedcompensation</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Loss per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/LosspershareTables</Role>
      <ShortName>Loss per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Losspershare</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Segment reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/SegmentreportingTables</Role>
      <ShortName>Segment reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Segmentreporting</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Nature of the business and basis of presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/NatureofthebusinessandbasisofpresentationDetails</Role>
      <ShortName>Nature of the business and basis of presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Natureofthebusinessandbasisofpresentation</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Fair value measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/FairvaluemeasurementsDetails</Role>
      <ShortName>Fair value measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/FairvaluemeasurementsTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Marketable securities - Summary of marketable securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/MarketablesecuritiesSummaryofmarketablesecuritiesDetails</Role>
      <ShortName>Marketable securities - Summary of marketable securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Marketable securities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/MarketablesecuritiesNarrativeDetails</Role>
      <ShortName>Marketable securities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Property and equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/PropertyandequipmentDetails</Role>
      <ShortName>Property and equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/PropertyandequipmentTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Accrued expenses and other current liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/AccruedexpensesandothercurrentliabilitiesDetails</Role>
      <ShortName>Accrued expenses and other current liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/AccruedexpensesandothercurrentliabilitiesTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Collaboration and license agreements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsNarrativeDetails</Role>
      <ShortName>Collaboration and license agreements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Collaboration and license agreements - Summary of allocation of transaction price (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsSummaryofallocationoftransactionpriceDetails</Role>
      <ShortName>Collaboration and license agreements - Summary of allocation of transaction price (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Collaboration and license agreements - Schedule of revenue from collaboration agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsScheduleofrevenuefromcollaborationagreementsDetails</Role>
      <ShortName>Collaboration and license agreements - Schedule of revenue from collaboration agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Collaboration and license agreements - Schedule of financial information related to collaboration and license agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsScheduleoffinancialinformationrelatedtocollaborationandlicenseagreementsDetails</Role>
      <ShortName>Collaboration and license agreements - Schedule of financial information related to collaboration and license agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Collaboration and license agreements - Schedule of supplemental financial information related to collaboration and license agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/CollaborationandlicenseagreementsScheduleofsupplementalfinancialinformationrelatedtocollaborationandlicenseagreementsDetails</Role>
      <ShortName>Collaboration and license agreements - Schedule of supplemental financial information related to collaboration and license agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Stockholder's equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/StockholdersequityDetails</Role>
      <ShortName>Stockholder's equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Stock-based compensation - Schedule of stock-based compensation expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/StockbasedcompensationScheduleofstockbasedcompensationexpenseDetails</Role>
      <ShortName>Stock-based compensation - Schedule of stock-based compensation expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Stock-based compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/StockbasedcompensationNarrativeDetails</Role>
      <ShortName>Stock-based compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Loss per share - Schedule of diluted net loss per share attributable to common stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/LosspershareScheduleofdilutednetlosspershareattributabletocommonstockholdersDetails</Role>
      <ShortName>Loss per share - Schedule of diluted net loss per share attributable to common stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Loss per share - Schedule of basic and diluted loss per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/LosspershareScheduleofbasicanddilutedlosspershareDetails</Role>
      <ShortName>Loss per share - Schedule of basic and diluted loss per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Restructuring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/RestructuringDetails</Role>
      <ShortName>Restructuring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Restructuring</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/IncometaxesDetails</Role>
      <ShortName>Income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/Incometaxes</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="cccc-20250630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Segment reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://c4therapeutics.com/role/SegmentreportingDetails</Role>
      <ShortName>Segment reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://c4therapeutics.com/role/SegmentreportingTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="cccc-20250630.htm">cccc-20250630.htm</File>
    <File>cccc-20250630.xsd</File>
    <File>cccc-20250630_cal.xml</File>
    <File>cccc-20250630_def.xml</File>
    <File>cccc-20250630_lab.xml</File>
    <File>cccc-20250630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="2">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="597">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
