Introduction

Corrosion, catalysis, batteries, fuels cells, electrosynthesis, and high temperature oxidation are all areas of chemical science and technology that make use of various diagrams that summarize and map out chemical/electrochemical equilibria as a function of electrode potential, pH, temperature, pressure, etc. Chemical speciation diagrams track the fractional amount of various species of a certain component (such as H2CO3, HCO3, CO32−) as a function of pH for a specified component concentration.1,2,3 Phase diagrams depict the dominantly stable equilibrium metallic or intermetallic phase (in the solid or liquid state) as a function of temperature and constituent composition.4 In high temperature/dry oxidation, the Ellingham diagram maps the enthalpy of formation of an oxide comprised of metallic elements as a function of temperature for reactions between the metal and various gaseous phases (O2, CO2, H2O) at equilibrium.5 The concentration of various types of defects in these oxides can be plotted as a function of the O2 partial pressure with a Brouwer (or Kröger–Vink) diagram. In electrochemistry, the E-pH diagram describes the phase stability of various metals, their dissolved cations or anions, and metallic compounds as a function of pH, electrode potential, and species concentration.6,7 This E-pH diagram has been extended to applications, such as nanocluster materials, high temperature conditions, species complexation, and surface science.7,8,9,10,11 These equilibrium diagrams have all been employed to predict the thermodynamic feasibility of various reactions and the stability of reaction products as a function of key variables of concern.

Another related and highly complementary diagram, which was published alongside the E-pH diagram for many of the elements in Pourbaix’s E-pH Atlas,6 is largely under-utilized. This diagram, which was unnamed in the Pourbaix Atlas, will be referred to here as the chemical stability diagram (Fig. 1). It is a graphical representation of the chemical stability of various metallic (or otherwise) compounds principally formed with OH but possibly also with a host of aqueous species (Cl, CO32−, PO43−, etc) as a function of pH and aqueous metal ion concentration, [Mn+].6

Fig. 1
figure 1

Chemical stability diagram depicting the relative stabilities of Mg2+, Mg(OH)2, and MgO. The thick solid lines describe the equilibrium condition for Mg(OH)2 (blue, line 8.1) and MgO (black, Line 8.2) formation. Thin dashed lines describe the trajectory by which the solution chemistry changes from an initial condition (✦) to an equilibrium condition () as Mg, Mg(OH)2, or MgO dissolves into solution (line 9). Each trajectory line corresponds to a different initial solution chemistry for various [Mg2+] at pH 4 (purple), 7 (red), and 10 (green). Included is an inset graph which depicts the pH and [Mg2+] conditions of predominance for Mg2+, Mg(OH)2, and MgO in pH-[Mg2+] space

The electrochemical behavior of a material is often governed by pH, metal ion concentration, formation of surface oxides and hydroxides, etc., all of which are schematically represented by and analyzed in the chemical stability diagram for specific material systems.

The goal of this work is to demonstrate the invaluable utility of chemical stability diagrams (which predict the stability of corrosion reaction products) towards enhancing the understanding of many engineering-relevant electrochemical systems where the compounds formed depend on ionic content and pH. We demonstrate the derivation and use of chemical stability diagrams here by highlighting three metal–electrolyte systems in which the chemical stability diagram can be utilized to elucidate a deeper understanding of the chemistry pertinent to corrosion behavior in innovative, yet radically different material systems. These analyses also serve to inform unexplained results in these case studies, as well as to supplement previously reported results with far-reaching, application-relevant stability predictions. Furthermore, new developments in the methods for chemical stability diagram construction and formulation are reported.

This work demonstrates the powerful analysis which can be performed by a chemical stability diagram framework, especially when deployed in tandem with existing thermodynamic diagram frameworks (such as speciation diagrams, E-pH diagrams, and phase diagrams). The use of these diagrams broadens the methods with which to analyze observations and behaviors in chemical, electrochemical, and geological applications.

Results and discussion

Case study I—solution chemistry evolution of an alloyed electrode: Mg–Zn pigments for metal rich coatings

Sacrificial anode-based cathodic protection is commonly employed for corrosion prevention in structural materials.3,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 Some proven systems employed for this purpose include Zn-based coatings for steel and Mg-based and Al-based coatings for aluminum alloys.3,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29 All of these systems function primarily by galvanic coupling of the anodic metal pigments to another material in order to suppress corrosion degradation. The performance of the galvanic couple is influenced by pH, metal ion concentration, pigment passivation, pigment composition, and ionic strength.23,26 These factors are considered in utilization of the chemical stability diagram, which predicts final equilibrium solution chemistry.

Mg–Zn alloyed pigments have been developed in an effort to combine the beneficial corrosion product formation associated with Zn2+ cations with the greater galvanic protection potential driving force of the Mg metal (i.e., larger OCP difference).2,18,30,31,32,33,34 The work by Plagemann et al. will be used here to exemplify the utility of chemical stability diagrams.18 Most notably, a thermodynamic framework is needed to explain the observed disparity in corrosion product (unidentified) formation as a function of different Mg–Zn pigment compositions exposed to constant salt spray exposure testing.18

Mg–Zn stability diagram development

