<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>174</ContextCount>
  <ElementCount>418</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>64</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0002002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001003 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002004 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003005 - Statement - Consolidated Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedStatementsofOperationsandComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004006 - Statement - Consolidated Statements of Convertible Preferred Stock and Stockholders??? Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedStatementsofConvertiblePreferredStockandStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Convertible Preferred Stock and Stockholders??? Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1005007 - Statement - Consolidated Statements of Convertible Preferred Stock and Stockholders??? Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedStatementsofConvertiblePreferredStockandStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Convertible Preferred Stock and Stockholders??? Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1006008 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Nature of Business and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/NatureofBusinessandBasisofPresentation</Role>
      <ShortName>Nature of Business and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2103102 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2109103 - Disclosure - Marketable Securities and Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/MarketableSecuritiesandFairValueMeasurements</Role>
      <ShortName>Marketable Securities and Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2113104 - Disclosure - Property and Equipment, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/PropertyandEquipmentNet</Role>
      <ShortName>Property and Equipment, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2117105 - Disclosure - Accrued Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/AccruedExpenses</Role>
      <ShortName>Accrued Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2120106 - Disclosure - Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.foghorntx.com/role/NotesPayable</Role>
      <ShortName>Notes Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2124107 - Disclosure - Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CommonStock</Role>
      <ShortName>Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2126108 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2132109 - Disclosure - Collaboration Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CollaborationAgreements</Role>
      <ShortName>Collaboration Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2134110 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2139111 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2147112 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2149113 - Disclosure - Defined Contribution Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/DefinedContributionPlan</Role>
      <ShortName>Defined Contribution Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2150114 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/RelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2204201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2310302 - Disclosure - Marketable Securities and Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/MarketableSecuritiesandFairValueMeasurementsTables</Role>
      <ShortName>Marketable Securities and Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/MarketableSecuritiesandFairValueMeasurements</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2314303 - Disclosure - Property and Equipment, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/PropertyandEquipmentNetTables</Role>
      <ShortName>Property and Equipment, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/PropertyandEquipmentNet</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2318304 - Disclosure - Accrued Expenses (Table)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/AccruedExpensesTable</Role>
      <ShortName>Accrued Expenses (Table)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/AccruedExpenses</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2321305 - Disclosure - Notes Payable (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.foghorntx.com/role/NotesPayableTables</Role>
      <ShortName>Notes Payable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/NotesPayable</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2327306 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/StockBasedCompensation</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2335307 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/IncomeTaxes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2340308 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/Leases</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2402401 - Disclosure - Nature of Business and Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/NatureofBusinessandBasisofPresentationDetails</Role>
      <ShortName>Nature of Business and Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/NatureofBusinessandBasisofPresentation</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Summary of Significant Accounting Policies - Summary of Property and Equipment are Stated at Cost Less Accumulated Depreciation and Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPoliciesSummaryofPropertyandEquipmentareStatedatCostLessAccumulatedDepreciationandAmortizationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Property and Equipment are Stated at Cost Less Accumulated Depreciation and Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - Summary of Significant Accounting Policies - Summary of Earnings Per Share Diluted Anti Dilutive Impact (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/SummaryofSignificantAccountingPoliciesSummaryofEarningsPerShareDilutedAntiDilutiveImpactDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Earnings Per Share Diluted Anti Dilutive Impact (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2411405 - Disclosure - Marketable Securities and Fair Value Measurements - Summary of Available for Sale Marketable Securities By Security Type (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/MarketableSecuritiesandFairValueMeasurementsSummaryofAvailableforSaleMarketableSecuritiesBySecurityTypeDetails</Role>
      <ShortName>Marketable Securities and Fair Value Measurements - Summary of Available for Sale Marketable Securities By Security Type (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2412406 - Disclosure - Marketable Securities and Fair Value Measurements - Summary of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/MarketableSecuritiesandFairValueMeasurementsSummaryofFinancialAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Marketable Securities and Fair Value Measurements - Summary of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2415407 - Disclosure - Property and Equipment, Net - Summary of Property and Equipment Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/PropertyandEquipmentNetSummaryofPropertyandEquipmentNetDetails</Role>
      <ShortName>Property and Equipment, Net - Summary of Property and Equipment Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2416408 - Disclosure - Property and Equipment, Net - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/PropertyandEquipmentNetAdditionalInformationDetails</Role>
      <ShortName>Property and Equipment, Net - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2419409 - Disclosure - Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/AccruedExpensesDetails</Role>
      <ShortName>Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/AccruedExpensesTable</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2422410 - Disclosure - Notes Payable - Summary of Long Term Debt (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.foghorntx.com/role/NotesPayableSummaryofLongTermDebtDetails</Role>
      <ShortName>Notes Payable - Summary of Long Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2423411 - Disclosure - Notes Payable - Additional Information (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.foghorntx.com/role/NotesPayableAdditionalInformationDetails</Role>
      <ShortName>Notes Payable - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2425412 - Disclosure - Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CommonStockDetails</Role>
      <ShortName>Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/CommonStock</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2428413 - Disclosure - Stock-Based Compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Stock-Based Compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2429414 - Disclosure - Stock-Based Compensation - Schedule of Weighted Average Assumptions Used to Estimate Fair Value of Stock Options and Restricted Stock Awards using Black-Scholes Option Pricing Model (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensationScheduleofWeightedAverageAssumptionsUsedtoEstimateFairValueofStockOptionsandRestrictedStockAwardsusingBlackScholesOptionPricingModelDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Weighted Average Assumptions Used to Estimate Fair Value of Stock Options and Restricted Stock Awards using Black-Scholes Option Pricing Model (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2430415 - Disclosure - Stock-Based Compensation - Schedule of Share Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensationScheduleofShareOptionActivityDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Share Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2431416 - Disclosure - Stock-Based Compensation - Summary of Stock-based compensation expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/StockBasedCompensationSummaryofStockbasedcompensationexpenseDetails</Role>
      <ShortName>Stock-Based Compensation - Summary of Stock-based compensation expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2433417 - Disclosure - Collaboration Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CollaborationAgreementDetails</Role>
      <ShortName>Collaboration Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/CollaborationAgreements</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2436418 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/IncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2437419 - Disclosure - Income Taxes - Summary of Reconciliation of the U.S. federal statutory income tax rate to the Company's effective income tax rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/IncomeTaxesSummaryofReconciliationoftheUSfederalstatutoryincometaxratetotheCompanyseffectiveincometaxrateDetails</Role>
      <ShortName>Income Taxes - Summary of Reconciliation of the U.S. federal statutory income tax rate to the Company's effective income tax rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2438420 - Disclosure - Income Taxes - Summary of Net Deferred Tax Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/IncomeTaxesSummaryofNetDeferredTaxAssetsDetails</Role>
      <ShortName>Income Taxes - Summary of Net Deferred Tax Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2441421 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2442422 - Disclosure - Leases - Summary of Lease Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesSummaryofLeaseCostDetails</Role>
      <ShortName>Leases - Summary of Lease Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2443423 - Disclosure - Leases - Summary of Supplemental Cash Flow Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesSummaryofSupplementalCashFlowInformationRelatedtoLeasesDetails</Role>
      <ShortName>Leases - Summary of Supplemental Cash Flow Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2444424 - Disclosure - Leases - Summary of Weighted-Average Remaining Lease Term and Discount Rate Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesSummaryofWeightedAverageRemainingLeaseTermandDiscountRateLeasesDetails</Role>
      <ShortName>Leases - Summary of Weighted-Average Remaining Lease Term and Discount Rate Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2445425 - Disclosure - Leases - Summary of Minimum Lease Payment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesSummaryofMinimumLeasePaymentDetails</Role>
      <ShortName>Leases - Summary of Minimum Lease Payment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2446426 - Disclosure - Leases - Summary of Operating Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/LeasesSummaryofOperatingLeaseLiabilitiesDetails</Role>
      <ShortName>Leases - Summary of Operating Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2448427 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/CommitmentsandContingencies</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fhtx-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2451428 - Disclosure - Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.foghorntx.com/role/RelatedPartiesDetails</Role>
      <ShortName>Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.foghorntx.com/role/RelatedParties</ParentRole>
      <Position>59</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-K" original="fhtx-20211231.htm">fhtx-20211231.htm</File>
    <File>ex1021-foghornxloxocollabo.htm</File>
    <File>ex1022-aremploymentagreeme.htm</File>
    <File>ex1023-employmentagreement.htm</File>
    <File>ex1024-employmentagreement.htm</File>
    <File>ex1025-employmentagreement.htm</File>
    <File>ex1026-transitionagreement.htm</File>
    <File>ex1027-emplnoncomp.htm</File>
    <File>ex23130503foghornconsent-2.htm</File>
    <File>fhtx-20211231.xsd</File>
    <File>fhtx-20211231_cal.xml</File>
    <File>fhtx-20211231_def.xml</File>
    <File>fhtx-20211231_lab.xml</File>
    <File>fhtx-20211231_pre.xml</File>
    <File>fhtx-20211231xex311.htm</File>
    <File>fhtx-20211231xex312.htm</File>
    <File>fhtx-20211231xex321.htm</File>
    <File>fhtx-20211231xex322.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>fhtx-20211231_g1.jpg</File>
    <File>fhtx-20211231_g10.jpg</File>
    <File>fhtx-20211231_g11.jpg</File>
    <File>fhtx-20211231_g12.jpg</File>
    <File>fhtx-20211231_g13.jpg</File>
    <File>fhtx-20211231_g14.jpg</File>
    <File>fhtx-20211231_g15.jpg</File>
    <File>fhtx-20211231_g16.jpg</File>
    <File>fhtx-20211231_g17.jpg</File>
    <File>fhtx-20211231_g18.jpg</File>
    <File>fhtx-20211231_g19.jpg</File>
    <File>fhtx-20211231_g2.jpg</File>
    <File>fhtx-20211231_g20.jpg</File>
    <File>fhtx-20211231_g21.jpg</File>
    <File>fhtx-20211231_g22.jpg</File>
    <File>fhtx-20211231_g23.jpg</File>
    <File>fhtx-20211231_g24.jpg</File>
    <File>fhtx-20211231_g25.jpg</File>
    <File>fhtx-20211231_g26.jpg</File>
    <File>fhtx-20211231_g27.jpg</File>
    <File>fhtx-20211231_g28.jpg</File>
    <File>fhtx-20211231_g29.jpg</File>
    <File>fhtx-20211231_g3.jpg</File>
    <File>fhtx-20211231_g30.jpg</File>
    <File>fhtx-20211231_g31.jpg</File>
    <File>fhtx-20211231_g32.jpg</File>
    <File>fhtx-20211231_g33.jpg</File>
    <File>fhtx-20211231_g34.jpg</File>
    <File>fhtx-20211231_g35.jpg</File>
    <File>fhtx-20211231_g36.jpg</File>
    <File>fhtx-20211231_g37.jpg</File>
    <File>fhtx-20211231_g4.jpg</File>
    <File>fhtx-20211231_g5.jpg</File>
    <File>fhtx-20211231_g6.jpg</File>
    <File>fhtx-20211231_g7.jpg</File>
    <File>fhtx-20211231_g8.jpg</File>
    <File>fhtx-20211231_g9.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="580">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
