Introduction

Metal-semiconductor contacts are essential in electronic systems due to their critical role in controlling the flow of electrical signals at the interface1,2. The energy barriers formed between the metal and semiconductor typically determine whether the contact behaves as a rectifying or ohmic junction, directly influencing current flow, power consumption, and device efficiency, particularly in transistors, diodes, and thermoelectrics3,4,5,6. Thermoelectric (TE) devices, which enable the direct conversion of heat into electricity based on the Seebeck effect, offer great potential for sustainably powering numerous sensors in the Internet of Things (IoT) and contributing to carbon-neutral goals via waste heating energy harvesting7,8,9. As global energy demand continues to rise, leveraging waste heat presents a significant opportunity to improve energy efficiency, underscoring the importance of advancing TE technologies to enhance energy utilization. However, unlike most electronic devices that typically operate around room temperature, TE devices usually function under high temperatures and their gradients, which demands that TE materials and numerous contacts within the device endure harsh conditions for extended periods without obvious performance degradation10,11.

The performance of TE materials is typically evaluated by the dimensionless figure of merit, zT = S2σT/κ, where S is the Seebeck coefficient, σ is electrical conductivity, T is the absolute temperature and κ is thermal conductivity. Significant progress has been made with the development of high-performance TE materials, advancing TE technology in both power generation and solid-state cooling12,13,14,15,16,17,18,19. However, for practical applications, the stability of TE materials under high temperatures, electric fields and their gradient is just as critical as the materials’ performance. At elevated temperatures or under strong electric fields, issues such as element evaporation, environmental reactions, and ion migration can degrade the performance of TE materials, hindering their practical use20,21,22,23. In addition to the TE materials themselves, ensuring the stability of contacts between TE materials and electrodes poses an even greater difficulty.

Contacts always involve materials with differing chemical compositions, which often leads to thermodynamic atomic diffusion and reaction, especially under high temperatures and their gradients. This atomic diffusion and reaction alter the contact properties and often degrades the device’s performance24,25,26,27,28,29,30,31. To mitigate atomic diffusion and reaction, TE interface materials (TEiM) are commonly used in fabricating TE legs, forming a “TEiM/TE material/TEiM” sandwiched structure with two junctions on either side32,33,34. Generally, TEiMs are selected from metals or alloys due to their high σ and κ, which help minimize energy loss during heat and electricity transport. Since TE materials are typically semiconductors, metal-semiconductor contacts are formed between TEiMs and TE materials. In addition to the σ and κ of TEiMs, establishing ohmic contacts with low contact resistivity ρc between TEiMs and TE materials is crucial.

When considering ρc in TEiM/TE material, the effective TE performance will shift from the material’s zT to zTeff = zT × L/(L + 2ρcσ), where L is the length of TE leg35,36,37. According to this formula, high ρc will degrade the performance of the TE leg and device. Therefore, it is essential to achieve low ρc, especially the long-term low ρc between TEiM and TE material to ensure stable and efficient device performance. However, the behavior of ρc in the TE leg is very complex. During fabrication, uncontrollable reactions between TEiM and TE materials usually occur, challenging the theoretical prediction of ρc on the one hand. For another, ρc is not a constant after fabrication and usually degrades due to atomic diffusion and reaction under high temperatures over time25,31. Although selecting or designing suitable TEiMs can mitigate ρc degradation6,36,38,39,40,41,42, the thermodynamically driven atomic diffusion and reaction, especially at high temperatures, always challenges the achievements of long-term reliable contacts in TE legs.

MgAgSb has attracted considerable attention due to its high TE performance near room temperature43,44,45,46,47,48,49. Initially, Ag has been used as the TEiM for fabrication of its TE leg, achieving low ρc and high conversion efficiency η of 8.5% in both single TE leg and two-pair TE device50,51,52,53,54. However, a recent study has shown that ρc in Ag/MgAgSb increases substantially from ~6.1 to 1006.0 μΩ cm2 after 12 h of aging, challenging its long-term usage6. It is pointed out that Sb will diffuse from MgAgSb to Ag TEiM, causing Ag3Sb impurity phases and cracks at the interface, which significantly contributes to the increased ρc in Ag/MgAgSb6,55. To address the issues with Ag as TEiM, a screened semimetal, MgCuSb, and a developed alloy, MgAgMn0.1, have been respectively incorporated into MgAgSb. Both the TE junctions achieve a long-term low ρc and facilitate the improvement of η6,56.

