Introduction

The electric double layer (EDL), which is formed at electrochemical interfaces when the electrolyte region screens a charged electrode, is one of the most fundamental concepts in electrochemistry1,2. Because electrochemical reactions occur within the EDL, understanding its structure and behaviour is directly relevant to the electrocatalytic performance. In particular, optimisation of the EDL structure for tuning of the local microenvironment has gained significant attention as a strategy for the development of high-performance electrocatalysts, especially for key reactions related to sustainable technologies, such as electrochemical CO2 reduction and hydrogen evolution3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25.

Nevertheless, the atomic-scale structure of the EDL remains largely elusive, particularly under a finite bulk concentration (e.g., 0.1−1 M), which is the condition most representative of practical electrochemical operations. The EDL structure is primarily defined by water orientation and local ion concentration (Fig. 1a), both of which contribute to charge storage at the interface in response to an applied potential difference across the EDL, E. Consequently, the change in the stored interfacial charge density, σ, with respect to the changes in E reflects the underlying structural details of the EDL, while the differential capacitance, defined as \(C=\partial \sigma /\partial E\), serves as a sensitive fingerprint of EDL structure.

Fig. 1: Phase transitions predicted from all-atom EDL simulations and their connection to capacitance peaks.
Fig. 1: Phase transitions predicted from all-atom EDL simulations and their connection to capacitance peaks.The alternative text for this image may have been generated using AI.
Full size image

a Snapshot of the simulation system for the Ag(100) electrode–NaF electrolyte interface. b Curves for surface charge density (σ) versus electrode potential (E) predicted from all-atom simulations at different bulk electrolyte concentrations. Red ovals indicate S-shaped regions associated with phase transitions. c Schematic diagrams showing the S-shaped curve on the σ-E plane, with the red dashed line indicating the phase transition path. d Corresponding schematic of the capacitance peak. e Experimental capacitance curves for the Ag(100) electrode in NaF electrolytes at 298 K, showing the camel-to-bell shape transition with increasing electrolyte concentration.

The camel-to-bell shape transition is a characteristic feature observed in the EDL capacitance curve when the bulk electrolyte concentration is increased from the very dilute to finite regime26,27,28,29,30. When measuring the capacitance of an interface composed of a single-crystal electrode (e.g. silver) and an aqueous electrolyte containing non-specifically adsorbing ions (e.g. NaF electrolyte), a two-peak (camel-shaped) curve shifts to a single-peak (bell-shaped) curve with increasing concentration. Starting with the traditional Gouy-Chapman-Stern (GCS) theory31,32,33, various theories have been proposed to explain this transition. However, these theories have failed to explain the peak behaviour (Supplementary Fig. 10), and have been mostly based on mesoscopic to macroscopic models30,34,35,36. For example, Kornyshev introduced a lattice gas model that accounts for the steric effects among ions34. This model predicts the merging of the two peaks when the capacitance decreases owing to ion saturation at high bias potentials; however, it is mainly applicable to highly concentrated electrolytes with large ion sizes, such as ionic liquids, rather than to aqueous electrolytes.

Modern atomic-level simulations serve as computational microscopes for EDL structure exploration. Using ab initio molecular dynamics (AIMD) simulations of the Pt(111)-water interface, Cheng et al. proposed that the bell-shaped Helmholtz capacitance curve originated from water adsorption37. Later, the Koper group combined their simulation results with the Gouy-Chapman (GC) model to reproduce the camel-to-bell shaped transition at the Pt(111)-electrolyte interface30. However, this combined model does not include atomic-level details beyond the Helmholtz layer region (mostly due to the size limitations of the computationally expensive AIMD simulations); thus, the full atomic-scale origins of the camel-to-bell shape transition remain elusive.

Using a mean-field quantum mechanics/molecular mechanics (QM/MM) simulation framework, known as density functional theory in classical explicit solvents (DFT-CES)38,39,40, we recently reproduced a characteristic camel-shaped curve of an aqueous EDL in the dilute limit41. Despite its success in linking the cathodic and anodic peaks with non-monotonic and inflection behaviours in the EDL charging curves, respectively, their molecular origins have not been fully clarified. More importantly, this study was limited to the dilute regime in which only a minimal number of counterions were included to screen the electrode charge. Thus, this approach cannot capture the full complexity of the EDL structural responses under practical, non-dilute conditions, thereby limiting the comprehensive understanding of its potentiodynamic behaviour.

