WorksPhysics and Astronomy
Native vacancy energetics and association in TiN and CrN: chemical potential dependence, clustering, and surface effects
Abstract
Native vacancy populations in transition-metal nitride coatings reflect vacancy formation, association, and depth-dependent stability. Using density functional theory (DFT), we compare these effects in rocksalt TiN and CrN in bulk and at (001) surfaces, within phase-stability-constrained chemical potential ranges. In TiN, is favoured under N-poor and under N-rich conditions; in CrN, remains preferred throughout its stability range. Association energies are referenced to corresponding isolated vacancies where positive values mean association lowers the energy and negative values favour separation. Mean bulk association energies for mixed metal-nitrogen pairs are eV in TiN and eV in CrN. At (001) surfaces, in TiN prefers the surface and the first subsurface layer. In CrN, has similar formation energies at the surface and first subsurface layer, with a slight preference for the latter; slightly prefers the second subsurface layer. Surface cluster energies are referenced to separated vacancies at their preferred depths. The compact cluster in TiN has favourable association in bulk ( eV per vacancy) but unfavourable association at the surface ( eV per vacancy). By contrast, in CrN remains stabilised, with its association energy decreasing from to eV per vacancy. CrN's stronger association occurs without larger structural distortions and is accompanied by distinct Cr-centred magnetic responses.
Introduction
The functional utility of transition metal nitrides (TMNs) in modern industrial applications, ranging from wear-resistant coatings [1, 2] to diffusion barriers in microelectronic interconnects [3], is fundamentally governed by the presence and behaviour of intrinsic point defects [4, 5]. Their properties, however, are not determined solely by the ideal 1:1 compounds. Reactive deposition and annealing can produce deviations from stoichiometry [5, 6, 7], while exchange with nitrogen reservoirs changes the chemical environment governing defect formation. Surfaces and interfaces further provide local environments in which defect stability can differ substantially from that in the bulk [8, 9]. Therefore, understanding such deviations from stoichiometry requires identifying which defects are energetically accessible and how the surrounding chemical and structural environments alter their stability.
In vacancies formed through exchange with external atomic reservoirs, the chemical environment is described by the elemental chemical potentials. The accessible range of these chemical potentials is constrained by the stability of the parent nitride relative to the elemental reference states and competing phases. Within these stability limits, variations in the nitrogen and transition metal chemical potentials modify the relative energetic costs of forming vacancies on the two sublattices. Consequently, any assessment of which vacancy type is favoured under different growth conditions must be based on a consistent treatment of the phase stability constraints. Although TMNs are often discussed in terms of nitrogen deficiency, non-stoichiometry can be accommodated through vacancies on either the nitrogen or metal sublattice, and the preferred mechanism will depend on the relative energetic cost of removing each species. Thus, determining which vacancy type is energetically favoured is essential for understanding defect populations, transport behaviour, and phase stability in these materials.
Comparison of TiN and CrN is particularly relevant because they share the same rocksalt crystal structure while exhibiting distinct electronic and magnetic behaviour. TiN is metallic and remains cubic over a broad stoichiometric range, with experimentally reported compositions of and computational studies extending to [10]. CrN also exhibits defect tolerance within its cubic rocksalt framework, but its structural stability is closely coupled to magnetic ordering, and the range over which cubic CrN remains stable depends on temperature, composition, and magnetic state [11, 12, 13, 14, 15]. These differences suggest that these two nitrides may not accommodate deviations from stoichiometry in the same way. Thus, the key concern becomes the choice of sublattice that preferentially loses atoms as the material departs from the ideal 1:1 stoichiometry. In the following, denotes a nitrogen vacancy and a transition-metal vacancy, with and used for the corresponding material-specific metal vacancies. Multivacancy compositions are written additively, such that denotes a mixed transition metal–nitrogen divacancy.
Several components of this problem have previously been investigated using first-principles density functional theory (DFT). Tsetsseris et al. (2007) calculated isolated nitrogen and metal vacancies, interstitials, and selected defect pairs in bulk TiN, HfN, and ZrN [16]. For TiN, the studied and pairs were repulsive, demonstrating that the stability of an isolated defect does not by itself imply an aggregation tendency [16]. Chemical-potential-dependent point-defect energies has subsequently shown that dominates Ti-rich, nitrogen-deficient Ti–N compounds, whereas or nitrogen interstitials () can become relevant toward N-rich compositions [17]. These studies establish the chemical potential dependence of dilute bulk defects, but do not resolve how the selected vacancies interact at finite concentration or near surfaces.
Prior work in CrN has primarily focused on nitrogen deficiency. Holec et al. [18] compared several point-defect mechanisms in cubic CrN and identified as the lowest-energy mechanism for reducing the N/Cr ratio. Their calculations further showed that reduce Cr-to-N charge transfer and increase the metallic character of the defective material [18]. Zhang et al. [19] identified ordered on (111) planes in CrN and related increasing vacancy concentration to lattice contraction, structural distortion, and changes in ionicity and electronic structure [19]. These results establish that can occur in specific arrangements and interact with the CrN electronic structure. In our recent work, dilute intrinsic and extrinsic point defects were examined in CrN and CrN, showing that the metallic CrN host comparatively screens isolated defects, such that their structural, electronic, and magnetic perturbations remain relatively modest [20]. However, our previous study was restricted to the dilute-defect limit and did not address vacancy-vacancy association or near-surface segregation. The present work extends this understanding by examining how the relative stability of N and Cr vacancies evolves across the phase stability constrained chemical potential range, and by providing a configuration resolved comparison of nitrogen-only, chromium-only, and mixed vacancy associations.
Finite-concentration vacancy configurations have also been studied in other nitride systems. Cluster-expansion calculations for substoichiometric TiN and VN have identified vacancy-ordered structures and nitrogen-vacancy pair and triplet motifs, and examined their implications for elastic properties and hydrogen trapping and diffusion [21]. More recent calculations of (Ti,V) ternary nitride precipitates have identified linear nitrogen-vacancy channels in V-rich domains [22]. These studies focus on vacancy ordering within the nitrogen sublattice. Conversely, mixed clusters have been shown to be experimentally relevant as Chen et al. [23] observed Schottky-vacancy clusters in the MoN layers of MoN/TiN superlattices and demonstrated their role in intermixing and deformation [23]. Together, these studies show that vacancies can order within one sublattice or associate across both sublattices.
Surface studies provide a further, but incomplete, part of the picture. Low-index surface energies of TiN have been examined as functions of surface orientation and nitrogen chemical potential, with the non-polar (001) surface generally among the most stable terminations [24]. formation and its layer dependence have also been studied for TiN surfaces in relation to work-function control [25]. For CrN(001), ideal and nitrogen-deficient surface structures have been compared, and selected N-deficient cubic terminations were found to be stable over parts of the chemical potential range [26]. Experimentally, substoichiometric epitaxial TiN(001) films show pronounced composition-dependent changes in surface morphology and electrical resistivity, while epitaxial CrN(001) growth studies have demonstrated a strong sensitivity of surface morphology and physical properties to growth conditions [27, 12]. These studies show that and surface stoichiometry affect stability and electronic properties but the question remains whether surfaces preserve or reorder the competition among , , and , or how their association energies evolve from the outermost layer toward a bulk-like environment. Resolving this is particularly important for coating materials, where defect formation and redistribution in the near-surface region can directly influence growth, exchange with the surrounding environment, and the onset of degradation. Establishing how vacancy preferences change with depth is therefore essential for connecting surface defect chemistry to the stability and performance of the material under realistic conditions.
Thus, the relationship between vacancy selection and arrangement remains unresolved. While defect formation energy determines which defects are favoured in a given chemical environment, vacancy association energy determines how those defects organise once present. The former quantity depends on the elemental chemical potentials through exchange with external atomic reservoirs, whereas the latter compares configurations of identical compositions, for which the reservoir contributions cancel. Here, TiN and CrN are examined within a common framework linking phase stability, vacancy formation, association, and surface segregation. The chemically accessible N-rich and N-poor limits are defined from the stability of each nitride against competing phases, and defect formation energy is used to track changes in the preferred vacancy type across this range. Pair and higher-order association energies then establish whether vacancies remain dispersed or form same-sublattice or mixed TM-N arrangements. By considering vacancy pairs and higher-order clusters in addition to isolated defects, the analysis moves beyond the dilute-defect limit and probes local vacancy arrangements representative of finite defect concentrations. Finally, the same defect families are examined at the (001) surfaces to determine how vacancy stability and association evolve from the surface toward the bulk. This approach connects synthesis-relevant chemical conditions to vacancy chemistry and organisation across bulk and near-surface environments, while providing a framework that can be extended to other non-stoichiometric compounds.
Methodology
All calculations were performed using density functional theory (DFT) as implemented in the CP2K package, version 2024.3 [28]. The electronic structure was described using the Gaussian and plane-wave (GPW) method in the QUICKSTEP module [29], where the Kohn-Sham orbitals are expanded in atom-centred Gaussian basis functions and the electronic density is represented on an auxiliary plane-wave grid. Exchange-correlation effects were treated using the generalized gradient approximation (GGA) [30] with the Perdew-Burke-Ernzerhof (PBE) functional [31]. Core-valence interactions were described using Goedecker-Teter-Hutter pseudopotentials [32, 33] together with DZVP-MOLOPT-SR-GTH basis sets [34]. Spin polarisation was included in all calculations. For CrN, the localized Cr states were treated using the Dudarev DFT+ approach with an effective Hubbard parameter of eV [35, 36], consistent with previous work [37]. The auxiliary plane-wave cutoff and relative cutoff were set to 700 Ry and 60 Ry, respectively. These parameters were tested to ensure convergence of relative energies within 1 meV per atom. Electronic occupations were treated using Fermi-Dirac smearing with an electronic temperature of 300 K. Brillouin-zone sampling was restricted to the point for all calculations.
The bulk phases of TiN and CrN were modelled in the B1 NaCl-type crystal structure. Bulk defect calculations were performed using conventional supercells containing 512 atoms. The large supercell size reduces artificial interactions between periodic defect images and allows defect energetics to be evaluated at relatively dilute concentrations. For this cell size, a single vacancy corresponds to a concentration of 0.195% relative to all atomic sites, or 0.391% of the metal or nitrogen sub-lattice. The equilibrium lattice parameters of pristine TiN and CrN were obtained by fully relaxing both the cell vectors and the internal atomic positions. In defective supercells, the equilibrium cell shape and volume of the pristine structure were retained, while all internal atomic positions were allowed to relax. Electronic convergence was achieved using an SCF convergence criterion of , and ionic relaxation was continued until the maximum residual force was below 0.01 eV/Å. CrN was described using the Corliss-type antiferromagnetic structure [11] (Corliss-AFM), in which ferromagnetically aligned Cr layers follow an alternating spin sequence along the [110] direction. The relaxed TiN reference structure retained the cubic rocksalt geometry, with a lattice parameter of Å and a nearest-neighbour Ti-N bond length of Å. The calculated lattice parameter is in close agreement with experimental values of approximately Å, differing by less than 0.2% [38]. The relaxed Corliss-AFM CrN structure retained the rocksalt connectivity with the characteristic low-temperature shear distortion. In the present supercell, the non-orthogonal angle is , corresponding to an acute pseudo-cubic shear angle of . The volume-equivalent pseudo-cubic lattice parameter is Å, and the nearest-neighbour Cr-N distances range from to Å. Experimental low-temperature orthorhombic CrN lattice parameters correspond to a volume-equivalent pseudo-cubic lattice parameter of approximately Å, placing the present value within about 0.6% of experiment [11, 39], whereas experimental cubic rocksalt CrN has a lattice parameter of Å at 298 K, placing our value within approximately 0.25% of the room-temperature cubic reference [40]. The calculated Cr-N distances are likewise consistent with the approximately Å nearest-neighbour separation expected from experimental CrN lattice parameters. Defects were introduced by removing metal atoms, nitrogen atoms, or combinations of both. To study defect clusters, different vacancy arrangements were considered by varying the relative separation, orientation, and local environment of the vacancies, allowing the effects of vacancy ordering and clustering on the formation energy to be assessed.
Defect formation energies () were calculated using [41]:
where and are the total energies of the defective and pristine cells, respectively. The term denotes the number of atoms of species added () or removed (). The chemical potential defines the energy cost of exchanging atoms with the corresponding reservoir and therefore sets the growth-condition dependence of the defect formation energy. The chemical potential range was determined from the energetic stability of the host nitride with respect to elemental precipitation and competing transition-metal nitride phases. Chemical potentials were written as , where is the elemental reference energy and [42]. For the stoichiometric host nitride, stability requires
where is the formation enthalpy calculated relative to the elemental reference states of Ti, Cr, and . To capture limiting growth environments, defect formation energies were evaluated at both N-rich/TM-poor and N-poor/TM-rich limits [42]. At the N-rich limit () corresponding to equilibrium with the nitrogen reference; is fixed by the host-stability condition. In the N-poor limit, the maximum allowed metal chemical potential was determined from the combined constraints imposed by elemental metal precipitation and competing phases. Where a metal-rich secondary nitride (such as ) imposed a stricter energetic bound, that phase defined the N-poor limit; otherwise, the elemental metal-rich boundary was retained. This procedure ensures that the selected chemical potential range remains within the stability window of the host nitride and does not favour precipitation of elemental reservoirs or formation of lower-energy competing nitride phases. The competing-phase constraints, numerical chemical potential limits, and Ti-N and Cr-N stability constructions are provided in Supplementary Table S1 and Figure S1.

