<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ecor-20221231.xsd" xlink:type="simple"/>
    <context id="From2022-01-01to2022-12-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001560258</identifier>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="AsOf2022-06-30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001560258</identifier>
        </entity>
        <period>
            <instant>2022-06-30</instant>
        </period>
    </context>
    <context id="AsOf2023-04-20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001560258</identifier>
        </entity>
        <period>
            <instant>2023-04-20</instant>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:EntityCentralIndexKey contextRef="From2022-01-01to2022-12-31">0001560258</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="From2022-01-01to2022-12-31">true</dei:AmendmentFlag>
    <dei:AmendmentDescription contextRef="From2022-01-01to2022-12-31">This Amendment is being filed to amend and restate Items 10, 11, 12, 13, and 14 of Part III of the Form 10-K in their entirety to provide the information that the Company indicated that it would incorporate by reference from its Proxy Statement for the 2022 annual report of the stockholders in reliance on General Instruction G(3) to Form 10-K.</dei:AmendmentDescription>
    <dei:DocumentFiscalPeriodFocus contextRef="From2022-01-01to2022-12-31">FY</dei:DocumentFiscalPeriodFocus>
    <dei:DocumentFiscalYearFocus contextRef="From2022-01-01to2022-12-31">2022</dei:DocumentFiscalYearFocus>
    <dei:CurrentFiscalYearEndDate contextRef="From2022-01-01to2022-12-31">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:SecurityExchangeName contextRef="From2022-01-01to2022-12-31" id="xdx2ixbrl0030">NASDAQ</dei:SecurityExchangeName>
    <dei:DocumentType contextRef="From2022-01-01to2022-12-31">10-K/A</dei:DocumentType>
    <dei:DocumentAnnualReport contextRef="From2022-01-01to2022-12-31">true</dei:DocumentAnnualReport>
    <dei:DocumentPeriodEndDate contextRef="From2022-01-01to2022-12-31">2022-12-31</dei:DocumentPeriodEndDate>
    <dei:DocumentTransitionReport contextRef="From2022-01-01to2022-12-31">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="From2022-01-01to2022-12-31">001-38538</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="From2022-01-01to2022-12-31">electroCore, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="From2022-01-01to2022-12-31">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="From2022-01-01to2022-12-31">20-3454976</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="From2022-01-01to2022-12-31">200 Forge Way</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="From2022-01-01to2022-12-31">Suite 205</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="From2022-01-01to2022-12-31">Rockaway</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="From2022-01-01to2022-12-31">NJ</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="From2022-01-01to2022-12-31">07866</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="From2022-01-01to2022-12-31">(973)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="From2022-01-01to2022-12-31">290-0097</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="From2022-01-01to2022-12-31">Common Stock, $0.001 par value</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="From2022-01-01to2022-12-31">ECOR</dei:TradingSymbol>
    <dei:EntityWellKnownSeasonedIssuer contextRef="From2022-01-01to2022-12-31">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityVoluntaryFilers contextRef="From2022-01-01to2022-12-31">No</dei:EntityVoluntaryFilers>
    <dei:EntityCurrentReportingStatus contextRef="From2022-01-01to2022-12-31">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="From2022-01-01to2022-12-31">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="From2022-01-01to2022-12-31">Non-accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="From2022-01-01to2022-12-31">true</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="From2022-01-01to2022-12-31">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="From2022-01-01to2022-12-31">true</dei:EntityExTransitionPeriod>
    <dei:EntityShellCompany contextRef="From2022-01-01to2022-12-31">false</dei:EntityShellCompany>
    <dei:EntityPublicFloat contextRef="AsOf2022-06-30" decimals="0" unitRef="USD">33125433</dei:EntityPublicFloat>
    <dei:EntityCommonStockSharesOutstanding contextRef="AsOf2023-04-20" decimals="INF" unitRef="Shares">4749221</dei:EntityCommonStockSharesOutstanding>
    <dei:AuditorName contextRef="From2022-01-01to2022-12-31">Marcum LLP</dei:AuditorName>
    <dei:AuditorLocation contextRef="From2022-01-01to2022-12-31">New York, NY</dei:AuditorLocation>
    <dei:AuditorFirmId contextRef="From2022-01-01to2022-12-31">688</dei:AuditorFirmId>
</xbrl>
