Introduction
Major depressive disorder (MDD) affects an estimated 270 million people worldwide and is more common in women and older adults [1]. Neurobiology, symptomatology, and psychiatric and somatic comorbidities in unipolar depression vary with both current age and age at onset [Reference Wagner, Wollschläger, Dreimüller, Engelmann, Herzog and Roll2, Reference Hegeman, Kok, van der Mast and Giltay3].
Early-onset depression (18–29 years) often manifests with pronounced cognitive and emotional symptoms (e.g. irritability, negative self-perception), and high rates of comorbid drug abuse, anxiety, neurodevelopmental, and personality disorders [Reference Wagner, Wollschläger, Dreimüller, Engelmann, Herzog and Roll2–Reference Harald and Gordon5]. In contrast, a substantial segment of patients suffer a first depressive episode in late life, commonly termed late-onset depression (≥65 + years), which is associated with greater executive dysfunction, psychotic symptoms, and somatic comorbidities such as dementia and cardiovascular disease [Reference Hegeman, Kok, van der Mast and Giltay3, Reference Zenebe, Akele, W/Selassie and Necho6–Reference Blazer8]. Early-onset depression is further characterized by higher rates of childhood trauma, whereas late-onset depression is more closely linked to a pro-inflammatory state [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9]. While older patients often show better electroconvulsive therapy (ECT) outcomes, specific somatic comorbidities prevalent in this group, such as atherosclerosis, diabetes, and COPD, may independently impede ECT outcomes [Reference Zou, Li, Chen, Lv and Min10]. These age-dependent clinical profiles appear to have a genetic basis. Recent genome-wide association data indicate that early- and late-onset depression have distinct genetic architectures, with early-onset depression enriched for fetal brain signals related to neurodevelopment, and late-onset depression linked to cardiovascular and metabolic risk and cognitive decline [Reference Shorter, Pasman, Kurvits, Jangmo, Naamanka and Harder11]. Late-life depression is nonetheless heterogeneous, as it may represent either late-onset or early-onset depression persisting into old age. Because these two groups are not defined in current diagnostic systems, age cut-offs vary across studies, most commonly <30 years for early-onset [Reference Liu, Chen, Su, Fang, Srisurapanont and Hong12, Reference Bukh, Bock, Vinberg, Gether and Kessing13] and 50–65 years for late-onset depression [Reference Janssen, Beekman, Comijs, Deeg and Heeren4, Reference Sekhon, Patel and Sapra7].
Although late-life depression may be complex to treat [Reference Taylor and Solomon14, Reference Aziz and Steffens15], several epidemiological studies suggest that ECT is particularly effective in older patients [Reference Kirov, Jauhar, Sienaert, Kellner and McLoughlin16–Reference Baghai and Möller19]. It remains unclear whether this is due to older age itself, or to correlated factors such as a symptoms profile, comorbidity, or late-onset depression. Supporting broader age-related differences in depression, psychopharmacological studies report that younger patients are more vulnerable to sustained suicidal ideation after initiation of antidepressants than older adults [Reference Stone, Laughren, Jones, Levenson, Holland and Hughes20, Reference Näslund, Hieronymus, Lisinski, Nilsson and Eriksson21], supporting age-related differences in depression. Beyond age, previous reviews have reaffirmed that psychotic symptoms, melancholic features, shorter episode duration, and higher baseline severity are predictors of a superior ECT response, whereas medication resistance and comorbid personality disorders consistently portend poorer outcomes. [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9, Reference Baghai and Möller19, Reference Baminiwatta and Menon22]. Indeed, a recent causal mediation analysis with 256 participants estimated that 43.1% of the enhanced ECT response seen with older age is explained by clinical mediators, such as psychotic features, psychomotor retardation or agitation, and shorter episode duration, rather than age itself [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9, Reference Baminiwatta and Menon22, Reference Jelovac, Landau, Beeley, McCaffrey, Finnegan and Gusciute23], suggesting that the age-related advantage may, in large part, reflect this distinct clinical phenotype rather than a direct effect of aging. Because clinical features currently offer more reliable prognostic value than neuroimaging or genetic markers, understanding these phenotypic relationships is central to precision psychiatry in ECT.
To our knowledge, few previous studies have explicitly examined the influence of age of onset on ECT outcome in depth, although several studies have considered age of onset as one factor in multivariate models. In one study of 110 older patients, the response rate was higher in the late-onset group (86.9%) than in those with earlier onset (<55 years; 67.3%). As there were no significant differences in symptoms or somatic comorbidity between groups, age of onset itself appeared to be a prognostic factor. However, this study included only inpatients aged 55 years and older with severe depression, and did not include chronological age as a predictor in the analyses [Reference Dols, Bouckaert, Sienaert, Rhebergen, Vansteelandt and ten Kate24]. Furthermore, while age of onset has been recognized as a phenotypic marker, its role as a mediator is contested. In the mediation study described above, age of onset was not found to mediate the relationship between chronological age and ECT outcome [Reference Jelovac, Landau, Beeley, McCaffrey, Finnegan and Gusciute23], This discrepancy, together with the genetic overlap between early- and late-onset subtypes, underscores the need for larger-scale investigations to determine if age of onset is a prognostic factor independent of chronological age and other clinical factors.
The primary aim of this study was to investigate whether age of onset of the first depressive episode requiring hospitalization (early, mid, late) and chronological age at treatment predict ECT outcome. We also examined whether any association between age of onset and ECT outcome is independent of other prognostic factors, such as baseline severity or comorbid diagnoses, and whether differential ECT response across early- versus late-onset depression supports etiological heterogeneity between these subgroups. Finally, we assessed whether prognostic clinical factors mediate the association between age of onset and ECT outcomes.
Methods
Participants and study design
This cohort study used three Swedish patient registers. The primary data source was the Swedish National Quality Register for Electroconvulsive Therapy (Q-ECT), which contains detailed information on ECT performed in Sweden [Reference Elvin and Nordenskjöld25]. Patients who underwent an index ECT series (≥2 sessions/week) between January 1, 2008, and December 31, 2021, for MDD were included (ICD-10 codes F32.1-F32.3 and F33.1-F33.3). Patients were cross-linked using pseudonymized personal identity numbers to the Swedish National Patient Register (NPR) and the National Prescribed Drug Register (NPDR). From these sources, we obtained data on sex, age at the first diagnosed depressive episode requiring hospitalization, somatic comorbidities, and history of medication use.
Data sources
The Q-ECT began in 2008 as a regional collaboration between psychiatric units in three counties, and became a national register in 2011. Since 2019, coverage has exceeded 90%. Registration is voluntary and requires informed consent. Treatments are recorded as either index series (≥2 sessions/week) or maintenance series with less frequent sessions following remission. The register includes data on demographics, illness characteristics, treatment outcomes, and information about the ECT [Reference Elvin and Nordenskjöld25].
The NPR and NPDR are mandatory national registers that monitor health care use in Sweden. The NPR, established in 1964, included psychiatric diagnoses in 1973 (86% national coverage), and full national coverage in 1987. Since 2001, it includes specialist outpatient care, but not primary care [Reference Ludvigsson, Andersson, Ekbom, Feychting, Kim and Reuterwall26, Reference Everhov, Frisell, Osooli, Brooke, Carlsen and Modig27].
The NPDR contains all dispensed prescription drugs in Sweden since 2005 [Reference Wettermark, Hammar, Michael Fored, Leimanis, Otterblad Olausson and Bergman28].
Outcome measures
The primary outcomes were first a clinician-rated treatment response using the Clinical Global Impression – Improvement (CGI-I) scale, which is a 7-point scale: scores of 1 (“very much improved”) and 2 (“much improved”) were classified as response, and scores 3–7 a non-response [Reference Berk, Ng, Dodd, Callaly, Campbell and Bernardo29]. Second, a patient-rated remission from depression using Montgomery-Åsberg Depression Rating Scale – Self report (MADRS-S), a nine-item depression scale in which each item ranges from 0 to 6 (max score, 54), was used to assess remission from depression. Remission was defined as having a total MADRS_S score of 10 or less post-ECT. [Reference Svanborg and Åsberg30] Ratings were obtained at follow-up interviews after the index ECT had ended, and reflect change from pre-ECT baseline.
Input measures
The main independent variables were chronological age at treatment and age of onset of first depressive episode requiring hospitalization.
Age at treatment was modeled either as a continuous variable or by using a restricted cubic spline with knots at 29 and 65 years, yielding three age segments with 30–64 years as the reference.
Age of onset of first depressive episode requiring hospitalization was derived from the earliest documented inpatient episode for an affective disorder in the NPR, assumed to represent the patient’s first severe depressive episode. Because older ICD versions (ICD-7 to ICD-9) used the umbrella diagnosis “psychosis” for some affective presentations, we also considered these codes. Patients were categorized into early-onset (≤29 years), mid-onset (30–64 years) and late-onset (≥65 years old) depression, with cut-offs based on previous literature [Reference Sekhon, Patel and Sapra7, Reference Geduldig and Kellner17–Reference Baghai and Möller19].
The Clinical Global Impression – Severity (CGI-S) is a 7-point clinician-rated scale ranging from 1 (“normal, not at all ill”) to 7 (“among the most severely ill patients”) [Reference Berk, Ng, Dodd, Callaly, Campbell and Bernardo29]. In the Q-ECT, CGI-S is recorded before and after the index series. We used the pre-treatment CGI-S to assess baseline depression severity and included it as a continuous covariate (1–7) in the regression analyses.
To approximate illness complexity, we used prior psychopharmacotherapy as indicating more treatment-resistant depression. Drugs were grouped by Anatomical Therapeutic Chemical (ATC) codes, each representing a mode of action [Reference Liang, Hu, Chen, Wang and Aorigele31]. We included antidepressants (all N06A group) and other agents that may be prescribed for MDD: antiepileptics (lamotrigine, valproic acid, carbamazepine) and psycholeptics (diazepam, oxazepam, alprazolam, nitrazepam, and flunitrazepam) [32]. One point was assigned per antidepressant ATC code and maximum of one point each for the other drug categories. The resulting total score was treated as a count variable. The data were obtained from the NPDR. Note that this measure did not explicitly capture the number of illness episodes, as a patient may have switched multiple times during the same episode, which would indicate complexity in achieving adequate treatment response.
Data on somatic diseases were obtained from the NPR, where diagnoses are recorded using ICD versions 7–10. To harmonize across ICD revisions, we applied a Swedish adaptation of the Charlson Comorbidity Index (CCI) for register-based research [Reference Ludvigsson, Appelros, Askling, Byberg, Carrero and Ekström33], which groups equivalent codes for the same condition across ICD 7–10 into single categories [Reference Ludvigsson, Appelros, Askling, Byberg, Carrero and Ekström33]. Somatic comorbidity was treated as a categorical variable with three levels: no comorbidity, one comorbidity, and two or more comorbidities. The diagnoses included in the comorbidity variable are presented in Table 1.
Patient and treatment characteristics of the 14,141 patients included in the study