Figure S1. Chemical-potential constructions used to establish the reservoir limits for (a) TiN within PBE/GGA, (b) CrN within PBE/GGA, and (c) CrN within PBE/GGA+ ( eV). Green segments indicate the stability windows used in the defect-formation-energy calculations. The DFT+ panel uses the Cr/CrN/N reference set; GGA competing-phase energies are not combined with the DFT+ reference construction.
To determine whether vacancies that are already present tend to remain separated or associate into clusters, vacancy association energies (equivalent to the conventional vacancy binding energy), , were evaluated relative to the isolated vacancies. The term association energy is used here to distinguish this process from defect formation since it describes the interaction between vacancies with a fixed overall composition. For a configuration containing and , the association energy was calculated as
Here, and for the multi-vacancy configurations considered in this study. The same expression applies to the TM-only (), N-only (), and mixed TM-N vacancy configurations. Since the associated configuration and its isolated-vacancy reference contain the same number of each atomic species, the chemical potential contributions to their formation energies are identical and cancel when the difference is taken. Consequently, measures the interaction between vacancies, independent of the selected N-rich or N-poor chemical potential limit. The explicit expansion in terms of DFT total energies and cancellation of the chemical potential terms are provided in Supplementary Section S1. With the sign convention used here, a positive indicates energetic stabilisation of the associated configuration relative to the isolated vacancies. A negative indicates that the separated-vacancy reference is more energetically favourable. For the three- and four-vacancy configurations, the association energies are additionally reported per vacancy as to facilitate a comparison between the configurations of different sizes. The pair association energies are reported as the total energies per pair because all pair configurations contain two vacancies.
Surface calculations utilized periodic slab models constructed from the optimised bulk structures. Low-index (001) surfaces were investigated for TiN and CrN. The slabs consisted of 11 atomic layers with a lateral expansion of the surface unit cell, and a vacuum region of 20 Å was introduced along the surface normal to minimize interactions between periodic images. The Corliss-AFM ordering was retained in the CrN surface slabs. During structural relaxation, in-plane lattice parameters were fixed to the bulk equilibrium values while all atomic coordinates were fully relaxed. The surface free energy, , was defined as [43, 44, 45]:
where is the total energy of the relaxed slab, is the number of bulk formula units contained in the slab, and is the surface area. These converged pristine surfaces served as the baseline for calculating depth-dependent defect stability, with vacancies introduced at surface, subsurface, and bulk-like central layers. Surface defect formation energies were evaluated using the same chemical potential formalism and the same elemental reference states and phase-stability limits as for the bulk defects. The pristine and defective bulk-supercell energies in the formation-energy expression were replaced by the pristine and defective slab energies, and , respectively. No separate surface chemical potentials were introduced. The same atomic reservoirs and chemical potential limits were used for the bulk and surface calculations, allowing the resulting defect formation energies to be compared on a consistent basis.
Structural changes induced by the defects were evaluated using root mean square (RMS) displacement as well as mean bond lengths. The RMS displacement was evaluated for atoms within 5 Å of the defect centre. This cutoff includes the first few coordination shells around the vacancy complex in rocksalt TiN and CrN, while excluding atoms far from the defect that remain essentially bulk-like. The resulting therefore provides a local measure of the defect-induced relaxation. For the surface structures, top-layer rumpling was defined as the difference between the mean coordinates of the transition-metal and nitrogen atoms in the outermost atomic layer, . Defect-induced changes in rumpling were evaluated relative to the pristine slab, .
Results
Bulk vacancy energetics and association
The bulk calculations first establish which vacancy sublattice is energetically preferred across the chemical potential range and then examine how vacancies interact when more than one defect is present, addressing the two questions raised in the Introduction.
Vacancy-sublattice switching in TiN and its suppression in CrN
Figure 1 shows the bulk formation energies, , of and the TM vacancy in (a) TiN and (b) CrN across their chemical potential ranges. These ranges are defined by the relevant elemental and competing phases, as summarised in Table S1 and Figure S1. At the N-poor/TM-rich limit, the stability boundary is set by TiN for TiN and elemental Cr for CrN. A clear difference emerges between the two materials, with TiN undergoing a change in the preferred vacancy sublattice across its stability window, whereas CrN retains a preference for throughout.

Figure 1. of and across the nitrogen chemical potential window considered for (a) TiN and (b) CrN.
| Material | Reference | Limit | Constraint | (eV) | (eV) |
| TiN | PBE/GGA | N-poor | TiN | -3.111 | -0.475 |
| TiN | PBE/GGA | N-rich | elemental N | 0.000 | -3.586 |
| CrN | DFT+ | N-poor | elemental Cr | -1.682 | 0.000 |
| CrN | DFT+ | N-rich | elemental N | 0.000 | -1.682 |
Table S1. Chemical-potential limits used in the defect-formation-energy calculations. Chemical potentials are given relative to the elemental reference states. The TiN limits are obtained from the PBE/GGA competing-phase construction, whereas the CrN defect calculations use the Cr/CrN/N DFT+ reference set.
In TiN, the relative stability of and changes substantially with the chemical environment. At the N-poor/Ti-rich limit, is eV for and eV for . Increasing increases the formation energy of and decreases that of , with the two formation energies becoming equal at eV. Above this crossover, becomes energetically preferred. At the N-rich/Ti-poor limit, is eV for and eV for . TiN switches from an N-sublattice vacancy preference under N-poor conditions to a Ti-sublattice vacancy preference toward the N-rich limit.
The negative formation energy of at the N-poor boundary indicates an energetic driving force for N removal from stoichiometric TiN under this limiting reservoir condition. At finite vacancy concentrations, defect-defect interactions become increasingly important, and the dilute-defect description becomes less applicable. The negative isolated-vacancy formation energy indicates a tendency toward N-deficient TiN close to the TiN phase boundary. This chemical potential dependence is consistent with previous first-principles studies, which similarly predicted that is favoured under Ti-rich/N-poor conditions and becomes increasingly competitive toward N-rich conditions [17].
CrN shows a distinctly different response. At the N-poor/Cr-rich limit, is approximately eV for and eV for . Increasing reduces the energetic separation between the two vacancy types but does not reverse their ordering. At the N-rich/Cr-poor limit, the formation energies are approximately 2.585 eV for and 3.604 eV for . Thus, remains the lower-energy isolated vacancy throughout the stability window, and no vacancy-sublattice crossover occurs. This persistent preference for is consistent
with previous computational and experimental studies that identified N vacancies as the dominant defects associated with N deficiency in CrN [18, 19]. The present calculations extend this picture by showing explicitly that does not become the lower-energy isolated vacancy anywhere within the phase-stability-constrained chemical potential range considered here, including at the Cr-poor limit, where its formation energy is minimised.
Therefore, while TiN changes its preferred vacancy sublattice as the chemical environment varies, CrN retains a preference for nitrogen vacancies throughout the considered range. This indicates that sub-stoichiometry in CrN is expected to be accommodated through . The following sections examine whether this contrast persists when multiple vacancies interact.
Bulk pair vacancy interactions
The isolated vacancy calculations show that TiN changes its preferred vacancy sublattice with chemical environment, whereas CrN retains a preference for . To determine how this picture changes when vacancies interact, the association energies of N-only, TM-only, and mixed TM-N pairs were compared from 1NN to 6NN. The mixed and same-sublattice pair geometries are shown in Figure 2(a,Figure 2b). Figure 2(c) shows that the pair interactions in TiN are small and strongly dependent on the pair geometry. The N-only pairs span to eV, with a mean of eV, while the Ti-only pairs span to eV, with a mean of eV. All sampled mixed - pairs have positive association energies, ranging from to eV, with a mean of eV. The largest value occurs for the 1NN mixed pair, where and occupy directly neighbouring lattice sites separated by 2.124 Å. The mean association energy of the 2NN-6NN mixed pairs is +0.108 eV, so the 1NN configuration is 0.143 eV more strongly associated than the average of the 2NN-6NN configurations.