In this study, we investigate the EDL atomic structure as a function of the bulk electrolyte concentration by developing a constant-concentration simulation method, termed Chemostat, which is essential for capturing realistic interfacial behaviours where ion and bulk concentrations can differ by up to 80-fold42. Our simulations revealed that the capacitance peaks arise from EDL phase transitions, with a concentration-independent cathodic peak linked to water reorientation at the inner Helmholtz layer (IHL) and a concentration-dependent anodic peak due to anion condensation. The calculated capacitance peak positions match well with the experimental values, successfully reproducing the camel-to-bell shape transition. A full EDL phase diagram was constructed, connecting these transitions to the camel-to-bell shape transition of the capacitance curves, and the predicted water structures were experimentally confirmed using in situ attenuated total reflectance-surface-enhanced infrared absorption spectroscopy (ATR-SEIRAS). We expect that our work will provide a comprehensive picture of the interfacial microenvironment at potentials relevant to practical electrocatalytic applications.

Results and discussion

DFT-CES simulations on the interfaces of Ag(100) and Ag(111) electrodes with the NaF electrolyte are performed by varying σ to evaluate E (Fig. 1a). Here, the results for the Ag(100) electrode are presented unless stated otherwise. During the simulation, the bulk concentration of the electrolyte was controlled using the Chemostat method (Supplementary Fig. 11), producing smoothly varying ion concentration profiles at various electrode potentials (Supplementary Figs. 1214). Furthermore, the simulation results for finite concentrations are quantitatively consistent with the available experimental data on the potential of zero charge (PZC; −0.63 VSHE for both simulation and experiment) and the interfacial water profile (Supplementary Fig. 15) 43,44,45.

EDL charging curves (σ-E curves) are calculated for bulk concentrations in the dilute limit (only counter-ions included to neutralise σ), and in the finite value of 0.1 and 0.2 M (Fig. 1b). These curves reveal two noticeable features: a concentration-independent S-shaped region in the negative σ (cathodic) region and a concentration-dependent S-shaped region in the positive σ (anodic) region. In the S-shaped region, a thermodynamic instability exists (refer to Supplementary Note 1 and Supplementary Figs. 1 and 2), causing σ to change along the Maxwell construction line at equilibrium (dashed red line in Fig. 1c), which represents the minimum-free-energy path where two phases coexist. This implies the presence of a first-order phase transition, described using the order parameter σ, which results in capacitance divergence as the potential remains fixed, yielding a capacitance peak (Fig. 1d). Considering EDL charging as a thermodynamic process in which entropy decreases due to electric work (defined by w = σE), the peak in \(C=\partial \sigma /\partial E\) is analogous to the divergence of the isothermal compressibility \(\kappa \sim \,\partial V/\partial p\) during a liquid-gas phase transition, which is another entropy-decreasing thermodynamic process that is driven by pressure-volume (w = pV) work. This argument regarding the phase transition is further supported by the experimental hysteresis observed in the capacitance curves (Supplementary Fig. 16).

Thus, our simulation results indicate the emergence of two capacitance peaks, each associated with a distinct phase transition in the cathodic and anodic regions, respectively. Similarly, the Rotenberg group reported an anomalous capacitance peak driven by structural changes in ionic-liquid-based EDLs46.

Using the potential corresponding to the Maxwell construction line (i.e., the phase transition potential), we predict the theoretical peak positions at different concentrations and find that they are consistent with experimental values (Fig. 1e), with an error of less than ~0.1 V (Table 1). In the cathodic region, the peak position remains relatively unchanged, whereas in the anodic region, it shifts to lower E values as the bulk concentration increases. Notably, the anodic peak shift is attributed to the development of a more pronounced S-shape in the σ-E curve (Fig. 1b), suggesting that stronger thermodynamic instability is induced at higher concentrations (its microscopic origin will be discussed below). Finally, the two peaks merge at high concentrations, resulting in the camel-to-bell shape transition. Same trends were observed for the Ag(111) electrode (Supplementary Fig. 17 and Supplementary Table 1). To the best of our knowledge, this is the first study that reproduces the camel-to-bell shape transition in aqueous EDLs using all-atom simulations.

Table 1 Comparison of phase transition potentials predicted from all-atom simulations with experimental capacitance peak positions

Water structure reorientation at the cathodic interface

The local charge profiles of cations—the dominant ionic species near the electrode under cathodic potential—reveal the formation of two compact cation layers located at the distances of 5.1 and 7.4 Å from the electrode (Fig. 2a,b and Supplementary Figs. 1214). These layers are referred to as OHL1 (the outer Helmholtz layer 1) and OHL2 (outer Helmholtz layer 2), respectively. The formation of the two OHLs is attributed to the short-range correlation between the solvated cations. Beyond these OHLs, the local cation concentration decays exponentially, which is a typical characteristic of diffuse layers. Thus, our findings suggest the formation of two OHLs and a diffuse layer—distinct from the conventional view based on the GCS model which simplifies the EDL structure by ignoring atomic-level details and ion-ion correlations.

Fig. 2: Collective reorientation of water molecules driven by cathodic bias.
Fig. 2: Collective reorientation of water molecules driven by cathodic bias.The alternative text for this image may have been generated using AI.
Full size image

