<?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="enta-20260320.xsd" xlink:type="simple"/>
    <context id="C_a66d4ef4-91c5-42d6-a1ee-398cad113101">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001177648</identifier>
        </entity>
        <period>
            <startDate>2026-03-20</startDate>
            <endDate>2026-03-20</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_c2969c95-2334-412d-9f08-678a195cfbbb">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_a9a87e94-d683-4956-ac1c-b0a1d5692491">0001177648</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_2c0c4f13-daff-4a24-8097-1c848ebe629b">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_71456da7-8114-40c3-8e72-0435d346eaa4">2026-03-20</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_81d676cb-374a-4513-a6ac-1bb79922abfd">ENANTA PHARMACEUTICALS, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_bce36740-fd82-4604-a3a4-a38a1b757f73">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_4113bd43-ed59-43ad-99e6-2c999aba1974">001-35839</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_f8650b45-d27a-4a25-9201-9df3fda9375e">04-3205099</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_e1338233-ca1a-4205-ba5a-202f3b99f715">4 Kingsbury Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_aa771e62-019d-4ff7-ba71-d86cd3f6cc1d">Watertown</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_eca1a43b-6fef-494e-9c53-7e6d0c0345cd">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_f32167e6-00e8-4961-879e-3db7943fe1ce">02472</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_ff2bde5a-adb4-4f06-8f70-d431f2580461">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_1b391194-9aec-4d13-ac06-c90c1949a0c6">607-0800</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_da989e54-7eb5-4f1f-bf44-571e45fc7855">Not Applicable</dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_9a4d24fb-d95d-4a3e-8254-ac8163a673cc">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_a92ebef6-41f9-4201-9052-4930950452a6">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_780dab7d-2c00-4df5-a32a-3252387fd770">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_df155890-a207-48f3-aadc-1dde206ca433">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_b0371ddc-3eb3-447a-aaae-d8f3ec324081">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_ed33b164-95cf-4b37-aed6-575a14af4d1e">ENTA</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_34c4d6fa-e950-42dd-8e40-34bc5bd27693">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_a66d4ef4-91c5-42d6-a1ee-398cad113101"
      id="F_8fe7b5c5-2bbf-41f4-944b-43ed803e6b31">false</dei:EntityEmergingGrowthCompany>
</xbrl>