Chemical stability diagrams for Mg–Zn alloy pigments on an aluminum alloy substrate can be used to ascertain how the condition of solution chemistry known here as the chemical solution trajectory ([Mn+] and pH) is affected when the dissolving material produces various ratios of MAn+ and MBn+. The anodic charge produced during metallic oxidation at the Mg/Zn pigment is balanced by cathodic charge from mainly the hydrogen evolution reaction and to a lesser extent oxygen reduction reaction. For dissolution of the alloyed pigment, the anodic charge will be divided between Mg and Zn. This division alters their individual chemical trajectories from the case of either pure MA or MB. As a first order approximation, it was assumed here that congruent dissolution occurred such that the anodic charge was distributed between Mg and Zn atoms according to the atomic fraction of each within the alloy. Assuming open-circuit congruent dissolution of Mg and Zn, a new expression was developed which more generally describes the [Mg2+] and pH trajectory for any alloy composition (see Supplementary Methods Section 2 for more details), given in Eq. 1.

$$ \begin{array}{ccccc}\\ {\mathrm{log}}\left[ {{\mathrm{Mg}}^{2 + }} \right] = & {\mathrm{log}}\left( {\left[ {{\mathrm{Mg}}^{2 + }} \right]_{{\mathrm{init}}} + \frac{X}{n} \left[ {\left( {10^{ - {\mathrm{pH}}_{{\mathrm{init}}}} - 10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}} \right)} \right]} \right.\\ \\ & + \ \left. {\frac{X}{n}\left[ {10^{{\mathrm{pH}}_{{\mathrm{inst}}} - 14} - 10^{{\mathrm{pH}}_{{\mathrm{init}}} - 14}} \right]} \right)\\ \end{array}$$
(1)

where x is the atomic fraction of Mg in the Mg–Zn alloy and n is the charge of the ion under consideration. A similar expression for the Zn chemical trajectory can be derived where x is replaced by 1 − x, and [Mg2+] is replaced by [Zn2+]. Figure 2 graphically represents the effect of alloy composition on MAn+ and MBn+ concentrations ([Mn+]/pH chemical trajectory). Through congruent dissolution, the lower the Mg content of the alloy, the less Mg2+ there will be in solution from dissolution. The equilibrium condition for corrosion product formation for each element depends on the thermodynamic stability of the ions and compounds considered, which vary for each element and for different compounds. Consider the case of ZnO and Mg(OH)2 stability in initially low [Zn2+] and [Mg2+] at pH 7 (Fig. 2). Much less Zn2+ production and alkalinization is required in order for Zn2+ to reach equilibrium with ZnO (pH = 8.49, [Zn2+] = 1.55 × 10−6 M) compared to the concentration of Mg2+ required to reach equilibrium with Mg(OH)2 (pH = 10.34, [Mg2+] = 1.09 × 10−4 M). At the point where the solution is saturated with Zn2+, any additional oxidation of Zn to Zn2+ will result in supersaturation and then formation of more ZnO by consuming Zn2+ and OH ions, resulting in no net change in the solution chemistry (hence, equilibrium condition).

Fig. 2
figure 2

Chemical stability diagram depicting the relative stabilities/equilibrium conditions (thick solid lines) of Mg(OH)2 (blue, line 8.1), ZnO (red, line 8.3), and Zn(OH)2 (black, line 8.4) as a function of pH and [M2+]. Included are trajectory lines (thin dashed/dotted lines) for various Mg–Zn pigments dissolving towards the Mn+/MX equilibrium conditions (line 1, for various Mg–Zn ratios). The composition of the Mg–Zn pigment affects the trajectory of the evolving solution chemistry. An inset is included which shows this effect in more detail for various Mg(x)–Zn(1 − x) alloy compositions

The disparity in ZnO and Mg(OH)2 stability has consequences on the progression of the Mg–Zn system towards equilibrium. Even after ZnO equilibrium has been reached, there is still a driving force to supply Mg2+ and increase pH towards Mg(OH)2 equilibrium. The Mg2+ and Zn2+ chemistry will cooperatively evolve until Mg2+ and Zn2+ are both in equilibrium with their respective stable compounds. It is assumed that Mg and Zn do not form a coordinated mixed compound and the presence of either ion does not change the equilibrium of the other ion’s corrosion product. These scenarios could be considered elsewhere. Once Zn2+ reaches equilibrium (assumed in this case to be with respect to ZnO), it remains in the equilibrium state and any change in pH is caused by additional Mg2+ supply via electrochemical dissolution. Therefore, a new trajectory expression for Mg dissolution must be derived in which Mg2+ dissolution occurs to increase [Mn+] and pH, moving the system towards Mg2+ equilibrium with Mg(OH)2, while simultaneously satisfying the already achieved Zn2+ equilibrium with ZnO (see Supplementary Methods Section 3 for more details). Equation 2 describes this new trajectory for Mg2+.

$$\large \begin{array}{ccccc}\\ {\mathrm{log}}\left[ {{\mathrm{Mg}}^{2 + }} \right] = & {\mathrm{log}}\left( {\left[ {{\mathrm{Mg}}^{2 + }} \right]_{{\mathrm{init}}} + 1\left[ {\left( {10^{ - {\mathrm{pH}}_{{\mathrm{init}}}} - 10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}} \right)} \right]} \right.\\ \\ & \left. { + 1\left[ {10^{{\mathrm{pH}}_{{\mathrm{inst}}} - 14} - 10^{{\mathrm{pH}}_{{\mathrm{init}}} - 14}} \right]} \right)\\ \end{array}$$
(2)