a Representative snapshot of the cathodic interface. Hydrogen, sodium, and silver atoms are shown in white, magenta, and blue, respectively. Oxygen atoms in the adlayer are color-coded according to their water orientation state (refer to Fig. 2d), while the other oxygen atoms are shown in red. b Local cationic (solid lines) and anionic (dashed lines) charge profiles along the surface normal direction at varying bulk electrolyte concentration (σ = −13.9 μC cm−2). c σ-dependent changes in the dielectric constants, ε1 for the water between electrode and OHL1, and ε2 for the water between OHL1 and OHL2, obtained by fitting the multilayer capacitor model to the all-atom simulation results. d Populations of water orientation states and their configurations (dilute case). As σ becomes more negative, the populations of the parallel and H-up states decrease, while the population of the H-down state increases. e Potential drops between regions: \({\phi }_{1}\) between electrode and OHL1, \({\phi }_{2}\) between OHL1 and OHL2, and \({\phi }_{3}\) between OHL2 and the diffuse layer. This partitioning is achieved by fitting the multi-layer capacitor model to the all-atom simulation results. Note that the sum of \({\phi }_{1}\), \({\phi }_{2}\), and \({\phi }_{3}\) corresponds to the total potential drop across the interface, i.e., the electrode potential with respect to the PZC, E − EPZC.

Surprisingly, the net charge profile (including both cationic and anionic contributions) was found to be almost independent of bulk concentration. The net ionic charges that accumulated in OHL1 and OHL2 remained nearly the same across different bulk concentrations (Supplementary Note 2 and Supplementary Fig. 4). Furthermore, the fitted exponent of the net charge profile in the diffuse layer, that is the Debye length, was consistently 5.6 Å under all concentration conditions (Supplementary Fig. 18a). The small Debye length suggests substantial electric field screening between the electrode and OHL1 where a water adlayer exists. This is correlated with the conclusions reached by the Willard group who suggested that water molecules can mute the dependence on ionic strength47. The water adlayer effectively screens the field of σ, leading to a similar E. Thus, the capacitance becomes concentration-independent at the cathodic potential. We note that the part of the water adlayer on the electrode surface also participates in solvating the cations in OHL1, and thus the strong field screening by the water adlayer can similarly occur in other alkali metal cations, as they are hardly desolvated due to their strong ion-dipole interaction3.

To quantify the water-screening effect, we develop a multi-layer capacitor model consisting of three dielectric layers—ε1, ε2, and εDifL—corresponding to the OHL1, OHL2, and diffuse layers, respectively (Fig. 2a). This model can be considered an extended GCS model with additional OHLs. Using the amounts of ions stored in each region obtained from our all-atom simulation, ε1 and ε2 are adjusted to reproduce the E values obtained by the simulations (Supplementary Note 2 and Supplementary Figs. 3-6). This yields a positive ε1 and a negative ε2 (Fig. 2c). The negative dielectric constant is attributed to the hydrogen-bonding network of interfacial water, which induces an orientationally correlated response to the field and thereby generates an electric field larger than that of the electrode48. Moreover, ε1 exhibits σ-dependent behaviour, reaching a maximum at −13 μC cm−2 within the S-shape region, indicating the crucial role of water adlayer screening in shaping the cathodic capacitance peak.

As orientational polarisation is the major field-screening mechanism for water, we analysed the orientation of water in the adlayer region at different electrode potentials (Supplementary Fig. 19). At PZC, two distinct peaks are observed in the probability distribution of φ (the angle between the water bisector and the surface normal). The distribution of θ (the angle between the O − H bond and the surface normal) further shows that two water orientations are possible at PZC: (1) both O − H bonds are parallel to the surface, parallel state, and (2) one parallel O − H bond with the other bond pointing toward the bulk region, H-up state. Under a more negative potential, the water orientations converge into a single state, characterised by φ = ~140°, corresponding to a configuration where one O − H bond is parallel and the other points toward the electrode, H-down state.

Based on this three-state classification of the water orientation, which is also consistent with previous studies (see the water configurations in Fig. 2d)37,41,49, we observed the coexistence of parallel and H-up states at the PZC, stabilised by favourable metal-O(water) interactions and the maximum number of hydrogen bonds. As the electrode potential decreased, a transition to the H-down state was induced (Fig. 2d), driven by the strong interaction between the O − H bond dipole and the electric field from the electrode. As this interaction must overcome the energetic penalty of forming a dangling hydrogen bond by restructuring the hydrogen-bond network (Supplementary Fig. 20), the phase transition occurs collectively in a first-order manner (similar to the two-dimensional (2D) spin-1 Ising model; Supplementary Note 3 and Supplementary Figs. 7 and 8). This leads to the non-monotonic behaviour of E as a function of σ (Fig. 2e), giving rise to the capacitance peak41.