Figure 2. Vacancy-pair geometries and bulk association energies in TiN and CrN. (a) First-to sixth-nearest-neighbour (1NN-6NN) separations for mixed - pairs in the rocksalt lattice. (b) - same-sublattice separations; the same geometrical shell sequence applies to - pairs because both sublattices are fcc. Coloured dashed lines denote the respective neighbour shells. (c,d) Bulk vacancy-pair association energies, , for TiN and CrN, respectively, plotted as a function of neighbour shell for N-only, mixed TM-N, and metal-only vacancy pairs. Positive indicates energetic stabilisation of the paired configuration relative to the isolated vacancies. Dashed connecting lines are guides to the eye only.
Structurally for the TiN pair configurations, the mean values are 0.048, 0.054, and 0.062 Å for N-only, mixed, and Ti-only pairs, respectively. The mean Ti-N bond length changes are −0.0063, −0.0065, and −0.0070 Å. The Ti-only pairs produce the largest average local displacements and bond contraction, with a mean association energy of −0.072 eV. The mixed pairs show smaller structural changes and a positive mean association energy of +0.132 eV. The strongest structural relaxation in TiN occurs for configurations with weaker vacancy association.
The CrN association energies plotted in Figure 2(d) show a much larger separation between the pair families. The N-only pairs span to −0.021 eV, with a mean of −0.055 eV, while the Cr-only pairs span −0.321 to −0.024 eV, with a mean of −0.163 eV. On the contrary, all six mixed - pairs have positive association energies ranging from +0.906 to +1.483 eV, with a mean of +1.053 eV. The 1NN mixed pair, consisting of directly neighbouring Cr and N sites separated by 2.074 Å (Figure 2(a)), has the largest association energy of +1.483 eV. The 2NN-6NN mixed pairs have a mean association energy of +0.967 eV, whereas the 1NN pair reaches +1.483 eV, with an additional stabilization of 0.516 eV. Association remains above +0.90 eV at 6NN, where the vacancies are separated by 7.459 Å, implying that strong mixed-vacancy association persists over the full range of separations considered. The enhanced stability of the 1NN mixed pair coincides with the compact geometry shown in Figure 2(a). The adjacent and form a single compact two-site defect region, producing a coordination environment distinct from that of the more widely separated configurations. The association energy of the 1NN configuration exceeds the mean of the 2NN-6NN configurations by 0.143 eV in TiN and 0.516 eV in CrN, indicating an additional energetic preference for direct TM-N vacancy adjacency. In CrN, the large positive association energies retained from 2NN to 6NN indicate that the mixed-vacancy interaction also extends well beyond the nearest-neighbour configuration.
Similar to TiN, the structural response of CrN also follows a different trend from the association energies. The mean values for N-only, mixed, and Cr-only pairs are 0.022, 0.046, and 0.061 Å, respectively, while the mean Cr-N bond length changes are −0.0014, −0.0044, and −0.0059 Å. Cr-only pairs produce the largest mean RMS displacements and bond contractions, with a mean association energy of −0.163 eV. The mixed pairs show intermediate structural changes and a mean association energy of +1.053 eV. The Cr magnetic response provides a further distinction between the pair families. Pristine CrN has a maximum local Cr moment of approximately 2.830 . For the N-only pairs, the maximum Cr moment increases to 3.453-3.540 , with a mean of 3.476 . The mixed pairs have maximum Cr moments of 2.945-3.004 , with a mean of 2.964 , while the Cr-only pairs remain at 2.836-2.841 . N-only pairs increase the mean maximum local Cr moment from 2.830 in pristine CrN to 3.476 . For mixed - pairs, the value is 2.964 , only 0.134 above that of pristine CrN. Thus, the presence of substantially reduces the change in the local moment associated with . This behaviour is consistent with the partial compensation of the local electronic perturbation associated with .
The pair calculations add an important feature to the isolated-vacancy picture. The formation energy of isolated remains higher than throughout the chemical potential range, whereas mixed - pairs are strongly stabilised once both vacancy types are present. The mean mixed-pair association energy increases from 0.132 eV in TiN to 1.053 eV in CrN, a difference of 0.921 eV. Thus, vacancy pairing provides a relatively small energetic gain in TiN and a much stronger driving force for mixed Schottky-type association in CrN.
At finite temperatures, these energetic differences may be reflected in the distribution and correlation of vacancies. The weaker association in TiN is consistent with a larger fraction of separated vacancies, while the CrN energetics favour correlated mixed - configurations when both vacancy types are present. Vacancy ordering has been observed experimentally in N-deficient CrN [19], although the observations concern ordering of on the N sublattice. The present calculations identify mixed-sublattice association as an additional energetically stable form of vacancy organisation in CrN. Such differences in vacancy distribution may influence diffusion, electronic and magnetic response, and mechanical behaviour. The following section examines whether these pair-interaction trends persist when vacancy complexes are extended to three- and four-vacancy clusters.
Three- and four-vacancy clusters in bulk
The pair calculations showed that mixed TM-N association is weak in TiN but strong in CrN. Three- and four-vacancy configurations were examined to determine how these trends developed as more vacancies were introduced. Figure 3(a-Figure 3c) shows the clusters highlighted in the main analysis where (a) a mixed trimer, (b) a linear trimer, and (c) a compact cluster. Additional bent, planar, segregated-zone, and separated-pair geometries are shown in Supplementary Figure S3. The association energies are reported per vacancy in Figure 3(d,Figure 3e), such that configurations containing two, three, and four vacancies can be compared on the same basis.

Figure 3. Representative bulk vacancy-cluster geometries and association energies in TiN and CrN. (a-c) Higher-order vacancy motifs corresponding to configurations highlighted in the association-energy analysis: (a) a mixed three-vacancy Schottky-plus-N configuration, (Sch+N); (b) a linear three-nitrogen-vacancy configuration, ; and (c) a compact four-vacancy mixed configuration, . (d,e) Bulk for TiN and CrN, respectively, as a function of the total number of vacancies. N-only, mixed TM-N, and metal-only clusters are shown separately. Faint filled symbols denote all converged configurations included in the analysis, whereas larger hollow symbols identify the most strongly stabilised representative configuration of each class at a given cluster size when . Positive association energies indicate energetic stabilisation of the clustered configuration relative to the isolated vacancies. Small horizontal offsets between the three vacancy classes are introduced solely for visual clarity and carry no physical meaning. Labels identify the highlighted representative motifs.
In TiN as shown in Figure 3(d), adding a third vacancy does not strengthen the mixed-vacancy association observed for the 1NN pair. The 1NN - pair has = +0.126 eV/vac, whereas the compact and trimers yield +0.093 and +0.083 eV/vac, respectively. The compact configuration is more strongly associated, reaching +0.217 eV/vac. The role of vacancy arrangement is especially clear when comparing the compact and separated configurations. The separated motif consists of two 1NN - pairs, each with an internal separation of approximately 2.12 Å, positioned so that the shortest distance between vacancies belonging to different pairs is approximately 12.38 Å (Supplementary Figure S3). Its association energy is +0.102 eV/vac, which is close to the +0.126 eV/vac of the isolated 1NN mixed pair. Bringing the same four vacancies into the compact configuration raises to +0.217 eV/vac, an increase of 0.115 eV/vac. The structural response changes with this rearrangement. The separated-pair motif has = 0.030 Å and essentially no mean Ti-N bond-length change, whereas the compact cluster has = 0.073 Å and a mean Ti-N contraction of −0.0078 Å. Therefore, the compact configuration allows a larger local rearrangement of the surrounding lattice. This greater local rearrangement accompanies the increase in association energy.
CrN retains the mixed-vacancy preference identified for the pairs [Figure 3(e)]. The 1NN - pair has = +0.741 eV/vac. The compact and trimers give +0.921 and +0.736 eV/vac, respectively, and the compact cluster reaches +1.188 eV/vac. The strong mixed association found for vacancy pairs persists as the complex grows, with the largest value occurring for the compact four-vacancy configuration. The separated and compact configurations isolate the effect of the vacancy arrangement because their compositions are identical. In the separated configuration, two 1NN mixed pairs retain internal - separations of approximately 2.07 Å, while the shortest separation between vacancies belonging to different pairs is approximately 13.40 Å (Supplementary Figure S3). This configuration gives = +0.736 eV/vac, which is within 0.006 eV/vac of the isolated 1NN-pair value. The compact cluster reaches +1.188 eV/vac, providing an additional 0.453 eV/vac stabilisation when the two mixed pairs are brought into one compact vacancy complex. The associated structural change is also larger for the compact CrN cluster. The separated-pair configuration has = 0.018 Å and a mean Cr-N bond-length change of Å, while the compact configuration has Å and a mean Cr-N contraction of Å. The eV/vac increase in the association energy coincides with a greater ability of the neighbouring Cr-N framework to rearrange around a single compact vacancy region.
The local electronic response provides a second indication of why mixed configurations are stabilised in CrN. In pristine CrN, the mean local Cr Hirshfeld charge is approximately . In the case of compact mixed trimers and tetramer, the corresponding values lie between and e, within e of the pristine value. N-only three- and four-vacancy configurations shift the Cr charge to approximately to e, yielding deviations of - e. Therefore, vacancies on both sublattices leave the local Cr charge closer to the pristine state than N-only vacancy clusters, which is consistent with partial electronic compensation. The magnetic response exhibited the same composition dependence. The maximum local Cr moment is in pristine CrN. The magnetic moment is for compact and for compact , whereas the more N-rich cluster reaches and the N-only clusters span -. Therefore, the mixed configurations maintain both the local charge and Cr moments closer to the pristine values. This indicates that electronic and magnetic compensation contributes to the preference for mixed Cr-N vacancy clusters alongside structural relaxation around the compact vacancy region.
The N-only CrN configurations show that vacancy number alone is insufficient to determine whether a cluster associates. The linear motif shown in Figure 3(b) has eV/vac, whereas the bent and compact configurations give and eV/vac, respectively. The investigated motifs remain between and eV/vac. The linear trimer also has a lower of Å than the compact and bent trimers, which give and Å, respectively. Its maximum local Cr moment is , compared with and for the compact and bent motifs, respectively. The positive association of the linear trimer reflects its particular vacancy arrangement rather than a general increase in the N-vacancy association with the cluster size. Preferred arrangements of this kind can provide local building blocks for vacancy ordering at higher defect concentrations [19, 46, 47].
All higher-order TM-only configurations with reported association energies have negative values. The Ti-only three- and four-vacancy motifs span to eV/vac, whereas the Cr-only motifs with reported energies span to eV/vac. Thus, none of the TM-only clusters with a reported association energy is stabilised relative to the isolated TM vacancies. The cluster results continue the contrast established by the pair calculations. In TiN, mixed trimers remain below eV/vac, and only the compact configuration reaches eV/vac. In CrN, mixed association persists from the pair at eV/vac through the mixed trimers at - eV/vac and increases to eV/vac for the compact four-vacancy cluster. CrN also supports the geometry-specific linear motif at eV/vac. These association energies describe how an existing vacancy population can lower its energy by adopting a particular arrangement. TiN gains relatively little from clustering, except for the selected compact mixed configurations. CrN gains considerably more from bringing Cr and N vacancies into mixed complexes, while some N-only arrangements can also be stabilised when the geometry is favourable. This difference should affect the organisation of defects at finite concentrations and, in turn, the properties of the material.
Therefore, the bulk results establish two different modes of vacancy organisation. In TiN, the chemical environment controls the preferred vacancy sublattice, whereas the vacancy association remains comparatively weak. In CrN, isolated remains energetically preferred, but mixed - association becomes important once several defects are present. The next section examines how these bulk trends change near the (001) surface.
Surface vacancy formation and association
The bulk results establish the preferred vacancy sublattice and the strength of vacancy association in TiN and CrN. Near a surface, these trends can be modified by the reduced coordination and by the independent depth preference of each vacancy species. The following sections examine isolated vacancy stability as a function of depth, followed by pair association and higher-order clustering at the (001) surfaces.
Isolated surface vacancies
Figure 4 shows the formation energies of isolated and metal vacancies as a function of layer depth in TiN and CrN. Layer 0 denotes the outermost surface layer, and the layer index increases toward the centre of the slab, as illustrated in Figure 4(a). Changing the chemical potential shifts the formation energies of a given vacancy type by the same amount at every depth, and the variation with the layer index reflects the local surface environment.