Here, to prevent Sb diffusion from MgAgSb to TEiM, we have the idea to directly use Sb as the TEiM to develop Sb/MgAgSb TE junctions. In contrast to other TE junctions that typically show degraded ρc after aging, we demonstrate that this junction exhibits self-optimized ρc when exposed to 573 K, even in air. We analyze the structural evolution of the junction and find that Mg diffuses from MgAgSb into the Sb TEiM, which leads to Mg deficiency in MgAgSb, increasing carrier concentration and reducing ρc. Importantly, this Mg diffusion occurs only near the interface, which does not significantly affect the performance of MgAgSb away from the interface. For Sb TEiM, we reveal that it manifests decent σ, κ, low-cost, and excellent weldability. Using the 100-day air-aged Sb/MgAgSb junctions, we fabricate a two-pair Mg-based TE device, which achieves a maximum η of 8.1% and power density of 0.41 W cm-2 under a 294 K temperature gradient. This high output performance from long-term aged TE legs is rarely reported, highlighting their significant potential for lasting air-robust heat harvesting. The self-optimization phenomenon we discover can also inspire future designs of other junctions for long-term usage and pave the way for the long-awaited wide-scale application of TE power generation.

Results

Self-optimized ρ c in Sb/MgAgSb/Sb with high air-resistance

Due to Sb diffusion and increased cracks at the Ag/MgAgSb junctions, a substantial increase in ρc has been observed6. Literature indicates that Sb deficiency in MgAgSb is detrimental to its performance46. To suppress Sb diffusion from MgAgSb to the TEiM, we directly employ Sb as the TEiM in MgAgSb, forming the Sb/MgAgSb TE junction. Generally, long-term low ρc is significantly more desirable than merely achieving an initial low ρc in the junction. Therefore, the Sb/MgAgSb junction was aged at 573 K in the air for periods ranging from 7 to 30 days to investigate changes in ρc.

As shown in Fig. 1a, two distinct regions can be identified in the probe distance dependence of resistance, corresponding to the Sb TEiM and MgAgSb. Notably, when probing from Sb to MgAgSb, an increase in resistance can be observed. For the as-fabricated Sb/MgAgSb (0 days), a rapid initial increase in resistance is noticed at the interface, followed by a milder increase in the MgAgSb away from the interface. This rapid initial increase is attributed to the marked ρc between the Sb TEiM and MgAgSb. As aging progresses, the rapid initial increase in resistance near the interface diminishes, indicating a reduction in ρc between the Sb TEiM and MgAgSb. The inset of Fig. 1a presents a zoomed-in view of the probe distance dependence of resistance, detailing the gradual optimization of ρc with aging. It is noteworthy that the resistivity of MgAgSb remains unchanged, which is evidenced by the consistent slope in the MgAgSb region. The unchanged resistivity in MgAgSb also indicates its excellent stability in air.

Fig. 1: Self-optimized ρc in Sb/MgAgSb/Sb aged at 573 K in air.
figure 1

a Probe distance dependence of resistance in Sb/MgAgSb TE junctions after 0–30 days aging; b aging time dependence of ρc in Sb/MgAgSb junction compared to other MgAgSb-based TE junctions from literature6,56,57; c aging time dependence of ρc/ρc0 ratio in Sb/MgAgSb and its comparison to TE junctions from literature6,36,37,39,41,42,56,57,58,59,60,61,62,63,64,65, where ρc0 represents the initial value of ρc.