[Table 1] Long description
The table presents data for 14,141 patients divided into Early onset (3,912), Mid onset (7,585), and Late onset (2,644) groups.
Key outcomes include:
* Response rate: Increases with age from 64.6 percent to 84.9 percent.
* Remission rate: Increases with age from 26.3 percent to 60.2 percent.
Demographic and Clinical Information:
* Sex (male): Approximately 39 to 44 percent across groups.
* Psychotic depression: Increases with age from 16.7 percent to 36.0 percent.
* Mean C G I S prior to E C T: Consistent at 5.1 to 5.2.
* Mean M A D R S S prior to E C T: Decreases with age from 35.8 to 30.3.
Treatment Details:
* Mean number of sessions: 7.4 to 7.8.
* Mean charge (m C): Increases with age from 281.1 to 429.6.
* Electrode placement: Predominantly Right unilateral stimulation (approximately 89 percent in all groups).
Comorbidities:
* Anxiety: High across all groups (43.7 to 46.9 percent).
* Neurodevelopmental and Personality disorders: Significantly higher in the Early onset group (8.7 percent and 9.1 percent respectively) compared to Late onset (0.1 percent and 0.8 percent).
* Somatic comorbidities: Generally increase with age, notably Cerebrovascular disease (1.4 percent to 10.9 percent) and Rheumatic disease (3.4 percent to 12.0 percent).
Notes: Values are either the number of positive cases (n) and their percentage share of the total sample included in the study (%) or the mean value, depending on what is relevant for the specific variable.
Response rate was assessed using the seven-item scale Clinical Global Impression – Improvement (CGI-I) scale. Scores of 1 (“Very much improved”) and 2 (“Much improved”) were assessed as “response.” Remission was assessed using the 54-point Self-Assessed Montgomery-Åsberg Depression Rating Scale (MADRS-S). MADRS-S is filled out by the patients before and after the completed ECT series. A score of <10 points was assessed as “remission.” Clinical Global Impression – Severity (CGI-S) scale is a seven-item scale describing the objective severity of the disease assessed by the clinician before and after the ECT. Mean MADRS-S and CGI-S before ECT were presented in order to describe the severity of depression. Number of medications was obtained from the National Prescribed Drug Register using the Anatomical Therapeutic Chemical (ATC) code. The psychiatric and somatic comorbidities were obtained from the National Patient Register, where they are registered using International Statistical Classification of Diseases and Health Related Problems, revisions 7–10 (ICD-7 to ICD-10). The revisions were unified and diagnostic codes classified using the Charlson Comorbidity Index (CCI). Neurodevelopmental disorders include autism spectrum disorder and/or ADHD. Data on the number of sessions in the series, applied stimulation energy, and seizure duration were obtained from the Swedish Quality Register for the ECT (Q-ECT). The Q-ECT collects data on stimulation energy applied during the first session of the series and seizure duration measured during the last session of the series.
Data on comorbid psychiatric disorders were obtained from the NPR. Anxiety disorders, personality disorders, substance use disorders, and neurodevelopmental disorders were included as separate dichotomous variables, as these commonly co-occur with MDD, particularly in younger people [Reference Garber and Weersing34, Reference Eberhard, Billstedt and Gillberg35].
To adjust for time lived that was not covered by the register data, we included the variable Proportion of life not in observable registers as covariate in all main analyses. The variable was stratified into three categories: 1) Fully observed, 2) 0–29 years unobserved, and 3) 30–64 years unobserved. These year-intervals were derived from the age of onset categories, indicating whether the patient could have either one or two onset categories potentially misclassified due to years lived outside of observable register time.
Statistical analysis
Data were managed and analyzed using SAS v. 9.4 and R v. 4.4.3. Frequencies and means were used for descriptive statistics of key variables. Hierarchical logistic regression, with ECT response and remission from depression as the outcomes, was performed to assess the independent and joint role of age of onset and other potentially influential factors. In this stepwise approach, variables are sequentially entered in blocks, allowing evaluation of incremental model improvement and the added predictive value of age of onset when successively adjusting for age at treatment and other covariate groups [Reference de Jong36]. Second, we stratified the sample by age-of-onset group and ran separate logistic regression models to identify predictors of ECT response within each category, and assessed interaction by onset group for each variable. Finally, causal mediation analyses examined whether somatic and psychiatric comorbidity, psychotic features, illness severity, and number of previous medications mediated the association between age of onset and ECT outcomes. Two exposure contrasts were tested, late onset (≥65) versus mid/early onset, and early onset (<30) versus mid/late onset, for both response and remission. Multi-mediator analyses were conducted using the R package CMAverse (regression-based imputation), modeling all five mediators simultaneously and decomposing the total effect into direct and indirect components. Single-mediator analyses using the mediation package were conducted in parallel to estimate the contribution of each mediator individually. Both approaches adjusted for age, age2, sex, and register observation completeness, with 1000 bootstrap resamples throughout.
In addition, a sensitivity analysis was performed, where the time since first antidepressant dispensation was obtained in those patients who had their first depressive episode requiring hospitalization during the years 2019–2021. The first antidepressant dispensation was considered a proxy for the patient’s first depressive episode. This time-lag was subsequently used in a Monte Carlo simulation applied to the entire dataset, on which the main analysis was re-run, to approximate the difference in associations between first depressive episode requiring hospitalization and first ever depressive episode. This analysis is detailed in the Supplementary Materials.
Ethical considerations
Participation in the Q-ECT is voluntary, and consent may be withdrawn at any time. The study forms part of a larger project approved by the Regional Ethical Review Board in Uppsala (registration number 2014/174) and the Swedish Ethical Review Authority (2021-03815).
Results
Patient characteristics and response and remission rates to ECT
Between January 1, 2008 and December 31, 2021, 14,141 patients in Sweden received an index series for MDD registered in the Q-ECT and had a non-missing CGI-I rating.
Most patients (7,585; 53.6%) had mid-onset depression (30–64 years), 3,912 (27.7%) had early-onset depression (≤29 years), and 2,644 (18.7%) had late-onset depression (≥65 years). Mean age at treatment was 34.5, 55.8, and 76.0 years in the early-, mid-, and late-onset groups, respectively. Response rate to ECT (CGI-I score 1–2) was highest in the late-onset group (84.9%) and the lowest in the early-onset group (64.6%). Psychosis was present in 16.7% of early-onset patients and 36.0% of late-onset patients. Early-onset patients had tried the most medications before ECT (mean 5.5 versus 4.5 in late-onset). All included psychiatric comorbidities were most prevalent among the early-onset and least prevalent in the late-onset group. Further details are provided in Table 1.
Hierarchical binomial logistic regression of predictors of response and remission
As shown in Table 2, when only age of onset and register observation completeness were considered (Block I), early-onset depression was associated with a lower likelihood of both ECT response and remission compared with mid-onset (both OR 0.65, p < .001), whereas late-onset depression was associated with a higher likelihood of response (OR 1.28, p < .001) and remission (OR 1.67, p < .001). Longer periods of life unobserved in the registers were strongly associated with better outcomes in Block I, but these associations became non-significant once chronological age was entered in Block II, suggesting they largely reflected age effects.
Hierarchical binomial logistic regression of predictors of response to ECT and remission from depression, including odds ratios for baseline predictors