Figure 4. Layer-resolved formation energies, , of isolated vacancies at the TiN(001) and CrN(001) surfaces. (a) Slab geometry and layer indexing, with L0 denoting the outermost surface layer and increasing layer index indicating increasing depth into the slab. (b,c) Formation energies of and the respective metal vacancy at the N-rich limit for TiN and CrN. (d,e) Analogous formation energies at the N-poor/TM-rich limit. The same phase stability constrained chemical potential limits are used as in the bulk calculations. Dashed lines connecting the discrete layer calculations are guides to the eye.
In TiN, is preferred over at all sampled depths under N-poor conditions. The formation energies at L0, L2, L3, and L5 are , , , and eV, respectively, and differ by less than 0.06 eV. L1 is the clear exception, with eV, 0.609 eV above the L5 value. The depth dependence of arises mainly from an energetic penalty for the first subsurface site rather than from a gradual variation with distance from the surface. A surface N atom is already undercoordinated, whereas an N atom in L1 remains part of the subsurface Ti-N network while also bonding to the undercoordinated, outermost layer. Removing N from L1 is accompanied by minimal top-layer rumpling, from 0.175 to 0.195 Å and changes of approximately +0.13% and +0.08% in the first two interlayer spacings. The local RMS displacement is also small, 0.035 Å. By L2 and L3, the formation energies are already close to the deepest-layer value. shows the opposite response at L1. Under N-rich conditions, its formation energy decreases from eV at L5 to eV at L1, a stabilisation of 0.552 eV. This configuration also produces a pronounced surface relaxation since the top-layer rumpling increases from 0.175 to 0.331 Å, while the first two interlayer spacings contract by approximately 0.13% and 0.23%. The local RMS displacement at L1 is 0.046 Å, smaller than the 0.069 Å obtained for a surface . Therefore, the L1 stabilisation coincides with a particular vertical rearrangement of the surface Ti and N sublattices rather than a larger overall displacement of the neighbouring atoms.
The chemical-potential-driven vacancy sublattice switching observed in bulk TiN persists throughout the slab. At the N-poor limit, is lower in formation energy than at all six depths, while the ordering is reversed at the N-rich limit. The crossover occurs between and eV depending on depth, compared with eV in the bulk. The largest shift occurs at L1, where the destabilisation of and stabilisation of move the crossover to eV.
CrN retains its bulk preference for at every sampled depth and at both chemical potential limits. The strongest near-surface stabilisation occurs for at L0 and L1, where the formation energies are 0.460 and 0.541 eV lower, respectively, than at L5. The L1 configuration increases the top-layer rumpling from 0.037 to 0.161 Å, while the first two interlayer spacings change by only +0.06% and +0.01%. The electronic and magnetic responses are also the strongest for . For Cr atoms within 5 Å of the vacancy, the mean Hirshfeld charge changes from approximately at L5 to at L1 and at L0. The maximum local Cr moment reaches for L1 , compared with at L0 and at L5. Thus, L1 stabilisation coincides with enhanced surface rumpling and a particularly strong local magnetic response. The Hirshfeld charge variations remain modest across the sampled depths, indicating that charge redistribution is only one component of the stabilisation mechanism. shows a weaker depth dependence. Its formation energy is approximately higher at L0 than at L5 and reaches its lowest value at L2, which is below that at L5. The maximum local Cr moments remain within approximately - across the sampled layers, and the nearby Cr Hirshfeld charges approach away from the surface. An L1 produces a larger surface rumpling than the L2 configuration despite not being the lowest-energy site, showing that the magnitude of structural distortion alone does not determine the depth preference. The deepest slab layer reproduces the bulk vacancy ordering, although its absolute formation energy is not identical to the bulk value. For , the L5-bulk difference, which is the deepest slab reference is approximately in TiN and in CrN, while the differences for and are approximately and .
The surface calculations preserve the main bulk contrast. TiN retains its chemical potential-driven switch between N- and Ti-sublattice vacancies, with the first subsurface layer selectively destabilising and stabilising . CrN retains its preference for throughout the allowed chemical potential range, with additional stabilisation of N vacancies in the surface and first subsurface layers.
Surface pair vacancy association
To separate the vacancy-vacancy association from the independent depth preference of each defect, each surface pair was referenced to isolated vacancies occupying the same layers as the respective vacancies in the pair. A positive indicates an energetic gain from the association at a fixed layer occupancy. In Figure 5(a,Figure 5b), the N-N and Ti-Ti/Cr-Cr pairs are shown, respectively. The horizontal axis is the unsigned layer-index separation, , where denotes vacancies in the same layer. For the mixed Ti-N and Cr-N pairs, as shown in Figure 5(c) and Figure 5(d), the sign is retained using . Since the layer index increases into the slab, places closer to the surface, places closer to the surface, and denotes a same-layer pair. Several configurations occur at a given because the same layer separation can be realised at different absolute depths. The faint symbols show the individually calculated configurations, while the larger connected symbols show the mean at each layer separation. The mean values are used only to highlight the overall dependence on layer separation. The individual configurations are retained because does not uniquely define the absolute depth, and in CrN, the magnetic Cr sublattice can additionally modify the interaction.

Figure 5. Surface vacancy-pair association energies, , in TiN and CrN. (a,b) Same-sublattice N-N and TM-TM pairs as a function of the unsigned layer-index separation, , for TiN and CrN, respectively. (c,d) Mixed TM-N pairs plotted using the signed separation . Positive places closer to the surface, negative places closer to the surface, and denotes vacancies in the same layer. Faint symbols show individual configurations with different absolute layer positions, while larger symbols and dashed lines show the mean at each layer separation. Positive indicates stabilization of the paired configuration relative to isolated vacancies occupying the same respective layers.
In TiN, the same sublattice vacancies show no tendency to associate (Figure 5(a)). Across all sampled configurations, the mean association energies are eV for N-N pairs and eV for Ti-Ti pairs. N-N association becomes slightly positive for some larger layer separations, with mean values of and eV at and 4, respectively; however, no strong or systematic N-vacancy pairing tendency emerges. Ti-Ti shows an aversion to association, particularly for vacancies in the same or adjacent layers, where the mean association energies are and eV, respectively. Mixed - pairs behave differently (Figure 5(c)), although the interaction remains strongly configuration dependent. Same-layer pairs have a mean of eV. For adjacent layers, the mean increases to eV when is closer to the surface (), compared with eV for the reverse orientation (). The strongest calculated TiN mixed pair, with in L0 and in L1, has eV. Reversing the ordering to in L0 and in L1 gives only eV. The latter arrangement closely matches the independently preferred isolated vacancy depths identified above. Thus, a strong local pair interaction can occur for a particular near-surface geometry without necessarily coinciding with the arrangement selected by isolated vacancy energies. Beyond the adjacent layers, the mean Ti-N interaction rapidly approaches zero and can become slightly negative, showing that the surface TiN interaction is short-ranged and sensitive to the layer arrangement.
With regard to the structural response, the mean local RMS displacement within 5 Å is 0.047 Å for N-N pairs, 0.052 Å for mixed Ti-N pairs, and 0.069 Å for Ti-Ti pairs. Thus, the Ti-Ti pairs produce the largest structural response, despite having the lowest affinity to associate. Similarly, the mean local Ti-N bond length changes are approximately , , and Å for N-N, Ti-N, and Ti-Ti pairs, respectively. This implies that the energetic preference for the selected mixed configurations cannot be attributed to the magnitude of atomic relaxation.
The surface results are consistent with the weak association found in bulk TiN, where the mean Ti-N pair association energy is +0.132 eV compared to +0.036 eV over the sampled surface configurations. Individual near-surface arrangements can nevertheless be more strongly associated than the sampled bulk pairs, demonstrating that the surface broadens the range of possible pair interactions rather than introducing a general attraction. While the isolated-vacancy calculations show that the chemical environment determines which sublattice is preferentially depleted ( is stable toward N-poor conditions), becomes stable in the N-rich limit. The pair calculations show that vacancies on either sublattice have little energetic incentive to form same-sublattice pairs. At low vacancy concentrations, TiN non-stoichiometry is expected to be controlled primarily by vacancy formation and depth segregation, while mixed Ti-N associations become relevant only for selected local configurations.
CrN shows a qualitatively different pair-association landscape (Figure 5(b,Figure 5d)). Similar to the Ti-Ti pairs, the Cr-Cr pairs also show no affinity towards association, with an overall mean of approximately −0.493 eV. N-N interactions exhibit a distinct surface-induced feature; at , all three sampled configurations tend to associate, with energies between +0.266 and +0.455 eV and a mean of +0.355 eV. This contrasts with bulk CrN, where the sampled N-N association energies remain slightly negative over the first six neighbour shells. Therefore, the surface can stabilise selected N-vacancy arrangements that are not favoured in the bulk. The dominant CrN interaction nevertheless remains mixed - association [Figure 5(d)]. All sampled mixed surface configurations have positive , spanning +0.051 to +1.664 eV, with an overall mean of +0.811 eV. The same layer pairs are the strongest on average at +1.174 eV. Adjacent layer configurations also remain strongly associated, with mean values of +1.093 eV when lies closer to the surface () and +0.942 eV for the reverse ordering (). Association generally decreases as the vacancies become more widely separated in the layer index, producing a broad maximum at in Figure 5(d), but remains positive even for the largest sampled separations. The spread at a given shows that the absolute depth remains important.
Therefore, the CrN surface preserves the strong mixed-vacancy tendency found in the bulk while making it more sensitive to the local environment. The bulk mixed pairs have a mean association energy of +1.053 eV over the first six neighbour shells, compared with +0.811 eV for the sampled surface configurations. The average stabilisation is consequently reduced by approximately 0.24 eV at the surface. However, the strongest surface configuration, +1.664 eV, exceeds the bulk 1NN value of +1.483 eV. Therefore, the surface expands the interaction-energy distribution by introducing additional dependence on depth, orientation, and magnetic sublattice. The local structural, electronic, and magnetic response is consistent with this distinction. The mean local RMS displacement within 5 Å is 0.028 Å for N-N pairs, 0.051 Å for mixed Cr-N pairs, and 0.073 Å for Cr-Cr pairs. As in TiN, the largest structural distortion occurs for the pair family which has negative association energies. In the magnetic response, N-N pairs produce the largest mean maximum local Cr moment of 3.51 , compared with 3.03 for mixed Cr-N pairs and 2.87 for Cr-Cr pairs with the pristine value being 2.83 . The enhanced moments around the N-N pairs are associated with the reduced N coordination of the neighbouring Cr atoms, which produces a stronger local electronic perturbation. When a Cr vacancy is associated with an N vacancy, this perturbation is partially reduced, and the largest local Cr moment shifts closer to the pristine value. This trend is accompanied by a systematic change in the nearby Cr Hirshfeld charge, from approximately −0.726 for N-N pairs to −0.766 for mixed Cr-N pairs and −0.800 for Cr-Cr pairs. Both the charge and magnetic responses show that the local electronic perturbation is strongest for N-vacancy-rich environments and is reduced when is introduced into the defect complex.
The surface pair calculations answer the question posed in the Introduction differently for each material. TiN largely preserves its bulk defect hierarchy: chemical potential determines which vacancy sublattice is populated, surface depth controls where those vacancies preferentially reside, and pair association remains weak except for selected mixed near-surface geometries. CrN retains the strong bulk preference for mixed Cr-N association, but the free surface introduces pronounced depth, orientation, and magnetic-sublattice dependence and additionally stabilises selected N-N arrangements. The dilute bulk hierarchy establishes the overall trend, while near-surface vacancy organisation is further shaped by depth, orientation, and the local surface environment.
Three- and four-vacancy surface clusters
The pair calculations establish whether two vacancies gain energy by associating at a fixed layer occupancy. To determine whether these pairwise interactions develop into compact multivacancy aggregates, three- and four-vacancy surface configurations were examined (Figure 6). The configurations were chosen for a targeted comparison with compact bulk motifs rather than an exhaustive sampling of all possible surface arrangements. To assess the sensitivity of these trends to the initial geometry-led sampling, additional motifs were constructed using the independently determined isolated vacancy depth preferences and strong layer-resolved pair interactions. For this comparison, the association energy was referenced to isolated vacancies occupying the lowest energy surface or subsurface layers. A positive indicates that the compact aggregate is energetically stabilised, even after accounting for the energy gained when the constituent vacancies separately occupy their preferred depths.