Concentration-dependent anion condensation at the anodic interface

Notably different from the cathodic interface, many anions are adsorbed on the electrode under anodic bias (Fig. 3a)41 while no dramatic change in the water structure with parallel or H-up state in the IHL is observed (Supplementary Fig. 19). The anion adsorption process is accompanied by the partial desolvation of anions to develop a direct electrostatic interaction with the positively charged electrode, which is facilitated by the dispersion interaction (Supplementary Fig. 21).

Fig. 3: Anion surface condensation driven by anodic bias.
Fig. 3: Anion surface condensation driven by anodic bias.The alternative text for this image may have been generated using AI.
Full size image

a Representative snapshot of the anodic interface. Hydrogen, oxygen, fluoride, sodium, and silver atoms are shown in white, red, cyan, magenta, and blue, respectively. Red dashed ovals highlight water-bridging configurations of anions in the IHL. b Local cationic (solid lines) and anionic (dashed lines) charge profiles along the surface normal direction at different bulk electrolyte concentrations (σ = 18.5 μC cm−2). c σ-dependent variation of the charge difference between the adsorbed anions in the IHL (σIHL) and σ. The black solid line indicates the condition |σIHL | = σ, corresponding to complete screening. d Radial distribution function (RDF) between anions in the IHL shows intermediate-range ordering among adsorbed anions and is indicative of anion condensation (σ = 18.5 μC cm−2). e Schematic free energy diagrams of phase transitions at the anodic interfaces as different bulk concentration. At higher concentrations, the entropy of free (non-adsorbed) ions decreases, destabilising the pre-condensation phase. As a result, the required phase transition potential shifts to a lower value.

The total charge of the adsorbed anions in the IHL (σIHL) screens σ. Surprisingly, we observe a transition from underscreening (|σIHL| <σ) to either complete screening or overscreening (|σIHL|  ≥ σ) as σ increases (Fig. 3c), with the tendency for overscreening becoming more pronounced at higher bulk concentrations. This concentration-dependent behaviour of the overscreening tendency is related to the distinct EDL structure at the anode compared with the cathode (Supplementary Fig. 18). Since the partially desolvated anions are directly adsorbed on the electrode, the interfacial water adlayer cannot effectively screen the electric field. Consequently, the net charge of the anion-adsorbed electrode (σ + σIHL) decreases with increasing σ, yielding the S-shaped curve and thereby producing a concentration-dependent peak at the anodic potential. In addition, overscreening causes the net electrode charge to become negative, leading to the formation of two cationic OHLs and a diffuse layer, similar to the structure in the cathodic region (Fig. 3b). This behaviour was also modelled using a multilayer capacitor model consisting of the IHL, OHL1, OHL2, and diffuse layers, as described in Supplementary Note 2.

Although previous studies ascribed the origin of the capacitance peak to ion saturation at the interface (i.e., as a result of repulsion)34,35, our all-atom simulations showed no evidence of such ion saturation behaviour (Fig. 3c). Rather, the adsorbed anions are closely and quasi-regularly spaced on the electrode surface (Fig. 3d). This unexpected 2D dense ionic structure was observed even at dilute concentrations, implying the presence of an effective attraction that overcomes the strong Coulomb repulsion among the anions. Further analysis reveals that water monomers or dimers bridge adjacent anions in the IHL, maintaining their separation at 3.9 or 6.4 Å, respectively (Fig. 3a).

Since the formation of a 2D dense ionic structure is enabled by effective attraction mediated by water molecules, the anion adsorption process involves anionic condensation, similar to the surface condensation of gas. From this perspective, increasing the bulk concentration lowers the entropy of the gas-like free anions; thus, their condensation into a liquid-like 2D anion layer incurs a lower entropic cost, reducing the work required for the phase transition (Fig. 3e). Consequently, the phase transition potential decreases with increasing concentration.

We further confirm the generalizability of the anion condensation mechanism for NaCl electrolytes, where the simulated anion-condensation potentials correspond well to the experimental peak positions (Supplementary Figs. 22 and 23, and Supplementary Table 2). When the anion is switched from F⁻ to Cl⁻, the peak positions shift toward smaller anodic potentials, indicating that surface condensation of Cl⁻ requires a lower energetic cost than that of F⁻. This is reasonable because Cl⁻ has both a lower solvation free energy (F⁻: 111.1 kcal mol⁻¹; Cl⁻: 81.3 kcal mol⁻¹)50 and a stronger dispersion attraction to the electrode surface (C6 parameter of F⁻: 15.0 a.u.; Cl⁻: 30.3 a.u.)51, facilitating the partial-desolvation-followed-by-surface-adsorption process. This comparative analysis demonstrates that the balance between hydration free energy and dispersion attraction to the electrode plays a decisive role in determining the anion-condensation potential.

Phase diagram of EDL structure