Based on multiple measurements and averaging the ρc at both sides of the Sb/MgAgSb/Sb TE leg (Supplementary Figs. 14), ρc is found to decrease from 20.8 μΩ cm2 to 7.9 μΩ cm2 after 30 days of aging (Fig. 1b). It is worth noting that in contrast to the significant increase in ρc in Ag/MgAgSb with aging, the ρc of the Sb/MgAgSb junction gradually decreases over time. Although the ρc of Sb/MgAgSb is relatively higher compared to MgCuSb and MgAgMn0.1 (Supplementary Fig. 5), it is important to note that the Sb/MgAgSb junction was aged at 573 K, a higher temperature than the aging conditions used for Ag, MgAgMn0.1, and MgCuSb. Moreover, unlike the vacuum environments used for Ag, MgAgMn0.1, and MgCuSb6,50,51,53,56,57, the Sb/MgAgSb junction was aged directly in air. The ability to withstand high air resistance at elevated temperatures allows Sb/MgAgSb to maximize the performance of MgAgSb under such challenging conditions, highlighting its strong potential for practical applications. More interestingly, this self-optimized ρc with aging has not been reported in previous studies, as shown in Fig. 1c, where nearly all TE junctions exhibit degraded ρc over time6,36,37,39,41,42,56,57,58,59,60,61,62,63,64,65. The optimized ρc in this work suggests that the aging will not always degrade contact properties. On the contrary, if appropriate metals, alloys, or intermetallics can be identified or designed, long-term reliable contacts with low ρc are achievable.

Mg diffusion from MgAgSb to Sb at the junction

The self-optimized ρc at the interface, along with the unchanged resistivity away from it, suggests that the changes in properties in Sb/MgAgSb occur only near the interface and do not affect the properties farther away. Therefore, it is necessary to investigate how structure evolves near the interface in Sb/MgAgSb junctions over time with aging. Scanning electron microscopy (SEM) equipped with energy-dispersive spectroscopy (EDS) was employed, and Fig. 2a shows the SEM images of Sb/MgAgSb junctions after 0 days, 7 days and 30 days of aging. Line scans of Mg, Ag and Sb across the interface, shown in Fig. 2b, indicate obvious Mg diffusion from MgAgSb into Sb TEiM. Figure 2ce display EDS mappings for Mg, Ag, and Sb, providing a clearer view of the element’s evolution with aging time. Initially, a clear interface can be observed, with Sb serving as TEiM on the left and MgAgSb as TE material on the right. As aging progresses, Mg gradually diffuses from the MgAgSb into the Sb TEiM, creating a Mg-rich region about 10 μm from the original interface. While Ag shows minimal diffusion, an Sb-deficient region forms in the same Mg-rich region in the Sb TEiM. Additionally, some scattered Sb-rich phases are detected within the MgAgSb.

Fig. 2: Structural analysis of Sb/MgAgSb junction.
figure 2

a SEM images, b line scan of Mg, Ag, and Sb, and elemental mappings of c Mg, d Ag, and e Sb in Sb/MgAgSb junction after 0 days, 7 days, and 30 days of aging; f enlarged view of elemental mappings of Mg, Ag, Sb, and overlapped Mg, Ag, Sb in Sb/MgAgSb junction after 30 days of aging.

To further investigate the microstructure of the Sb/MgAgSb junction, an enlarged view is provided in Fig. 2f, where Mg-rich with Sb-deficient areas in the Sb TEiM, as well as scattered Sb-rich phases in the MgAgSb region are more obvious. Additionally, intensified Ag signals in the Ag mapping can be noticed within MgAgSb, suggesting the formation of Ag-rich phases. This is likely due to Mg diffusion, which leads to Mg deficiency and consequently causes Ag-rich and Sb-rich areas in MgAgSb. The overlapped mappings of Mg, Ag, and Sb in Fig. 2f offer a more comprehensive view of the phases present in the Sb/MgAgSb junction. Further semi-quantitative spot analysis was conducted to determine the specific composition at the Sb/MgAgSb junction. As shown in Supplementary Fig. 6, the composition of TEiM and TE material away from the interface is predominately Sb and MgAgSb, respectively. Near the interface, the composition of TEiM and TE material is found to be mainly Sb and MgAgSb with large amounts of Ag3Sb, respectively (Supplementary Fig. 7). The formation of these impurities is attributed to Mg diffusion from MgAgSb to Sb, which also leads to the formation of Mg3Sb2 in Sb TEiM, as shown in Supplementary Fig. 8.