Figure 6. Surface vacancy depth preference and representative higher-order vacancy association in TiN(001) and CrN(001). The TiN (top) and CrN (bottom) rows show the independently preferred sampled depths of the isolated vacancy species together with representative compact surface clusters. For the cluster association energies, the separated reference state contains two isolated vacancies of each species at their respective preferred sampled depths; one representative structure of each isolated vacancy type is shown for clarity. The illustrated structures represent energetic reference states. Layer indices L0, L1, . . . are counted inward from the outermost surface layer. Positive indicates that the compact cluster is stabilised relative to the preferred-depth separated-vacancy reference. The TiN motif is destabilised, with eV/vac, whereas the CrN motif remains stabilised, with eV/vac. Additional preferred-depth and pair-informed configurations are reported in the Supplementary Information to assess the sensitivity of these trends to the initial motif selection.
In TiN, none of the investigated compact three- or four-vacancy configurations satisfies this condition. The and clusters have association energies of and eV per vacancy, respectively, while the and values are and eV per vacancy. Compact mixed configurations are also above the separated-vacancy reference, with , , and having values of , , and eV, respectively. The extension from vacancy pairs to the sampled three- and four-vacancy configurations does not strengthen the tendency to aggregate. Although select - pairs show positive association energies for particular layer combinations, these configurations do not coincide with the preferred depths of the isolated vacancies. For the sampled larger TiN clusters, either the local association itself is insufficient to stabilise the aggregate, or any local energetic gain is outweighed by the cost of moving vacancies away from their preferred depths. The contrast with bulk TiN is particularly clear for the compact cluster, for which changes from eV in the bulk to eV at the surface. Thus, the compact mixed clustering tendency observed for this bulk motif does not extend to the surface. The energetic penalty for compact Ti-vacancy-rich aggregation is accompanied by a substantially larger structural response than that of the analogous N-vacancy clusters. The local RMS displacement within 5 Å increases from 0.053 and 0.057 Å for and to 0.114 and 0.132 Å for and , respectively. The distinction is also visible in the surface rumpling, where the top-layer rumpling changes by only 0.011 Å for the compact N-vacancy clusters, but by 0.208 and 0.281 Å for and , respectively, indicating that the stronger energetic penalty for compact Ti-vacancy aggregation coincides with a much larger local and surface rearrangement.
CrN retains a stronger tendency toward mixed-vacancy aggregation. The compact N-only and surface clusters have and eV per vacancy, respectively, and do not associate. In contrast, all investigated mixed Cr-N clusters have positive association energies. Depending on the Cr magnetic sublattice, gives - eV per vacancy and gives - eV per vacancy, while gives eV per vacancy. Mixed Cr-N association therefore survives beyond the pair level even when the competing depth preference of the isolated vacancies is included. The magnitude of this stabilisation is substantially lower than that of bulk CrN. The compact bulk and clusters have association energies of and eV per vacancy, respectively, compared with at most and eV per vacancy at the surface. For , the association energy decreases from +1.188 eV per vacancy in bulk to +0.431 eV per vacancy at the surface, a reduction of 0.757 eV per vacancy. Mixed Cr-N clustering remains energetically favourable at the surface, with a reduced association energy because the separated vacancies gain additional stabilisation from their preferred near-surface positions. Consistent with the pair calculations, the stronger mixed Cr-N vacancy association occurs without a larger structural distortion. The compact and clusters have values of approximately 0.055 and 0.056 Å, respectively, while the mixed clusters span 0.051-0.074 Å. These clusters can exhibit much stronger association without an accompanied larger structural displacement. In the magnetic response, the compact N-only clusters raise the maximum local Cr moment to approximately 4.00 , whereas the mixed clusters generally reduce this response. The configurations give maximum local Cr moments of approximately 2.95-3.00 and the configurations give 3.20-3.27 . The configurations show a broader 3.05-3.67 range. Thus, the association of Cr and N vacancies partially moderates the strong local magnetic perturbation produced by N vacancies, consistent with an additional electronic and magnetic response accompanying the mixed Cr-N association.
The three- and four-vacancy calculations extend the bulk-surface comparison beyond the dilute pair limit. In TiN, compact cluster growth is suppressed near the surface because vacancy-vacancy association must compete with the energetic preference of individual vacancies at different surface or subsurface depths. This differs from the bulk, where the association is governed primarily by the cluster composition and local geometry. Consequently, even though the selected mixed Ti-N pairs show positive layer-matched association energies, the sampled larger aggregates do not remain stabilised when referenced to separated vacancies occupying their preferred depths. In CrN, by contrast, the strong bulk preference for mixed Cr-N association persists from pairs to three- and four-vacancy clusters, although its magnitude is substantially reduced near the surface. Additional converged sensitivity clusters constructed from the isolated-vacancy depth preferences and strong layer-resolved pair interactions preserve this qualitative contrast. Mixed higher-order association remains unfavourable in TiN relative to preferred-depth isolated vacancies, whereas the sampled mixed Cr-N complexes remain positively associated. The preferred-depth motif in CrN also remains unfavourable (Supplementary Table S6b). The resulting picture shows a material dependence where the investigated TiN surface is better described by vacancies that remain dispersed and segregate to preferred depths, whereas CrN requires explicit consideration of mixed vacancy-vacancy correlations even in the near-surface region. This distinction is relevant because vacancy concentration and arrangement are known to influence the electronic and mechanical properties of substoichiometric transition metal nitrides [48], while vacancy segregation and clustering near TiN surfaces and interfaces have also been implicated in the early stages of oxidation [8]. The present results show that near-surface vacancy configurations cannot be directly inferred from bulk association energies. Changes in the vacancy population may alter not only the overall non-stoichiometry of the TiN and CrN coatings but also whether vacancies remain separated, segregate to particular depths, or form mixed vacancy complexes near the surface.
Conclusion
This study provides a comparative first-principles description of native vacancy energetics in rocksalt TiN and CrN, connecting chemical-potential-dependent vacancy formation, vacancy association, higher-order clustering, and surface segregation within a common framework. Despite their similar crystal structures, the two nitrides accommodate vacancies differently. In TiN, the preferred isolated vacancy changes across the chemical potential range as is favoured under N-poor/Ti-rich conditions and is favoured under N-rich/Ti-poor conditions. In CrN, no similar crossover occurs, and remains the lower-energy isolated vacancy throughout the chemical potential range.
The vacancy association further distinguishes between the two materials. Mixed TM-N vacancy pairs are the dominant attractive interaction in both TiN and CrN, but the association is substantially stronger in CrN. In bulk TiN, most pair and cluster interactions remain weak, although the compact motif is stabilised relative to isolated vacancies. CrN retains a strong mixed - association from pairs to compact three- and four-vacancy clusters. The dependence of the association energy on cluster geometry, together with the stabilisation of selected N-vacancy motifs, shows that vacancy arrangement is important in addition to vacancy concentration. Such short-range organisation is relevant because the distribution of vacancies can modify the local electronic, magnetic, and mechanical responses of substoichiometric transition metal nitrides.
The surface introduces additional competition between vacancy-vacancy association and the independent depth preference of each vacancy. In TiN, is favoured in the outermost layer, whereas is most strongly stabilised in the first subsurface layer. Consequently, the local attraction found for selected mixed pairs is insufficient to stabilise the sampled compact higher-order aggregates relative to vacancies occupying their preferred depths. In CrN, is strongly stabilised in the near-surface region while shows only a weaker subsurface preference. This preferential stabilisation of N vacancies implies a tendency towards an N-deficient and, therefore, locally Cr-rich near-surface composition. Mixed - association nevertheless remains strong enough to survive at the surface, particularly for same-layer and adjacent-layer configurations, although higher-order cluster stabilisation is reduced relative to the bulk.
Thus, across both bulk and surface environments, TiN is comparatively defect-dispersive, with vacancy populations strongly governed by the chemical potential and, near the surface, by segregation to preferred depths. CrN is more defect-associative, with as the preferred isolated vacancy, while and show a strong tendency to associate into mixed complexes in both bulk and near-surface environments. The stronger association in CrN is not accompanied by a larger structural distortion, whereas substantial Cr-centred magnetic responses occur around the vacancy motifs, consistent with an important electronic and magnetic contribution to the TiN-CrN contrast. These results show that bulk vacancy energetics alone are insufficient to predict near-surface defect organisation and that both segregation and vacancy-vacancy correlations must be considered when relating coating composition to surface and interface behaviour. Such differences in near-surface vacancy populations and organisation may also influence subsequent oxidation. Future work will build on the present results by first examining oxygen incorporation at these vacancy configurations and then determining how the resulting oxidised defect environments affect hydrogen uptake.
Conflicts of interest
The authors declare no conflicts of interest.
Data availability
The data supporting this article are included in the Supplementary Information and are available in Zenodo at https://doi.org/10.5281/zenodo.24495842.
Acknowledgements
This work was conducted at the Advanced Research Center for Nanolithography, a public–private partnership between the University of Amsterdam (UvA), Vrije Universiteit Amsterdam (VU), Rijksuniversiteit Groningen (RUG), the Netherlands Organization for Scientific Research (NWO), and the semiconductor equipment manufacturer ASML. This work made use of the Dutch national e-infrastructure with the support of the SURF Cooperative using grant no. EINF-12786, EINF-17838 and by NWO Domain Science under grant number 2025.051. The authors thank SURF (www.surf.nl) for the support in using the National Supercomputer Snellius. E.O. is grateful for a WISE Fellowship from the NWO and support via Holland High Tech through a public-private partnership in research and development within the Dutch top sector of High-Tech Systems and Materials (HTSM).
Supplementary Information for “Native vacancy energetics and association in TiN and CrN: chemical potential dependence, clustering, and surface effects”
Barsha Bhattacharjee; Emilia Olsson
Chemical-potential stability limits
The chemical potentials are expressed relative to the corresponding elemental reference states,
with and . Competing phases provide additional constraints on the accessible chemical-potential range.
For TiN, the elemental and competing-phase energies were evaluated consistently within PBE/GGA. The N-rich limit corresponds to the elemental-N reference, whereas the N-poor limit is constrained by TiN. For CrN, the sampled CrN competing phases were evaluated consistently at the PBE/GGA level to assess possible competing-phase constraints. The CrN defect calculations were performed using DFT+ with eV, and the corresponding Cr/CrN/N DFT+ reference set was used to define the numerical N-rich and N-poor limits entering the defect formation energies. A complete DFT+ competing-phase construction was not used because transfer of the same Cr-site to chemically and magnetically distinct CrN phases was not independently validated. Accordingly, GGA and GGA+ total energies were not combined within a single convex-hull or chemical-potential construction.
Table S1 gives the numerical limits used in the defect calculations, while Figure S1 shows the phase-stability constructions and reference windows.
Relation between vacancy formation and association energies
The vacancy association energy can be written in terms of the defect formation energies introduced in the main text. For a configuration containing transition-metal vacancies, , and nitrogen vacancies, ,
Using the defect formation-energy expression
the formation energies of the two isolated vacancy types are
because formation of a vacancy corresponds to removal of one atom from the pristine supercell. Similarly, for a configuration containing transition-metal vacancies and nitrogen vacancies,
Substitution into Eq. gives
The chemical-potential terms cancel because the associated configuration and the isolated-vacancy reference contain the same total numbers of removed transition-metal and nitrogen atoms. The association energy can therefore be written entirely in terms of DFT total energies:
Although the individual defect formation energies depend on the selected chemical potentials, the association energy for configurations of identical composition does not. With the sign convention used in this work, positive indicates that the associated vacancy configuration is lower in energy than the corresponding isolated-vacancy reference. This quantity is equivalent to the conventional vacancy binding energy with the same positive-for-binding sign convention.
Bulk vacancy-pair association
The numerical data underlying the bulk pair-association analysis are listed in Table S2. Figure S2 provides the neighbour-shell convention used to compare the pair geometries.
| Material | Pair | Shell | (Å) | (eV) |
| TiN | - | 1NN | 3.0033 | -0.1980 |
| TiN | - | 2NN | 4.2471 | -0.2052 |
| TiN | - | 3NN | 5.2016 | +0.1328 |
| TiN | - | 4NN | 6.0063 | -0.0217 |
| Material | Pair | Shell | (Å) | (eV) |
| 5NN | 6.7152 | +0.0449 | ||
| 6NN | 7.3563 | +0.0370 | ||
| TiN | - | 1NN | 2.1236 | +0.2512 |
| 2NN | 3.6782 | +0.0938 | ||
| 3NN | 4.7485 | +0.1701 | ||
| 4NN | 6.3707 | +0.0088 | ||
| 5NN | 7.0431 | +0.1466 | ||
| 6NN | 7.6566 | +0.1220 | ||
| TiN | - | 1NN | 3.0032 | -0.5102 |
| 2NN | 4.2472 | -0.0759 | ||
| 3NN | 5.2017 | -0.0095 | ||
| 4NN | 6.0064 | +0.0200 | ||
| 5NN | 6.7154 | +0.1353 | ||
| 6NN | 7.3563 | +0.0105 | ||
| CrN | - | 1NN | 2.8923 | -0.0370 |
| 2NN | 4.1541 | -0.0208 | ||
| 3NN | 5.1372 | -0.0458 | ||
| 4NN | 5.9429 | -0.0875 | ||
| 5NN | 6.6364 | -0.0805 | ||
| 6NN | 7.1448 | -0.0562 | ||
| CrN | - | 1NN | 2.0743 | +1.4828 |
| 2NN | 3.4886 | +0.9724 | ||
| 3NN | 4.6059 | +1.0571 | ||
| 4NN | 6.2288 | +0.9889 | ||
| 5NN | 6.8418 | +0.9119 | ||
| 6NN | 7.4591 | +0.9060 | ||
| CrN | - | 1NN | 2.9711 | -0.3207 |
| 2NN | 4.1537 | -0.0243 | ||
| 3NN | 5.0998 | -0.1756 | ||
| 4NN | 5.9429 | -0.1933 | ||
| 5NN | 6.6415 | -0.0907 | ||
| 6NN | 7.2552 | -0.1723 |
Table S2. Bulk vacancy-pair association energies underlying Figure 2. The shell index denotes the geometrical neighbour shell used for comparison between TiN and CrN. Association energies are defined relative to isolated vacancies of identical composition, so the chemical-potential terms cancel. Positive denotes energetic stabilization of the paired configuration relative to the corresponding isolated vacancies.