Using the aforementioned multi-layer capacitor models, fine-tuned to reproduce our all-atom simulation results, we inter- and extrapolate the simulated E-σ curves originally obtained at 0, 0.1, and 0.2 M to cover the concentration c range from 0 to 0.3 M (Fig. 4a). Using the multi-layer capacitor model, for a given value of c, we obtain E-σ curves, where the phase transition potentials are determined using Maxwell constructions (Supplementary Fig. 24). This identifies the phase boundaries between phases as a function of c, enabling us to construct a full E-c phase diagram of the EDL structure (Fig. 4b).

Fig. 4: Phase diagram of EDL structure and phase transitions.
Fig. 4: Phase diagram of EDL structure and phase transitions.The alternative text for this image may have been generated using AI.
Full size image

a E-σ diagram extended using the multilayer capacitor model fitted to reproduce the all-atom simulation results. b E-c phase diagram of EDL structure. The number of phase boundary crossings along a vertical line corresponds to the number of phase transitions induced by sweeping the electrode potential, which determines the number of capacitance peaks. c, Schematic illustration of the phase transitions between the three EDL structural phases: H-down water phase, parallel+H-up water phase, and condensed anion phase.

The phase diagram of the EDL structure consists of three major phases: the H-down water phase, parallel+H-up water phase, and condensed anion phase (Fig. 4c). At low concentrations (0–0.24 M), increasing the potential from −0.5 to +0.5 VPZC crosses two phase boundaries, implying two phase transitions: first from the H-down water to the parallel+H-up water phase, and then from the parallel+H-up water phase to the condensed anion phase. These transitions give rise to cathodic and anodic peaks, defining the camel-shaped capacitance curve, and the phase boundary between the parallel+H-up water and condensed anion phases is concentration-dependent, accounting for the anodic peak shift with increasing c. For c > 0.24 M (triple point), the phase transition occurred directly from the H-down water phase to the anion-condensation phase, resulting in a single peak in the capacitance curve, corresponding to the transition from the camel shape to the bell shape.

Spectroscopic features supporting the EDL phase transition

To identify the spectroscopic features supporting the proposed EDL structural phase transitions, we simulated the infrared (IR) spectra of the interfacial water molecules in the first two layers using DFT calculations (Supplementary Note 4 and Supplementary Fig. 9). At PZC (approximately −0.6 VSHE), the IR spectra for both the dilute and 0.2 M concentrations are dominated by the contributions from the 2nd layer water (~3390 cm−1) and the parallel+H-up water phase in the adlayer (~3380 cm−1; Supplementary Fig. 25 and Supplementary Tables 3 and 4). Using these as references, we observed a reduction in the intensity of the O – H vibrational mode under a cathodic bias (Fig. 5a,b), which is attributed to a decreased population of the parallel+H-up water phase (Fig. 5c), whereas the signals from the 2nd water layer remained largely unchanged. Notably, although the formation of H-down water phase under cathodic bias contributes a signal near ~3340 cm⁻1 (Supplementary Fig. 26), its intensity is weaker due to both a smaller population and the lower transition dipoles (Supplementary Fig. 27). Consequently, this signal is obscured by a more pronounced intensity reduction in the same frequency range.

Fig. 5: Spectroscopic features relevant to the formation of the phases.
Fig. 5: Spectroscopic features relevant to the formation of the phases.The alternative text for this image may have been generated using AI.
Full size image

Calculated IR spectra of interfacial water molecules obtained from DFT-CES trajectories at different bias potentials for (a), dilute, and (b), 0.2 M bulk concentration conditions. Solid lines show total IR spectra referenced to the spectra at the PZC. Dashed lines indicate the phase transition potentials, with the corresponding phases labelled. Characteristic molecular structures responsible for emerging and disappearing peaks are shown in the inset of (a); the same structures also explain the spectral features in (b). c Integrated peak area for different molecular structures in dilute (top) and 200 mM (bottom) bulk concentration conditions. d Experimental ATR-SEIRAS data measured on Ag in 5 and 200 mM NaF electrolytes at 298 K. All experimental spectra are referenced to the spectrum at −0.6 VSHE.

Under anodic bias, we observe increases in the intensities of two characteristic IR bands at ~3400 and ~3300 cm⁻1 (Fig. 5a,b). These features are attributed to the asymmetric and symmetric stretching modes of water molecules coordinated with F⁻ anions at the IHL, indicating the formation of the anion-condensed phase. Notably, these spectral increases are more pronounced and emerge at lower bias potentials for the 0.2 M case compared to the dilute regime, reflecting a lower phase transition potential at higher electrolyte concentrations.