The Mg2+-pH condition will follow this new Mg2+ chemical trajectory under the requirement of simultaneously satisfying the Zn2+ equilibrium. The transition from the dissolution described by Eq. 1 and that by Eq. 2 occurs at the [Mg2+] and pH at which Zn2+ first reaches equilibrium (dependent upon Mg–Zn composition). The final condition of equilibrium occurs where Mg2+ and Zn2+ both coexist at their equilibrium conditions at the same pH and for their respective equilibrium metal ion concentrations. The full treatment of dissolution and final equilibrium of a Zn.66-Mg.33 alloy in an initial solution at pH 7 with no initial Mg2+ or Zn2+ ions is graphically represented in Fig. 3. This Mg/Zn atomic fraction was selected based on the predominance of the Zn2Mg intermetallic compound in the Mg–Zn alloys, invariant of the bulk alloy atomic fraction.

Fig. 3
figure 3

Chemical stability diagram showing the equilibrium conditions for the most stable corrosion product compounds (thick solid lines) for the Zn2+/ZnO (red, line 8.3) and Mg2+/Mg(OH)2 (blue, line 8.1) systems, respectively. The trajectory lines describing the evolution of solution pH and metal ion concentration (thin dashed lines) with respect to [Zn2+] (red, 1.1) and [Mg2+] (blue, 1.2) are shown. The trajectory for Zn dissolution follows line 1.1 and then the equilibrium boundary for Zn2+/ZnO equilibrium line 8.3 upon intersecting it as noted by the red arrow. The Mg chemical trajectory follows the paths indicated; one path prior to the intersection of the Zn dissolution and equilibrium boundary (line 1.2) and a different path after that intersection (line 2), as noted by the blue arrow. The boundaries between the regions of pH where different aqueous Zn-based ions are predominantly stable are indicated by thin vertical dotted lines at the pH value for which the two ions are equal in concentration

Mg–Zn stability diagram predictions and results

Several useful inferences can be made from the chemical stability diagram treatment derived here. Firstly, the metal with the harshest requirement on equilibrium (highest metal ion concentration and pH needed to form the equilibrium corrosion product under consideration) dictates the final pH, as it is the last to reach equilibrium. Here, the final pH of the alloy system is closer to the expected equilibrium pH for a pure Mg system than for a pure Zn system.

Secondly, the composition of the Mg–Zn alloy can be varied to investigate how the final equilibrium solution chemistry will change. The case of pure Zn or pure Mg dissolution equilibrium has been discussed in the Methods (Eq. 9). For very dilute compositions of Mg, the trend would progress according to the trajectory established above (Eqs. 1 and 2) but could stop if the system is not able to supply the [Mg2+] required for Mg(OH)2 equilibrium due in this case to easy depletion of available Mg atoms in the pigment. For moderate Mg compositions (such as those presented in the study18), the final solution chemistry of the Mg–Zn system was predicted to be invariant of Mg or Zn composition. This is due in part to the relative disparity in ZnO stability and Mg(OH)2 instability. Any Mg2+ chemical trajectories occurring according to Eq. 2 in cooperation with Zn2+ equilibrium arising from different Mg–Zn compositions will simply converge to the same trajectory at high enough [Mg2+] and pH before reaching the Mg(OH)2 equilibrium. This converging effect is exemplified clearly in Fig. 1. For this same reason, varying the initial pH will also not significantly change the final equilibrium conditions of pH, [Mg2+], and [Zn2+] for reasonable pH ranges expected for outdoor exposure.

Third, while the final equilibrium condition for Mg2+ and Zn2+ together is expected not to vary significantly with alloy compositions, the pH and [Zn2+] at which Zn2+ first satisfies equilibrium will vary with Mg/Zn alloying ratio, again assuming congruent dissolution.  Greater Zn concentrations in the alloy result in the Zn2+/ZnO equilibrium being reached at lower pH values and higher [Zn2+]. As the system increases pH to achieve Mg2+ equilibrium with Mg(OH)2 the [Zn2+] will be supersaturated and ZnO will precipitate to decrease [Zn2+] to maintain Zn2+/ZnO equilibrium. Higher Zn content alloys will experience the largest decrease in [Zn2+] from the concentration of first saturation to the concentration of maximum ZnO stability as pH increases towards Mg2+/Mg(OH)2 equilibrium. This effect is due to the fact that the higher Zn alloys will first attain ZnO equilibrium at higher [Zn2+]. This decrease in [Zn2+] is achieved by precipitating ZnO from solution, which conforms to the experimental finding that higher Zn content alloys exhibited more corrosion product coverage after exposure.18 Overall, these theoretical analyses indicate an optimal Zn corrosion product production for a Mg–Zn composition rich enough with Zn to intersect Zn2+ equilibrium at high [Zn2+] but also with enough Mg to promote alkalization and further ZnO production.