Historically, Ag3Sb has been considered detrimental to the performance of MgAgSb66, and will increase ρc6,55. The content of Ag3Sb near the interface is revealed to progressively increase with aging due to continued Mg diffusion (Supplementary Fig. 9). However, in this study, the presence of Ag3Sb near the interface does not increase ρc. On the contrary, a reduction in ρc is observed. Notably, cracks have frequently been found at the interface besides Ag3Sb when using Ag as TEiM6. However, no cracks were found at the interface in this work. Importantly, the Mg diffusion observed in the Sb/MgAgSb junction may contribute to stronger bonding between Sb and MgAgSb.

Despite the evident Mg diffusion observed in Fig. 2,a question arises as to why the diffusion of Sb toward MgAgSb and Ag toward Sb is not as pronounced, given their chemical potential differences on both sides. We propose that Mg, being chemically active and having a small atomic radius, can readily diffuse from MgAgSb to Sb, leading to the formation of Mg3Sb2. Simultaneously, the resulting Mg deficiency in MgAgSb facilitates the formation of Ag3Sb and Sb within MgAgSb. The Sb impurities formed at the MgAgSb interface may act as a barrier, inhibiting the diffusion of Sb from the Sb TEiM into MgAgSb, while the formation of Ag3Sb at the interface may similarly restrict Ag diffusion toward Sb.

The mechanism behind reduced ρ c

Although significant Mg diffusion from MgAgSb into Sb is observed in the Sb/MgAgSb junction, the underlying mechanism for the reduced ρc remains unclear. Based on the observation in Fig. 2af, it is evident that Mg diffusion from MgAgSb to Sb becomes significant with aging. The diffused Mg reacts with Sb to form Mg3Sb2 impurities, while the depletion of Mg in MgAgSb leads to the decomposition of MgAgSb into Ag3Sb and Sb. Figure 3a provides a schematic diagram illustrating the structural changes with aging. To investigate whether Mg diffusion plays a key role in reducing ρc, we deliberately reduced the Mg content in MgAgSb to simulate this Mg diffusion and synthesized Mg-deficient Mg1-xAgSb (x = 0.05 and 0.1). The X-ray diffraction (XRD) patterns of these Mg-deficient samples, shown in Fig. 3b, reveal impurity phases of Ag3Sb and Sb, consistent with the EDS analysis. Using these Mg-deficient samples, we fabricated Sb/Mg1-xAgSb junctions to examine changes in ρc. As shown in Fig. 3c, the ρc is indeed reduced with decreasing Mg content in Mg1-xAgSb, confirming Mg deficiency plays a crucial role in lowering ρc.

Fig. 3: Reduced ρc from increased carrier concentration for enhanced electron tunneling.
figure 3

a Schematic diagram of structural changes in Sb/MgAgSb with aging; b XRD patterns of Mg1-xAgSb and c probe distance dependence of resistance in Sb/Mg1-xAgSb TE junctions; d DOS of MgAgSb, Ag3Sb and Sb; temperature dependence of e S and f σ of Mg1-xAgSb; energy band diagram of the contact between metal and g normal p-type semiconductor, h p-type semiconductor with increased n and i p-type semiconductor with a high n layer, specifically for the diagram in Sb/MgAgSb after aging.