These simulated spectral features are supported by the experimental results. In situ ATR-SEIRAS measurements, conducted using an Ag-coated Ge ATR electrode and referenced to the spectrum obtained at −0.6 VSHE, show a decrease in the spectral intensity at approximately 3400 cm⁻1 under cathodic bias in both dilute (5 mM) and concentrated (200 mM) NaF electrolytes (Fig. 5d). Conversely, two IR band intensities increased with anodic bias. Despite broader spectral features—likely resulting from the multi-faceted surface—and the associated uncertainty in spectral deconvolution, the experimentally observed trends are in good agreement with our simulated results within a reasonable error margin (~100 cm⁻1). More importantly, the experiments also reproduced the trend of stronger anodic spectral features at higher electrolyte concentrations, validating the EDL phase transitions predicted by DFT-CES calculations.

In summary, our study reveals the molecular origins of the capacitance behaviour at electrode-electrolyte interfaces under practical, non-dilute ion concentrations. Using predictive all-atom simulations, we identify two distinct phase transitions: concentration-independent water reorientation in the cathodic region and concentration-sensitive anion condensation in the anodic region. These transitions, whose spectroscopic signatures were also captured in our in situ experiments, give rise to the characteristic camel-to-bell shape evolution of the capacitance curve with increasing ion concentration, a long-standing unresolved phenomenon in the study of EDL. By constructing the EDL phase diagram, we provide a unified framework that relates the interfacial structure, potential, and concentration. These insights deepen our understanding of the EDL microenvironment for electrocatalytic and energy-conversion processes, while also motivating further advances in theory and computation to extend the thermodynamic framework to include complex and non-equilibrium conditions.

Methods

DFT-CES simulations

The mean-field QM/MM simulations were performed using the DFT-CES approach developed by our group, with the incorporation of the Chemostat method. DFT-CES enables accurate sampling of all-atomic information of the EDL. Note that, our DFT-CES method can be related to the DFT-3D-RISM (reference interaction site model) method by replacing the integral-equation solving step to MD sampling52,53. The Chemostat method was developed in this study to maintain the bulk concentration of the non-dilute EDL.

In detail, DFT-CES is a mean-field QM/MM simulation method used to accurately describe electrochemical interface systems. In this method, QM (mainly for the electrode) and MM (mainly for the electrolyte) simulations are performed iteratively until energy convergence is achieved. The ensemble-averaged electrostatic potential from the MD trajectory was applied as an external potential in the DFT calculations. Conversely, the Hartree and nuclei potentials of the QM subsystem were used as external potentials in the MD simulations. DFT-CES was implemented by combining the Quantum Espresso software for DFT simulations and the large-scale atomic/molecular massive parallel simulator (LAMMPS) software package for MD simulations54,55.

The Ag(100) and Ag(111) electrodes were interfaced with various bulk concentrations of the electrolyte. Both electrodes were simulated at the QM level. The Ag(100) electrode was modelled using a four-layer slab with the lateral dimensions of 4.14 Å × 4.14 Å. The Ag(111) electrode was modelled using a four-layer slab with a (\(\sqrt{3}\) × 2) correct surface unit cell with the dimensions of 5.08 Å × 5.86 Å. The projector-augmented wave (PAW) method was used together with the Perdew-Burke-Ernzerhof (PBE) exchange-correlation functional56,57. A kinetic energy cutoff of 60 Ry and Gaussian smearing value of 0.0147 Ry were employed. (9 × 9 × 1)-and (8 × 8 × 1) Γ-centred k-point grids were used for Ag(100) and Ag(111), respectively. A dipole correction along the z-direction was applied to cancel the nonphysical interactions between the periodic images.

NaF and NaCl electrolytes were simulated at the MM level using canonical-ensemble classical MD. 6000 TIP3P-EW water molecules58 were used, and Na+, F, and Cl ions were included in the simulation cell. Ion-ion and ion-water interactions were described using parameters reported in the literature59. The interfacial van der Waals (vdW) interactions between the NaF electrolyte (in the MM subsystem) and Ag electrode (in the QM subsystem) were described using previously developed first-principles-based parameters that reproduced the experimental camel-shaped capacitance curve of the Ag(111)-NaF interface41. For the NaCl electrolyte, the interfacial vdW parameters were fitted to the QM energetics, following the same procedures used for parametrizing the interactions between NaF electrolyte and the Ag electrode (Supplementary Fig. 28 and Supplementary Table 5).

For the dilute case, only the excess Na+ or F (or Cl) ions were added to compensate for the excess negative or positive charge of the electrode, respectively. For finite bulk concentration cases, the bulk concentration was maintained at specific values by applying the Chemostat method developed in this study. A detailed description of the Chemostat method is provided in below. For the Ag(100)-NaF (or NaCl) interface, the simulations were performed for the dilute-limit, and 0.1 M and 0.2 M bulk concentrations, whereas for the Ag(111)-NaF interface, the simulations were only performed for the dilute limit and 0.1 M bulk concentrations.