The samples highlighted in this case study were subjected to a constant salt spray immersion test18 where the exposing electrolyte was constantly replenished to maintain initial solution chemistry. However, corrosion product formation can still occur if the solution becomes stagnant or occluded on the sample surface such that the solution is not replenished. Additionally, in field exposures, wetting and drying cycles introduce periods of stagnation which also play a role in corrosion product formation. Corrosion product formation was hypothesized to play an important role in protecting the substrate during salt spray exposure,18 therefore conditions for ZnO and Mg(OH)2 formation will determine the corrosion product protection capacity of the metal-rich primer system. Several other performance predictions can be derived from these relationships, including the protective pigment capacities of the coating, critical solution volumes, and corrosion product saturation chemistry for any given initial ion content and pH. Specifically, these predictions may be summarized as follows:

  1. 1.

    From the alloyed pigment composition, coating pigment volume concentration, and pigment alloy density, the total moles of Mg2+ and Zn2+ available per area of exposed coating can be determined.

  2. 2.

    From the chemical stability diagrams, the final [Mg2+] and [Zn2+] required to saturate the solution can be determined, allowing for quantitative evaluation of whether the coating capacity and solution volume allow for equilibrium to be reached.

  3. 3.

    Calculations can be made to determine how much volume of solution is needed for a given area of coating before corrosion product formation is impeded.

  4. 4.

    Given a thin deliquescent film or a spray film volume, the number of wetting and drying cycles required to exceed the ability to achieve MAn+ and MBn+ saturation due to pigment depletion can be determined.

The same procedures outlined here for the ZnO chemical stability diagram can be applied to chemical stability diagrams constructed for any possible Zn-based corrosion products given the relevant thermodynamic inputs.2,30,32,33,34 Whereas this case study examined the effect of changing the nature of the dissolving interface2,18 on the final state of equilibrium, the next section will investigate the effect of changing the nature of the electrolyte on final chemical equilibrium.

Case study II—solution chemistry effects on final equilibrium: Mg-rich primer (MgRP) in two different electrolytes

The initial solution chemistry of an electrolyte can have an effect on the trajectory and final equilibrium of an evolving system, as discussed in the Methods and as shown in Fig. 1. A recent study evaluated the performance of a MgRP on 2024 in two different electrolyte solution chemistries.3 One solution (1 wt% NaCl) is representative of common laboratory solution exposures, while the other solution (dilute Harrison solution, DHS of a given composition) is meant to simulate an outdoor atmospheric solution exposure. DHS is slightly more acidic than the 1 wt% NaCl solution and also contains NH4+ and SO42− ions, which influence the pH and the formation of Mg-derivative products, as noted by the authors.3 It was found that exposure in DHS resulted in a lower final solution pH and greater depletion of the Mg pigment from the coating.3 Chemical stability diagrams will be used here to quantitatively describe and predict the evolution and final equilibrium solution chemistry for both of these solutions. Specifically, a customized chemical stability diagram will help explain observations made in the case study with regards to pigment depletion and pH evolution in different electrolyte solutions and will show how the effects are explained by thermodynamic principles.

Mg stability diagram development

The issue with varying electrolyte chemistry is determining how the chemistry of a complex solution affects the chemical trajectory and final equilibrium of a corroding metal surface. Complicating chemical effects need not be considered for the 1 wt% NaCl solution, as it is a relatively dilute solution of ions that do not complex strongly with Mg2+ 3. In contrast, the pH buffering effects of the DHS must be considered in detail, as NH4+ and SO42− both participate in proton exchange reactions as dictated by their thermodynamic equilibrium. For each chemical, the proportion of various protonated species can be calculated as a function of pH (see Supplementary Methods Section 4 for more details). An expression has been derived here (see Supplementary Methods Section 4) which incorporates the pH buffering effect of the ammonium ion into the Mg2+ chemical trajectory as a function of the overall concentration of NH3/NH4+ in solution ([NH4+]overall) (Eq. 3).

$$\large \begin{array}{ccccc}\\ {\mathrm{log}}\left[ {{\mathrm{Mg}}^{2 + }} \right] = {\mathrm{log}}\left( {\frac{1}{n}\left[ {{\mathrm{NH}}_4^ + } \right]_{{\mathrm{overall}}}\left\{ {\frac{{\frac{{K{\rm{a}}_1}}{{10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}}}}}{{\frac{{K{\rm{a}}_1}}{{10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}}}\ + 1}} - \frac{{\frac{{K{\rm{a}}_1}}{{10^{ - {\mathrm{pH}}_{{\mathrm{init}}}}}}}}{{\frac{{K{\rm{a}}_1}}{{10^{ - {\mathrm{pH}}_{{\mathrm{init}}}}}}\ + 1}}} \right\}} \right.\\ \\ + \left[ {{\mathrm{Mg}}^{2 + }} \right]_{{\mathrm{init}}} + \frac{1}{n}\left[ {\left( {10^{ - {\mathrm{pH}}_{{\mathrm{init}}}} - 10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}} \right)} \right]\\ \\ \left. { + \frac{1}{n}\left[ {10^{{\mathrm{pH}}_{{\mathrm{inst}}} - 14} - 10^{{\mathrm{pH}}_{{\mathrm{init}}} - 14}} \right]} \right)\\ \end{array}$$
(3)

Mg stability diagram results and predictions