Considering that Mg3Sb2 forms in Sb TEiM at a distance from the interface, the contact between Sb and MgAgSb gradually evolves into the contact between Sb and MgAgSb with Ag3Sb. Based on their density of states (DOS) near Fermi level EF (Fig. 3d), it can be found that MgAgSb is a semiconductor, Ag3Sb is a typical metal, and Sb is a semimetal. Typically, there are no energy barriers at the junction between a metal and a semimetal, which means the increased presence of Ag3Sb metallic phases at the interface may help reduce ρc. Moreover, according to metal-semiconductor contact theory, ρc depends on both the barrier height (ϕB) and carrier concentration n, with the relationship simplified as ρc ~ exp(B/n1/2), where q is the elemental charge29,33,67. Therefore, increasing n can help reduce ρc68,69. Figure 3e, f demonstrates that, as the Mg content decreases, S of Mg1-xAgSb decreases, while σ increases, indicating that n increases with reduced Mg content. This suggests that Mg deficiency not only results in the formation of Ag3Sb and Sb impurities but also significantly enhances n in Mg1-xAgSb. Similarly, in the Sb/MgAgSb junction, Mg diffusion from MgAgSb to Sb promotes the formation of the metallic Ag3Sb phase and enhances n at the interface, thereby contributing to the reduction in ρc.

Intrinsically, n influences the electron transport mechanism across the interface. In a metal/p-type semiconductor contact, a Schottky barrier ϕB forms when the work function of the metal (ϕm) is lower than that of the semiconductor (ϕs), as shown in Fig. 3g. For Sb/MgAgSb, such a barrier is formed due to the work functions of Sb (4.40 eV) and MgAgSb (4.56 eV)4,6. Typically, electron transport across the interface follows thermionic emission when the n of the material is low or moderate. If n increases, EFS will approach the valence band edge (EVS) of the semiconductor, which will make the width of the depletion layer W narrower (Fig. 3h). At this point, electron tunneling effects become more significant, allowing for a much higher current and lowering ρc. Notably, in this study, Mg thermodynamically diffuses from MgAgSb into the Sb TEiM, naturally forming a layer with high n at the interface. This high n layer directly bonds to the Sb TEiM, which reduces the W of the depletion layer and promotes electron tunneling. The schematic diagram in Sb/MgAgSb after aging is illustrated in Fig. 3i.

However, despite the ρc being reduced, there are concerns about the alerted performance of MgAgSb near the interface. In Sb/MgAgSb junction, it is noteworthy that the overall composition of MgAgSb away from the interface does not significantly change after 30 days of aging, as shown in Supplementary Fig. 10. Consequently, the performance of MgAgSb away from the interface remains largely unchanged, as evidenced by the consistent Seebeck coefficient in both the Sb/MgAgSb/Sb junction and the MgAgSb material at different aging times (Supplementary Fig. 11). Thus, the Mg diffusion in Sb/MgAgSb only forms a thin high-n layer, just micrometers thick near the interface, which helps reduce ρc when in contact with Sb. Heavily doping the surface layer of a semiconductor is a common strategy in semiconductor devices to reduce the barrier width and facilitate ohmic contacts between the metal and semiconductor. This approach may be effective for achieving low ρc in TE junctions in the future.

Efficient η of Sb/MgAgSb-based TE device

Typically, high σ and κ are desired for the TEiM to minimize energy loss during heat and electricity transport. Here, we compare Sb TEiM with other TEiMs used in MgAgSb. As shown in Fig. 4a, b, Sb exhibits moderate values of both σ and κ compared to Ag, MgAgMn0.1, and MgCuSb6,56,70. Based on the σ, κ, S (as shown in Supplementary Fig. 12) of these TEiMs, we simulated the maximum conversion efficiency ηmax and maximum power Pmax of a single MgAgSb TE leg. The TEiM was assumed to have a height of 0.5 mm at both ends of the leg without considering ρc. As shown in Supplementary Fig. 13, despite large differences in σ and κ, the variation in ηmax and Pmax of these single TE legs are relatively small. For MgCuSb sintered at 573 K, which has lower σ and κ, it demonstrates correspondingly lower ηmax and Pmax. Since power output is accumulated across multiple legs in a TE device, which usually consists of 30 or more TE legs, high σ and κ are always desirable. But if the TEiM layer is made thinner, its impact on ηmax and Pmax will diminish.

Fig. 4: Conversion efficiency two-pair TE device based on Sb/MgAgSb TE junction.
figure 4