(11 × 11) and (9 × 8) supercells of the small QM cell were employed for the MD simulations of the Ag(100)-NaF (or NaCl) and Ag(111)-NaF interfaces, respectively, resulting in the MD cell sizes of 45.59 Å × 45.59 Å and 45.68 Å × 46.89 Å. The electrodes were polarised by varying the number of electrons, corresponding to the surface charge densities ranging from −27.76 to 18.50 μC cm−2 for Ag(100) and from −23.94 to 29.92 μC cm−2 for Ag(111). A Nosé-Hoover thermostat was used to maintain the temperature at 300 K with a damping constant of 100 fs60,61, and periodic boundary conditions (PBCs) were applied along the x- and y-directions. The modified particle-particle particle-mesh (PPPM) method was employed to account for long-range electrostatic interactions in the slab geometry62. Canonical ensemble simulations were performed for 12 ns, and the final 10 ns of the trajectory were used to compute the ensemble properties.

The electrode potential was calculated using the scheme proposed by Trasatti63, in which the absolute potential of the standard hydrogen electrode (SHE) is set to 4.4 V41,64. The electrode potential relative to the SHE is given by:

$$E\,\left({V}_{{{\rm{SHE}}}}\right)={E}_{{{\rm{vac}}}}-{E}_{F}-4.4\,V$$
(1)

where \({E}_{{{\rm{vac}}}}\) is the vacuum level and \({E}_{F}\) is the Fermi level.

In this study, we developed a Chemostat method that efficiently and stably controls the bulk concentration of interfacial systems during MD simulations. To establish the Chemostat method, we first chose the bulk region, which must be sufficiently distant from the interface, such that the local concentrations of both cations and anions are equal and spatially uniform (Supplementary Fig. 29).

During MD simulation, the local ion concentration in the bulk region, \(C\left(t\right)\), was calculated for each snapshot at time \(t\). The Chemostat method determines the concentration adjustment rate as follows:

$$\frac{{dC}}{{dt}}=\frac{{C}^{0}-C}{\tau }$$
(2)

where \({C}^{0}\) is the target concentration and τ is the Chemostat coupling constant, which determines the time scale of the adjustment. Equation (2) is equivalent to the governing equation of the Berendsen thermostat65 used to control the temperature. In this study, \(\tau\) was set to 1 ps.

The Chemostat adjusts \(C\left(t\right)\) by modifying the partial charges of a tagged ion pair located within the bulk region. Based on the computed \({dC}/{dt}\) value from Eq. (2), the Chemostat determines the (de)growth rate of the tagged ion pair. To (de)grow ions while avoiding close contact with the existing molecules in the simulation cell, soft-core potentials were employed for the van der Waals (\({u}_{{{\rm{LJ}}}}\)) and Coulomb (\({u}_{{Coul}}\)) interactions66:

$${u}_{{{\rm{LJ}}}}\left(r,\lambda \right)=\lambda 4\epsilon \left\{\frac{1}{{\left[{\alpha }_{{LJ}}{\left(1-\lambda \right)}^{2}+{\left(\frac{r}{\sigma }\right)}^{s}\right]}^{\frac{12}{s}}}-\frac{1}{{\left[{\alpha }_{{LJ}}{\left(1-\lambda \right)}^{2}+{\left(\frac{r}{\sigma }\right)}^{s}\right]}^{\frac{6}{s}}}\right\}$$
(3)
$${u}_{{{\rm{Coul}}}}\left(r,\lambda \right)=\lambda \frac{{q}_{i}{q}_{j}}{4\pi {\epsilon }_{0}{\left[{\alpha }_{{{\rm{Coul}}}}{\left(1-\lambda \right)}^{2}+{r}^{p}\right]}^{\frac{1}{p}}}$$
(4)

where s = 2, p = 2, αLJ = 6.25/σ2, and αCoul = 6.25. The activation parameter, λ gradually switches on the interaction as it changes from 0 to 1.

Using Eq. (2), the change in the concentration, defined as \(\Delta C\left(t\right)\equiv C\left(t+\Delta t\right)-C\left(t\right)\), over an MD timestep, \(\Delta t\), is expressed as:

$$\Delta C\left(t\right)=\frac{\left({C}^{0}-C\left(t\right)\right)\Delta t}{\tau }$$
(5)

For ions, this change leads to

$$\Delta \lambda \left(t\right)=\frac{{V}_{{{\rm{bulk}}}}\Delta C\left(t\right)}{{N}_{A}}$$
(6)