The different Mg2+ dissolution trends in 1 wt% NaCl and DHS are shown in the chemical stability diagram in Fig. 4, where Eq. 3 is plotted as a green line. The buffering effect of the ammonium ion in DHS increased the [Mg2+] above that of the unbuffered 1 wt% NaCl solution by two orders of magnitude. This results in a lower pH (9.23) and a higher [Mg2+] (.01 M) at Mg2+/Mg(OH)2 equilibrium for MgRP exposed to DHS (Eq. 3). In contrast, exposure in 1 wt% NaCl equilibrates at pH 10.34 and [Mg2+] = 1.09 × 10−4 M due to the absence of buffering effects (Eq. 9). The final pH of the NaCl and the buffered DHS systems as predicted by the mathematical relationship developed here matches well with the experimental results.3 It is noted that since the final equilibrium [Mg2+] is much higher for the DHS system than the NaCl system, much more Mg pigment would need to dissolve into solution before a stable Mg(OH)2 precipitate could form. This follows the experimental observation that, compared to the NaCl solution, the DHS system had much more depletion of Mg pigment in the primer, attributed here to the higher requirement of [Mg2+] needed to form Mg(OH)2 in DHS. In contrast, Mg pigment depletion was mitigated in the NaCl solution and Mg(OH)2 was observed to form on the surface of the Mg pigments.3

Fig. 4
figure 4

Chemical stability diagram depicting the effect of initial solution chemistry (✦) on the trajectory and final equilibrium condition () of a corroding Mg system. It is seen that Mg2+/Mg(OH)2 equilibrium (line 8.1) is reached under two different conditions. The presence of a pH buffering agent drastically shifts the conditions of final equilibrium as indicated by lines 3 and 9. Buffering agents have the effect of increasing the amount of metal ion production (line 3) required to increase the pH by the same amount as an unbuffered solution (line 9)

The question of how the electrolyte chemistry affects the equilibrium conditions for a corroding system has been examined in this module. Following the treatment established here, chemical stability diagrams can be utilized to assess a wide variety of solution effects, such as complexation effects with binding anions and cations, various pH buffering effects, metal cation buffering effects, solution volume effects, etc. Since the initial solution chemistry of a test electrolyte has been shown to affect the final equilibrium conditions of a corroding system (Figs. 1, 4), it is clear that results depend on experimental details such as consideration of different solution chemistries that exist for different types of laboratory and field exposure.3,33,34 For example, differences in solution volume (as with bulk vs. spray vs. thin film vs. droplet exposure), solution composition (as with NaCl vs. DHS vs. sea water [artificial or otherwise] vs. rain water), and solution aeration (as with deaerated vs. aerated vs. pollutant air) are expected to produce important differences in final equilibrium. Previous research on MgRP has shown that testing in laboratory exposure results in different protection performance with regard to pigment depletion and corrosion product formation as compared to field exposure.24,27,28 Field exposure shows variable deposition of Mg corrosion products in scratches made in the coating with variation in the exposure condition.24,27,28 This effect is not unique to MgRP, as similar deposition of Mg corrosion products into remote scratches has been observed for MgO-rich primers (MgORP).35 Though there are differences in the extent of deposition, it is clear that Mg2+ deposition has an important effect on the protection performance of MgRP and MgORP,35 and that the difference between laboratory and field exposure is important. The influence of the exposure environment on material performance will be explored in the next case study.

Case study III—effects of environment on final equilibrium: Mg–Li passivating alloys in the presence of carbonate

The formation of a passivating film that prevents significant corrosion damage from occurring is crucial for many corroding systems. For example, a Mg–Li alloy has been developed for aerospace applications that offers spectacular strength-to-weight ratio while also having good atmospheric corrosion resistance, which is attributed to the formation of a passivating Li2CO3 surface layer.36 The specific Li alloying concentration was designed to stabilize a solid-solution body-centered cubic crystal structure for a Mg-based solid solution instead of the normal hexagonal close-packed crystal structure.36 While the Li addition was intended to improve corrosion resistance by promoting a homogenous solid-solution phase, it was also reported to have the unanticipated benefit of forming a Li-based passivating film.36 The conditions of stability for this vital passivating film can be explored using chemical stability diagrams.

Mg–Li stability diagram development

It is first necessary to determine what compounds should be considered when developing a chemical stability diagram for the Mg–Li alloy system. As is common for outdoor exposure, and as was found in this Mg–Li study, carbonate compounds are formed and can be considered along with the usual oxide/hydroxide compounds.2,24,30,32,33,34,36,37,38 The stability of a carbonate compound depends on the concentration of the carbonate ion as a function of pH, as the carbonate ion can participate in proton exchange reactions according to the stability of its variously protonated species as a function of pH.39 The total concentration of each carbonate species present as a function of pH can be calculated as expressed by Eq. 4 for CO32-.

$$\large \left[ {{\mathrm{CO}}_3^{2 - }} \right] = C \times \frac{{\frac{{4.688 \times 10^{ - 11}}}{{10^{ - {\mathrm{pH}}}}}}}{{\frac{{10^{ - {\mathrm{pH}}}}}{{4.446 \times 10^{ - 7}}} + 1 + \frac{{4.688 \times 10^{ - 11}}}{{10^{ - {\mathrm{pH}}}}}}}$$
(4)