T dependence of a σ, b κ and c price of Sb and other TEiMs in MgAgSb, where σ of Ag, MgAgMn0.1 are sourced from literature6,56,70, while κ of Ag and MgAgMn0.1 are calculated based Wiedemann-Franz law; d probe distance dependence of resistance for the joint between Sb/MgAgSb and Cu electrode made with Sn-based solder, with an optical image of the Sb/MgAgSb/Sb leg wetted by Sn-based solder included in the inset; e optical image of two-pair TE device and the measurement set-up; I dependence of f V and P, and g Q under different ΔTs of the two-pair TE device based on Sb/MgAgSb/Sb legs after 100 days of aging in air; h aging time dependence of Pmax and ηmax when Th is 573 K; i ΔT dependence of ηmax in MgAgSb/Mg3Sb0.6Bi1.4 two-pair TE devices, where Pm, Ps and Qs represent measured power, simulated power and simulated heat flow, respectively; j ΔT dependence of ωmax in MgAgSb/Mg3Sb0.6Bi1.4 two-pair TE device and its comparison with other two-pair TE devices in the literature6,42,51,56,73,74,75, where the abbreviations MSB, HH and BST refer to Mg3(Sb,Bi)2, half-Heusler and (Bi,Sb)2Te3, respectively.

Cost is another factor that could be considered, especially with potential large-scale applications. Figure 4c shows that Sb and MgCuSb are much more cost-effective than Ag and MgAgMn0.171. In addition, weldability is an important aspect of the TEiM that should be considered. A key function of TEiMs is to facilitate the joining of TE legs with electrodes. Without proper weldability, additional layers are often required for the joining, which complicates the fabrication process. Compared to MgAgMn0.1 and MgCuSb, Sb demonstrates excellent weldability. The inset in Fig. 4d shows that conventional Sn-based solder can easily wet the surface of Sb. Moreover, as shown in Fig. 4d, the joint between Sb/MgAgSb and Cu electrode made with this solder exhibits very low ρc, further highlighting the advantages of using Sb as a promising TEiM for future practical applications.

To further validate the reliability of the Sb/MgAgSb TE junctions developed in this study, two-pair Mg-based TE devices are fabricated, with the schematic diagram of the module’s dimensions shown in Supplementary Fig. 14. The n-type legs were made of Mg3Sb0.6Bi1.4, with their TE performance detailed in Supplementary Fig. 15. The as-fabricated Sb/MgAgSb/Sb TE legs without aging were used for initial testing. Optical images of the measurement set-up and the two-pair TE device are shown in Fig. 4e. Supplementary Fig. 16 shows the voltage (V), power output (P), heat flow (Q), and conversion efficiency (η) of the device under varying ΔT and applied current (I), where ηmax reaches approximately 7.7% at a ΔT of 276 K. After aging Sb/MgAgSb/Sb legs at 573 K in air for 30 and 60 days, they are coupled with n-type Mg3Sb0.6Bi1.4 to make another two two-pair TE devices. Measurements in Supplementary Figs. 1718 show that ηmax of them reach 7.9% at ΔT ~ 275 K. Furthermore, Sb/MgAgSb/Sb legs were aged at 573 K in the air for an additional 40 days (totaling 100 days). I-dependent V, P and Q under different ΔTs measured in its corresponding two-pair TE device is shown in Fig. 4f, g. It reveals that ηmax can reach 8.1% under ΔT ~ 294 K. While this value is slightly lower than the state-of-the-art Ag, MgCuSb, and MgAgMn0.1 used as TEiMs in MgAgSb6,54,56, several factors should be considered. Excluding variations in measurement conditions and potential errors across different measurement systems, the shorter height of the TE legs in this study compared to those in the literature6,54,56 likely reduces efficiency but enhances power generation, contributing to the impressive high Pmax of 0.41 W achieved in this work. More importantly, the maintained Pmax and ηmax in these two-pair TE devices based on Sb/MgAgSb after 0, 30 days, 60 days, and 100 days of air-aging sufficiently confirms the long-term reliable contacts in Sb/MgAgSb, as well as emphasizing the excellent stability of MgAgSb despite some Mg diffusion at the interface (Fig. 4h).