[Table 2] Long description
The table presents data for 14,141 patients across four hierarchical blocks. The columns are Variable, Response O R (95% C I), Response P, Remission O R (95% C I), and Remission P.
* Block I (Age of Onset): Early onset depression shows an O R of 0.65 for both response and remission (P < .001). Late onset depression shows an O R of 1.28 for response and 1.67 for remission (P < .001).
* Block II (Chronological Age and Sex): Age splines are highly significant. Age spline ≤ 29 years has an O R of 6.16 for response and 7.48 for remission. Age spline 65+ years has an O R of 1.84 for response and 2.46 for remission. Sex (female) is not significant (P = 0.278 for response).
* Block III (Depression Characteristics): Psychotic symptoms significantly predict better outcomes with an O R of 1.74 for response and 1.80 for remission (P < .001). Illness severity (C G I - S) has an O R of 1.45 for response. Number of previous medications is a negative predictor (O R 0.92 for response, 0.88 for remission).
* Block IV (Comorbid Illnesses): Two or more somatic comorbidities reduce the likelihood of response (O R 0.70) and remission (O R 0.68). Substance use disorder (O R 0.73 for remission) and personality syndrome (O R 0.52 for remission) are also significant negative predictors (P < .001).
Notes: Analyzed sample: 14,141 patients.
Values are odds ratios (OR) with 95% confidence intervals (CI) in the parentheses. Cut-off age for early onset depression is 0 to 29 years, and late onset depression is 65 years or older. Both onset groups are compared with mid-age onset depression (30–64 years) as reference category. ICD codes F32.3 or F33.3 were assessed as psychotic depression. Severity was assessed using the Clinical Global Impression – Severity scale (1–7). Number of medications was obtained from the National Prescribed Drug Register using the Anatomical Therapeutic Chemical (ATC) code. The presence of somatic comorbidities was obtained from the National Patient Register and classified using the Charlson Comorbidity Index (CCI). All models were also adjusted for electrode placement, dose charge, and pulse width (not shown). Adjusted models were not statistically significantly different from unadjusted models. Variables in bold were added in the current block.
When chronological age and sex were added (Block II), chronological age was a strong independent predictor of both outcomes. The early-onset disadvantage remained significant, while the late-onset advantage was no longer significant for response, although only marginally, but remained significant for remission (OR 1.37, p < .001).
After adding depression characteristics (Block III), the early-onset association attenuated further for response (OR 0.86, p = .016) and became non-significant for remission. Late-onset depression was non-significant for both outcomes at this stage.
Adding comorbid illnesses in Block IV produced a further model improvement. Early- and late-onset associations were non-significant for both outcomes, though the late-onset remission association approached significance (OR 1.17, p = .055). Two or more somatic comorbidities, anxiety disorder, substance use disorder, and personality disorder were each independently associated with poorer outcomes. Chronological age remained a significant predictor throughout all blocks.
Prognostic factors of response and remission, divided by age of onset group
As can be seen in Table 3, prognostic factors for ECT response and remission differed across age-of-onset groups. In the early-onset group, psychiatric comorbidities were prominent negative predictors of both outcomes, including anxiety syndrome, substance use disorder, and personality disorder, whereas these associations were largely absent in mid- and late-onset groups. Psychotic symptoms, baseline illness severity, and number of prior medications predicted response across all onset groups; for remission, illness severity was significant only in the mid-onset group. Somatic comorbidities (two or more) predicted poorer response in both mid- and late-onset groups, but for remission only in the mid-onset group.
Prognostic factors of response to ECT and remission from depression, divided by age of onset group, as well as interaction terms of age of onset by each factor