Here C is the total concentration of all carbonate species in solution (H2CO3 + HCO3 + CO32-), which in turn depends on pH and the partial pressure of CO2 in the atmosphere.39 A variety of different total carbonate concentrations can be calculated depending on the conditions of atmospheric exposure. In this treatment, C will be theoretically varied from 1.2 to 1.2 mM in a closed system (for an atmospheric CO2 partial pressure of 4 × 10−4 atm, a concentration between 1 × 10−5 and 1 × 10−2 M would be reasonable39). With this expression for the concentration of CO32−, an expression for [Li2+] in equilibrium with Li2CO3 as a function of pH can be derived following the usual procedure, as shown in Eq. 5.

$$\large \large \normalsize \small \\ {\mathrm{log}}\left( {\left[ {{\mathrm{Li}}^{2 + }} \right]} \right) = - 1.544 - .5\,{\mathrm{log}}\left( {C \times \frac{{\frac{{4.688 \times 10^{ - 11}}}{{10^{ - {\mathrm{pH}}}}}}}{{\frac{{10^{ - {\mathrm{pH}}}}}{{4.446 \times 10^{ - 7}}} + 1 + \frac{{4.688 \times 10^{ - 11}}}{{10^{ - {\mathrm{pH}}}}}}}} \right)\\ $$
(5)

The expressions describing the equilibrium for MgCO3, Mg(OH)2, and Li2O follow in a similar manner. The chemical trajectories for Mg and Li are complicated by the alloyed nature of the Mg–Li interface (as with Mg–Zn in Case Study I) and the buffering effect of carbonate in solution (as with ammonium in Case Study II). The treatments described in the first two modules focusing on alloyed interfaces and ammonia buffering can also be utilized here to understand the equilibrium corrosion products  for a Mg–Li alloy in the presence of carbonate (see Supplementary Methods Section 5 for more details). Application of these treatments enables the derivation of an expression for Li+ and Mg2+ chemical trajectory (as shown here for Li in Eq. 6), where x is the Mg composition atomic fraction, n is the number of electrons produced by the oxidation of a single Li atom, and Ka1 and Ka2 are the equilibrium constants of the two carbonate cycle protonation reactions:

$$\large \begin{array}{ccccc}\\ {\mathrm{log}}\left[ {{\rm{Li}}^ + } \right] = & {\mathrm{log}}\left( {\frac{{\left( {1 - x} \right)}}{n}\left[ {{\rm{CO}}_3^{2 - }} \right]_{{\mathrm{overall}}}\left\{ {\frac{{\frac{{K{\rm{a}}_2}}{{10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}}}}}{{\frac{{K{\rm{a}}_2}}{{10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}}}\ + 1 +\ \frac{{10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}}}{{K_{{\rm{a}}_1}}}}}} \right.} \right.\\ \\ & \left. { - \frac{{\frac{{K{\rm{a}}_2}}{{10^{ - {\mathrm{pH}}_{{\mathrm{init}}}}}}}}{{\frac{{K{\rm{a}}_2}}{{10^{ - {\mathrm{pH}}_{{\mathrm{init}}}}}}\ + 1 +\ \frac{{10^{ - {\mathrm{pH}}_{{\mathrm{init}}}}}}{{K_{{\rm{a}}_1}}}}}} \right\} + \left[ {{\mathrm{Li}}^ + } \right]_{{\mathrm{init}}}\\ \\ & + \frac{{\left( {1 - x} \right)}}{n}\left[ {\left( {10^{ - {\mathrm{pH}}_{{\mathrm{init}}}} - 10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}} \right)} \right]\\ \\ & \left. { + \frac{{\left( {1 - x} \right)}}{n}\left[ {10^{ - \left( {14 - {\mathrm{pH}}_{{\mathrm{inst}}}} \right)} - 10^{ - \left( {14 - {\mathrm{pH}}_{{\mathrm{init}}}} \right)}} \right]} \right)\\ \end{array}$$
(6)

Mg–Li stability diagram results and predictions

From Fig. 5, it is immediately evident that the Li2CO3 and MgCO3 films are most stable at alkaline pH values (about 10 and higher). Similarly, the carbonate films become more stable as the total concentration of carbonate in solution increases. For example, at a pH of 11 and [CO32−] of 0.0012 M, a [Li+] of 0.89 M is required for Li2CO3 formation, whereas only a 0.029 M concentration of Li+ is needed for a [CO32−] of 1.2 M. As previously indicated,36 the Mg and Li carbonate compounds are more stable than the anhydrous Mg and Li oxide compounds over a wide range of pH. This validates the authors’ claim that MgO and Li2O would preferentially convert to MgCO3 or Li2CO3 upon atmospheric exposure to CO2.36 However, these conclusions also suggest that the Mg–Li alloy proposed by these authors is most corrosion resistant for alkaline service conditions (>pH 10) where the carbonate compounds are most stable, which is a noteworthy finding.

Fig. 5
figure 5

Chemical stability diagram for the Mg and Li systems in a closed carbonate-containing electrolyte describing the change in solution chemistry from an initial condition (✦) to an equilibrium condition (). The effect of increasing carbonate concentration in solution on the increasing stability of the MgCO3 (lines 5.1 and 5.2) and Li2CO3 (lines 5.3 and 5.4) compounds is demonstrated. Also included are the chemical trajectories for Mg (lines 6.1 and 6.2) and Li (lines 6.3 and 6.4) considering the alloying composition of the Mg–Li alloy and the buffering effect of the carbonate ion