Figure S2. Schematic of the bulk mixed TM-N vacancy-pair neighbour shells used for the pair-association analysis. The six panels define the 1NN-6NN separations used in the main-text comparison; the corresponding fcc shell sequence also applies to same-sublattice N-N and TM-TM pairs.
Bulk three- and four-vacancy association
Table S3 reports the three- and four-vacancy motifs considered in TiN and CrN. Association energies are referenced to isolated vacancies of identical composition, and both the total association energy and the value per vacancy are reported.
| Material | Composition | Motif | (eV) | (eV) | |
| CrN | 3 | bent | -0.089 | -0.030 | |
| CrN | 3 | compact | -0.082 | -0.027 | |
| CrN | 3 | linear | +0.840 | +0.280 | |
| CrN | 3 | compact | +2.762 | +0.921 | |
| CrN | 3 | compact | +2.208 | +0.736 | |
| CrN | 3 | bent | -0.331 | -0.110 | |
| CrN | 3 | compact | -1.003 | -0.334 | |
| CrN | 3 | linear | -1.198 | -0.399 | |
| Material | Composition | Motif | (eV) | (eV) | |
| 4 | compact | -0.152 | -0.038 | ||
| 4 | linear | -0.152 | -0.038 | ||
| 4 | planar | -0.133 | -0.033 | ||
| 4 | compact | +4.754 | +1.188 | ||
| 4 | segregated zones | -0.906 | -0.227 | ||
| 4 | separated pairs | +2.942 | +0.736 | ||
| 4 | compact† | - | - | ||
| 4 | linear | -1.900 | -0.475 | ||
| 4 | planar | -2.200 | -0.550 | ||
| TiN | 3 | bent | -0.593 | -0.198 | |
| 3 | compact | -0.665 | -0.222 | ||
| 3 | linear | -0.454 | -0.151 | ||
| 3 | compact | +0.280 | +0.093 | ||
| 3 | compact | +0.248 | +0.083 | ||
| 3 | bent | -1.113 | -0.371 | ||
| 3 | compact | -1.373 | -0.458 | ||
| 3 | linear | -0.963 | -0.321 | ||
| 4 | compact | -1.381 | -0.345 | ||
| 4 | linear | -0.424 | -0.106 | ||
| 4 | planar | -1.028 | -0.257 | ||
| 4 | compact | +0.868 | +0.217 | ||
| 4 | segregated zones | -0.178 | -0.045 | ||
| 4 | separated pairs | +0.409 | +0.102 | ||
| 4 | compact | -2.626 | -0.656 | ||
| 4 | linear | -1.491 | -0.373 | ||
| 4 | planar | -2.053 | -0.513 |
Table S3. Association energies of the bulk three- and four-vacancy motifs considered in TiN and CrN. Association energies are referenced to isolated vacancies of identical composition. Positive values indicate energetic stabilization of the combined vacancy motif relative to the isolated vacancies. The total association energy and the value normalized by the total number of vacancies are both reported.

