<?xml version="1.0" encoding="us-ascii" standalone="yes"?>
<!--Created by EdgarAgents, Powered by IRIS Carbon, Unique Code 6452aaf0e17276037c03a328, Generated At Wed, 03 May 2023 18:42:39 GMT-->
<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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" 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/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
  <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-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/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/NotesPayableAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#NotesPayableAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureFairValueMeasurementsSummaryOfAssetsAndLiabilitiesCarriedAtFairValueDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoriesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#InventoriesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#AccruedExpensesandOtherCurrentLiabilitiesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SummaryofSignificantAccountingPoliciesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationScheduleOfRecognizedStockCompensationForEquityAwardsDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationScheduleOfRecognizedStockCompensationForEquityAwardsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureIncomeTaxesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCashCashEquivalentsAndMarketableSecuritiesSummaryOfCashCashEquivalentsAndMarketableSecuritiesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureCashCashEquivalentsAndMarketableSecuritiesSummaryOfCashCashEquivalentsAndMarketableSecuritiesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCloudComputingArrangementAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureCloudComputingArrangementAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/NetLossPerShareScheduleofstockpurchasewarrantsoutstandingDetails2" xlink:type="simple" xlink:href="ecor-20230331.xsd#NetLossPerShareScheduleofstockpurchasewarrantsoutstandingDetails2" />
  <link:roleRef roleURI="http://electrocore.com/role/NetLossPerShareAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#NetLossPerShareAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/CondensedConsolidatedStatementsofEquity" xlink:type="simple" xlink:href="ecor-20230331.xsd#CondensedConsolidatedStatementsofEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureSubsequentEventsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleoffurtherrevenueconcentrationwithintheVADoDDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SignificantRisksandUncertaintiesScheduleoffurtherrevenueconcentrationwithintheVADoDDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockholdersEquityAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SeveranceandotherrelatedchargesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SeveranceandotherrelatedchargesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockholdersEquityScheduleofStockPurchaseWarrantsDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#StockholdersEquityScheduleofStockPurchaseWarrantsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SignificantRisksandUncertaintiesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DocumentDocumentAndEntityInformation" />
  <link:roleRef roleURI="http://electrocore.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="ecor-20230331.xsd#CondensedConsolidatedBalanceSheetsUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" xlink:href="ecor-20230331.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureTheCompany" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureTheCompany" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPolicies" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureSummaryOfSignificantAccountingPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertainties" xlink:type="simple" xlink:href="ecor-20230331.xsd#SignificantRisksandUncertainties" />
  <link:roleRef roleURI="http://electrocore.com/role/Revenue" xlink:type="simple" xlink:href="ecor-20230331.xsd#Revenue" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventories" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureInventories" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeases" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeases" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities" />
  <link:roleRef roleURI="http://electrocore.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="ecor-20230331.xsd#ShareholdersEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShare" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureNetLossPerShare" />
  <link:roleRef roleURI="http://electrocore.com/role/Incometaxes" xlink:type="simple" xlink:href="ecor-20230331.xsd#Incometaxes" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensation" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensation" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingencies" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureCommitmentsAndContingencies" />
  <link:roleRef roleURI="http://electrocore.com/role/Severanceandotherrelatedcharges" xlink:type="simple" xlink:href="ecor-20230331.xsd#Severanceandotherrelatedcharges" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSubsequentEvents" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureSubsequentEvents" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#SummaryofSignificantAccountingPoliciesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/SignificantRisksandUncertaintiesTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#SignificantRisksandUncertaintiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#RevenueTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventoriesTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureInventoriesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureNetLossPerShareTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationTables" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationTables" />
  <link:roleRef roleURI="http://electrocore.com/role/TheCompanyDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#TheCompanyDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesScheduleofcashequivalentsandrestrictedcashDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#SummaryofSignificantAccountingPoliciesScheduleofcashequivalentsandrestrictedcashDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#RevenueAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoriesInventoriesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#InventoriesInventoriesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoriesInventoriesDetailsCalc2" xlink:type="simple" xlink:href="ecor-20230331.xsd#InventoriesInventoriesDetailsCalc2" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesSupplementalStatementOfCashFlowsInformationForOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails2" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableOperatingLeasesDetails2" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesScheduleOfAccruedExpensesDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesScheduleOfAccruedExpensesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToStockOptionsDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToStockOptionsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureStockBasedCompensationSummaryOfWeightedAverageAssumptionsUsedInValuingPlansDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20230331.xsd#Role_DisclosureFairValueMeasurementsAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfWarrantsIssuedDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="us-gaap_ClassOfWarrantOrRightLineItems" xlink:title="us-gaap_ClassOfWarrantOrRightLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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-20230331.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesSummaryOfRestructuringAndOtherRelatedChargesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="us-gaap_RestructuringCostAndReserveLineItems" xlink:title="us-gaap_RestructuringCostAndReserveLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherRestructuringCosts" xlink:label="us-gaap_OtherRestructuringCosts" xlink:title="us-gaap_OtherRestructuringCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RestructuringCostAndReserveLineItems" xlink:to="us-gaap_OtherRestructuringCosts" xlink:title="Definition : us-gaap_RestructuringCostAndReserveLineItems to us-gaap_OtherRestructuringCosts" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.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-20230331.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/NotesPayableAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NotesPayableLineItems" xlink:label="ecor_NotesPayableLineItems" xlink:title="ecor_NotesPayableLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="us-gaap_DisaggregationOfRevenueLineItems" xlink:title="us-gaap_DisaggregationOfRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_US" xlink:label="country_US" xlink:title="country_US" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_US" xlink:title="Definition : srt_SegmentGeographicalDomain to country_US" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_JP" xlink:label="country_JP" xlink:title="country_JP" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_JP" xlink:title="Definition : srt_SegmentGeographicalDomain to country_JP" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:title="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoriesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryLineItems" xlink:label="us-gaap_InventoryLineItems" xlink:title="us-gaap_InventoryLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:label="ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:title="ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_ProceedsFromNotesPayable" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_ProceedsFromNotesPayable" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_InterestExpense" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_InterestExpense" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_DebtInstrumentMaturityDate" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_DebtInstrumentMaturityDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_NotesPayable" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_NotesPayable" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_NotesPayableCurrent" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_NotesPayableCurrent" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="us-gaap_DebtInstrumentTerm" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to us-gaap_DebtInstrumentTerm" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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_AccruedExpensesAndOtherCurrentLiabilitiesLineItem" xlink:to="ecor_ScheduleOfNotesPayableTable" xlink:title="Definition : ecor_AccruedExpensesAndOtherCurrentLiabilitiesLineItem to ecor_ScheduleOfNotesPayableTable" xlink:type="arc" use="optional" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAwardsGrantedDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_AccountingPoliciesLineItems" xlink:label="ecor_AccountingPoliciesLineItems" xlink:title="ecor_AccountingPoliciesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentConvertibleStockPriceTrigger" xlink:label="us-gaap_DebtInstrumentConvertibleStockPriceTrigger" xlink:title="us-gaap_DebtInstrumentConvertibleStockPriceTrigger" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_DebtInstrumentConvertibleStockPriceTrigger" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_DebtInstrumentConvertibleStockPriceTrigger" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:label="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:title="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfOtherShortTermDebt" xlink:label="us-gaap_RepaymentsOfOtherShortTermDebt" xlink:title="us-gaap_RepaymentsOfOtherShortTermDebt" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_RepaymentsOfOtherShortTermDebt" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_RepaymentsOfOtherShortTermDebt" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:title="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntermediateLifePlantsUsefulLife" xlink:label="us-gaap_IntermediateLifePlantsUsefulLife" xlink:title="us-gaap_IntermediateLifePlantsUsefulLife" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_IntermediateLifePlantsUsefulLife" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_IntermediateLifePlantsUsefulLife" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LegalFees" xlink:label="us-gaap_LegalFees" xlink:title="us-gaap_LegalFees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_LegalFees" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_LegalFees" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedLicenseAgreementsGross" xlink:label="us-gaap_FiniteLivedLicenseAgreementsGross" xlink:title="us-gaap_FiniteLivedLicenseAgreementsGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_FiniteLivedLicenseAgreementsGross" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_FiniteLivedLicenseAgreementsGross" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityReverseStockSplit" xlink:label="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="us-gaap_StockholdersEquityReverseStockSplit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_StockholdersEquityReverseStockSplit" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:title="us-gaap_FiniteLivedIntangibleAssetsNet" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_FiniteLivedIntangibleAssetsNet" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_AccountingPoliciesTable" xlink:label="ecor_AccountingPoliciesTable" xlink:title="ecor_AccountingPoliciesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_AccountingPoliciesTable" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_AccountingPoliciesTable" xlink:type="arc" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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_AccountingPoliciesTable" xlink:to="srt_RangeAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to srt_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:title="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:title="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis to us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LicensingAgreementsMember" xlink:label="us-gaap_LicensingAgreementsMember" xlink:title="us-gaap_LicensingAgreementsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_LicensingAgreementsMember" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain to us-gaap_LicensingAgreementsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1" xlink:title="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis to us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="1" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="us-gaap_OperatingLossCarryforwardsLineItems" xlink:title="us-gaap_OperatingLossCarryforwardsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxRefundsDiscontinuedOperations" xlink:label="us-gaap_IncomeTaxRefundsDiscontinuedOperations" xlink:title="us-gaap_IncomeTaxRefundsDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingLossCarryforwardsLineItems" xlink:to="us-gaap_IncomeTaxRefundsDiscontinuedOperations" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsLineItems to us-gaap_IncomeTaxRefundsDiscontinuedOperations" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:title="us-gaap_CurrentIncomeTaxExpenseBenefit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingLossCarryforwardsLineItems" xlink:to="us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:title="Definition : us-gaap_OperatingLossCarryforwardsLineItems to us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="us-gaap_ClassOfWarrantOrRightLineItems" xlink:title="us-gaap_ClassOfWarrantOrRightLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCashCashEquivalentsAndMarketableSecuritiesSummaryOfCashCashEquivalentsAndMarketableSecuritiesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:title="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="11" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LessorLeaseDescriptionLineItems" xlink:label="us-gaap_LessorLeaseDescriptionLineItems" xlink:title="us-gaap_LessorLeaseDescriptionLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="us-gaap_LeaseAndRentalExpense" xlink:title="us-gaap_LeaseAndRentalExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_LeaseAndRentalExpense" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_LeaseAndRentalExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Cash" xlink:label="us-gaap_Cash" xlink:title="us-gaap_Cash" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_Cash" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_Cash" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LeaseDepositLiability" xlink:label="us-gaap_LeaseDepositLiability" xlink:title="us-gaap_LeaseDepositLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_LeaseDepositLiability" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_LeaseDepositLiability" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesIssued" xlink:label="us-gaap_SharesIssued" xlink:title="us-gaap_SharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_SharesIssued" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_SharesIssued" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent" xlink:label="us-gaap_AccruedLiabilitiesCurrentAndNoncurrent" xlink:title="us-gaap_AccruedLiabilitiesCurrentAndNoncurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_AccruedLiabilitiesCurrentAndNoncurrent" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_AccruedLiabilitiesCurrentAndNoncurrent" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LessorLeaseDescriptionTable" xlink:label="us-gaap_LessorLeaseDescriptionTable" xlink:title="us-gaap_LessorLeaseDescriptionTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_LessorLeaseDescriptionTable" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_LessorLeaseDescriptionTable" xlink:type="arc" use="optional" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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_LessorLeaseDescriptionTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : us-gaap_LessorLeaseDescriptionTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.xsd#ecor_LessorMember" xlink:label="ecor_LessorMember" xlink:title="ecor_LessorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ecor_LessorMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ecor_LessorMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_LessorLeaseDescriptionTable" xlink:to="us-gaap_SubsequentEventTypeAxis" xlink:title="Definition : us-gaap_LessorLeaseDescriptionTable to us-gaap_SubsequentEventTypeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCloudComputingArrangementAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_CloudComputingArrangementLineItems" xlink:label="ecor_CloudComputingArrangementLineItems" xlink:title="ecor_CloudComputingArrangementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleofcompanysnetsalesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="us-gaap_ConcentrationRiskLineItems" xlink:title="us-gaap_ConcentrationRiskLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByTypeAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:label="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="us-gaap_RevenueFromRightsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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/NetLossPerShareScheduleofstockpurchasewarrantsoutstandingDetails2">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WarrantsAndRightsOutstanding" xlink:label="us-gaap_WarrantsAndRightsOutstanding" xlink:title="us-gaap_WarrantsAndRightsOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_WarrantsAndRightsOutstanding" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_WarrantsAndRightsOutstanding" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WarrantExercisePriceIncrease" xlink:label="us-gaap_WarrantExercisePriceIncrease" xlink:title="us-gaap_WarrantExercisePriceIncrease" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_WarrantExercisePriceIncrease" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_WarrantExercisePriceIncrease" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LeaseExpirationDate1" xlink:label="us-gaap_LeaseExpirationDate1" xlink:title="us-gaap_LeaseExpirationDate1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_LeaseExpirationDate1" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_LeaseExpirationDate1" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_StatementTable" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_StatementTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:title="Definition : us-gaap_StatementTable to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ExercisePriceFiveAndSixtyEightMember" xlink:label="ecor_ExercisePriceFiveAndSixtyEightMember" xlink:title="ecor_ExercisePriceFiveAndSixtyEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceFiveAndSixtyEightMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceFiveAndSixtyEightMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ExercisePriceTwelvePointSixZeroMember" xlink:label="ecor_ExercisePriceTwelvePointSixZeroMember" xlink:title="ecor_ExercisePriceTwelvePointSixZeroMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceTwelvePointSixZeroMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceTwelvePointSixZeroMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ExercisePriceTwelvePointSixZeroOneMember" xlink:label="ecor_ExercisePriceTwelvePointSixZeroOneMember" xlink:title="ecor_ExercisePriceTwelvePointSixZeroOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceTwelvePointSixZeroOneMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceTwelvePointSixZeroOneMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ExercisePriceTwelvePointSixZeroTwoMember" xlink:label="ecor_ExercisePriceTwelvePointSixZeroTwoMember" xlink:title="ecor_ExercisePriceTwelvePointSixZeroTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceTwelvePointSixZeroTwoMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceTwelvePointSixZeroTwoMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ExercisePriceTwelvePointSixZeroThreeMember" xlink:label="ecor_ExercisePriceTwelvePointSixZeroThreeMember" xlink:title="ecor_ExercisePriceTwelvePointSixZeroThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceTwelvePointSixZeroThreeMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceTwelvePointSixZeroThreeMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_1" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_1" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/NetLossPerShareAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_WarrantsAndRightsOutstandingExpired" xlink:label="ecor_WarrantsAndRightsOutstandingExpired" xlink:title="ecor_WarrantsAndRightsOutstandingExpired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="ecor_WarrantsAndRightsOutstandingExpired" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to ecor_WarrantsAndRightsOutstandingExpired" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WarrantExercisePriceIncrease" xlink:label="us-gaap_WarrantExercisePriceIncrease" xlink:title="us-gaap_WarrantExercisePriceIncrease" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_WarrantExercisePriceIncrease" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_WarrantExercisePriceIncrease" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_StatementTable" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems to us-gaap_StatementTable" xlink:type="arc" use="optional" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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_StatementTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_StatementTable to srt_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.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="ecor-20230331.xsd#ecor_NonEmployeeDirectorMember" xlink:label="ecor_NonEmployeeDirectorMember" xlink:title="ecor_NonEmployeeDirectorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_NonEmployeeDirectorMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_NonEmployeeDirectorMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndDeferredStockUnitsGrantedDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CondensedConsolidatedStatementsofEquity">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems" xlink:label="us-gaap_StatementLineItems" xlink:title="us-gaap_StatementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_SharesOutstanding" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_SharesOutstanding" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss" xlink:title="us-gaap_NetIncomeLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_NetIncomeLoss" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_NetIncomeLoss" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:title="us-gaap_OtherComprehensiveIncomeLossNetOfTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:label="us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:title="us-gaap_StockRedeemedOrCalledDuringPeriodValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:label="us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:title="us-gaap_StockRedeemedOrCalledDuringPeriodShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockMember" xlink:label="us-gaap_PreferredStockMember" xlink:title="us-gaap_PreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_PreferredStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_PreferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureRestructuringAndOtherRelatedChargesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="us-gaap_RestructuringCostAndReserveLineItems" xlink:title="us-gaap_RestructuringCostAndReserveLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.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-20230331.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="ecor-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" 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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventLineItems" xlink:label="us-gaap_SubsequentEventLineItems" xlink:title="us-gaap_SubsequentEventLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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_SubsequentEventLineItems" xlink:to="ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:title="Definition : us-gaap_SubsequentEventLineItems to ecor_ProceedsFromSaleOfNetOperatingLosses" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_PayToInstallmentsAmount" xlink:label="ecor_PayToInstallmentsAmount" xlink:title="ecor_PayToInstallmentsAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="ecor_PayToInstallmentsAmount" xlink:title="Definition : us-gaap_SubsequentEventLineItems to ecor_PayToInstallmentsAmount" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:label="us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:title="us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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.fasb.org/us-gaap/2022/elts/us-gaap-2022.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/2022/dei-2022.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/2022/dei-2022.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-20230331.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/2022/dei-2022.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:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesScheduleoffurtherrevenueconcentrationwithintheVADoDDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProductInformationLineItems" xlink:label="us-gaap_ProductInformationLineItems" xlink:title="us-gaap_ProductInformationLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NetSalesConcentrationPercentage" xlink:label="ecor_NetSalesConcentrationPercentage" xlink:title="ecor_NetSalesConcentrationPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ProductInformationLineItems" xlink:to="ecor_NetSalesConcentrationPercentage" xlink:title="Definition : us-gaap_ProductInformationLineItems to ecor_NetSalesConcentrationPercentage" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfProductInformationTable" xlink:label="us-gaap_ScheduleOfProductInformationTable" xlink:title="us-gaap_ScheduleOfProductInformationTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ProductInformationLineItems" xlink:to="us-gaap_ScheduleOfProductInformationTable" xlink:title="Definition : us-gaap_ProductInformationLineItems to us-gaap_ScheduleOfProductInformationTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis" xlink:label="srt_ProductOrServiceAxis" xlink:title="srt_ProductOrServiceAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfProductInformationTable" xlink:to="srt_ProductOrServiceAxis" xlink:title="Definition : us-gaap_ScheduleOfProductInformationTable to srt_ProductOrServiceAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="srt_ProductsAndServicesDomain" xlink:title="srt_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain" xlink:title="Definition : srt_ProductOrServiceAxis to srt_ProductsAndServicesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesConcentrationMember" xlink:label="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesConcentrationMember" xlink:title="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesConcentrationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesConcentrationMember" xlink:title="Definition : srt_ProductsAndServicesDomain to ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesConcentrationMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseFacilitiesAccountingForMoreThan10PercentOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesMember" xlink:label="ecor_NumberOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseFacilitiesAccountingForMoreThan10PercentOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesMember" xlink:title="ecor_NumberOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseFacilitiesAccountingForMoreThan10PercentOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="ecor_NumberOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseFacilitiesAccountingForMoreThan10PercentOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesMember" xlink:title="Definition : srt_ProductsAndServicesDomain to ecor_NumberOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseFacilitiesAccountingForMoreThan10PercentOfDepartmentOfVeteransAffairsAndDepartmentOfDefenseRelatedNetSalesMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="srt_ProductsAndServicesDomain_1" xlink:title="srt_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain_1" xlink:title="Definition : srt_ProductOrServiceAxis to srt_ProductsAndServicesDomain" xlink:type="arc" use="optional" order="1" 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-20230331.xsd#ecor_StockPurchaseAgreementLineItems" xlink:label="ecor_StockPurchaseAgreementLineItems" xlink:title="ecor_StockPurchaseAgreementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="us-gaap_PreferredStockParOrStatedValuePerShare" xlink:title="us-gaap_PreferredStockParOrStatedValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_PreferredStockParOrStatedValuePerShare" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_PreferredStockParOrStatedValuePerShare" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfEachSharesVotingRightsPerShares" xlink:label="ecor_NumberOfEachSharesVotingRightsPerShares" xlink:title="ecor_NumberOfEachSharesVotingRightsPerShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfEachSharesVotingRightsPerShares" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfEachSharesVotingRightsPerShares" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:label="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:title="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValueOutstanding" xlink:label="us-gaap_PreferredStockValueOutstanding" xlink:title="us-gaap_PreferredStockValueOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_PreferredStockValueOutstanding" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_PreferredStockValueOutstanding" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityReverseStockSplit" xlink:label="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="us-gaap_StockholdersEquityReverseStockSplit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_StockholdersEquityReverseStockSplit" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockRedemptionPricePerShare" xlink:label="us-gaap_PreferredStockRedemptionPricePerShare" xlink:title="us-gaap_PreferredStockRedemptionPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_PreferredStockRedemptionPricePerShare" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_PreferredStockRedemptionPricePerShare" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:label="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:title="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_PreferredStockRedemptionShare" xlink:label="ecor_PreferredStockRedemptionShare" xlink:title="ecor_PreferredStockRedemptionShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_PreferredStockRedemptionShare" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_PreferredStockRedemptionShare" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfDesignatedSharesOutstanding" xlink:label="ecor_NumberOfDesignatedSharesOutstanding" xlink:title="ecor_NumberOfDesignatedSharesOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfDesignatedSharesOutstanding" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfDesignatedSharesOutstanding" xlink:type="arc" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:label="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:title="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:type="arc" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_DescriptionOfReverseStockSplit" xlink:label="ecor_DescriptionOfReverseStockSplit" xlink:title="ecor_DescriptionOfReverseStockSplit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_DescriptionOfReverseStockSplit" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_DescriptionOfReverseStockSplit" xlink:type="arc" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfBasisSharesOfVotingRightsReceived" xlink:label="ecor_NumberOfBasisSharesOfVotingRightsReceived" xlink:title="ecor_NumberOfBasisSharesOfVotingRightsReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfBasisSharesOfVotingRightsReceived" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfBasisSharesOfVotingRightsReceived" xlink:type="arc" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NumberOfBasisSharesToReceiveDividendDeclared" xlink:label="ecor_NumberOfBasisSharesToReceiveDividendDeclared" xlink:title="ecor_NumberOfBasisSharesToReceiveDividendDeclared" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_StockPurchaseAgreementLineItems" xlink:to="ecor_NumberOfBasisSharesToReceiveDividendDeclared" xlink:title="Definition : ecor_StockPurchaseAgreementLineItems to ecor_NumberOfBasisSharesToReceiveDividendDeclared" xlink:type="arc" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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" order="22" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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-20230331.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="us-gaap_StatementClassOfStockAxis" xlink:title="us-gaap_StatementClassOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_StockPurchaseAgreementTable" xlink:to="us-gaap_StatementClassOfStockAxis" xlink:title="Definition : ecor_StockPurchaseAgreementTable to us-gaap_StatementClassOfStockAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="us-gaap_SeriesAPreferredStockMember" xlink:title="us-gaap_SeriesAPreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="us-gaap_SeriesAPreferredStockMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to us-gaap_SeriesAPreferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain_1" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain_1" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.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="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.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-20230331.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/2022/dei-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SeveranceandotherrelatedchargesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:title="us-gaap_DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:label="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:title="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PostemploymentBenefitsPeriodExpense" xlink:label="us-gaap_PostemploymentBenefitsPeriodExpense" xlink:title="us-gaap_PostemploymentBenefitsPeriodExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_PostemploymentBenefitsPeriodExpense" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_PostemploymentBenefitsPeriodExpense" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="srt_TitleOfIndividualAxis" xlink:title="Definition : us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable to srt_TitleOfIndividualAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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-20230331.xsd#ecor_TwoFormerEmployeesMember" xlink:label="ecor_TwoFormerEmployeesMember" xlink:title="ecor_TwoFormerEmployeesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_TwoFormerEmployeesMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_TwoFormerEmployeesMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-domain" 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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockholdersEquityScheduleofStockPurchaseWarrantsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueGrant" xlink:label="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueGrant" xlink:title="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueGrant" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueGrant" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueGrant" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:label="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:title="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:label="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:title="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:title="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:label="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:title="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="18" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.xsd#ecor_StockPurchaseWarrantsMember" xlink:label="ecor_StockPurchaseWarrantsMember" xlink:title="ecor_StockPurchaseWarrantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_StockPurchaseWarrantsMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_StockPurchaseWarrantsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" 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-20230331.xsd#ecor_RisksAndUncertaintiesLineItems" xlink:label="ecor_RisksAndUncertaintiesLineItems" xlink:title="ecor_RisksAndUncertaintiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:label="us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:title="us-gaap_RevenueRemainingPerformanceObligationPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NetLosses" xlink:label="ecor_NetLosses" xlink:title="ecor_NetLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_NetLosses" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_NetLosses" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:title="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfNotesReceivable" xlink:label="us-gaap_ProceedsFromSaleOfNotesReceivable" xlink:title="us-gaap_ProceedsFromSaleOfNotesReceivable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_ProceedsFromSaleOfNotesReceivable" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_ProceedsFromSaleOfNotesReceivable" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:title="us-gaap_ProceedsFromIssuanceInitialPublicOffering" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_NetSalesPercentage" xlink:label="ecor_NetSalesPercentage" xlink:title="ecor_NetSalesPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_NetSalesPercentage" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_NetSalesPercentage" xlink:type="arc" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_FederalSupplyScheduleExpireDate" xlink:label="ecor_FederalSupplyScheduleExpireDate" xlink:title="ecor_FederalSupplyScheduleExpireDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_RisksAndUncertaintiesLineItems" xlink:to="ecor_FederalSupplyScheduleExpireDate" xlink:title="Definition : ecor_RisksAndUncertaintiesLineItems to ecor_FederalSupplyScheduleExpireDate" xlink:type="arc" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.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" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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="ecor-20230331.xsd#ecor_ChannelThreeMember" xlink:label="ecor_ChannelThreeMember" xlink:title="ecor_ChannelThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelThreeMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelThreeMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ChannelFourMember" xlink:label="ecor_ChannelFourMember" xlink:title="ecor_ChannelFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelFourMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelFourMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ChannelFiveMember" xlink:label="ecor_ChannelFiveMember" xlink:title="ecor_ChannelFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelFiveMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelFiveMember" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20230331.xsd#ecor_ChannelSixMember" xlink:label="ecor_ChannelSixMember" xlink:title="ecor_ChannelSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelSixMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelSixMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.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/2022/dei-2022.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-20230331.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/2022/dei-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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="https://xbrl.fasb.org/srt/2022/elts/srt-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:label="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="us-gaap_RevenueFromRightsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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="ecor_RisksAndUncertaintiesTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : ecor_RisksAndUncertaintiesTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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-20230331.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-20230331.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="ecor-20230331.xsd#ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:label="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:title="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CondensedConsolidatedBalanceSheetsUnaudited" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" />
  <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/Revenue" />
  <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_DisclosureAccruedExpensesAndOtherCurrentLiabilities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ShareholdersEquity" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShare" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Incometaxes" />
  <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_DisclosureCommitmentsAndContingencies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Severanceandotherrelatedcharges" />
  <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/SummaryofSignificantAccountingPoliciesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SignificantRisksandUncertaintiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueTables" />
  <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/TheCompanyDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesScheduleofcashequivalentsandrestrictedcashDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoriesInventoriesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoriesInventoriesDetailsCalc2" />
  <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_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_DisclosureFairValueMeasurementsAdditionalInformationDetails" />
</link:linkbase>