It is interesting to note that MgCO3 is thermodynamically stable over a broader range of pH and [Mn+] than Li2CO3 for equivalent carbonate concentrations, even though Li2CO3 was detected by X-ray photoelectron spectroscopy (XPS) and MgCO3 was not.36 Additionally, the Li2CO3 film is much less stable than other classic passivating films such as Al2O3, TiO, NiO, FeO, Cr2O3, etc. which are able to form at [Mn+] as low as 10−10 M, compared to 0.1 M for Li2CO3 (Fig. 5).6 This prompts the question of whether or not there might be some other Li2CO3-derivative compound (such as a lithium carbonate hydrate) which is more stable than either Li2CO3 or MgCO3. This could explain why a Li2CO3 peak was detected with XPS instead of an MgCO3 peak.36 Alternatively, the authors proposed that the large volume fraction of Li-rich zones in the alloy results in preferential oxidation of Li compared to Mg.36 The difference in Nernst potentials of Li and Mg may enable more oxidation of Li compared to Mg, as is commonly seen for alloys comprised of components with substantially different Nernst potentials.6,13,40,41,42

In the case of a congruently corroding binary alloy, the anodic charge was equally distributed between each element according to the composition ratio of the alloy. The procedure developed in Case Study I applicable to congruent dissolution of a corroding A–B alloy represented by a given [MAn+]/[MBn+] concentration can be modified to account for concentration differences consistent with dissolution of one element over another. In this case of preferential dissolution, the anodic charge could be distributed in other ways. Additionally, a similar treatment can be used to contrast the ease with which a Li2CO3 film is able to form on the “Mg-rich” α phase compared to the “Li-rich” β phase, as it was suggested that the Li2CO3 film was able to form on the β phase but not the α phase.36 It is noted that, should the dominant surface film transition from Li2CO3 to MgCO3, passivating protection of the alloy may be lost.

Extended utility of chemical stability diagrams

The approach developed in this analysis finds easy application in several other corrosion and materials engineering challenges facing society at large, especially when properly paired with other existing thermodynamic diagram frameworks. The performance of passivating materials (“stainless” engineering materials) readily depends on the thermodynamic stability of the various oxide films being considered for protection.43,44,45 Likewise, concepts crucial to passivation breakdown such as oxide film dissolution, film destabilization by halide complexation, localized corrosion cells (pits, crevices, thin films, or droplets), and solution acidification via metal ion hydrolysis all find a need for analysis by chemical stability diagrams.43,45,46,47,48 Some corrosion inhibitor technologies, which rely on the formation of a protective film via chemical storage, release, and subsequent chemical deposition, could benefit greatly from these types of analyses as well. For example, lead pipe water distribution systems are made safer via treatment with phosphate inhibitors.49,50 Additionally, corrosion protection of aerospace assets was made possible in large part due to the corrosion inhibition afforded by chromium conversion coatings (CCC).51,52,53,54 With the growing demands for CCC alternatives, other inhibitor solutions (such as, molybdenum and cerium systems) are being heavily researched.21,22,55,56,57,58,59,60 The storage, release, and deposition of these inhibitor species is dependent upon pH, and the critical inhibitor concentration is usually dependent on metal ion concentration in solution. Chemical stability diagrams find application in all of these examples.

Chemical stability diagrams were utilized to explore how various factors affect the final equilibrium condition of corroding electrochemical systems. Diagrams were constructed based on a type of analysis which has existed for many years but which was developed further here for corroding systems. A modified approach was established for predicting the equilibrium conditions for corrosion product formation and how solution chemistry likely evolves during corrosion to achieve this equilibrium in terms of pH and metal ion concentration, which is applicable to various materials in a variety of testing conditions pertinent to corrosion. Strategies were developed from the chemical stability diagram as follows:

  • A mathematical expression was developed which describes the effect of initial pH and [Mn+] on the chemical conditions which are anticipated to develop during corrosion. Varying the initial pH and [Mn+] of a solution results in different final pH and [Mn+] conditions in which equilibrium is established.

  • A mathematical expression was developed which describes the pH and [Mn+] dissolution-based chemical trajectory of a corroding system as a function of binary alloying composition which could be extended for a larger number of components. The chemical trajectory and final equilibrium of an element is altered from the single-component case when alloys are considered. The final condition of equilibrium for both elements in this case does not vary significantly with modest changes in alloy composition and initial pH.

  • A strategy was developed for determining how two different elements are able to evolve towards equilibrium which satisfies the equilibrium conditions for both systems. It was found that the element with the stricter requirement of pH and [Mn+] for equilibrium dictated the final solution chemistry.

  • A mathematical expression was developed that describes how different pH buffering species (ammonia and carbonate) alter the chemical trajectory of a corroding system. The presence of a buffering agent requires a greater production of [Mn+] in order to cause the same change in pH relative to the evolution of a system in the absence of a buffering agent.

  • A mathematical expression was developed which describes the equilibrium pH and [Mn+] required for formation of metal carbonate compounds. This expression can be adapted for other pH-dependent metal-based compounds (carbonates, phosphates, sulfates, etc.). Carbonate compounds are more stable at higher pH values and may very well be the preferred thermodynamic corrosion product formed in atmospheric exposure.

Methods

Construction of the diagrams