[Table 3] Long description
The table is divided into two primary horizontal sections: Response and Remission. Each section lists variables and their associated O R (95 percent C I) for three age groups: Early onset (less than or equal to 29 years), Mid onset (30 to 64 years), and Late onset (greater than or equal to 65 years), followed by Interaction Wald Chi-squared (d f) and P-values.
Key findings in the Response section:
* Psychotic symptoms show a significant positive correlation across all groups: Early 2.30, Mid 1.59, and Late 1.42, with a significant interaction P-value of .002.
* Illness severity (C G I - S) at baseline shows significant O R values of 1.36 (Early), 1.54 (Mid), and 1.40 (Late).
* Number of previous medication types shows a significant negative correlation (O R below 1.0) for all groups: 0.94 (Early), 0.92 (Mid), and 0.93 (Late).
* Sex (male) shows a significant interaction (P = .005), with an O R of 1.17 for Early onset but 0.86 for Mid onset.
Key findings in the Remission section:
* Psychotic symptoms remain a strong predictor: Early 2.86, Mid 1.68, and Late 1.37, with a highly significant interaction P-value of less than .001.
* Personality disorder shows a significant interaction (P = .029), with a much lower O R in the Early onset group (0.33) compared to Mid onset (0.63).
* Somatic comorbidities (two or more) show significant negative correlations for Early (0.60) and Mid (0.60) onset groups.
* Number of previous medication types consistently shows significant negative correlation across all groups: 0.91 (Early), 0.89 (Mid), and 0.87 (Late).
Note: Numbers marked in bold are significant at P < .05 level according to the penalized maximum likelihood estimates. All models were also adjusted for electrode placement, dose charge, and pulse width (not shown). Adjusted models were not statistically significantly different from unadjusted models. Life observed, portion of life observed in the registers.
There was a significant interaction between age of onset and chronological age for response, such that the positive association between older age and ECT response weakened with later onset. For sex, men in the early-onset group were more likely than women to respond and achieve remission, whereas the opposite pattern was observed in the mid-onset group; this interaction was significant for both response and remission. Psychotic symptoms were a significantly stronger predictor of both response and remission in early-onset than late-onset depression. For remission, a significant interaction was also observed for personality disorder, driven by a strong negative association in early onset that attenuated across groups.
Causal mediation analysis of clinical mediators in the pathway from age of onset of first depressive episode requiring hospitalization, to response and remission
Causal mediation analyses examined whether the association between age of onset and ECT outcomes operated through somatic and psychiatric comorbidity, psychotic features, illness severity at initiation of ECT, and number of previous medications.
As shown in Table 4, for late onset (≥65) versus mid- and early-onset, the total effect favored late onset for both response (OR 1.21, 95% CI 1.02–1.42, p = .024) and remission (OR 1.31, 95% CI 1.13–1.54, p < .001). In the multi-mediator analysis, the joint indirect effect was significant for both outcomes (OR 1.14 and 1.17, both p < .001), accounting for approximately 67% of the total effect on response and 45% on remission. The direct effect was non-significant for response (p = .43) but significant for remission (OR 1.17, p = .044). Single-mediator analyses confirmed significant indirect effects for all five mediators (all p ≤ .006), with number of previous medications showing the largest proportion mediated (response 53%, remission 30%). The direct effect was non-significant for response across all mediators, but remained significant for remission (all p ≤ .004), indicating a residual direct pathway not explained by any individual mediator regarding remission.
Causal mediator analyses of clinical mediators in the path of onset of first depressive episode requiring hospitalization to response to ECT or remission from depression

