<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>216</ContextCount>
  <ElementCount>466</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>83</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Changes in Stockholders' Equity and Members' Deficit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfChangesInStockholdersEquityAndMembersDeficit</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity and Members' Deficit</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureBusiness</Role>
      <ShortName>Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Significant Risks and Uncertainties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantRisksAndUncertainties</Role>
      <ShortName>Significant Risks and Uncertainties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Cash, Cash Equivalents and Marketable Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCashCashEquivalentsAndMarketableSecurities</Role>
      <ShortName>Cash, Cash Equivalents and Marketable Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Inventory</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureInventory</Role>
      <ShortName>Inventory</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Property and Equipment, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentNet</Role>
      <ShortName>Property and Equipment, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Cloud Computing Arrangement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCloudComputingArrangement</Role>
      <ShortName>Cloud Computing Arrangement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Accrued Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureAccruedExpenses</Role>
      <ShortName>Accrued Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Note Payable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNotePayable</Role>
      <ShortName>Note Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Net Loss Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNetLossPerShare</Role>
      <ShortName>Net Loss Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Corporate Conversion and Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCorporateConversionAndEquity</Role>
      <ShortName>Corporate Conversion and Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Variable Interest Entity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureVariableInterestEntity</Role>
      <ShortName>Variable Interest Entity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Warrant Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureWarrantLiability</Role>
      <ShortName>Warrant Liability</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Stock Compensation and Unit-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensation</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureEmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Restructuring Charges and Other Severance Related Charges</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRestructuringChargesAndOtherSeveranceRelatedCharges</Role>
      <ShortName>Restructuring Charges and Other Severance Related Charges</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPoliciesTables</Role>
      <ShortName>Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRevenueRecognition</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Cash, Cash Equivalents, and Marketable Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCashCashEquivalentsAndMarketableSecuritiesTables</Role>
      <ShortName>Cash, Cash Equivalents, and Marketable Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Inventory (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureInventoryTables</Role>
      <ShortName>Inventory (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureInventory</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Property and Equipment, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentNetTables</Role>
      <ShortName>Property and Equipment, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentNet</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeases</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Accrued Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureAccruedExpensesTables</Role>
      <ShortName>Accrued Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureAccruedExpenses</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Net Loss Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNetLossPerShareTables</Role>
      <ShortName>Net Loss Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNetLossPerShare</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxes</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Stock Compensation and Unit-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationTables</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensation</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Business - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureBusinessAdditionalInformationDetails</Role>
      <ShortName>Business - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Significant Accounting Policies - Summary of Estimated Useful Lives of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesOfPropertyAndEquipmentDetails</Role>
      <ShortName>Significant Accounting Policies - Summary of Estimated Useful Lives of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Significant Risks and Uncertainties - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSignificantRisksAndUncertaintiesAdditionalInformationDetails</Role>
      <ShortName>Significant Risks and Uncertainties - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Revenue Recognition - Summary of Net Sales Disaggregated by Geographic Area (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRevenueRecognitionSummaryOfNetSalesDisaggregatedByGeographicAreaDetails</Role>
      <ShortName>Revenue Recognition - Summary of Net Sales Disaggregated by Geographic Area (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Revenue Recognition - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRevenueRecognitionAdditionalInformationDetails</Role>
      <ShortName>Revenue Recognition - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Cash, Cash Equivalents, and Marketable Securities - Summary of Cash, Cash Equivalents, and Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCashCashEquivalentsAndMarketableSecuritiesSummaryOfCashCashEquivalentsAndMarketableSecuritiesDetails</Role>
      <ShortName>Cash, Cash Equivalents, and Marketable Securities - Summary of Cash, Cash Equivalents, and Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Fair Value Measurements - Summary of Assets and Liabilities Carried at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails</Role>
      <ShortName>Fair Value Measurements - Summary of Assets and Liabilities Carried at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Fair Value Measurements - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureFairValueMeasurementsAdditionalInformationDetails</Role>
      <ShortName>Fair Value Measurements - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Inventory - Inventories Stated at Lower of Cost or Market (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureInventoryInventoriesStatedAtLowerOfCostOrMarketDetails</Role>
      <ShortName>Inventory - Inventories Stated at Lower of Cost or Market (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Inventory - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureInventoryAdditionalInformationDetails</Role>
      <ShortName>Inventory - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Property and Equipment, Net - Schedule of Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails</Role>
      <ShortName>Property and Equipment, Net - Schedule of Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Property and Equipment, Net - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentNetAdditionalInformationDetails</Role>
      <ShortName>Property and Equipment, Net - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Leases - Supplemental Balance Sheet Information for Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails</Role>
      <ShortName>Leases - Supplemental Balance Sheet Information for Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Leases - Supplemental Statement of Cash Flows Information for Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails</Role>
      <ShortName>Leases - Supplemental Statement of Cash Flows Information for Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Leases - Future Minimum Lease Payments under Non-Cancellable Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails</Role>
      <ShortName>Leases - Future Minimum Lease Payments under Non-Cancellable Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Leases - Schedule of Future Minimum Lease Payments Under Non-Cancelable Operating leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureLeasesScheduleOfFutureMinimumLeasePaymentsUnderNonCancelableOperatingLeasesDetails</Role>
      <ShortName>Leases - Schedule of Future Minimum Lease Payments Under Non-Cancelable Operating leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Cloud Computing Arrangement - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCloudComputingArrangementAdditionalInformationDetails</Role>
      <ShortName>Cloud Computing Arrangement - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Accrued Expenses - Schedule of Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureAccruedExpensesScheduleOfAccruedExpensesDetails</Role>
      <ShortName>Accrued Expenses - Schedule of Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Note Payable - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNotePayableAdditionalInformationDetails</Role>
      <ShortName>Note Payable - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Net Loss Per Share - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNetLossPerShareAdditionalInformationDetails</Role>
      <ShortName>Net Loss Per Share - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Net Loss Per Share - Schedule of Common Stock Equivalents Excluded from Computation of Diluted Loss per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails</Role>
      <ShortName>Net Loss Per Share - Schedule of Common Stock Equivalents Excluded from Computation of Diluted Loss per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Corporate Conversion and Equity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCorporateConversionAndEquityAdditionalInformationDetails</Role>
      <ShortName>Corporate Conversion and Equity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Variable Interest Entity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureVariableInterestEntityAdditionalInformationDetails</Role>
      <ShortName>Variable Interest Entity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Income Taxes - Reconciliation of Income Tax Provision Computed at Statutory Rates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfIncomeTaxProvisionComputedAtStatutoryRatesDetails</Role>
      <ShortName>Income Taxes - Reconciliation of Income Tax Provision Computed at Statutory Rates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Income Taxes - Components of Deferred Income Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesComponentsOfDeferredIncomeTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Components of Deferred Income Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Income Taxes - Components of Loss Before Provision For Income Taxes Domestic and Foreign (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeProvisionForIncomeTaxesDomesticAndForeignDetails</Role>
      <ShortName>Income Taxes - Components of Loss Before Provision For Income Taxes Domestic and Foreign (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Income Taxes - Schedule of Income Tax Provision From Continuing Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxProvisionFromContinuingOperationsDetails</Role>
      <ShortName>Income Taxes - Schedule of Income Tax Provision From Continuing Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Warrant Liability - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureWarrantLiabilityAdditionalInformationDetails</Role>
      <ShortName>Warrant Liability - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Stock Compensation and Unit-Based Compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Stock Compensation and Unit-Based Compensation - Summary of Stock Options Granted Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationSummaryOfStockOptionsGrantedActivityDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Summary of Stock Options Granted Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Stock Compensation and Unit-Based Compensation - Summary of Additional Information about Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationSummaryOfAdditionalInformationAboutStockOptionsDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Summary of Additional Information about Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Stock Compensation and Unit-Based Compensation - Summary of Restricted Stock Awards Granted Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationSummaryOfRestrictedStockAwardsGrantedActivityDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Summary of Restricted Stock Awards Granted Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Stock Compensation and Unit-Based Compensation - Summary of Restricted Stock and Deferred Stock Units Granted Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationSummaryOfRestrictedStockAndDeferredStockUnitsGrantedActivityDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Summary of Restricted Stock and Deferred Stock Units Granted Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Stock Compensation and Unit-Based Compensation - Summary of Weighted Average Assumptions Used in Valuing Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureStockCompensationAndUnitBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails</Role>
      <ShortName>Stock Compensation and Unit-Based Compensation - Summary of Weighted Average Assumptions Used in Valuing Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Employee Benefit Plan - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureEmployeeBenefitPlanAdditionalInformationDetails</Role>
      <ShortName>Employee Benefit Plan - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Commitments and Contingencies - Schedule of Warrants Issued (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Warrants Issued (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Restructuring Charges and Other Severance Related Charges - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureRestructuringChargesAndOtherSeveranceRelatedChargesAdditionalInformationDetails</Role>
      <ShortName>Restructuring Charges and Other Severance Related Charges - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="ecor-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.electrocore.com/20191231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>ecor-20191231.xml</File>
    <File>ecor-20191231.xsd</File>
    <File>ecor-20191231_cal.xml</File>
    <File>ecor-20191231_def.xml</File>
    <File>ecor-20191231_lab.xml</File>
    <File>ecor-20191231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