To explore further potential improvements, a simulation is conducted to evaluate the performance of the two-pair TE device, taking into account the TE performance of MgAgSb and Mg3Sb0.6Bi1.4, ρc of both n-type and p-type legs, as well as the properties of the TEiMs. The inset in Fig. 4i presents the simulated two-pair TE device under a hot side temperature of 593 K and a cold side temperature of 293 K. The simulation results indicate that the ηmax could reach 10.6%. Detailed simulated I-dependent of V, P, Q, and η is shown in Supplementary Fig. 19. Generally, the measured P tends to be lower, while the measured Q tends to be higher than the simulated results. In practical measurements, P can usually be accurately assessed, but precisely measuring Q is often challenging72. To better illustrate the potential of the developed two-pair TE device, the simulated heat flow Qs and measured power output Pm were used to calculate ηmax. When ΔT is 300 K, the two-pair TE device can demonstrate ηmax of 9.5%.

Supplementary Fig. 20 displays the discrepancies in open-circuit voltage V0, internal resistance R, heat flow without current Q0, and Pmax between the measurements and simulations, indicating potential room for further improvement of the developed two-pair TE device. In fact, the achieved maximum power density ωmax of 0.41 W cm-2 and ηmax of 8.1% in our present MgAgSb/Mg3Sb0.6Bi1.4-based TE device is also highly impressive when compared to other two-pair TE devices under similar temperature gradients6,42,51,56,73,74,75, especially in the 100–300 K range (Fig. 4j and Supplementary Fig. 21). Furthermore, a distinguishing feature of Sb/MgAgSb/Sb is its exceptional durability. The junction remains stable even after 100 days of aging in air, a characteristic rarely reported in the literature for other TE materials. This highlights its strong potential for long-term applications.

Discussion

In summary, we report for the first time a self-optimized contact resistivity ρc in Sb/MgAgSb TE junctions. Dramatically different from conventional TE junctions that typically experience increased resistivity after high-temperature aging, ρc of Sb/MgAgSb junction gradually optimized when exposed to 573 K, even in air. Mg diffusion from MgAgSb into the Sb TEiM is revealed, which leads to Mg deficiency in MgAgSb, resulting in increased carrier concentration n. This increased n enhances electron tunneling between MgAgSb and the Sb TEiM, effectively reducing ρc. The Mg diffusion is revealed to occur near the interface, which does not affect the performance of the main bulk MgAgSb material. For Sb TEiM, it is revealed to possess decent σ, κ, low-cost, and excellent weldability, which allows for its direct bonding to electrodes without the need for additional layers. The practical application of our developed TE junction is highlighted by the fabrication of a two-pair Mg-based TE device, which achieves ωmax of 0.41 W cm-2 and ηmax of 8.1% under a 294 K temperature difference, even after Sb/MgAgSb/Sb TE legs were aged at 573 K in air for 100 days. This finding underscores the significant potential of the developed Sb/MgAgSb junctions for long-term efficient low-grade heat harvesting. Additionally, the self-optimization phenomenon observed in this study offers valuable insights that could inspire the design of future TE junctions aimed at long-term applications, and thereby paving the way for the long-awaited wide-scale application of TE power generation.

Methods

Materials synthesis