[Table 4] Long description
The table is divided into four sections based on predictor and outcome combinations.
Section 1: Predictor is late-onset versus early- and mid-onset; Outcome is Response to E C T.
- Overall mediation (odds ratio scale): N I E 1.142, p < .001; N D E 1.069, p .430; Total 1.207; 66.8% mediated.
- Somatic comorbidity: N I E 0.004, p < .001; N D E 0.018, p .170; Total 0.022; 18.2% mediated.
- Psychiatric comorbidity: N I E 0.005, p < .001; N D E 0.017, p .196; Total 0.022; 24.3% mediated.
- Psychotic features: N I E 0.01, p < .001; N D E 0.012, p .376; Total 0.021; 45.3% mediated.
- Illness severity (C G I - S): N I E 0.007, p < .001; N D E 0.016, p .226; Total 0.023; 30.2% mediated.
- Number of previous medications: N I E 0.012, p < .001; N D E 0.01, p .430; Total 0.022; 53.2% mediated.
Section 2: Predictor is late-onset versus early- and mid-onset; Outcome is Remission from depression.
- Overall mediation (odds ratio scale): N I E 1.168, p < .001; N D E 1.169, p .044; Total 1.308; 45.3% mediated.
- Somatic comorbidity: N I E 0.006, p < .001; N D E 0.07, p .002; Total 0.076; 7.4% mediated.
- Psychiatric comorbidity: N I E 0.01, p < .001; N D E 0.065, p .002; Total 0.076; 13.8% mediated.
- Psychotic features: N I E 0.017, p < .001; N D E 0.059, p .002; Total 0.076; 22.0% mediated.
- Illness severity (C G I - S): N I E 0.005, p .006; N D E 0.067, p < .001; Total 0.072; 6.6% mediated.
- Number of previous medications: N I E 0.022, p < .001; N D E 0.053, p .004; Total 0.075; 29.8% mediated.
Section 3: Predictor is early-onset versus mid- and late-onset; Outcome is Response to E C T.
- Overall mediation (odds ratio scale): N I E 0.903, p < .001; N D E 0.903, p .330; Total 0.831; 64.4% mediated.
- Somatic comorbidity: N I E -0.003, p < .001; N D E -0.038, p < .001; Total -0.041; 8.0% mediated.
- Psychiatric comorbidity: N I E -0.014, p < .001; N D E -0.028, p .014; Total -0.041; 32.9% mediated.
- Psychotic features: N I E -0.005, p < .001; N D E -0.036, p < .001; Total -0.041; 11.6% mediated.
- Illness severity (C G I - S): N I E 0.003, p .082; N D E -0.041, p < .001; Total -0.038; -8.1% mediated.
- Number of previous medications: N I E -0.018, p < .001; N D E -0.022, p .048; Total -0.040; 45.0% mediated.
Section 4: Predictor is early-onset versus mid- and late-onset; Outcome is Remission from depression.
- Overall mediation (odds ratio scale): N I E 0.847, p < .001; N D E 1.021, p .798; Total 0.787; 109.8% mediated.
- Somatic comorbidity: N I E -0.006, p < .001; N D E -0.051, p .002; Total -0.058; 10.9% mediated.
- Psychiatric comorbidity: N I E -0.022, p < .001; N D E -0.035, p .026; Total -0.057; 38.9% mediated.
- Psychotic features: N I E -0.009, p < .001; N D E -0.048, p .002; Total -0.057; 16.1% mediated.
- Illness severity (C G I - S): N I E 0.002, p .178; N D E -0.058, p < .001; Total -0.056; -4.1% mediated.
- Number of previous medications: N I E -0.033, p < .001; N D E -0.026, p .144; Total -0.059; 56.7% mediated.
Note: Both multiple mediator analyses and single mediator analyses are included.
Multi-mediator causal mediation analysis (regression-based imputation, presented on Odds Ratio scale), with mediators modeled in parallel, and single-mediator causal mediation analyses (risk difference scale). Bootstrapped 95% CI (1000 simulations). NIE, natural indirect effect; NDE, natural direct effect. Covariates: age, age2, sex, and observation completeness.
For early onset (<30) versus mid- and late-onset, the total effect disfavored early onset (response OR 0.83, 95% CI 0.74–0.94, p < .001; remission OR 0.79, 95% CI 0.67–0.92, p = .004), and the direct effect was non-significant in both the multi-mediator (p = 0.33 and p = 0.80) and single-mediator analyses, suggesting the disadvantage associated with early onset operated primarily through the clinical mediators. Significant indirect effects were observed for somatic and psychiatric comorbidity, psychotic features, and number of medications (all p < .001). Illness severity was an exception, with a non-significant indirect effect for both outcomes (p = .082 and p = .178) and a point estimate in the opposite direction to the total effect. Number of previous medications again showed the highest proportion mediated (response 45%, remission 57%) (Table 4).
Discussion
This study investigated the independent and joint associations of age of onset of first depressive episode requiring hospitalization and chronological age at treatment with ECT response and remission from depression in a nationwide cohort of 14,141 patients, and whether clinical and comorbidity factors account for these associations. Both age of onset and chronological age were independently associated with outcome: response and remission rates increased with later onset, from 64.6% and 26.3% in early-onset, to 79% and 42.7% in mid-onset, to 84.9% and 60.2% in late-onset. Increasing chronological age, up to approximately 65 years, was likewise associated with a greater likelihood of a positive outcome, and this was a distinct effect rather than a re-statement of the effect of age of onset, Chronological age remained a robust predictor throughout the fully adjusted models, whereas the association between age of onset and outcome attenuated substantially, or almost entirely, once depression characteristics and comorbid illness were accounted for. The causal mediation analyses indicate that distinct clinical pathways underlie the early-onset disadvantage and the late-onset advantage.
Within early- and mid-onset groups, higher chronological age at treatment was associated with better outcome, an association absent in late-onset depression. Previous research on this topic has been limited and often inconsistent. One of the few previous studies explicitly examining age of onset of depression similarly reported that late-onset depression was associated with better ECT response [Reference Dols, Bouckaert, Sienaert, Rhebergen, Vansteelandt and ten Kate24], though that study did not include age at treatment as co-predictor in the same model.
Our observation that early-onset depressive episode requiring hospitalization was associated with poorer ECT outcomes aligns with prior evidence that early-onset depression is more often accompanied by psychiatric comorbidity [Reference Bukh, Bock, Vinberg, Gether and Kessing13, Reference Herzog, Wagner, Engelmann, Treccani, Dreimüller and Müller37], which is itself associated with reduced treatment response [Reference Steinholtz, Reutfors, Brandt, Nordanskog, Thörnblom and Persson38, Reference Nordenskjöld, von Knorring and Engström39], In our cohort, early-onset patients showed markedly higher rates of anxiety, personality syndromes, and substance use disorder, alongside a greater number of previously dispensed medication types, which is consistent with a more comorbid, treatment-resistant phenotype. Late-onset depression, conversely, has been more closely linked to melancholic and psychotic presentations [Reference Jelovac, Landau, Beeley, McCaffrey, Finnegan and Gusciute23, Reference van Diermen, van den Ameele, Kamperman, Sabbe, Vermeulen and Schrijvers40, Reference Haq, Sitzmann, Goldman, Maixner and Mickey41], This age-dependent phenotypic heterogeneity matches the concept of distinct, partly age-dependent forms of depression proposed in recent narrative reviews of ECT predictors [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9, Reference Baminiwatta and Menon22], It is further supported by recent genome-wide association data, where early- and late-onset depression shared only a moderate degree of genetic overlap. Early-onset depression is more heritable than late-onset depression, and the risk for early-onset depression is concentrated in genes active during fetal brain development rather than in the adult brain, pointing to a neurodevelopmental origin. Early-onset depression also shares more genetic risk factors with other psychiatric disorders, while late-onset depression is linked to cardiovascular disease [Reference Shorter, Pasman, Kurvits, Jangmo, Naamanka and Harder11], These genetic findings reinforce the clinical picture, where early- and late-onset depression appear to be partly distinct conditions, with different biological underpinnings, rather than simply milder or more severe presentations of the same underlying illness. Our results extend previous study that similarly reported a higher ECT response rate in late-onset than earlier-onset depression but, restricted to inpatients aged 55 years and older, did not model chronological age as co-predictor [Reference Dols, Bouckaert, Sienaert, Rhebergen, Vansteelandt and ten Kate24], Our sample, about ten times larger than the combined samples of previous studies of age of onset in ECT, allowed both variables to be modeled jointly. Causal mediation analyses indicated that the early-onset disadvantage reflected both a greater burden of psychiatric comorbidity and history of treatment complexity (number of previously dispensed medication types) rather than illness severity, with the direct (unmediated) effect of early onset non-significant for both outcomes once all five mediators were modeled jointly. Conversely, the late-onset advantage was driven chiefly by a higher prevalence of psychotic features, with fewer previous medications and lower psychiatric comorbidity contributing further. With the five mediators included, the direct effect on response was non-significant, while they left a small but statistically significant direct effect of late onset on remission unexplained. This degree of mediation is broadly comparable to that of the chronological age advantage previously found to be explained by psychotic features, psychomotor retardation and agitation, and episode duration, but not age of onset [Reference Jelovac, Landau, Beeley, McCaffrey, Finnegan and Gusciute23], Our lack of data on psychomotor retardation and episode duration may in part explain why chronological age remained an independent predictor of outcome in our fully adjusted models even after accounting for the symptoms and comorbidity data available to us.
Psychotic symptoms illustrate the heterogeneity between onset groups particularly clearly. Although psychotic depression was more prevalent in late-onset depression and has previously been considered a hallmark of late-onset and late-life depression [Reference Jelovac, Landau, Beeley, McCaffrey, Finnegan and Gusciute23, Reference van Diermen, van den Ameele, Kamperman, Sabbe, Vermeulen and Schrijvers40–Reference Kelkar, Liu, Goodman, Al-Hashemi, Rhee and Blumberger44], its predictive association with ECT response and remission was, paradoxically, considerably stronger in early- than in late-onset of first depressive episode requiring hospitalization. This contrasts prior literature suggesting that the predictive value of psychotic symptoms is, if anything, stronger in older patients [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9, Reference Baminiwatta and Menon22]. Other onset-dependent differences point in the same direction, with male sex associated with better outcomes in early-onset and sex differences attenuating in mid- and late-onset. Comorbid personality syndromes were associated with markedly poorer remission specifically in early-onset age of depressive episode requiring hospitalization, an association that attenuated with later onset. Somatic comorbidity showed an inconsistent pattern. The overall burden of somatic comorbidity was greater in late-onset first depressive episode requiring hospitalization and contributed a favorable indirect effect to the late-onset advantage in the mediation analysis. Yet, in the onset-stratified models, having two or more somatic comorbidities independently predicted poorer, not better, ECT outcome within the mid-and late onset strata specifically. Although this discrepancy was not resolved by the present analyses, the within-stratum finding is consistent with other recent evidence identifying specific somatic conditions as independent risk factors for ECT non-remission [Reference Zou, Li, Chen, Lv and Min10]. With specific regard to the “vascular depression” hypothesis, which proposes that the psychotic, melancholic, and psychomotor features common in late-onset depression reflect underlying cerebrovascular pathology [Reference Aizenstein, Baskys, Boldrini, Butters, Diniz and Jaiswal45], we found no association between cerebrovascular disease specifically and ECT outcome in sensitivity analyses, which is consistent with a previous study reporting no association between ECT response and cognitive decline or neurological degeneration [Reference Dols, Bouckaert, Sienaert, Rhebergen, Vansteelandt and ten Kate24], It may therefore be that cerebrovascular disease contribute to the development of the late-onset phenotype without directly influencing ECT responsiveness. The residual, unmediated component of the late-onset remission advantage may instead reflect age-related neuroplastic or neuroinflammatory mechanisms. For instance, ECT-induced reductions in microglial-derived inflammatory markers have been linked to increases in hippocampal volume and to symptom improvement [Reference Zilles-Wegner, von Mücke-Heim, Yrondi and Takamiya9, Reference Baminiwatta and Menon22, Reference Sung, Lin, Liu, Su and Tsai46, Reference Alexopoulos47], though this remains speculative in the absence of relevant biomarker data in our register.
Strengths of this study include its large study sample and broad inclusion criteria across all adult age groups, which enhance the generalizability of these findings. Although including correlated variables such as age, age of onset, and number of previous medications in the same models raises the possibility of multicollinearity, multicollinearity diagnostics did not indicate problematic levels. Another limitation is the absence of data on duration of the current depressive episode and psychomotor retardation, which are not recorded in the Q-ECT. As with all register-based studies, selection and information bias cannot be excluded, since analyses are restricted to information available in the registers. A more fundamental limitation concerns identifying the true age of onset of depression from register data. We operationalized this as age at first depressive episode requiring hospitalization, supplemented by a sensitivity analysis using the date of first recorded antidepressant dispensation as a proxy for true onset. While the reliability of Swedish register data is generally high, this remains an approximation of the actual first episode of depression, and we cannot rule out that our findings would differ under an alternative operationalization.
This study shows that early- and late-onset depression differ not only in ECT outcome but also in clinical profile and, plausibly, in underlying pathophysiology, with most of the early-onset disadvantage, and part of the late-onset advantage, explained by differences in psychiatric comorbidity, treatment complexity, and psychotic symptomatology. Chronological age showed an independent, non-linear association with outcome, improving the likelihood of response and remission up to approximately 65 years. If aging itself enhances susceptibility to the antidepressant effects of ECT, depressive episodes may become increasingly responsive to ECT as patients grow older. Clinically, this implies that a poor ECT response earlier in life should not preclude renewed consideration of ECT for a later depressive episode in the same patient.
Supplementary material
The supplementary material for this article can be found at http://doi.org/10.1192/j.eurpsy.2026.12248.
Data availability statement
The data that support the findings of this study are available from Axel Nordenskjöld upon reasonable request.
Acknowledgments
We would like to thank the patients, nurses, and doctors who provided data to the Swedish National Registers included in the current study.
Financial support
This study was supported by Forskningskommittéen at Region Örebro County and Nyckelfonden at Örebro University Hospital.
Competing interests
The authors have no conflict of interest to declare.
Ethical considerations
The study was approved by the Regional ethics vetting board of Uppsala (registration number 2014/174) and the Swedish Ethical Review Authority (2021-03815). Patients could choose not to have data on ECT included in the Swedish National Quality Registry.
Comments
No Comments have been published for this article.