As with any phase diagram, expressions must be developed that describe the dependence of free energy on the specific variables of interest. For chemical stability diagrams, conditions of equilibrium must be described as a function of pH, metal ion activity, and temperature (298 K was considered here). Equilibrium boundaries (thick solid lines) between metal ion species and solid metal compounds are constructed from thermodynamic equations that relate the equilibrium stability of various species to pH (H+/OH ion concentration) and [Mn+]. Chemical stability diagrams can also depict chemical trajectory paths (thin and long dashed lines) that plot the evolution of metal ion concentration and pH within a log[Mn+] vs. pH space field as the system progresses from some initial condition to an equilibrium condition. The following generalized procedure was utilized to construct basic equilibrium and trajectory lines for chemical stability diagrams; more advanced treatments are evaluated in the Discussion:

  1. 1.

    Equilibrium boundaries were constructed from relevant chemical potential data for species and compounds under consideration. Lange’s Handbook of Chemistry was the source of all thermodynamic data used in this study.61 Charge-and-mass-balanced equations were derived to quantify the equilibrium metal ion concentration as a function of pH (for example, Eq. 7). Examples of compounds that can be considered are oxides, hydroxides, sulfates, and chlorides. These lines can express the equilibrium condition between two aqueous ions or an aqueous ion and a compound (Eq. 8).6 Equilibrium boundaries accurately describe the equilibrium condition between two species and are valid for one particular equilibrium reaction condition. By overlaying multiple equilibrium boundaries for various types of metal-X compounds, one can correctly describe a system for any set of solution chemistry conditions with careful consideration. The inherent weakness with any thermodynamic diagram is demonstrated in the case where a set of equilibrium conditions/reactions are not considered when they should be (this is highlighted in Case-Study III).

    $$aM^{n + } + b{\mathrm{H}}_{\mathrm{2}}{\mathrm{O}} = M_{\rm{a}}({\mathrm{OH}})_{\rm{b}} + n{\mathrm{H}}^ +$$
    (7)
    $${\mathrm{log}}\left[ {M^{n + }} \right] = - \left[ {\frac{{\mathop {\sum }\nolimits \nu G_{{\mathrm{prod}}} - \mathop {\sum }\nolimits \nu G_{{\mathrm{reac}}}}}{{2.303{\mathrm{RT}}}}} \right] - \frac{n}{a}{\mathrm{pH}}$$
    (8)
  2. 2.

    Trajectory lines were constructed by deriving balanced expressions to relate the transient metal ion concentration to the concentration of hydroxide or hydronium ions upon dissolution of a solid compound or metal (either chemically or electrochemically; see Supplementary Methods, Section 1). Trajectory lines are often constructed for an initial solution chemistry of pH 7 and minimal [Mn+].6 An expression was derived in this study (see Supplementary Methods, Section 1) which describes the trajectory of a dissolving compound or metal for any starting pH or [Mn+] (For the example of Mg2+, see Eq. 9). Where n is the number of electrons produced upon oxidation of one Mg atom, [Mg2+]init is the initial Mg2+ ion concentration (molarity) of the solution, pHinit is the initial pH of the solution, and pHinst is the instantaneous pH of the solution as dissolution (and subsequent increase in [OH] and [Mn+]) occurred;

    $$\large \begin{array}{ccccc}\\ {\mathrm{log}}\left[ {{\mathrm{Mg}}^{2 + }} \right] = & {\mathrm{log}}\left( {\left[ {{\mathrm{Mg}}^{2 + }} \right]_{\rm{init}} + \frac{1}{n}\left[ {\left( {10^{ - {\mathrm{pH}}_{{\mathrm{init}}}} - 10^{ - {\mathrm{pH}}_{{\mathrm{inst}}}}} \right)} \right]} \right.\\ \\ & \left. { + \frac{1}{n}\left[ {10^{{\mathrm{pH}}_{{\mathrm{inst}}} - 14} - 10^{{\mathrm{pH}}_{{\mathrm{init}}} - 14}} \right]} \right) \\ \end{array}$$
    (9)

Figure 1 graphically represents the relationship described by Eqs. 8 and 9 for a Mg2+ system. The thermodynamic stability fields for Mg(OH)2 and MgO are depicted as a function of pH and [Mg2+]. It is apparent that the final equilibrium condition of a system depends upon the initial solution chemistry, and that the equilibrium Mg-compound produced upon Mg(OH)2 or MgO dissolution will be Mg(OH)2, as it is far more stable than MgO in aqueous environments (Fig. 1). The expression derived here provides a quantitative means of understanding how initial conditions affect final conditions with respect to equilibrium pH, [Mn+], and reaction product formation. Many other situations can alter the conditions for establishment of equilibrium between a metal ion and some stable molecular solid as well as the trajectory of an evolving solution chemistry ([Mn+], pH) upon increase of Mn+ and OH-. Three examples were discussed in this manuscript. The equilibrium and trajectory lines in each figure are labelled according to the equation in the manuscript from which they are plotted.

Data availability

All relevant procedures for constructing the chemical stability diagrams presented here are contained within this publication (and its Supplementary Information files). Relevant thermodynamic values were cited from Lange’s Handbook of Chemistry.61

Supplementary information is available at Nature Material Degradation’s website and contains a List of Terms used in this manuscript (Supplementary Table 1), a breakdown of the chemical trajectory equation (Supplementary Note 1), and a list of assumptions and limitations (Supplementary Note 2) for the reader’s reference.