Mg1-xAg0.97Sb0.99 with 0.625 wt% C18H36O2 (x = 0, 0.05, 1) (denoted as Mg1-xAgSb in the main text and below), MgCuSb and Mg3.2In0.02Sb0.595Bi1.4Te0.005 (denoted as Mg3Sb0.6Bi1.4 in the main text and below) were synthesized by using Mg turnings (99.95%), Ag powers (99.99%) Sb shots (99.999%), Cu powder (99.999%), Bi shots (99.999%), Te shots (99.999%) and In powders (99.99%). The raw materials were weighted stoichiometrically and then put into the ball-milling jaw with the inside of argon. Then, the jars were mechanically alloyed for 5 h, 20 h, and 5 h for Mg1-xAgSb MgCuSb and Mg3.2In0.02Sb0.595Bi1.4Te0.005, respectively (SPEX-8000D). The obtained powders from the jars were then consolidated into the bulk by vacuum spark plasma sintering. Mg1-xAgSb was sintered under 573 K and 60 MPa for 5 min (SPS-322Lx, Dr. Sintering). MgCuSb was sintered under 573 K or 773 K and 60 MPa for 5 min (SPS-322Lx, Dr. Sintering). Mg3.2In0.02Sb0.595Bi1.4Te0.005 was sintered under 973 K and 60 MPa for 10 min (SPS-1080 System, SPS SYNTEX INC).

Characterization and measurements

X-ray diffractometer (SmartLab3, Rigaku) with Cu Kα radiation (40 kV and 15 mA) was used to characterize the phases of the obtained Mg1-xAgSb samples. ZEM-3 (Advance Riko) was employed to measure electrical transport properties (S and σ) of the samples, which have an uncertainty of ±5%. LFA467 (Netzsch) was used to determine the thermal diffusivity D of the samples, with an uncertainty of ±3%. The κ was calculated using the formula κ = DρCp, where ρ and Cp represent the density and heat capacity of the samples, obtained by the Archimedes method and the Dulong-Petit law, respectively. The figure of merit zT was calculated based on above S, σ and κ using the equation zT = S2σT/κ.

TE junction fabrication and characterization

Sb/MgAgSb/Sb leg was fabricated by sandwiching two layers of Sb as the interface material and then sintered by SPS under 573 K and 60 MPa for 5 min. The obtained Sb/MgAgSb/Sb were cut into dice with dimensions of ~3.8 × 3.8 × 6 mm3. Sb/MgAgSb TE junctions were aged at 573 K in the air for 0, 7, 15, and 30 days for characterization and contact resistivity measurements. The contact resistance of the Sb/MgAgSb TE junctions was measured by a 2-axis resistance distribution measurement instrument (S1331, Mottainai energy). The composition distribution of these TE junctions was investigated by using scanning electron microscopy (FESEM, Hitachi SU8000) equipped with an energy dispersive spectrometer (EDS, XFlash FlatQUAD 5060 F).

TE device fabrication, measurement, and simulation

Two-pair TE device was assembled using p-type MgAgSb and n-type Mg3Sb0.6Bi1.4 TE legs. Sb and 304 stainless steel were used as TEiMs for MgAgSb and Mg3Sb0.6Bi1.4, respectively. Mini-PEM (Advance Riko) was used to measure the output power and conversion efficiency the two-pair TE device. The measurement was conducted under vacuum conditions. The temperature gradient was established by maintaining the cold-side temperature at 293 K, while the hot-side temperatures varied from 373 K to 593 K. The finite-element simulations were performed with COMSOL Multiphysics® software to simulate the conversion efficiency and power of the TE leg with different TEiM and the two-pair TE device, the thermal contact resistance between the multiple interfaces of the TE device was not considered in this work.

First-principles calculations

First-principles calculations were performed to calculate the density of states (DOS) of MgAgSb, Ag3Sb and Sb. These calculations were conducted using software Vienna ab initio Simulation Package (VASP) with the projector augmented-wave method76,77. Here, the generalized gradient approximation with the Perdew-Burke-Ernzerhof functional GGA-PBE and modified Becke-Johnson (mBJ) were used as exchange-correlation functionals to achieve a more accurate estimation of the bandgap78,79. 500 eV was used as plane-wave energy cutoff. The convergence criteria for Hellmann–Feynman force on each atom energy and total energy were set to 0.001 eV Å-1 and 10-8 eV, respectively. Geometry relaxation was first performed using Gamma-centered k-point sampling with k = 30/L, where L is the lattice parameter of crystal. The relaxed structure was then used for self-consistent static calculations with k = 60/L. VASPKIT80 has been used to post-process the calculated data for obtaining the DOS of MgAgSb, Ag3Sb and Sb.