<?xml version="1.0" encoding="us-ascii" standalone="yes"?>
<!--Created by EdgarAgents, Powered by IRIS Carbon-->
<link:linkbase xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRevenueRecognitionSummaryOfNetSalesDisaggregatedByGeographicAreaDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRevenueRecognitionSummaryOfNetSalesDisaggregatedByGeographicAreaDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoriesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#InventoriesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCloudComputingArrangementAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCloudComputingArrangementAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureSubsequentEventsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationScheduleOfRecognizedStockCompensationForEquityAwardsDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationScheduleOfRecognizedStockCompensationForEquityAwardsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureIncomeTaxesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/NotesPayableAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#NotesPayableAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#SignificantRisksandUncertaintiesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockholdersEquityAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesSummaryofCashCashEquivalentsandMarketableSecuritiesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#CashCashEquivalentsandMarketableSecuritiesSummaryofCashCashEquivalentsandMarketableSecuritiesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/CondensedConsolidatedStatementsofEquity" xlink:type="simple" xlink:href="ecor-20210331.xsd#CondensedConsolidatedStatementsofEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/TemplateLink" xlink:type="simple" xlink:href="ecor-20210331.xsd#TemplateLink" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DocumentDocumentAndEntityInformation" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_StatementCondensedConsolidatedBalanceSheets" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_StatementCondensedConsolidatedBalanceSheetsParenthetical" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureTheCompany" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureTheCompany" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPolicies" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureSummaryOfSignificantAccountingPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertainties" xlink:type="simple" xlink:href="ecor-20210331.xsd#SignificantRisksandUncertainties" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRevenueRecognition" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRevenueRecognition" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCashCashEquivalentsAndMarketableSecurities" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCashCashEquivalentsAndMarketableSecurities" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurements" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureFairValueMeasurements" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventories" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureInventories" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeases" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeases" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCloudComputingArrangement" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCloudComputingArrangement" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities" />
  <link:roleRef roleURI="http://electrocore.com/role/NotesPayable" xlink:type="simple" xlink:href="ecor-20210331.xsd#NotesPayable" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockholdersEquity" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockholdersEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShare" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureNetLossPerShare" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxes" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureIncomeTaxes" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensation" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensation" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedCharges" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRestructuringAndOtherRelatedCharges" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingencies" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCommitmentsAndContingencies" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNet" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosurePropertyAndEquipmentNet" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSubsequentEvents" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureSubsequentEvents" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#SignificantRisksandUncertaintiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRevenueRecognitionTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRevenueRecognitionTables" />
  <link:roleRef roleURI="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#CashCashEquivalentsandMarketableSecuritiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureFairValueMeasurementsTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventoriesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureInventoriesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureNetLossPerShareTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRestructuringAndOtherRelatedChargesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureCommitmentsAndContingenciesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetTables" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosurePropertyAndEquipmentNetTables" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#SummaryofSignificantAccountingPoliciesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRevenueRecognitionAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureFairValueMeasurementsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoriesInventoriesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#InventoriesInventoriesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails2" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails2" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureLeasesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesScheduleOfAccruedExpensesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesScheduleOfAccruedExpensesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToStockOptionsDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToStockOptionsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureStockBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20210331.xsd#Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="us-gaap_RestructuringCostAndReserveLineItems" xlink:title="us-gaap_RestructuringCostAndReserveLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:title="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_RestructuringCostAndReserveLineItems" xlink:to="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:title="Definition : us-gaap_RestructuringCostAndReserveLineItems to us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="us-gaap_RestructuringCostAndReserveAxis" xlink:title="us-gaap_RestructuringCostAndReserveAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:to="us-gaap_RestructuringCostAndReserveAxis" xlink:title="Definition : us-gaap_ScheduleOfRestructuringAndRelatedCostsTable to us-gaap_RestructuringCostAndReserveAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="us-gaap_TypeOfRestructuringDomain" xlink:title="us-gaap_TypeOfRestructuringDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RestructuringCostAndReserveAxis" xlink:to="us-gaap_TypeOfRestructuringDomain" xlink:title="Definition : us-gaap_RestructuringCostAndReserveAxis to us-gaap_TypeOfRestructuringDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="us-gaap_TypeOfRestructuringDomain_1" xlink:title="us-gaap_TypeOfRestructuringDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RestructuringCostAndReserveAxis" xlink:to="us-gaap_TypeOfRestructuringDomain_1" xlink:title="Definition : us-gaap_RestructuringCostAndReserveAxis to us-gaap_TypeOfRestructuringDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeSeveranceMember" xlink:label="us-gaap_EmployeeSeveranceMember" xlink:title="us-gaap_EmployeeSeveranceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TypeOfRestructuringDomain" xlink:to="us-gaap_EmployeeSeveranceMember" xlink:title="Definition : us-gaap_TypeOfRestructuringDomain to us-gaap_EmployeeSeveranceMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualAxis" xlink:label="srt_TitleOfIndividualAxis" xlink:title="srt_TitleOfIndividualAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:to="srt_TitleOfIndividualAxis" xlink:title="Definition : us-gaap_ScheduleOfRestructuringAndRelatedCostsTable to srt_TitleOfIndividualAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_FormerOfficerMember" xlink:label="ecor_FormerOfficerMember" xlink:title="ecor_FormerOfficerMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_FormerOfficerMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_FormerOfficerMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NewEmployeeMember" xlink:label="ecor_NewEmployeeMember" xlink:title="ecor_NewEmployeeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_NewEmployeeMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_NewEmployeeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="us-gaap_FinancialInstrumentAxis" xlink:title="us-gaap_FinancialInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:to="us-gaap_FinancialInstrumentAxis" xlink:title="Definition : us-gaap_ScheduleOfRestructuringAndRelatedCostsTable to us-gaap_FinancialInstrumentAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_AccruedExpenseAndOtherCurrentLiabilitiesMember" xlink:label="ecor_AccruedExpenseAndOtherCurrentLiabilitiesMember" xlink:title="ecor_AccruedExpenseAndOtherCurrentLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="ecor_AccruedExpenseAndOtherCurrentLiabilitiesMember" xlink:title="Definition : us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain to ecor_AccruedExpenseAndOtherCurrentLiabilitiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeveranceCosts1" xlink:label="us-gaap_SeveranceCosts1" xlink:title="us-gaap_SeveranceCosts1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RestructuringCostAndReserveLineItems" xlink:to="us-gaap_SeveranceCosts1" xlink:title="Definition : us-gaap_RestructuringCostAndReserveLineItems to us-gaap_SeveranceCosts1" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_RestructuringAndOtherRelatedCharges" xlink:label="ecor_RestructuringAndOtherRelatedCharges" xlink:title="ecor_RestructuringAndOtherRelatedCharges" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RestructuringCostAndReserveLineItems" xlink:to="ecor_RestructuringAndOtherRelatedCharges" xlink:title="Definition : us-gaap_RestructuringCostAndReserveLineItems to ecor_RestructuringAndOtherRelatedCharges" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="us-gaap_RestructuringReserve" xlink:title="us-gaap_RestructuringReserve" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RestructuringCostAndReserveLineItems" xlink:to="us-gaap_RestructuringReserve" xlink:title="Definition : us-gaap_RestructuringCostAndReserveLineItems to us-gaap_RestructuringReserve" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRevenueRecognitionSummaryOfNetSalesDisaggregatedByGeographicAreaDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="us-gaap_DisaggregationOfRevenueLineItems" xlink:title="us-gaap_DisaggregationOfRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="us-gaap_DisaggregationOfRevenueTable" xlink:title="us-gaap_DisaggregationOfRevenueTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_DisaggregationOfRevenueTable" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_DisaggregationOfRevenueTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DisaggregationOfRevenueTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : us-gaap_DisaggregationOfRevenueTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_AmericasMember" xlink:label="srt_AmericasMember" xlink:title="srt_AmericasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="srt_AmericasMember" xlink:title="Definition : srt_SegmentGeographicalDomain to srt_AmericasMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_EuropeMember" xlink:label="srt_EuropeMember" xlink:title="srt_EuropeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="srt_EuropeMember" xlink:title="Definition : srt_SegmentGeographicalDomain to srt_EuropeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_DE" xlink:label="country_DE" xlink:title="country_DE" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_DE" xlink:title="Definition : srt_SegmentGeographicalDomain to country_DE" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_GB" xlink:label="country_GB" xlink:title="country_GB" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_GB" xlink:title="Definition : srt_SegmentGeographicalDomain to country_GB" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_OtherMember" xlink:label="ecor_OtherMember" xlink:title="ecor_OtherMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_OtherMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_OtherMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:title="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:title="us-gaap_FairValueByFairValueHierarchyLevelAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:title="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:title="Definition : us-gaap_FairValueByFairValueHierarchyLevelAxis to us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1" xlink:title="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1" xlink:title="Definition : us-gaap_FairValueByFairValueHierarchyLevelAxis to us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="us-gaap_FairValueInputsLevel1Member" xlink:title="us-gaap_FairValueInputsLevel1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="us-gaap_FairValueInputsLevel2Member" xlink:title="us-gaap_FairValueInputsLevel2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel2Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="us-gaap_FairValueInputsLevel3Member" xlink:title="us-gaap_FairValueInputsLevel3Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel3Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="us-gaap_InvestmentTypeAxis" xlink:title="us-gaap_InvestmentTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="us-gaap_InvestmentTypeAxis" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to us-gaap_InvestmentTypeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="us-gaap_InvestmentTypeCategorizationMember" xlink:title="us-gaap_InvestmentTypeCategorizationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" xlink:title="Definition : us-gaap_InvestmentTypeAxis to us-gaap_InvestmentTypeCategorizationMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USTreasuryBondSecuritiesMember" xlink:label="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="us-gaap_USTreasuryBondSecuritiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="Definition : us-gaap_InvestmentTypeCategorizationMember to us-gaap_USTreasuryBondSecuritiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:title="us-gaap_CashAndCashEquivalentsFairValueDisclosure" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="us-gaap_CashCashEquivalentsAndShortTermInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoriesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryLineItems" xlink:label="us-gaap_InventoryLineItems" xlink:title="us-gaap_InventoryLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryCurrentTable" xlink:label="us-gaap_InventoryCurrentTable" xlink:title="us-gaap_InventoryCurrentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_InventoryLineItems" xlink:to="us-gaap_InventoryCurrentTable" xlink:title="Definition : us-gaap_InventoryLineItems to us-gaap_InventoryCurrentTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:label="us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:title="us-gaap_ChangeInAccountingEstimateByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_InventoryCurrentTable" xlink:to="us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:title="Definition : us-gaap_InventoryCurrentTable to us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:label="us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:title="us-gaap_ChangeInAccountingEstimateTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:to="us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:title="Definition : us-gaap_ChangeInAccountingEstimateByTypeAxis to us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:label="us-gaap_ChangeInAccountingEstimateTypeDomain_1" xlink:title="us-gaap_ChangeInAccountingEstimateTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:to="us-gaap_ChangeInAccountingEstimateTypeDomain_1" xlink:title="Definition : us-gaap_ChangeInAccountingEstimateByTypeAxis to us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryValuationAndObsolescenceMember" xlink:label="us-gaap_InventoryValuationAndObsolescenceMember" xlink:title="us-gaap_InventoryValuationAndObsolescenceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:to="us-gaap_InventoryValuationAndObsolescenceMember" xlink:title="Definition : us-gaap_ChangeInAccountingEstimateTypeDomain to us-gaap_InventoryValuationAndObsolescenceMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryValuationReserves" xlink:label="us-gaap_InventoryValuationReserves" xlink:title="us-gaap_InventoryValuationReserves" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="us-gaap_InventoryValuationReserves" xlink:title="Definition : us-gaap_InventoryLineItems to us-gaap_InventoryValuationReserves" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_InventoryNoncurrentRawMaterials" xlink:label="ecor_InventoryNoncurrentRawMaterials" xlink:title="ecor_InventoryNoncurrentRawMaterials" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="ecor_InventoryNoncurrentRawMaterials" xlink:title="Definition : us-gaap_InventoryLineItems to ecor_InventoryNoncurrentRawMaterials" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_InventoryNoncurrentWorkInProcess" xlink:label="ecor_InventoryNoncurrentWorkInProcess" xlink:title="ecor_InventoryNoncurrentWorkInProcess" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="ecor_InventoryNoncurrentWorkInProcess" xlink:title="Definition : us-gaap_InventoryLineItems to ecor_InventoryNoncurrentWorkInProcess" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:title="us-gaap_PropertyPlantAndEquipmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:title="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="us-gaap_PropertyPlantAndEquipmentByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfPropertyPlantAndEquipmentTable to us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="us-gaap_MachineryAndEquipmentMember" xlink:title="us-gaap_MachineryAndEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_MachineryAndEquipmentMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_MachineryAndEquipmentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="us-gaap_FurnitureAndFixturesMember" xlink:title="us-gaap_FurnitureAndFixturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_FurnitureAndFixturesMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_FurnitureAndFixturesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="us-gaap_ComputerEquipmentMember" xlink:title="us-gaap_ComputerEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_ComputerEquipmentMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_ComputerEquipmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="us-gaap_LeaseholdImprovementsMember" xlink:title="us-gaap_LeaseholdImprovementsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_LeaseholdImprovementsMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_LeaseholdImprovementsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="us-gaap_PropertyPlantAndEquipmentGross" xlink:title="us-gaap_PropertyPlantAndEquipmentGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentGross" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_PropertyPlantAndEquipmentGross" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:title="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCloudComputingArrangementAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CloudComputingArrangementLineItems" xlink:label="ecor_CloudComputingArrangementLineItems" xlink:title="ecor_CloudComputingArrangementLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CloudComputingArrangementTable" xlink:label="ecor_CloudComputingArrangementTable" xlink:title="ecor_CloudComputingArrangementTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_CloudComputingArrangementLineItems" xlink:to="ecor_CloudComputingArrangementTable" xlink:title="Definition : ecor_CloudComputingArrangementLineItems to ecor_CloudComputingArrangementTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="us-gaap_BalanceSheetLocationAxis" xlink:title="us-gaap_BalanceSheetLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_CloudComputingArrangementTable" xlink:to="us-gaap_BalanceSheetLocationAxis" xlink:title="Definition : ecor_CloudComputingArrangementTable to us-gaap_BalanceSheetLocationAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="us-gaap_BalanceSheetLocationDomain" xlink:title="us-gaap_BalanceSheetLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain" xlink:title="Definition : us-gaap_BalanceSheetLocationAxis to us-gaap_BalanceSheetLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="us-gaap_BalanceSheetLocationDomain_1" xlink:title="us-gaap_BalanceSheetLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain_1" xlink:title="Definition : us-gaap_BalanceSheetLocationAxis to us-gaap_BalanceSheetLocationDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="us-gaap_OtherAssetsMember" xlink:title="us-gaap_OtherAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherAssetsMember" xlink:title="Definition : us-gaap_BalanceSheetLocationDomain to us-gaap_OtherAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HostingArrangementServiceContractImplementationCostExpenseAmortization" xlink:label="us-gaap_HostingArrangementServiceContractImplementationCostExpenseAmortization" xlink:title="us-gaap_HostingArrangementServiceContractImplementationCostExpenseAmortization" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_CloudComputingArrangementLineItems" xlink:to="us-gaap_HostingArrangementServiceContractImplementationCostExpenseAmortization" xlink:title="Definition : ecor_CloudComputingArrangementLineItems to us-gaap_HostingArrangementServiceContractImplementationCostExpenseAmortization" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HostingArrangementServiceContractImplementationCostCapitalizedAfterAccumulatedAmortization" xlink:label="us-gaap_HostingArrangementServiceContractImplementationCostCapitalizedAfterAccumulatedAmortization" xlink:title="us-gaap_HostingArrangementServiceContractImplementationCostCapitalizedAfterAccumulatedAmortization" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_CloudComputingArrangementLineItems" xlink:to="us-gaap_HostingArrangementServiceContractImplementationCostCapitalizedAfterAccumulatedAmortization" xlink:title="Definition : ecor_CloudComputingArrangementLineItems to us-gaap_HostingArrangementServiceContractImplementationCostCapitalizedAfterAccumulatedAmortization" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract" xlink:label="us-gaap_LesseeOperatingLeaseTermOfContract" xlink:title="us-gaap_LesseeOperatingLeaseTermOfContract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_CloudComputingArrangementLineItems" xlink:to="us-gaap_LesseeOperatingLeaseTermOfContract" xlink:title="Definition : ecor_CloudComputingArrangementLineItems to us-gaap_LesseeOperatingLeaseTermOfContract" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:title="Definition : us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable to us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:title="us-gaap_AntidilutiveSecuritiesNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis to us-gaap_AntidilutiveSecuritiesNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain_1" xlink:title="us-gaap_AntidilutiveSecuritiesNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain_1" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis to us-gaap_AntidilutiveSecuritiesNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:title="us-gaap_EmployeeStockOptionMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_EmployeeStockOptionMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:title="us-gaap_RestrictedStockUnitsRSUMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_RestrictedStockUnitsRSUMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WarrantMember" xlink:label="us-gaap_WarrantMember" xlink:title="us-gaap_WarrantMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_WarrantMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_WarrantMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="us-gaap_SubsequentEventLineItems" xlink:title="us-gaap_SubsequentEventLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="us-gaap_SubsequentEventTable" xlink:title="us-gaap_SubsequentEventTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_SubsequentEventTable" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_SubsequentEventTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="us-gaap_SubsequentEventTypeAxis" xlink:title="us-gaap_SubsequentEventTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="us-gaap_SubsequentEventTypeAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to us-gaap_SubsequentEventTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="us-gaap_SubsequentEventMember" xlink:title="us-gaap_SubsequentEventMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventTypeDomain" xlink:to="us-gaap_SubsequentEventMember" xlink:title="Definition : us-gaap_SubsequentEventTypeDomain to us-gaap_SubsequentEventMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="us-gaap_DebtInstrumentAxis" xlink:title="us-gaap_DebtInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="us-gaap_DebtInstrumentAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to us-gaap_DebtInstrumentAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CommercialInsurancePremiumFinanceAndSecurityAgreementMember" xlink:label="ecor_CommercialInsurancePremiumFinanceAndSecurityAgreementMember" xlink:title="ecor_CommercialInsurancePremiumFinanceAndSecurityAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_CommercialInsurancePremiumFinanceAndSecurityAgreementMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_CommercialInsurancePremiumFinanceAndSecurityAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockPurchaseAgreementMember" xlink:label="ecor_StockPurchaseAgreementMember" xlink:title="ecor_StockPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_StockPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_StockPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="dei_LegalEntityAxis" xlink:title="dei_LegalEntityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="dei_LegalEntityAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to dei_LegalEntityAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_LincolnParkCapitalFundLLCMember" xlink:label="ecor_LincolnParkCapitalFundLLCMember" xlink:title="ecor_LincolnParkCapitalFundLLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_EntityDomain" xlink:to="ecor_LincolnParkCapitalFundLLCMember" xlink:title="Definition : dei_EntityDomain to ecor_LincolnParkCapitalFundLLCMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="us-gaap_ShortTermBorrowings" xlink:title="us-gaap_ShortTermBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_ShortTermBorrowings" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_ShortTermBorrowings" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTerm" xlink:label="us-gaap_DebtInstrumentTerm" xlink:title="us-gaap_DebtInstrumentTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_DebtInstrumentTerm" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_DebtInstrumentTerm" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CommitmentSharesIssued" xlink:label="ecor_CommitmentSharesIssued" xlink:title="ecor_CommitmentSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="ecor_CommitmentSharesIssued" xlink:title="Definition : us-gaap_SubsequentEventLineItems to ecor_CommitmentSharesIssued" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationScheduleOfRecognizedStockCompensationForEquityAwardsDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="us-gaap_IncomeStatementLocationAxis" xlink:title="us-gaap_IncomeStatementLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain_1" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="us-gaap_SellingGeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="us-gaap_ResearchAndDevelopmentExpenseMember" xlink:title="us-gaap_ResearchAndDevelopmentExpenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_ResearchAndDevelopmentExpenseMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_ResearchAndDevelopmentExpenseMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="us-gaap_CostOfSalesMember" xlink:title="us-gaap_CostOfSalesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_CostOfSalesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_CostOfSalesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="us-gaap_AllocatedShareBasedCompensationExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_AllocatedShareBasedCompensationExpense" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="us-gaap_ClassOfWarrantOrRightLineItems" xlink:title="us-gaap_ClassOfWarrantOrRightLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightTable" xlink:label="us-gaap_ClassOfWarrantOrRightTable" xlink:title="us-gaap_ClassOfWarrantOrRightTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightTable" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_FormerFinancialAdvisorMember" xlink:label="ecor_FormerFinancialAdvisorMember" xlink:title="ecor_FormerFinancialAdvisorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ecor_FormerFinancialAdvisorMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ecor_FormerFinancialAdvisorMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightAxis" xlink:label="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="us-gaap_ClassOfWarrantOrRightAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to us-gaap_ClassOfWarrantOrRightAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_WarrantOneMember" xlink:label="ecor_WarrantOneMember" xlink:title="ecor_WarrantOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_WarrantOneMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_WarrantOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_WarrantTwoMember" xlink:label="ecor_WarrantTwoMember" xlink:title="ecor_WarrantTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_WarrantTwoMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_WarrantTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_WarrantThreeMember" xlink:label="ecor_WarrantThreeMember" xlink:title="ecor_WarrantThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_WarrantThreeMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_WarrantThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_WarrantFourMember" xlink:label="ecor_WarrantFourMember" xlink:title="ecor_WarrantFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_WarrantFourMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_WarrantFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightOutstanding" xlink:label="us-gaap_ClassOfWarrantOrRightOutstanding" xlink:title="us-gaap_ClassOfWarrantOrRightOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightOutstanding" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightOutstanding" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:label="us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:title="us-gaap_WarrantsAndRightsOutstandingMaturityDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="us-gaap_OperatingLossCarryforwardsLineItems" xlink:title="us-gaap_OperatingLossCarryforwardsLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="us-gaap_OperatingLossCarryforwardsTable" xlink:title="us-gaap_OperatingLossCarryforwardsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_OperatingLossCarryforwardsLineItems" xlink:to="us-gaap_OperatingLossCarryforwardsTable" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsLineItems to us-gaap_OperatingLossCarryforwardsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_OperatingLossCarryforwardsTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:label="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:title="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:label="ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:title="ecor_ProceedsFromSaleOfNetOperatingLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingLossCarryforwardsLineItems" xlink:to="ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsLineItems to ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit" xlink:title="us-gaap_IncomeTaxExpenseBenefit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingLossCarryforwardsLineItems" xlink:to="us-gaap_IncomeTaxExpenseBenefit" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsLineItems to us-gaap_IncomeTaxExpenseBenefit" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/NotesPayableAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NotesPayableLineItems" xlink:label="ecor_NotesPayableLineItems" xlink:title="ecor_NotesPayableLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ScheduleOfNotesPayableTable" xlink:label="ecor_ScheduleOfNotesPayableTable" xlink:title="ecor_ScheduleOfNotesPayableTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_NotesPayableLineItems" xlink:to="ecor_ScheduleOfNotesPayableTable" xlink:title="Definition : ecor_NotesPayableLineItems to ecor_ScheduleOfNotesPayableTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="us-gaap_DebtInstrumentAxis" xlink:title="us-gaap_DebtInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_ScheduleOfNotesPayableTable" xlink:to="us-gaap_DebtInstrumentAxis" xlink:title="Definition : ecor_ScheduleOfNotesPayableTable to us-gaap_DebtInstrumentAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_PromissoryNoteMember" xlink:label="ecor_PromissoryNoteMember" xlink:title="ecor_PromissoryNoteMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_PromissoryNoteMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_PromissoryNoteMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain_1" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain_1" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="us-gaap_LineOfCreditFacilityAxis" xlink:title="us-gaap_LineOfCreditFacilityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_ScheduleOfNotesPayableTable" xlink:to="us-gaap_LineOfCreditFacilityAxis" xlink:title="Definition : ecor_ScheduleOfNotesPayableTable to us-gaap_LineOfCreditFacilityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CitibankNAMember" xlink:label="ecor_CitibankNAMember" xlink:title="ecor_CitibankNAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LineOfCreditFacilityLenderDomain" xlink:to="ecor_CitibankNAMember" xlink:title="Definition : us-gaap_LineOfCreditFacilityLenderDomain to ecor_CitibankNAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_ScheduleOfNotesPayableTable" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="Definition : ecor_ScheduleOfNotesPayableTable to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_PaycheckProtectionProgramMember" xlink:label="ecor_PaycheckProtectionProgramMember" xlink:title="ecor_PaycheckProtectionProgramMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:to="ecor_PaycheckProtectionProgramMember" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain to ecor_PaycheckProtectionProgramMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="us-gaap_ShortTermDebtTypeAxis" xlink:title="us-gaap_ShortTermDebtTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_ScheduleOfNotesPayableTable" xlink:to="us-gaap_ShortTermDebtTypeAxis" xlink:title="Definition : ecor_ScheduleOfNotesPayableTable to us-gaap_ShortTermDebtTypeAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="us-gaap_ShortTermDebtTypeDomain" xlink:title="us-gaap_ShortTermDebtTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShortTermDebtTypeAxis" xlink:to="us-gaap_ShortTermDebtTypeDomain" xlink:title="Definition : us-gaap_ShortTermDebtTypeAxis to us-gaap_ShortTermDebtTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesPayableOtherPayablesMember" xlink:label="us-gaap_NotesPayableOtherPayablesMember" xlink:title="us-gaap_NotesPayableOtherPayablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtTypeDomain" xlink:to="us-gaap_NotesPayableOtherPayablesMember" xlink:title="Definition : us-gaap_ShortTermDebtTypeDomain to us-gaap_NotesPayableOtherPayablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="us-gaap_ShortTermDebtTypeDomain_1" xlink:title="us-gaap_ShortTermDebtTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShortTermDebtTypeAxis" xlink:to="us-gaap_ShortTermDebtTypeDomain_1" xlink:title="Definition : us-gaap_ShortTermDebtTypeAxis to us-gaap_ShortTermDebtTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromNotesPayable" xlink:label="us-gaap_ProceedsFromNotesPayable" xlink:title="us-gaap_ProceedsFromNotesPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_ProceedsFromNotesPayable" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_ProceedsFromNotesPayable" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="us-gaap_DebtInstrumentInterestRateStatedPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="us-gaap_DebtInstrumentMaturityDate" xlink:title="us-gaap_DebtInstrumentMaturityDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_DebtInstrumentMaturityDate" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_DebtInstrumentMaturityDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense" xlink:label="us-gaap_InterestExpense" xlink:title="us-gaap_InterestExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_InterestExpense" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_InterestExpense" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesPayable" xlink:label="us-gaap_NotesPayable" xlink:title="us-gaap_NotesPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_NotesPayable" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_NotesPayable" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesPayableCurrent" xlink:label="us-gaap_NotesPayableCurrent" xlink:title="us-gaap_NotesPayableCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_NotesPayableCurrent" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_NotesPayableCurrent" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermNotesPayable" xlink:label="us-gaap_LongTermNotesPayable" xlink:title="us-gaap_LongTermNotesPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_LongTermNotesPayable" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_LongTermNotesPayable" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:title="us-gaap_ShortTermNonBankLoansAndNotesPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_NotesPayableLineItems" xlink:to="us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:title="Definition : ecor_NotesPayableLineItems to us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="us-gaap_ClassOfWarrantOrRightLineItems" xlink:title="us-gaap_ClassOfWarrantOrRightLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightTable" xlink:label="us-gaap_ClassOfWarrantOrRightTable" xlink:title="us-gaap_ClassOfWarrantOrRightTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightTable" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="us-gaap_SubsequentEventTypeAxis" xlink:title="us-gaap_SubsequentEventTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="us-gaap_SubsequentEventTypeAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to us-gaap_SubsequentEventTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="us-gaap_SubsequentEventMember" xlink:title="us-gaap_SubsequentEventMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventTypeDomain" xlink:to="us-gaap_SubsequentEventMember" xlink:title="Definition : us-gaap_SubsequentEventTypeDomain to us-gaap_SubsequentEventMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain_1" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain_1" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_MadisonGlobalPartnersMember" xlink:label="ecor_MadisonGlobalPartnersMember" xlink:title="ecor_MadisonGlobalPartnersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ecor_MadisonGlobalPartnersMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ecor_MadisonGlobalPartnersMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightAxis" xlink:label="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="us-gaap_ClassOfWarrantOrRightAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to us-gaap_ClassOfWarrantOrRightAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_WarrantsWithExercisePriceOfFivePointSixEightMember" xlink:label="ecor_WarrantsWithExercisePriceOfFivePointSixEightMember" xlink:title="ecor_WarrantsWithExercisePriceOfFivePointSixEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_WarrantsWithExercisePriceOfFivePointSixEightMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_WarrantsWithExercisePriceOfFivePointSixEightMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ClassOfWarrantOrRightTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightTable to srt_RangeAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NumberOfInvestorsAsDefendants" xlink:label="ecor_NumberOfInvestorsAsDefendants" xlink:title="ecor_NumberOfInvestorsAsDefendants" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="ecor_NumberOfInvestorsAsDefendants" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to ecor_NumberOfInvestorsAsDefendants" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LossContingencyClaimsSettledNumber" xlink:label="us-gaap_LossContingencyClaimsSettledNumber" xlink:title="us-gaap_LossContingencyClaimsSettledNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_LossContingencyClaimsSettledNumber" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_LossContingencyClaimsSettledNumber" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForLegalSettlements" xlink:label="us-gaap_PaymentsForLegalSettlements" xlink:title="us-gaap_PaymentsForLegalSettlements" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_PaymentsForLegalSettlements" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_PaymentsForLegalSettlements" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:label="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:title="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfWarrantOrRightOutstanding" xlink:label="us-gaap_ClassOfWarrantOrRightOutstanding" xlink:title="us-gaap_ClassOfWarrantOrRightOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightOutstanding" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightLineItems to us-gaap_ClassOfWarrantOrRightOutstanding" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="us-gaap_RestrictedStockMember" xlink:title="us-gaap_RestrictedStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_RestrictedStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to us-gaap_RestrictedStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_RisksAndUncertaintiesLineItems" xlink:label="ecor_RisksAndUncertaintiesLineItems" xlink:title="ecor_RisksAndUncertaintiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_AdditionalSharesOfCommonStock" xlink:label="ecor_AdditionalSharesOfCommonStock" xlink:title="ecor_AdditionalSharesOfCommonStock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_AdditionalSharesOfCommonStock" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_AdditionalSharesOfCommonStock" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="us-gaap_SharesIssuedPricePerShare" xlink:title="us-gaap_SharesIssuedPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_SharesIssuedPricePerShare" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_SharesIssuedPricePerShare" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:label="ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:title="ecor_ProceedsFromSaleOfNetOperatingLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_IncurredLoss" xlink:label="ecor_IncurredLoss" xlink:title="ecor_IncurredLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_IncurredLoss" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_IncurredLoss" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NumberOfChannels" xlink:label="ecor_NumberOfChannels" xlink:title="ecor_NumberOfChannels" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_NumberOfChannels" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_NumberOfChannels" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="us-gaap_ConcentrationRiskPercentage1" xlink:title="us-gaap_ConcentrationRiskPercentage1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_ConcentrationRiskPercentage1" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_ConcentrationRiskPercentage1" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_RisksAndUncertaintiesTable" xlink:label="ecor_RisksAndUncertaintiesTable" xlink:title="ecor_RisksAndUncertaintiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_RisksAndUncertaintiesTable" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_RisksAndUncertaintiesTable" xlink:type="arc" use="optional" order="6" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelAxis" xlink:label="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="us-gaap_ContractWithCustomerSalesChannelAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_ContractWithCustomerSalesChannelAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SalesChannelDirectlyToConsumerMember" xlink:label="us-gaap_SalesChannelDirectlyToConsumerMember" xlink:title="us-gaap_SalesChannelDirectlyToConsumerMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="us-gaap_SalesChannelDirectlyToConsumerMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to us-gaap_SalesChannelDirectlyToConsumerMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ChannelOneMember" xlink:label="ecor_ChannelOneMember" xlink:title="ecor_ChannelOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelOneMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelOneMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ChannelTwoMember" xlink:label="ecor_ChannelTwoMember" xlink:title="ecor_ChannelTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelTwoMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelTwoMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockPurchaseAgreementMember" xlink:label="ecor_StockPurchaseAgreementMember" xlink:title="ecor_StockPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_StockPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_StockPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_SecuritiesPurchaseAgreementMember" xlink:label="ecor_SecuritiesPurchaseAgreementMember" xlink:title="ecor_SecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_SecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_SecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:label="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:title="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_NewJerseyTechnologyBusinessTaxCertificateTransferProgramMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_VADODFacilitiesMember" xlink:label="ecor_VADODFacilitiesMember" xlink:title="ecor_VADODFacilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_VADODFacilitiesMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_VADODFacilitiesMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="dei_LegalEntityAxis" xlink:title="dei_LegalEntityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="dei_LegalEntityAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to dei_LegalEntityAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_LincolnParkCapitalFundLLCMember" xlink:label="ecor_LincolnParkCapitalFundLLCMember" xlink:title="ecor_LincolnParkCapitalFundLLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_EntityDomain" xlink:to="ecor_LincolnParkCapitalFundLLCMember" xlink:title="Definition : dei_EntityDomain to ecor_LincolnParkCapitalFundLLCMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain_1" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain_1" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="srt_RangeAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to srt_RangeAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="us-gaap_SubsidiarySaleOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_SubsidiarySaleOfStockAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrivatePlacementMember" xlink:label="us-gaap_PrivatePlacementMember" xlink:title="us-gaap_PrivatePlacementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:to="us-gaap_PrivatePlacementMember" xlink:title="Definition : us-gaap_SaleOfStockNameOfTransactionDomain to us-gaap_PrivatePlacementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="us-gaap_SubsequentEventTypeAxis" xlink:title="us-gaap_SubsequentEventTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_SubsequentEventTypeAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_SubsequentEventTypeAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="us-gaap_SubsequentEventMember" xlink:title="us-gaap_SubsequentEventMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventTypeDomain" xlink:to="us-gaap_SubsequentEventMember" xlink:title="Definition : us-gaap_SubsequentEventTypeDomain to us-gaap_SubsequentEventMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain_1" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain_1" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="us-gaap_DebtInstrumentAxis" xlink:title="us-gaap_DebtInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_DebtInstrumentAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_DebtInstrumentAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_PromissoryNoteMember" xlink:label="ecor_PromissoryNoteMember" xlink:title="ecor_PromissoryNoteMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_PromissoryNoteMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_PromissoryNoteMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain_1" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain_1" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="us-gaap_LineOfCreditFacilityAxis" xlink:title="us-gaap_LineOfCreditFacilityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_LineOfCreditFacilityAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_LineOfCreditFacilityAxis" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CitibankNAMember" xlink:label="ecor_CitibankNAMember" xlink:title="ecor_CitibankNAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LineOfCreditFacilityLenderDomain" xlink:to="ecor_CitibankNAMember" xlink:title="Definition : us-gaap_LineOfCreditFacilityLenderDomain to ecor_CitibankNAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_PaycheckProtectionProgramMember" xlink:label="ecor_PaycheckProtectionProgramMember" xlink:title="ecor_PaycheckProtectionProgramMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:to="ecor_PaycheckProtectionProgramMember" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain to ecor_PaycheckProtectionProgramMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="us-gaap_ConcentrationRiskByBenchmarkAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="us-gaap_SalesRevenueNetMember" xlink:title="us-gaap_SalesRevenueNetMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueNetMember" xlink:title="Definition : us-gaap_ConcentrationRiskBenchmarkDomain to us-gaap_SalesRevenueNetMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="us-gaap_ConcentrationRiskByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_ConcentrationRiskByTypeAxis" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GovernmentContractsConcentrationRiskMember" xlink:label="us-gaap_GovernmentContractsConcentrationRiskMember" xlink:title="us-gaap_GovernmentContractsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_GovernmentContractsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_GovernmentContractsConcentrationRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_RestrictedStockAndDeferredStockMember" xlink:label="ecor_RestrictedStockAndDeferredStockMember" xlink:title="ecor_RestrictedStockAndDeferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_RestrictedStockAndDeferredStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_RestrictedStockAndDeferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="us-gaap_RestrictedStockMember" xlink:title="us-gaap_RestrictedStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_RestrictedStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to us-gaap_RestrictedStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_RestrictedStockAndDeferredStockMember" xlink:label="ecor_RestrictedStockAndDeferredStockMember" xlink:title="ecor_RestrictedStockAndDeferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_RestrictedStockAndDeferredStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_RestrictedStockAndDeferredStockMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to srt_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualAxis" xlink:label="srt_TitleOfIndividualAxis" xlink:title="srt_TitleOfIndividualAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="srt_TitleOfIndividualAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to srt_TitleOfIndividualAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NonExecutiveDirectorMember" xlink:label="ecor_NonExecutiveDirectorMember" xlink:title="ecor_NonExecutiveDirectorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_NonExecutiveDirectorMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_NonExecutiveDirectorMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:title="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockPurchaseAgreementLineItems" xlink:label="ecor_StockPurchaseAgreementLineItems" xlink:title="ecor_StockPurchaseAgreementLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockPurchaseAgreementTable" xlink:label="ecor_StockPurchaseAgreementTable" xlink:title="ecor_StockPurchaseAgreementTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_StockPurchaseAgreementTable" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_StockPurchaseAgreementTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_StockPurchaseAgreementTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : ecor_StockPurchaseAgreementTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockPurchaseAgreementMember" xlink:label="ecor_StockPurchaseAgreementMember" xlink:title="ecor_StockPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_StockPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_StockPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_FirstSecuritiesPurchaseAgreementMember" xlink:label="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="ecor_FirstSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_FirstSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_SecondSecuritiesPurchaseAgreementMember" xlink:label="ecor_SecondSecuritiesPurchaseAgreementMember" xlink:title="ecor_SecondSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_SecondSecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_SecondSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:label="ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:title="ecor_ThirdSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="dei_LegalEntityAxis" xlink:title="dei_LegalEntityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_StockPurchaseAgreementTable" xlink:to="dei_LegalEntityAxis" xlink:title="Definition : ecor_StockPurchaseAgreementTable to dei_LegalEntityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_LincolnParkCapitalFundLLCMember" xlink:label="ecor_LincolnParkCapitalFundLLCMember" xlink:title="ecor_LincolnParkCapitalFundLLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_EntityDomain" xlink:to="ecor_LincolnParkCapitalFundLLCMember" xlink:title="Definition : dei_EntityDomain to ecor_LincolnParkCapitalFundLLCMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain_1" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain_1" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_StockPurchaseAgreementTable" xlink:to="srt_RangeAxis" xlink:title="Definition : ecor_StockPurchaseAgreementTable to srt_RangeAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_StockPurchaseAgreementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : ecor_StockPurchaseAgreementTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockValue" xlink:label="us-gaap_CommonStockValue" xlink:title="us-gaap_CommonStockValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_CommonStockValue" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_CommonStockValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="us-gaap_CommonStockSharesIssued" xlink:title="us-gaap_CommonStockSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_CommonStockSharesIssued" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_CommonStockSharesIssued" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_FairValueOfCommonStockSharesIssued" xlink:label="ecor_FairValueOfCommonStockSharesIssued" xlink:title="ecor_FairValueOfCommonStockSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_FairValueOfCommonStockSharesIssued" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_FairValueOfCommonStockSharesIssued" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_AdditionalCommitmentSharesIssued" xlink:label="ecor_AdditionalCommitmentSharesIssued" xlink:title="ecor_AdditionalCommitmentSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_AdditionalCommitmentSharesIssued" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_AdditionalCommitmentSharesIssued" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:title="us-gaap_ProceedsFromIssuanceOfCommonStock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_AdditionalCommitmentFeesSharesIssuable" xlink:label="ecor_AdditionalCommitmentFeesSharesIssuable" xlink:title="ecor_AdditionalCommitmentFeesSharesIssuable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_AdditionalCommitmentFeesSharesIssuable" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_AdditionalCommitmentFeesSharesIssuable" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:label="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:title="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockPricePerShare" xlink:label="us-gaap_SaleOfStockPricePerShare" xlink:title="us-gaap_SaleOfStockPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_SaleOfStockPricePerShare" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_SaleOfStockPricePerShare" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="us-gaap_StockIssuedDuringPeriodSharesNewIssues" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NonCashCharge" xlink:label="ecor_NonCashCharge" xlink:title="ecor_NonCashCharge" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NonCashCharge" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NonCashCharge" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesSummaryofCashCashEquivalentsandMarketableSecuritiesDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:title="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:title="us-gaap_DebtSecuritiesAvailableForSaleTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="us-gaap_InvestmentTypeAxis" xlink:title="us-gaap_InvestmentTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:to="us-gaap_InvestmentTypeAxis" xlink:title="Definition : us-gaap_DebtSecuritiesAvailableForSaleTable to us-gaap_InvestmentTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="us-gaap_InvestmentTypeCategorizationMember" xlink:title="us-gaap_InvestmentTypeCategorizationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" xlink:title="Definition : us-gaap_InvestmentTypeAxis to us-gaap_InvestmentTypeCategorizationMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="us-gaap_InvestmentTypeCategorizationMember_1" xlink:title="us-gaap_InvestmentTypeCategorizationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember_1" xlink:title="Definition : us-gaap_InvestmentTypeAxis to us-gaap_InvestmentTypeCategorizationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USTreasuryBondSecuritiesMember" xlink:label="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="us-gaap_USTreasuryBondSecuritiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="Definition : us-gaap_InvestmentTypeCategorizationMember to us-gaap_USTreasuryBondSecuritiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAmortizedCost" xlink:label="ecor_CashAndCashEquivalentsAmortizedCost" xlink:title="ecor_CashAndCashEquivalentsAmortizedCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAmortizedCost" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAmortizedCost" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTax" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTax" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:title="us-gaap_CashAndCashEquivalentsAtCarryingValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:title="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:label="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:title="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainsBeforeTaxCurrent" xlink:label="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainsBeforeTaxCurrent" xlink:title="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainsBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainsBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainsBeforeTaxCurrent" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:label="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashAndCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="us-gaap_CashCashEquivalentsAndShortTermInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CondensedConsolidatedStatementsofEquity">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="us-gaap_StatementLineItems" xlink:title="us-gaap_StatementLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="us-gaap_StatementTable" xlink:title="us-gaap_StatementTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StatementTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_StatementTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="us-gaap_AdditionalPaidInCapitalMember" xlink:title="us-gaap_AdditionalPaidInCapitalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AdditionalPaidInCapitalMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_AdditionalPaidInCapitalMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="us-gaap_RetainedEarningsMember" xlink:title="us-gaap_RetainedEarningsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_RetainedEarningsMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_RetainedEarningsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:title="us-gaap_AccumulatedOtherComprehensiveIncomeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember" xlink:label="us-gaap_ParentMember" xlink:title="us-gaap_ParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_ParentMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_ParentMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="us-gaap_NoncontrollingInterestMember" xlink:title="us-gaap_NoncontrollingInterestMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_NoncontrollingInterestMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_NoncontrollingInterestMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:title="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="us-gaap_SharesOutstanding" xlink:title="us-gaap_SharesOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_SharesOutstanding" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_SharesOutstanding" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss" xlink:title="us-gaap_ProfitLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ProfitLoss" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_ProfitLoss" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossTax" xlink:title="us-gaap_OtherComprehensiveIncomeLossTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossTax" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_OtherComprehensiveIncomeLossTax" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:title="us-gaap_StockIssuedDuringPeriodValueNewIssues" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="us-gaap_StockIssuedDuringPeriodSharesNewIssues" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_EquityFinancingCommitmentFee" xlink:label="ecor_EquityFinancingCommitmentFee" xlink:title="ecor_EquityFinancingCommitmentFee" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="ecor_EquityFinancingCommitmentFee" xlink:title="Definition : us-gaap_StatementLineItems to ecor_EquityFinancingCommitmentFee" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_EquityFinancingCommitmentFeeShares" xlink:label="ecor_EquityFinancingCommitmentFeeShares" xlink:title="ecor_EquityFinancingCommitmentFeeShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="ecor_EquityFinancingCommitmentFeeShares" xlink:title="Definition : us-gaap_StatementLineItems to ecor_EquityFinancingCommitmentFeeShares" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:title="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:title="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:title="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionShares" xlink:label="ecor_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionShares" xlink:title="ecor_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="ecor_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionShares" xlink:title="Definition : us-gaap_StatementLineItems to ecor_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionShares" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockIssuedDuringPeriodValueSettlementOfAccruedBonus" xlink:label="ecor_StockIssuedDuringPeriodValueSettlementOfAccruedBonus" xlink:title="ecor_StockIssuedDuringPeriodValueSettlementOfAccruedBonus" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="ecor_StockIssuedDuringPeriodValueSettlementOfAccruedBonus" xlink:title="Definition : us-gaap_StatementLineItems to ecor_StockIssuedDuringPeriodValueSettlementOfAccruedBonus" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_StockIssuedDuringPeriodSharesSettlementOfAccruedBonus" xlink:label="ecor_StockIssuedDuringPeriodSharesSettlementOfAccruedBonus" xlink:title="ecor_StockIssuedDuringPeriodSharesSettlementOfAccruedBonus" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="ecor_StockIssuedDuringPeriodSharesSettlementOfAccruedBonus" xlink:title="Definition : us-gaap_StatementLineItems to ecor_StockIssuedDuringPeriodSharesSettlementOfAccruedBonus" xlink:type="arc" order="14" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails">
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="us-gaap_ConcentrationRiskLineItems" xlink:title="us-gaap_ConcentrationRiskLineItems" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="us-gaap_ConcentrationRiskPercentage1" xlink:title="us-gaap_ConcentrationRiskPercentage1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskPercentage1" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskPercentage1" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="us-gaap_ConcentrationRiskTable" xlink:title="us-gaap_ConcentrationRiskTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskTable" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="us-gaap_ConcentrationRiskByBenchmarkAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="us-gaap_SalesRevenueNetMember" xlink:title="us-gaap_SalesRevenueNetMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueNetMember" xlink:title="Definition : us-gaap_ConcentrationRiskBenchmarkDomain to us-gaap_SalesRevenueNetMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:label="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20210331.xsd#ecor_NationalHealthServiceMember" xlink:label="ecor_NationalHealthServiceMember" xlink:title="ecor_NationalHealthServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_NationalHealthServiceMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_NationalHealthServiceMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain_1" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain_1" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/TemplateLink" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementCondensedConsolidatedBalanceSheets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementCondensedConsolidatedBalanceSheetsParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureTheCompany" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertainties" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRevenueRecognition" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCashCashEquivalentsAndMarketableSecurities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurements" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureInventories" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeases" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCloudComputingArrangement" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/NotesPayable" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockholdersEquity" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShare" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedCharges" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingencies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNet" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureSubsequentEvents" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRevenueRecognitionTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureInventoriesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoriesInventoriesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesScheduleOfAccruedExpensesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToStockOptionsDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails" />
</link:linkbase>
