Consolidated Statements of Changes in Convertible Preferred Units, Members' (Deficit) and Stockholders' Equity (Unaudited) - USD ($) | Total | Conversion of Series A Preferred Units | Conversion of Series B Preferred Units | Series A Preferred Units | Series A Preferred UnitsConversion of Series A Preferred Units | Series B Preferred Units | Series B Preferred UnitsConversion of Series B Preferred Units | Common Units | Common UnitsConversion of Member Common Units | Common Stock | Common StockConversion of Series A Preferred Units | Common StockConversion of Series B Preferred Units | Common StockConversion of Member Common Units | Common StockSeries A Preferred Units | Common StockSeries B Preferred Units | Common StockCommon Units | Common StockProfits Interests | Additional Paid-in Capital | Additional Paid-in CapitalConversion of Series A Preferred Units | Additional Paid-in CapitalConversion of Series B Preferred Units | Additional Paid-in CapitalConversion of Member Common Units | Accumulated Deficit | Accumulated Other Comprehensive Income | Deficit Attributable to Electrocore, Inc. Subsidiaries and Affiliates | Deficit Attributable to Electrocore, Inc. Subsidiaries and AffiliatesConversion of Series A Preferred Units | Deficit Attributable to Electrocore, Inc. Subsidiaries and AffiliatesConversion of Series B Preferred Units | Noncontrolling Interest |
Balances, beginning of period at Dec. 31, 2016 | $ (61,053,485) | | | | | | | $ 30,912,091 | | | | | | | | | | $ 8,126,416 | | | | $ (100,706,419) | $ 214,006 | $ (61,453,906) | | | $ 400,421 |
Convertible Preferred Units, beginning of period, shares at Dec. 31, 2016 | | | | 70,918,506 | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Preferred Units Value, beginning of period at Dec. 31, 2016 | | | | $ 53,518,463 | | | | | | | | | | | | | | | | | | | | | | | |
Common Units, beginning of period, shares at Dec. 31, 2016 | | | | | | | | 90,711,018 | | | | | | | | | | | | | | | | | | | |
Net loss | (36,028,781) | | | | | | | | | | | | | | | | | | | | | (35,792,423) | | (35,792,423) | | | (236,358) |
Other comprehensive income | (133,793) | | | | | | | | | | | | | | | | | | | | | | (133,793) | (133,793) | | | |
Issuance of stock units, net | 2,061,836 | | | | | | | $ 4,074,447 | | | | | | | | | | (2,012,611) | | | | | | 2,061,836 | | | |
Issuance of Series B Preferred Units, net, shares, Temporary Equity | | | | | | 105,186,020 | | | | | | | | | | | | | | | | | | | | | |
Issuance of Series B Preferred Units, net, Temporary Equity | | | | | | $ 68,755,544 | | | | | | | | | | | | | | | | | | | | | |
Issuance of stock, shares | | | | | | | | 18,340,000 | | | | | | | | | | | | | | | | | | | |
Noncontrolling interest contributions | 439,992 | | | | | | | | | | | | | | | | | | | | | | | | | | 439,992 |
Stock and Unit-based compensation | 462,329 | | | | | | | | | | | | | | | | | 462,329 | | | | | | 462,329 | | | |
Common Units issued in connection with convertible bridge notes, net | 4,784,346 | | | | | | | $ 5,194,081 | | | | | | | | | | (409,735) | | | | | | 4,784,346 | | | |
Common Units issued in connection with convertible bridge notes, net, shares | | | | | | | | 36,565,948 | | | | | | | | | | | | | | | | | | | |
Common Units issued in exchange for elimination of preference, shares | | | | | | | | 73,365,174 | | | | | | | | | | | | | | | | | | | |
Common Units issued for initial funding of Series B Preferred Units | | | | | | | | | | | | | | | | | | 16,430,086 | | | | (16,430,086) | | | | | |
Balances, end of period at Dec. 31, 2017 | (89,467,556) | | | | | | | $ 40,180,619 | | | | | | | | | | 22,596,485 | | | | (152,928,928) | 80,213 | (90,071,611) | | | 604,055 |
Convertible Preferred Units end of period, shares at Dec. 31, 2017 | | | | 70,918,506 | | 105,186,020 | | | | | | | | | | | | | | | | | | | | | |
Convertible Preferred Units Value end of period at Dec. 31, 2017 | $ 122,274,007 | | | $ 53,518,463 | | $ 68,755,544 | | | | | | | | | | | | | | | | | | | | | |
Common Units, end of period, shares at Dec. 31, 2017 | 218,982,140 | | | | | | | 218,982,140 | | | | | | | | | | | | | | | | | | | |
Common Stock, end of period, shares at Dec. 31, 2017 | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Net loss | Electrocore, LLC | $ (21,063,332) | | | | | | | | | | | | | | | | | | | | | (21,118,337) | (5,085) | (21,123,422) | | | 60,090 |
Net loss | ElectroCore, Inc | (19,366,239) | | | | | | | | | | | | | | | | | | | | | (19,366,239) | | (19,366,239) | | | |
Net loss | (40,429,571) | | | | | | | | | | | | | | | | | | | | | | | | | | |
Reclass of accumulated deficit to APIC | | | | | | | | | | | | | | | | | | (174,047,265) | | | | 174,047,265 | | | | | |
Other comprehensive income | (49,759) | | | | | | | | | | | | | | | | | | | | | | (44,674) | (44,674) | | | (5,085) |
Conversion of units to common stock | 1,345 | $ 53,518,463 | $ 68,755,544 | | | | | | $ (40,180,619) | | $ 3,940 | $ 5,844 | $ 12,099 | | | | $ 1,345 | | $ 53,514,523 | $ 68,749,700 | $ 40,168,520 | | | 1,345 | $ 53,518,463 | $ 68,755,544 | |
Temporary equity conversion of units to common stock, shares | | | | | (70,918,506) | | (105,186,020) | | | | | | | | | | | | | | | | | | | | |
Temporary equity conversion of units to common stock | | | | | $ (53,518,463) | | $ (68,755,544) | | | | | | | | | | | | | | | | | | | | |
Conversion of units to common stock, shares | | | | | | | | | (218,982,140) | | 3,939,917 | 5,843,668 | 12,099,280 | | | | 1,345,230 | | | | | | | | | | |
Stock dividend issued to Series A preferred holders | | | | | | | | | | $ 242 | | | | | | | | 3,628,850 | | | | (3,629,092) | | | | | |
Stock dividend issued to Series A preferred holders, shares | | | | | | | | | | 241,939 | | | | | | | | | | | | | | | | | |
Issuance of stock units, net | 89,698,655 | | | | | | | | | $ 5,980 | | | | | | | | 89,692,675 | | | | | | 89,698,655 | | | |
Issuance of stock, shares | | | | | | | | | | 5,980,000 | | | | | | | | | | | | | | | | | |
Issuance costs related to initial public offering | (12,177,438) | | | | | | | | | | | | | | | | | (12,177,438) | | | | | | (12,177,438) | | | |
Reclass of warrant liability to equity | 4,110,467 | | | | | | | | | | | | | | | | | 4,110,467 | | | | | | 4,110,467 | | | |
Noncontrolling interest distributions | (23,450) | | | | | | | | | | | | | | | | | | | | | | | | | | (23,450) |
Stock and Unit-based compensation | 6,458,115 | | | | | | | | | | | | | | | | | 6,458,115 | | | | | | 6,458,115 | | | |
Balances, end of period at Sep. 30, 2018 | $ 80,394,815 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Preferred Units end of period, shares at Sep. 30, 2018 | | | | 0 | | 0 | | | | | | | | | | | | | | | | | | | | | |
Common Units, end of period, shares at Sep. 30, 2018 | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock, end of period, shares at Sep. 30, 2018 | 29,450,034 | | | | | | | | | 29,450,034 | | | | | | | | | | | | | | | | | |
Balances, end of period at Sep. 30, 2018 | $ 80,394,815 | | | | | | | | | $ 29,450 | | | | | | | | 102,694,632 | | | | (22,995,331) | 30,454 | 79,759,205 | | | 635,610 |
Convertible Preferred Units Value, beginning of period at Jun. 20, 2018 | | | | $ 54,923,430 | | | | | | | | | | | | | | | | | | | | | | | |
Conversion of units to common stock, shares | | | | | | | | | | 23,470,034 | | | | 4,181,856 | 5,843,668 | 12,099,280 | 1,345,230 | | | | | | | | | | |
Balances, end of period at Sep. 30, 2018 | $ 80,394,815 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Preferred Units end of period, shares at Sep. 30, 2018 | | | | 0 | | 0 | | | | | | | | | | | | | | | | | | | | | |
Common Units, end of period, shares at Sep. 30, 2018 | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock, end of period, shares at Sep. 30, 2018 | 29,450,034 | | | | | | | | | 29,450,034 | | | | | | | | | | | | | | | | | |
Balances, end of period at Sep. 30, 2018 | $ 80,394,815 | | | | | | | | | $ 29,450 | | | | | | | | $ 102,694,632 | | | | $ (22,995,331) | $ 30,454 | $ 79,759,205 | | | $ 635,610 |