Figure S3. Additional representative bulk vacancy-cluster geometries considered in the association-energy analysis: (a) bent , (b) segregated-zone , (c) planar , and (d) separated-pair configurations. In the separated-pair motif, each TM-N vacancy pair occupies neighbouring lattice sites, while the two pairs are positioned far apart within the supercell. These configurations complement the representative compact and linear motifs shown in Figure 3 in the main text.
Note. † A reliable final energy could not be established for this configuration; therefore, its association energy is not reported.
Surface isolated-vacancy energetics
The surface calculations use the same chemical-potential reference states and limits as the bulk calculations. In the main text, absolute isolated-vacancy formation energies are shown under N-rich conditions. For completeness, Table S4 reports the N-rich and N-poor/TM-rich values for every sampled layer. denotes the outermost surface layer, with increasing layer index implying progressively deeper layers and representing the central/deepest sampled layer of the slab.
| Material | Vacancy | Layer | (eV) | (eV) |
| TiN | L0 | -0.535 | +2.576 | |
| L1 | +0.091 | +3.202 | ||
| L2 | -0.490 | +2.621 | ||
| L3 | -0.476 | +2.635 | ||
| L4 | -0.348 | +2.763 | ||
| L5 | -0.518 | +2.593 | ||
| TiN | L0 | +2.925 | -0.186 | |
| L1 | +2.399 | -0.712 | ||
| L2 | +2.783 | -0.328 | ||
| L3 | +2.898 | -0.213 | ||
| L4 | +2.863 | -0.248 | ||
| L5 | +2.951 | -0.160 | ||
| CrN | L0 | +5.105 | +3.424 | |
| L1 | +4.763 | +3.081 | ||
| L2 | +4.725 | +3.043 | ||
| L3 | +4.828 | +3.147 | ||
| L4 | +4.806 | +3.125 | ||
| L5 | +4.836 | +3.155 | ||
| CrN | L0 | +0.435 | +2.116 | |
| L1 | +0.354 | +2.035 | ||
| L2 | +0.969 | +2.651 | ||
| L3 | +0.818 | +2.499 | ||
| L4 | +0.950 | +2.631 | ||
| L5 | +0.895 | +2.577 |
Table S4. Absolute formation energies of isolated surface vacancies in TiN and CrN as a function of layer index. L0 denotes the outermost surface layer and increasing layer index corresponds to progressively deeper layers. The same bulk chemical-potential reference states are used for the surface calculations. The N-rich values are those used in the main-text surface-depth figure; the N-poor/TM-rich values are included here for comparison.
Note. For CrN, the values are averages over the nearly degenerate Cr↑ and Cr↓ vacancy configurations. The L4 formation energy is based on the converged geometry-optimization result.
Surface vacancy-pair association
Surface vacancy-pair association energies were evaluated relative to isolated vacancies placed in the same layers as the vacancies in each pair. This layer-matched reference removes the independent depth-segregation contribution from the vacancy-vacancy interaction. Because the isolated and paired states have identical composition, the association energy is independent of the selected N-rich or N-poor chemical-potential limit. Table S5 summarizes the values used for the surface pair-association analysis
| Material | Pair family | Mean (eV) | Min. (eV) | Max. (eV) | ||
| TiN | N-only | 0 | 6 | -0.216 | -0.653 | +0.065 |
| TiN | N-only | 1 | 5 | -0.219 | -0.268 | -0.186 |
| TiN | N-only | 2 | 4 | -0.170 | -0.287 | -0.018 |
| TiN | N-only | 3 | 3 | +0.029 | +0.018 | +0.050 |
| TiN | N-only | 4 | 2 | +0.059 | +0.020 | +0.098 |
| TiN | N-only | 5 | 1 | -0.030 | -0.030 | -0.030 |
| TiN | mixed TM-N | 0 | 6 | +0.056 | -0.028 | +0.180 |
| TiN | mixed TM-N | 1 | 10 | +0.145 | +0.003 | +0.491 |
| TiN | mixed TM-N | 2 | 8 | +0.021 | -0.037 | +0.075 |
| TiN | mixed TM-N | 3 | 6 | -0.116 | -0.259 | -0.010 |
| TiN | mixed TM-N | 4 | 4 | -0.001 | -0.024 | +0.032 |
| TiN | mixed TM-N | 5 | 2 | +0.017 | -0.004 | +0.038 |
| TiN | metal-only | 0 | 6 | -0.607 | -0.803 | -0.413 |
| TiN | metal-only | 1 | 5 | -0.661 | -0.757 | -0.572 |
| TiN | metal-only | 2 | 4 | -0.236 | -0.335 | -0.164 |
| TiN | metal-only | 3 | 3 | -0.005 | -0.070 | +0.072 |
| TiN | metal-only | 4 | 2 | -0.118 | -0.208 | -0.029 |
| TiN | metal-only | 5 | 1 | -0.015 | -0.015 | -0.015 |
| CrN | N-only | 0 | 5 | -0.177 | -0.277 | +0.044 |
| CrN | N-only | 1 | 4 | +0.037 | -0.034 | +0.109 |
| CrN | N-only | 2 | 3 | +0.355 | +0.266 | +0.455 |
| CrN | N-only | 3 | 1 | +0.055 | +0.055 | +0.055 |
| CrN | N-only | 4 | 1 | +0.011 | +0.011 | +0.011 |
| CrN | N-only | 5 | 1 | -0.042 | -0.042 | -0.042 |
| CrN | mixed TM-N | 0 | 12 | +1.174 | +0.627 | +1.664 |
| CrN | mixed TM-N | 1 | 20 | +1.017 | +0.122 | +1.616 |
| CrN | mixed TM-N | 2 | 16 | +0.666 | +0.194 | +0.894 |
| CrN | mixed TM-N | 3 | 12 | +0.626 | +0.051 | +0.888 |
| CrN | mixed TM-N | 4 | 8 | +0.449 | +0.086 | +0.705 |
| CrN | mixed TM-N | 5 | 4 | +0.552 | +0.412 | +0.689 |
| CrN | metal-only | 0 | 22 | -0.454 | -0.656 | +0.037 |
| CrN | metal-only | 1 | 17 | -0.706 | -0.867 | -0.300 |
| CrN | metal-only | 2 | 11 | -0.490 | -0.598 | -0.258 |
| CrN | metal-only | 3 | 8 | -0.388 | -0.481 | -0.286 |
| CrN | metal-only | 4 | 5 | -0.326 | -0.397 | -0.222 |
| Material | Pair family | Mean (eV) | Min. (eV) | Max. (eV) | ||
| 5 | 4 | -0.225 | -0.229 | -0.221 |
Table S5. Table S5: Summary of layer-matched surface vacancy-pair association energies in TiN and CrN. The table reports, for each pair family and absolute layer separation , the number of sampled configurations together with the mean and range of . The isolated-vacancy references are taken in the same layers as the vacancies in each pair, so the quantity isolates vacancy-vacancy association from the independent segregation tendency of each vacancy. Positive values indicate energetic stabilization of the paired configuration. The configurations with both orientations for mixed TM-N pairs are pooled at each .
Higher-order surface vacancy association
The reference state for higher-order surface clusters comprises the number and species of isolated vacancies occupying their individually lowest-energy sampled surface or subsurface sites. Table S6a tests whether cluster formation remains energetically stabilized after allowing the separated vacancies to occupy their preferred depths. The isolated-vacancy reference sites are and for TiN, and and for CrN. For a given vacancy species, the relative layer ordering is independent of the chemical-potential limit because the same reservoir contribution shifts the formation energy at every sampled depth. The configurations in Table S6a were selected as compact near-surface motifs based on their geometry. The vacancies were not placed at their individually preferred depths.
| Material | Motif | Layers | (eV) | (eV) | |
| TiN | compact | 3 | 4+4+5 | -1.110 | -0.370 |
| compact | 3 | 0+1+1 | -2.151 | -0.717 | |
| compact | 3 | 0+1+2 | -1.283 | -0.428 | |
| compact | 3 | 0+1+1 | -1.538 | -0.513 | |
| compact | 4 | 4+4+4+5 | -1.825 | -0.456 | |
| compact | 4 | 0+1+1+1 | -4.167 | -1.042 | |
| compact | 4 | 0+1+2+2 | -1.382 | -0.346 | |
| CrN | compact | 3 | 0+0+1 | -0.193 | -0.064 |
| compact (Cr anchor) | 3 | 3+3+3 | +0.950 | +0.317 | |
| compact (Cr anchor) | 3 | 2+2+2 | +1.302 | +0.434 | |
| compact (Cr anchor) | 3 | 3+3+4 | +0.346 | +0.115 | |
| compact (Cr anchor) | 3 | 1+2+2 | +0.596 | +0.199 | |
| compact | 4 | 0+0+1+2 | -0.558 | -0.139 | |
| compact | 4 | 2+2+2+2 | +1.723 | +0.431 |
Table S6a. Association energies of the sampled three- and four-vacancy surface clusters. Unlike the layer-matched pair association energies in Table S5, these values are referenced to the corresponding number and species of isolated vacancies occupying their individually lowest-energy sampled surface or subsurface sites. This therefore provides a stricter reference for higher-order clustering. Positive values indicate stabilization of the cluster relative to those isolated-vacancy reference states.
To assess the sensitivity of the surface-cluster trends to the geometry-led sampling used for the original motifs, additional configurations were constructed using the independently determined isolated-vacancy depth preferences and strong layer-resolved pair interactions. For these tests, two association-energy references are distinguished. uses isolated vacancies occupying the same layers as the constituent vacancies in the cluster, whereas is the energetic cost of placing those isolated vacancies away from their individually preferred sampled depths. The preferred-depth association energy is therefore .
| Material | Configuration | Construction | (eV) | (eV) | (eV) |
| TiN | preferred-depth | −0.258 | 0.000 | −0.258 | |
| TiN | preferred-depth | −0.350 | 0.000 | −0.350 | |
| TiN | pair-informed | +0.057 | +0.576 | −0.519 | |
| CrN | preferred-depth | −0.158 | 0.000 | −0.158 | |
| CrN | pair-informed, same-layer | +0.501 | +0.025 | +0.476 | |
| CrN | pair-informed, same-layer | +0.360 | +0.012 | +0.348 | |
| CrN | preferred-depth | +0.171 | 0.000 | +0.171 | |
| CrN | pair-informed, same-layer | +0.775 | +0.018 | +0.756 |
Table S6b. Targeted sensitivity tests for higher-order surface-vacancy association. These configurations are distinct from the original geometry-led motifs in Table S6a. is referenced to isolated vacancies in the same layers as the cluster, while is referenced to isolated vacancies at their individually preferred sampled depths. All energies are reported per vacancy.
The preferred-depth CrN (L1) configuration did not yield a satisfactorily converged electronic solution; no association energy is reported.
In TiN, the preferred-depth trimer remains unfavourable, while the preferred-depth configuration gives eV, closely matching the −0.346 eV/vac obtained for the original compact motif. The pair-informed configuration is weakly stabilised relative to layer-matched isolated vacancies, but this local energetic gain is outweighed by the cost of displacing the vacancies from their preferred depths. In CrN, the preferred-depth motif remains unfavourable, whereas all sampled targeted mixed Cr-N configurations retain positive preferred-depth association energies. These sensitivity tests preserve the qualitative contrast between unfavourable higher-order mixed association in TiN and favourable mixed Cr-N association in CrN, while confirming that the magnitude of the association remains configuration dependent.
Local structural relaxation
Table S7 summarizes the local structural response of the bulk and surface vacancy configurations. Displacement statistics are evaluated relative to the pristine structure, with the local RMS and maximum displacements reported within 5 Å of the defect centre. The TM-N bond-length descriptors quantify changes in the local coordination environment.
| Region | Material | Vacancy family | (Å) | Range (Å) | (Å) | (Å) | |
| Bulk | CrN | N-only | 14 | 0.023 | 0.017–0.030 | 0.082 | −0.002 |
| Bulk | CrN | metal-only | 15 | 0.071 | 0.046–0.113 | 0.294 | −0.008 |
| Bulk | CrN | mixed TM-N | 11 | 0.053 | 0.018–0.107 | 0.245 | −0.003 |
| Bulk | TiN | N-only | 15 | 0.051 | 0.037–0.062 | 0.150 | −0.008 |
| Bulk | TiN | metal-only | 15 | 0.074 | 0.044–0.111 | 0.373 | −0.009 |
| Bulk | TiN | mixed TM-N | 11 | 0.060 | 0.030–0.084 | 0.187 | −0.007 |
| Surface | CrN | N-only | 29 | 0.028 | 0.015–0.056 | 0.167 | −0.001 |
| Surface | CrN | metal-only | 98 | 0.071 | 0.038–0.113 | 0.382 | −0.006 |
| Surface | CrN | mixed TM-N | 78 | 0.052 | 0.028–0.074 | 0.224 | −0.004 |
| Surface | TiN | N-only | 29 | 0.046 | 0.021–0.088 | 0.209 | −0.004 |
| Surface | TiN | metal-only | 29 | 0.069 | 0.036–0.132 | 0.360 | −0.005 |
| Surface | TiN | mixed TM-N | 39 | 0.055 | 0.030–0.086 | 0.220 | −0.004 |
Table S7. Summary of local structural relaxation descriptors for bulk and surface vacancy configurations. The local RMS displacement and maximum displacement are evaluated within 5 Å of the defect centre. denotes the mean local TM-N bond-length change relative to the pristine structure.
CrN magnetic response
The TiN calculations were performed spin-polarized but converged to non-magnetic solutions; consequently, no separate TiN magnetic-summary table is required. For CrN, Hirshfeld spin populations were used to characterize the local magnetic response around the vacancies. Table S8 summarizes the maximum absolute atomic spin moment in the sampled configurations.
| Region | Vacancy family | Mean max. spin () | Min. () | Max. () | |
| Bulk | N-only | 14 | 3.490 | 2.943 | 3.733 |
| Bulk | metal-only | 13 | 2.842 | 2.836 | 2.870 |
| Bulk | mixed TM-N | 11 | 3.022 | 2.918 | 3.363 |
| Surface | N-only | 29 | 3.563 | 2.938 | 4.005 |
| Surface | metal-only | 98 | 2.907 | 2.886 | 2.937 |
| Surface | mixed TM-N | 78 | 3.057 | 2.939 | 3.666 |
Table S8. Summary of the local magnetic response of CrN vacancy configurations from Hirshfeld spin populations. The reported quantity is the maximum absolute atomic spin moment in each defective structure, matching the metric discussed in the main text. TiN is not listed because the spin-polarized TiN calculations converged to non-magnetic solutions.
Surface layer relaxation and rumpling
Surface rumpling is defined as the vertical separation between the mean transition-metal and nitrogen sublattice heights within a given atomic layer. Table S9 reports the pristine layer rumpling and the mean and maximum defect-induced changes in layer position and rumpling over the sampled surface configurations.
| Material | Layer | (Å) | (Å) | max (Å) | (Å) | max (Å) |
| TiN | L0 | 0.175 | 0.003 | 0.011 | 0.045 | 0.281 |
| L1 | 0.034 | 0.003 | 0.010 | 0.061 | 0.248 | |
| L2 | 0.053 | 0.002 | 0.008 | 0.051 | 0.262 | |
| L3 | 0.016 | 0.003 | 0.010 | 0.067 | 0.221 | |
| L4 | 0.020 | 0.002 | 0.008 | 0.060 | 0.232 | |
| L5 | 0.000 | 0.001 | 0.007 | 0.052 | 0.161 | |
| L6 | 0.020 | 0.002 | 0.006 | 0.050 | 0.212 | |
| L7 | 0.016 | 0.001 | 0.004 | 0.027 | 0.066 | |
| L8 | 0.053 | 0.001 | 0.003 | 0.010 | 0.022 | |
| L9 | 0.034 | 0.001 | 0.004 | 0.009 | 0.023 | |
| L10 | 0.174 | 0.001 | 0.004 | 0.010 | 0.022 | |
| CrN | L0 | 0.037 | 0.003 | 0.015 | 0.101 | 0.433 |
| L1 | 0.010 | 0.003 | 0.012 | 0.094 | 0.277 | |
| L2 | 0.005 | 0.004 | 0.012 | 0.084 | 0.292 | |
| L3 | 0.003 | 0.003 | 0.011 | 0.085 | 0.267 | |
| L4 | 0.002 | 0.002 | 0.010 | 0.082 | 0.267 | |
| L5 | 0.000 | 0.002 | 0.008 | 0.053 | 0.268 | |
| L6 | 0.001 | 0.003 | 0.009 | 0.055 | 0.269 | |
| L7 | 0.002 | 0.003 | 0.007 | 0.025 | 0.067 | |
| L8 | 0.005 | 0.002 | 0.005 | 0.016 | 0.058 | |
| L9 | 0.009 | 0.001 | 0.004 | 0.016 | 0.042 | |
| L10 | 0.037 | 0.001 | 0.005 | 0.013 | 0.042 |
Table S9. Layer-resolved pristine rumpling and defect-induced relaxation statistics. Rumpling is defined as the vertical separation between the mean metal and nitrogen sublattice heights within a given atomic layer. is the shift of the layer mean coordinate relative to the pristine slab and is the change in rumpling. Mean and maximum absolute changes are taken over the sampled defective surface configurations.
References
- [1]H. Holleck and V. Schier. “Multilayer PVD coatings for wear protection”. In: Surface and Coatings Technology 76-77 (Nov. 1995), pp. 328–336. ISSN: 02578972. DOI: 10.1016/0257–8972(95)02555–3.DOI
- [2]J. Senf and E. Broszeit. “Wear and Corrosion Protection of Aluminum and Magnesium Alloys Using Chromium and Chromium Nitride PVD Coatings”. In: Advanced Engineering Materials 1.2 (Oct. 1999), pp. 133–137. ISSN: 1438-1656. DOI: 10.1002/(SICI)1527–2648(199910)1:2<133::AID–ADEM133>3.0.CO;2–I.doi.org/10.1002/(sici)1527-2648(199910)1:2<133::aid-adem133>3.0.co;2-i
- [3]L. Hultman. “Thermal stability of nitride thin films”. In: Vacuum 57.1 (Apr. 2000), pp. 1–30. ISSN: 0042-207X. DOI: 10.1016/S0042–207X(00)00143–3.DOI
- [4]L. Tsetseris et al. “Trapping and release of impurities in TiN: A first-principles study”. In: Physical Review B 78.9 (Sept. 2008), p. 094111. ISSN: 1098-0121. DOI: 10.1103/PhysRevB.78.094111.DOI
- [5]Moritz to Baben et al. “Origin of the nitrogen over- and understoichiometry in Ti₀.₅Al₀.₅N thin films”. In: Journal of Physics: Condensed Matter 24.15 (Apr. 2012), p. 155401. ISSN: 0953-8984. DOI: 10.1088/0953–8984/24/15/155401.
- [6]Nikhil K. Ponon et al. “Effect of deposition conditions and post deposition anneal on reactively sputtered titanium nitride thin films”. In: Thin Solid Films 578 (Mar. 2015), pp. 31–37. ISSN: 00406090. DOI: 10.1016/j.tsf.2015.02.009.DOI
- [7]Arnaud le Febvrier et al. “p-type behavior of CrN thin films via control of point defects”. In: Physical Review B 105.10 (Mar. 2022), p. 104108. ISSN: 2469-9950. DOI: 10.1103/PhysRevB.105.104108.
- [8]Janina Zimmermann, Mike W. Finnis, and Lucio Colombo Ciachi. “Vacancy segregation in the initial oxidation stages of the TiN(100) surface”. In: The Journal of Chemical Physics 130.13 (Apr. 2009). ISSN: 0021-9606. DOI: 10.1063/1.3105992.DOI
- [9]Taehun Lee et al. “Environment-dependent nanomorphology of TiN: the influence of surface vacancies”. In: Nanoscale 4.16 (2012), p. 5183. ISSN: 2040-3364. DOI: 10.1039/c2nr31266b.DOI
- [10]Ji Hoon Kang and Kwang Joo Kim. “Structural, optical, and electronic properties of cubic TiNx compounds”. In: Journal of Applied Physics 86.1 (July 1999), pp. 346–350. ISSN: 0021-8979. DOI: 10.1063/1.370736.DOI
- [11]L. M. Corliss, N. Elliott, and J. M. Hastings. “Antiferromagnetic Structure of CrN”. In: Physical Review 117.4 (Feb. 1960), pp. 929–935. ISSN: 0031-899X. DOI: 10.1103/PhysRev.117.929.DOI
- [12]D. Gall et al. “Growth of single-crystal CrN on MgO(001): Effects of low-energy ion-irradiation on surface morphological evolution and physical properties”. In: Journal of Applied Physics 91.6 (Feb. 2002), p. 3589. ISSN: 0021-8979. DOI: 10.1063/1.446239. URL: https://aip.scitation.org/doi/abs/10.1063/1.446239.
- [13]P. Subramanya Herle et al. “Synthesis of TiN, VN and CrN from ammonolysis of TiS₂, VS₂, and Cr₂S₃”. In: J. Solid State Chem. 134.1 (Nov. 1997), pp. 120–127. ISSN: 00224596. DOI: 10.1006/jssc.1997.7554.DOI
- [14]M A Gharavi et al. “Microstructure and thermoelectric properties of CrN and CrN/Cr₂N thin films”. In: Journal of Physics D: Applied Physics 51.35 (Sept. 2018), p. 355302. ISSN: 0022-3727. DOI: 10.1088/1361-6463/aad2ef.DOI
- [15]M.A. Gharavi et al. “High thermoelectric power factor of pure and vanadium-alloyed chromium nitride thin films”. In: Materials Today Communications 28 (Sept. 2021), p. 102493. ISSN: 23524928. DOI: 10.1016/j.mtcomm.2021.102493.DOI
- [16]L. Tsetseris et al. “Structure and interaction of point defects in transition-metal nitrides”. In: Physical Review B 76.22 (Dec. 2007), p. 224107. ISSN: 1098-0121. DOI: 10.1103/PhysRevB.76.224107.DOI
- [17]Damien Conétable et al. “First-Principles Study of Point Defects in Ti–N Compounds Including Oxygen Insertion – Consequences on Oxidation of Ti Alloys”. In: The Journal of Physical Chemistry C 128.34 (Aug. 2024), pp. 14477–14499. ISSN: 1932-7447. DOI: 10.1021/acs.jpcc.4c03727.
- [18]David Holec et al. “Impact of point defects on the electronic structure of paramagnetic CrN”. In: arXiv 1410.0758 (2014).arxiv.org/abs/1410.0758
- [19]Zaoli Zhang et al. “Insights into the atomic and electronic structure triggered by ordered nitrogen vacancies in CrN”. In: Physical Review B - Condensed Matter and Materials Physics 87.1 (Jan. 2013), p. 014104. ISSN: 10980121. DOI: 10.1103/PhysRevB.87.014104. URL: https://journals.aps.org/prb/abstract/10.1103/PhysRevB.87.014104.DOI
- [20]Barsha Bhattacharjee and Emilia Olsson. “Elucidating the impact of point defects on the structural, electronic, and mechanical behaviour of chromium nitride”. In: Physical Chemistry Chemical Physics 27.42 (2025), pp. 22610–22620. ISSN: 1463-9076. DOI: 10.1039/D5CP02904J.DOI
- [21]Ziqi Cui, Xiaohan Bie, and Jun Song. “Vacancy patterns in nitride precipitates and implication to hydrogen trapping and diffusion in high strength steels”. In: Computational Materials Science 248 (Feb. 2025), p. 113617. ISSN: 09270256. DOI: 10.1016/j.commatsci.2024.113617.DOI
- [22]Ziqi Cui et al. “Vacancy patterns and atomic distribution in (Ti,V) ternary nitride precipitates in steels”. In: Acta Materialia 304 (Jan. 2026), p. 121738. ISSN: 13596454. DOI: 10.1016/j.actamat.2025.121738.DOI
- [23]Zhuo Chen et al. “Direct observation of Schottky-vacancy clusters and their mechanical response in MoN/TiN superlattice”. In: Acta Materialia 283 (Jan. 2025), p. 120551. ISSN: 13596454. DOI: 10.1016/j.actamat.2024.120551.DOI
- [24]Chao Wang et al. “Surface properties of titanium nitride: A first-principles study”. In: Solid State Communications 150.29-30 (Aug. 2010), pp. 1370–1374. ISSN: 00381098. DOI: 10.1016/j.ssc.2010.04.034.DOI
- [25]Arrigo Calzolari and Alessandra Catellani. “Controlling the TiN Electrode Work Function at the Atomistic Level: A First Principles Investigation”. In: IEEE Access 8 (2020), pp. 156308–156313. ISSN: 2169-3536. DOI: 10.1109/ACCESS.2020.3017726.DOI
- [26]R. Ponce-Pérez et al. “Structural, electronic, and magnetic properties of the CrN (0 0 1) surface: First-principles studies”. In: Applied Surface Science 454 (Oct. 2018), pp. 350–357. ISSN: 0169-4332. DOI: 10.1016/J.APSUSC.2018.05.118.
- [27]C.-S. Shin et al. “Growth, surface morphology, and electrical resistivity of fully strained substoichiometric epitaxial TiNₓ (0.67 ≤ x < 1.0) layers on MgO(001)”. In: Journal of Applied Physics 95.1 (Jan. 2004), pp. 356–362. ISSN: 0021-8979. DOI: 10.1063/1.1629155.
- [28]Thomas D. Kühne et al. “CP2K: An electronic structure and molecular dynamics software package - Quickstep: Efficient and accurate electronic structure calculations”. In: The Journal of Chemical Physics 152.19 (May 2020). ISSN: 0021-9606. DOI: 10.1063/5.0007045.DOI
- [29]Joost VandeVondele et al. “Quickstep: Fast and accurate density functional calculations using a mixed Gaussian and plane wave approach”. In: Computer Physics Communications 167.2 (Apr. 2005), pp. 103–128. ISSN: 00104655. DOI: 10.1016/j.cpc.2004.12.014.DOI
- [30]David C. Langreth and M. J. Mehl. “Beyond the local-density approximation in calculations of ground-state electronic properties”. In: Physical Review B 28.4 (Aug. 1983), pp. 1809–1834. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.28.1809.DOI
- [31]John P. Perdew, Kieron Burke, and Matthias Ernzerhof. “Generalized Gradient Approximation Made Simple”. In: Physical Review Letters 77.18 (Oct. 1996), pp. 3865–3868. ISSN: 0031-9007. DOI: 10.1103/PhysRevLett.77.3865.DOI
- [32]S. Goedecker, M. Teter, and J. Hutter. “Separable dual-space Gaussian pseudopotentials”. In: Physical Review B 54.3 (July 1996), pp. 1703–1710. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.54.1703.
- [33]C. Hartwigsen, S. Goedecker, and J. Hutter. “Relativistic separable dual-space Gaussian pseudopotentials from H to Rn”. In: Physical Review B 58.7 (Aug. 1998), pp. 3641–3662. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.58.3641.DOI
- [34]Joost VandeVondele and Jürg Hutter. “Gaussian basis sets for accurate calculations on molecular systems in gas and condensed phases”. In: The Journal of Chemical Physics 127.11 (Sept. 2007). ISSN: 0021-9606. DOI: 10.1063/1.2770708.DOI
- [35]Vladimir I. Anisimov, Jan Zaanen, and Ole K. Andersen. “Band theory and Mott insulators: Hubbard U instead of Stoner I”. In: Physical Review B 44.3 (July 1991), pp. 943–954. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.44.943.DOI
- [36]S. L. Dudarev et al. “Electron-energy-loss spectra and the structural stability of nickel oxide: An LSDA+U study”. In: Physical Review B 57.3 (Jan. 1998), pp. 1505–1509. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.57.1505.DOI
- [37]Liangcai Zhou et al. “Structural stability and thermodynamics of CrN magnetic phases from ab initio calculations and experiment”. In: Physical Review B 90.18 (Nov. 2014), p. 184102. ISSN: 1098-0121. DOI: 10.1103/PhysRevB.90.184102.DOI
- [38]M.E Straumanis, C.A Faunce, and W.J James. “Bonding, lattice parameter, density and defect structure of TiN containing an excess of N”. In: Acta Metallurgica 15.1 (Jan. 1967), pp. 65–71. ISSN: 00016160. DOI: 10.1016/0001-6160(67)90156-3.DOI
- [39]P.H. Mayrhofer et al. “Structure, elastic properties and phase stability of Cr₁−ₓAlₓN”. In: Acta Materialia 56.11 (June 2008), pp. 2469–2475. ISSN: 13596454. DOI: 10.1016/j.actamat.2008.01.054.DOI
- [40]Masato Aoki et al. “CrN single-crystal growth using Cr–Ga–Na ternary melt”. In: Journal of Crystal Growth 246.1-2 (Dec. 2002), pp. 133–138. ISSN: 00220248. DOI: 10.1016/S0022-0248(02)01899-7.
- [41]S. Zhang and John Northrup. “Chemical potential dependence of defect formation energies in GaAs: Application to Ga self-diffusion”. In: Physical Review Letters 67.17 (Oct. 1991), pp. 2339–2342. ISSN: 0031-9007. DOI: 10.1103/PhysRevLett.67.2339.DOI
- [42]J. Buckeridge et al. “Automated procedure to determine the thermodynamic stability of a material and the range of chemical potentials necessary for its formation relative to competing phases and compounds”. In: Computer Physics Communications 185.1 (Jan. 2014), pp. 330–338. ISSN: 00104655. DOI: 10.1016/j.cpc.2013.08.026.DOI
- [43]Guo-Xin Qian, Richard M. Martin, and D. J. Chadi. “Stoichiometry and Surface Reconstruction: An Ab Initio Study of GaAs(100) Surfaces”. In: Physical Review Letters 60.19 (May 1988), pp. 1962–1965. ISSN: 0031-9007. DOI: 10.1103/PhysRevLett.60.1962.
- [44]Vincenzo Fiorentini and M Methfessel. “Extracting convergent surface energies from slab calculations”. In: Journal of Physics: Condensed Matter 8.36 (Sept. 1996), pp. 6525–6529. ISSN: 0953-8984. DOI: 10.1088/0953-8984/8/36/005.DOI
- [45]Karsten Reuter and Matthias Scheffler. “Composition, structure, and stability of RuO₂(110) as a function of oxygen pressure”. In: Physical Review B 65.3 (Dec. 2001), p. 035406. ISSN: 0163-1829. DOI: 10.1103/PhysRevB.65.035406.DOI
- [46]Yanhui Zhang, Bin Liu, and Jingyang Wang. “Self-assembly of Carbon Vacancies in Sub-stoichiometric ZrC₁−ₓ”. In: Scientific Reports 5.1 (Dec. 2015), p. 18098. ISSN: 2045-2322. DOI: 10.1038/srep18098.DOI
- [47]C. Ravi et al. “Cluster expansion Monte Carlo study of phase stability of vanadium nitrides”. In: Physical Review B 81.10 (Mar. 2010), p. 104111. ISSN: 1098-0121. DOI: 10.1103/PhysRevB.81.104111.
- [48]Seung-Hoon Jhi et al. “Vacancy Hardening and Softening in Transition Metal Carbides and Nitrides”. In: Physical Review Letters 86.15 (Apr. 2001), pp. 3348–3351. ISSN: 0031-9007. DOI: 10.1103/PhysRevLett.86.3348.DOI