where \({V}_{{{\rm{bulk}}}}\) is the volume of the bulk region and \({N}_{A}\) is Avogadro’s constant, as we used the molarity unit for concentration. Using Eq. (6), we (de)grow the tagged ion pairs. When \(\lambda < 0\), the originally tagged ion pair is deleted, and a new ion pair in the bulk region is selected, with its activation parameter set to \(\lambda+1\). When \(\lambda > 0\), the tagged ion pair is fully grown (i.e., \(\lambda=1\)) and can then freely travel throughout the simulation cell without being confined to the bulk region. Then, a new ion pair in the bulk region is created, and its activation parameter is set to \(\lambda -1\). We confirmed that the bulk concentration was well-maintained using the Chemostat method not only for monovalent ions but also for multivalent ions (Supplementary Figs. 29 and 30).

Although the Eq. (5) is formally similar to Berendsen-type thermo- or barostats, we note that it maintains the total number of ion-pairs in the bulk region of the simulation cell without disrupting the correct ensemble distributions. To ensure that our simulation, employing a Nosé-Hoover thermostat, correctly samples the canonical ensemble, we confirmed that the particle velocity distribution follows the Maxwell-Boltzmann distribution (Supplementary Fig. 31).

Electrochemical measurements

Electrochemical measurements were performed using an SP−150 potentiostat (BioLogic) in a custom-made (polyetheretherketone) H-type electrochemical cell. Prior to each measurement, the cell was cleaned by sequential boiling in 0.5 M H2SO4 (98%, Daejung) and deionised (DI) water (>18.2 MΩ·cm, Arium® Pro, Sartorius) over 3 h. Single-crystalline Ag foils with (111) and (100) orientations (1 × 1 cm2, 99.999%, MTI) were used as working electrodes. The Ag electrodes were chemically polished using a previously reported procedure67,68,69. Briefly, each electrode was immersed in a mixed solution of 0.3 M KCN (≥96%, Sigma-Aldrich) and H2O2 (29–32%, Alfa Aesar) at a volume ratio of 1.5:1 for 3 s, during which vigorous gas evolution occurred. The electrode was then exposed to air for an additional 3 s, followed by immersion in a 0.55 M KCN solution until gas evolution ceased. The electrode was then thoroughly rinsed with DI water. This polishing cycle was repeated 8–12 times to obtain a highly reflective surface. Prior to use, the polished Ag surface was protected using a water droplet.

The differential capacitance was measured using staircase potentiostatic electrochemical impedance spectroscopy (SPEIS). A graphite rod and saturated Ag/AgCl electrode (RE-1A, EC-Frontier) served as the counter and reference electrodes, respectively. The geometric area of the working electrode exposed to the electrolyte was limited to 0.16 cm2. Electrolytes were prepared by dissolving NaF (~99%, Sigma-Aldrich) in DI water. To prevent unexpected contamination, the working electrode was spatially separated from the counter and reference compartments using a Nafion 115 membrane (DuPont). Measurements were conducted over a potential range from −1.1 to 0 VSHE at a frequency of 20 Hz with a potential amplitude of 10 mV. All measurements were carried out in a deaerated electrolyte under continuous Ar (99.999%, Donghae Gas Ind.) flow. The ohmic drop was manually compensated by 85% during the SPEIS experiments. The experiments were performed at 298 ± 1 K without the use of an environmental chamber.

In situ ATR-SEIRAS measurements

Chemically deposited Ag films were prepared by immersing a Ge substrate (60° angle, 20 mm radius; PIKE Technologies) into a mixed solution consisting of a hydrazine solution (50 μL, 0.02 M) and a silver nitrate solution (10 mL, 0.01 M) containing ammonium hydroxide (0.46 M) and EDTA (0.14 M)70. The deposition was conducted for 150 s. Following the deposition, the substrate was thoroughly rinsed with DI water and dried under Ar atmosphere. In situ ATR-SEIRAS measurements were performed using a Nicolet iS50 FTIR spectrometer (Thermo Fisher Scientific) equipped with a liquid-nitrogen-cooled mercury cadmium telluride (MCT) detector. To eliminate interference from ambient water vapour and CO2, the entire optical path was purged with high-purity N2 (99.999% purity, Donghae Gas Ind.). Spectra were collected using a specular reflection unit (VeeMax III, PIKE Technologies) equipped with a Ge ATR prism and a light polariser, with the incident angle fixed at 60°. The measurements were performed at a spectral resolution of 8 cm⁻1 by averaging 128 scans per spectrum. A spectrochemical flow-type cell was mounted on the Ge prism, with the Ag-coated Ge surface serving as the working electrode (exposed geometric area of 0.5 cm2). A silver wire and saturated Ag/AgCl electrode were used as the counter and reference electrodes, respectively. Electrolytes were 5 and 200 mM NaF. Prior to gathering IR spectra, the surface of working electrode was cleaned by 100 cycles of cyclic voltammetry from −0.9 V to 0.0 VSHE at a scan rate of 200 mV s−1. All spectra are presented relative to a reference spectrum recorded at −0.6 VSHE, a potential close to the PZC. The experiments were performed at 298 ± 1 K without the use of an environmental chamber.