betaFeedback

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, VNV_\mathrm{N} is favoured under N-poor and VTiV_\mathrm{Ti} under N-rich conditions; in CrN, VNV_\mathrm{N} 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 +0.132+0.132 eV in TiN and +1.053+1.053 eV in CrN. At (001) surfaces, VNV_\mathrm{N} in TiN prefers the surface and VTiV_\mathrm{Ti} the first subsurface layer. In CrN, VNV_\mathrm{N} has similar formation energies at the surface and first subsurface layer, with a slight preference for the latter; VCrV_\mathrm{Cr} slightly prefers the second subsurface layer. Surface cluster energies are referenced to separated vacancies at their preferred depths. The compact 2VTi+2VN2V_\mathrm{Ti}+2V_\mathrm{N} cluster in TiN has favourable association in bulk (+0.217+0.217 eV per vacancy) but unfavourable association at the surface (−0.346-0.346 eV per vacancy). By contrast, 2VCr+2VN2V_\mathrm{Cr}+2V_\mathrm{N} in CrN remains stabilised, with its association energy decreasing from +1.188+1.188 to +0.431+0.431 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 0.7<x<1.20.7 < x < 1.2 and computational studies extending to x=0.67x = 0.67 [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, VNV_{\mathrm{N}} denotes a nitrogen vacancy and VTMV_{\mathrm{TM}} a transition-metal vacancy, with VTiV_{\mathrm{Ti}} and VCrV_{\mathrm{Cr}} used for the corresponding material-specific metal vacancies. Multivacancy compositions are written additively, such that VTM+VNV_{\mathrm{TM}} + V_{\mathrm{N}} 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 2VN2V_{\mathrm{N}} and 2VTi2V_{\mathrm{Ti}} 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 VNV_{\mathrm{N}} dominates Ti-rich, nitrogen-deficient Ti–N compounds, whereas VTiV_{\mathrm{Ti}} or nitrogen interstitials (NiN_{\mathrm{i}}) 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 VNV_{\mathrm{N}} as the lowest-energy mechanism for reducing the N/Cr ratio. Their calculations further showed that VNV_{\mathrm{N}} reduce Cr-to-N charge transfer and increase the metallic character of the defective material [18]. Zhang et al. [19] identified ordered VNV_{\mathrm{N}} 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 VNV_{\mathrm{N}} 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 CrN2_2, 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 TiNx_x and VNx_x 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 VTM+VNV_{\mathrm{TM}} + V_{\mathrm{N}} 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]. VNV_{\mathrm{N}} 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 TiNx_x(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 VNV_{\mathrm{N}} and surface stoichiometry affect stability and electronic properties but the question remains whether surfaces preserve or reorder the competition among VNV_{\mathrm{N}}, VTiV_{\mathrm{Ti}}, and VTM+VNV_{\mathrm{TM}} + V_{\mathrm{N}}, 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 3d3d states were treated using the Dudarev DFT+UU approach with an effective Hubbard parameter of Ueff=3U_{\mathrm{eff}} = 3 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 Γ\Gamma 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 4×4×44 \times4 \times4 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 10−610^{-6}, 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 a=4.247a = 4.247 Å and a nearest-neighbour Ti-N bond length of 2.1242.124 Å. The calculated lattice parameter is in close agreement with experimental values of approximately 4.244.24 Å, 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 γ=91.31∘\gamma= 91.31^\circ, corresponding to an acute pseudo-cubic shear angle of 88.69∘88.69^\circ. The volume-equivalent pseudo-cubic lattice parameter is apc=4.157a_{\mathrm{pc}} = 4.157 Å, and the nearest-neighbour Cr-N distances range from 2.0742.074 to 2.0842.084 Å. Experimental low-temperature orthorhombic CrN lattice parameters correspond to a volume-equivalent pseudo-cubic lattice parameter of approximately 4.134.13 Å, placing the present value within about 0.6% of experiment [11, 39], whereas experimental cubic rocksalt CrN has a lattice parameter of a=4.1467(8)a = 4.1467(8) Å 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 2.072.07 Å 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 (EfbulkE_f^{\mathrm{bulk}}) were calculated using [41]:

Efbulk=Edefbulk−Ebulk−∑iniμi,(1)E_f^{\mathrm{bulk}} = E_{\mathrm{def}}^{\mathrm{bulk}} - E_{\mathrm{bulk}} - \sum_i n_i \mu_i, \tag*{(1)}

where EdefbulkE_{\mathrm{def}}^{\mathrm{bulk}} and EbulkE_{\mathrm{bulk}} are the total energies of the defective and pristine cells, respectively. The term nin_i denotes the number of atoms of species ii added (ni>0n_i > 0) or removed (ni<0n_i < 0). The chemical potential μi\mu_i 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 μi=μi0+Δμi\mu_i = \mu_i^0 + \Delta\mu_i, where μi0\mu_i^0 is the elemental reference energy and Δμi≤0\Delta\mu_i \le0 [42]. For the stoichiometric host nitride, stability requires

ΔμTM+ΔμN=ΔHf(TMN),(2)\Delta\mu_{\mathrm{TM}} + \Delta\mu_{\mathrm{N}} = \Delta H_f(\mathrm{TMN}), \tag*{(2)}

where ΔHf(TMN)\Delta H_f(\mathrm{TMN}) is the formation enthalpy calculated relative to the elemental reference states of Ti, Cr, and 12N2\frac{1}{2}\mathrm{N}_2. 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 (ΔμN=0\Delta\mu_{\mathrm{N}} = 0) corresponding to equilibrium with the nitrogen reference; ΔμTM\Delta\mu_{\mathrm{TM}} 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 TMxNy\mathrm{TM}_x\mathrm{N}_y phases. Where a metal-rich secondary nitride (such as Ti2N\mathrm{Ti}_2\mathrm{N}) 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.

Chemical-potential constructions for TiN and CrN

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+UU (Ueff=3U_{\mathrm{eff}} = 3 eV). Green segments indicate the stability windows used in the defect-formation-energy calculations. The DFT+UU panel uses the Cr/CrN/N reference set; GGA competing-phase energies are not combined with the DFT+UU 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), EassocbulkE_{\mathrm{assoc}}^{\mathrm{bulk}}, 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 nn VTMV_{\mathrm{TM}} and mm VNV_{\mathrm{N}}, the association energy was calculated as

Eassocbulk(n,m)=nEfbulk(VTM)+mEfbulk(VN)−Efbulk(nVTM+mVN)(3)E_{\mathrm{assoc}}^{\mathrm{bulk}}(n,m)=nE_{\mathrm{f}}^{\mathrm{bulk}}(V_{\mathrm{TM}})+mE_{\mathrm{f}}^{\mathrm{bulk}}(V_{\mathrm{N}})-E_{\mathrm{f}}^{\mathrm{bulk}}(nV_{\mathrm{TM}}+mV_{\mathrm{N}}) \tag*{(3)}

Here, n,m≥0n,m \ge0 and 2≤n+m≤42 \le n+m \le4 for the multi-vacancy configurations considered in this study. The same expression applies to the TM-only (m=0m=0), N-only (n=0n=0), 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, EassocE_{\mathrm{assoc}} 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 EassocE_{\mathrm{assoc}} indicates energetic stabilisation of the associated configuration relative to the isolated vacancies. A negative EassocE_{\mathrm{assoc}} 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 Eassoc/(n+m)E_{\mathrm{assoc}/(n+m)} 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 4×44 \times4 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, γ\gamma, was defined as [43, 44, 45]:

γ=12A(Eslab−NEbulk)(4)\gamma=\frac{1}{2A}\left(E_{\mathrm{slab}}-NE_{\mathrm{bulk}}\right) \tag*{(4)}

where EslabE_{\mathrm{slab}} is the total energy of the relaxed slab, NN is the number of bulk formula units contained in the slab, and AA 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, EslabE_{\mathrm{slab}} and EdefslabE_{\mathrm{def}}^{\mathrm{slab}}, 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 urms5 A˚u_{\mathrm{rms}}^{5\text{ \AA}} 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 zz coordinates of the transition-metal and nitrogen atoms in the outermost atomic layer, r0=∣⟨zTM⟩0−⟨zN⟩0∣r_0 = \lvert\langle z_{\mathrm{TM}}\rangle_0 - \langle z_{\mathrm{N}}\rangle_0\rvert. Defect-induced changes in rumpling were evaluated relative to the pristine slab, Δr0=r0def−r0pris\Delta r_0 = r_0^{\mathrm{def}} - r_0^{\mathrm{pris}}.

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, EfbulkE_f^{\mathrm{bulk}}, of VNV_{\mathrm{N}} 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 Ti2_2N 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 VNV_{\mathrm{N}} throughout.

Defect formation energies of VTM and VN across the nitrogen chemical potential window for TiN and CrN

Figure 1. EfbulkE_{\mathrm{f}}^{\mathrm{bulk}} of VTMV_{\mathrm{TM}} and VNV_{\mathrm{N}} across the nitrogen chemical potential window considered for (a) TiN and (b) CrN.

MaterialReferenceLimitConstraintΔμN\Delta\mu_{\mathrm{N}} (eV)ΔμTM\Delta\mu_{\mathrm{TM}} (eV)
TiNPBE/GGAN-poorTi2_2N-3.111-0.475
TiNPBE/GGAN-richelemental N0.000-3.586
CrNDFT+UUN-poorelemental Cr-1.6820.000
CrNDFT+UUN-richelemental N0.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+UU reference set.

In TiN, the relative stability of VNV_{\mathrm{N}} and VTiV_{\mathrm{Ti}} changes substantially with the chemical environment. At the N-poor/Ti-rich limit, EfbulkE_f^{\mathrm{bulk}} is −0.418-0.418 eV for VNV_{\mathrm{N}} and 3.2213.221 eV for VTiV_{\mathrm{Ti}}. Increasing ΔμN\Delta\mu_{\mathrm{N}} increases the formation energy of VNV_{\mathrm{N}} and decreases that of VTiV_{\mathrm{Ti}}, with the two formation energies becoming equal at ΔμN=−1.291\Delta\mu_{\mathrm{N}} = -1.291 eV. Above this crossover, VTiV_{\mathrm{Ti}} becomes energetically preferred. At the N-rich/Ti-poor limit, EfbulkE_f^{\mathrm{bulk}} is 0.1100.110 eV for VTiV_{\mathrm{Ti}} and 2.6922.692 eV for VNV_{\mathrm{N}}. 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 VNV_{\mathrm{N}} 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 Ti2_2N phase boundary. This chemical potential dependence is consistent with previous first-principles studies, which similarly predicted that VNV_{\mathrm{N}} is favoured under Ti-rich/N-poor conditions and VTiV_{\mathrm{Ti}} becomes increasingly competitive toward N-rich conditions [17].

CrN shows a distinctly different response. At the N-poor/Cr-rich limit, EfbulkE_f^{\mathrm{bulk}} is approximately 0.9040.904 eV for VNV_{\mathrm{N}} and 5.2855.285 eV for VCrV_{\mathrm{Cr}}. Increasing ΔμN\Delta\mu_{\mathrm{N}} 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 VNV_{\mathrm{N}} and 3.604 eV for VCrV_{\mathrm{Cr}}. Thus, VNV_{\mathrm{N}} remains the lower-energy isolated vacancy throughout the stability window, and no vacancy-sublattice crossover occurs. This persistent preference for VNV_{\mathrm{N}} 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 VCrV_{\mathrm{Cr}} 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 VNV_{\mathrm{N}}. 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 VNV_{\mathrm{N}}. 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 Eassoc=−0.205E_{\mathrm{assoc}} = -0.205 to +0.133+0.133 eV, with a mean of −0.035-0.035 eV, while the Ti-only pairs span −0.510-0.510 to +0.135+0.135 eV, with a mean of −0.072-0.072 eV. All sampled mixed VTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}} pairs have positive association energies, ranging from +0.009+0.009 to +0.251+0.251 eV, with a mean of +0.132+0.132 eV. The largest value occurs for the 1NN mixed pair, where VTiV_{\mathrm{Ti}} and VNV_{\mathrm{N}} 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.

Vacancy-pair geometries and bulk association energies in TiN and CrN

Figure 2. Vacancy-pair geometries and bulk association energies in TiN and CrN. (a) First-to sixth-nearest-neighbour (1NN-6NN) separations for mixed VTMV_{\mathrm{TM}}-VNV_{\mathrm{N}} pairs in the rocksalt lattice. (b) VNV_{\mathrm{N}}-VNV_{\mathrm{N}} same-sublattice separations; the same geometrical shell sequence applies to VTMV_{\mathrm{TM}}-VTMV_{\mathrm{TM}} pairs because both sublattices are fcc. Coloured dashed lines denote the respective neighbour shells. (c,d) Bulk vacancy-pair association energies, EassocE_{\mathrm{assoc}}, for TiN and CrN, respectively, plotted as a function of neighbour shell for N-only, mixed TM-N, and metal-only vacancy pairs. Positive EassocE_{\mathrm{assoc}} 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 urms5A˚u_{\mathrm{rms}}^{5\mathring{\mathrm{A}}} 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 Eassoc=−0.088E_{\mathrm{assoc}} = -0.088 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 VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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 VCrV_{\mathrm{Cr}} and VNV_{\mathrm{N}} 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 urms5A˚u_{\mathrm{rms}}^{5\mathring{\mathrm{A}}} 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 μB\mu_{\mathrm{B}}. For the N-only pairs, the maximum Cr moment increases to 3.453-3.540 μB\mu_{\mathrm{B}}, with a mean of 3.476 μB\mu_{\mathrm{B}}. The mixed pairs have maximum Cr moments of 2.945-3.004 μB\mu_{\mathrm{B}}, with a mean of 2.964 μB\mu_{\mathrm{B}}, while the Cr-only pairs remain at 2.836-2.841 μB\mu_{\mathrm{B}}. N-only pairs increase the mean maximum local Cr moment from 2.830 μB\mu_{\mathrm{B}} in pristine CrN to 3.476 μB\mu_{\mathrm{B}}. For mixed VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} pairs, the value is 2.964 μB\mu_{\mathrm{B}}, only 0.134 μB\mu_{\mathrm{B}} above that of pristine CrN. Thus, the presence of VCrV_{\mathrm{Cr}} substantially reduces the change in the local moment associated with VNV_{\mathrm{N}}. This behaviour is consistent with the partial compensation of the local electronic perturbation associated with VNV_{\mathrm{N}}.

The pair calculations add an important feature to the isolated-vacancy picture. The formation energy of isolated VCrV_{\mathrm{Cr}} remains higher than VNV_{\mathrm{N}} throughout the chemical potential range, whereas mixed VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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 VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} configurations when both vacancy types are present. Vacancy ordering has been observed experimentally in N-deficient CrN [19], although the observations concern ordering of VNV_{\mathrm{N}} 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 VTM+2VNV_{\mathrm{TM}} + 2V_{\mathrm{N}} trimer, (b) a linear 3VN3V_{\mathrm{N}} trimer, and (c) a compact 2VTM+2VN2V_{\mathrm{TM}} + 2V_{\mathrm{N}} 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.

Representative bulk vacancy-cluster geometries and association energies in TiN and CrN

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, VTM+2VNV_{\mathrm{TM}} + 2V_{\mathrm{N}} (Sch+N); (b) a linear three-nitrogen-vacancy configuration, 3VN3V_{\mathrm{N}}; and (c) a compact four-vacancy mixed configuration, 2VTM+2VN2V_{\mathrm{TM}} + 2V_{\mathrm{N}}. (d,e) Bulk Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} 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 Eassoc>0E_{\mathrm{assoc}} > 0. 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 VTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}} pair has Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} = +0.126 eV/vac, whereas the compact VTi+2VNV_{\mathrm{Ti}} + 2V_{\mathrm{N}} and 2VTi+VN2V_{\mathrm{Ti}} + V_{\mathrm{N}} trimers yield +0.093 and +0.083 eV/vac, respectively. The compact 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} configuration is more strongly associated, reaching +0.217 eV/vac. The role of vacancy arrangement is especially clear when comparing the compact and separated 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} configurations. The separated motif consists of two 1NN VTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}} 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 Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} to +0.217 eV/vac, an increase of 0.115 eV/vac. The structural response changes with this rearrangement. The separated-pair motif has urms5A˚u_{\mathrm{rms}}^{5\text{\AA}} = 0.030 Å and essentially no mean Ti-N bond-length change, whereas the compact 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} cluster has urms5A˚u_{\mathrm{rms}}^{5\text{\AA}} = 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 VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} pair has Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} = +0.741 eV/vac. The compact VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} and 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} trimers give +0.921 and +0.736 eV/vac, respectively, and the compact 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}} 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 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}} configurations isolate the effect of the vacancy arrangement because their compositions are identical. In the separated configuration, two 1NN mixed pairs retain internal VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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 Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} = +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 urms5A˚u_{\mathrm{rms}}^{5\text{\AA}} = 0.018 Å and a mean Cr-N bond-length change of +0.0003+0.0003 Å, while the compact 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}} configuration has urms5A=0.068u_{\mathrm{rms}}^{5\mathrm{A}} = 0.068 Å and a mean Cr-N contraction of −0.0061-0.0061 Å. The 0.4530.453 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 −0.785e-0.785 e. In the case of compact mixed trimers and tetramer, the corresponding values lie between −0.794-0.794 and −0.761-0.761 e, within 0.0240.024 e of the pristine value. N-only three- and four-vacancy configurations shift the Cr charge to approximately −0.741-0.741 to −0.687-0.687 e, yielding deviations of 0.0440.044-0.0980.098 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 2.830 μB2.830\,\mu\mathrm{B} in pristine CrN. The magnetic moment is 2.918 μB2.918\,\mu\mathrm{B} for compact 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} and 2.926 μB2.926\,\mu\mathrm{B} for compact 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}, whereas the more N-rich VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} cluster reaches 3.363 μB3.363\,\mu\mathrm{B} and the N-only clusters span 3.4733.473-3.733 μB3.733\,\mu\mathrm{B}. 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 3VN3V_{\mathrm{N}} motif shown in Figure 3(b) has Eassoc/Nvac=+0.280E_{\mathrm{assoc}}/N_{\mathrm{vac}} = +0.280 eV/vac, whereas the bent and compact 3VN3V_{\mathrm{N}} configurations give −0.030-0.030 and −0.027-0.027 eV/vac, respectively. The investigated 4VN4V_{\mathrm{N}} motifs remain between −0.038-0.038 and −0.033-0.033 eV/vac. The linear trimer also has a lower urms5Au_{\mathrm{rms}}^{5\mathrm{A}} of 0.0200.020 Å than the compact and bent trimers, which give 0.0250.025 and 0.0280.028 Å, respectively. Its maximum local Cr moment is 3.473 μB3.473\,\mu\mathrm{B}, compared with 3.5313.531 and 3.733 μB3.733\,\mu\mathrm{B} 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 −0.656-0.656 to −0.321-0.321 eV/vac, whereas the Cr-only motifs with reported energies span −0.550-0.550 to −0.110-0.110 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 +0.10+0.10 eV/vac, and only the compact 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} configuration reaches +0.217+0.217 eV/vac. In CrN, mixed association persists from the 1NN1\mathrm{NN} pair at +0.741+0.741 eV/vac through the mixed trimers at +0.736+0.736-+0.921+0.921 eV/vac and increases to +1.188+1.188 eV/vac for the compact four-vacancy cluster. CrN also supports the geometry-specific linear 3VN3V_{\mathrm{N}} motif at +0.280+0.280 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 VNV_{\mathrm{N}} remains energetically preferred, but mixed VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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 VNV_{\mathrm{N}} 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.

Layer-resolved formation energies of isolated vacancies at TiN(001) and CrN(001) surfaces

Figure 4. Layer-resolved formation energies, EfE_f, 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 VNV_{\mathrm{N}} 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, VNV_{\mathrm{N}} is preferred over VTiV_{\mathrm{Ti}} at all sampled depths under N-poor conditions. The VNV_{\mathrm{N}} formation energies at L0, L2, L3, and L5 are −0.535-0.535, −0.490-0.490, −0.476-0.476, and −0.518-0.518 eV, respectively, and differ by less than 0.06 eV. L1 is the clear exception, with Ef=+0.091E_{\mathrm{f}} = +0.091 eV, 0.609 eV above the L5 value. The depth dependence of VNV_{\mathrm{N}} 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. VTiV_{\mathrm{Ti}} shows the opposite response at L1. Under N-rich conditions, its formation energy decreases from −0.160-0.160 eV at L5 to −0.712-0.712 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 VTiV_{\mathrm{Ti}}. 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, VNV_{\mathrm{N}} is lower in formation energy than VTiV_{\mathrm{Ti}} at all six depths, while the ordering is reversed at the N-rich limit. The crossover occurs between ΔμN=−1.38\Delta\mu_{\mathrm{N}} = -1.38 and −1.96-1.96 eV depending on depth, compared with −1.291-1.291 eV in the bulk. The largest shift occurs at L1, where the destabilisation of VNV_{\mathrm{N}} and stabilisation of VTiV_{\mathrm{Ti}} move the crossover to ΔμN=−1.96\Delta\mu_{\mathrm{N}} = -1.96 eV.

CrN retains its bulk preference for VNV_{\mathrm{N}} at every sampled depth and at both chemical potential limits. The strongest near-surface stabilisation occurs for VNV_{\mathrm{N}} 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 VNV_{\mathrm{N}}. For Cr atoms within 5 Å of the vacancy, the mean Hirshfeld charge changes from approximately −0.768 e-0.768\ e at L5 to −0.739 e-0.739\ e at L1 and −0.718 e-0.718\ e at L0. The maximum local Cr moment reaches 3.706 μB3.706\ \mu_{\mathrm{B}} for L1 VNV_{\mathrm{N}}, compared with 3.062 μB3.062\ \mu_{\mathrm{B}} at L0 and 3.276 μB3.276\ \mu_{\mathrm{B}} 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. VCrV_{\mathrm{Cr}} shows a weaker depth dependence. Its formation energy is approximately 0.27 eV0.27\ \mathrm{eV} higher at L0 than at L5 and reaches its lowest value at L2, which is 0.11 eV0.11\ \mathrm{eV} below that at L5. The maximum local Cr moments remain within approximately 2.892.89-2.94 μB2.94\ \mu_{\mathrm{B}} across the sampled layers, and the nearby Cr Hirshfeld charges approach −0.80 e-0.80\ e away from the surface. An L1 VCrV_{\mathrm{Cr}} 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 VNV_{\mathrm{N}}, the L5-bulk difference, which is the deepest slab reference is approximately 0.10 eV0.10\ \mathrm{eV} in TiN and 0.01 eV0.01\ \mathrm{eV} in CrN, while the differences for VTiV_{\mathrm{Ti}} and VCrV_{\mathrm{Cr}} are approximately 0.270.27 and 0.45 eV0.45\ \mathrm{eV}.

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 VNV_{\mathrm{N}} and stabilising VTiV_{\mathrm{Ti}}. CrN retains its preference for VNV_{\mathrm{N}} 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 EassocE_{\mathrm{assoc}} 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, ∣ΔL∣=∣L1−L2∣|\Delta L| = |L_1 - L_2|, where ∣ΔL∣=0|\Delta L| = 0 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 ΔL=LN−LTM\Delta L = L_{\mathrm{N}} - L_{\mathrm{TM}}. Since the layer index increases into the slab, ΔL>0\Delta L > 0 places VTMV_{\mathrm{TM}} closer to the surface, ΔL<0\Delta L < 0 places VNV_{\mathrm{N}} closer to the surface, and ΔL=0\Delta L = 0 denotes a same-layer pair. Several configurations occur at a given ΔL\Delta L 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 ΔL\Delta L does not uniquely define the absolute depth, and in CrN, the magnetic Cr sublattice can additionally modify the interaction.

Surface vacancy-pair association energies in TiN and CrN

Figure 5. Surface vacancy-pair association energies, EassocE_{\mathrm{assoc}}, in TiN and CrN. (a,b) Same-sublattice N-N and TM-TM pairs as a function of the unsigned layer-index separation, ∣ΔL∣=∣L1−L2∣\lvert\Delta L\rvert= \lvert L_{1}-L_{2}\rvert, for TiN and CrN, respectively. (c,d) Mixed TM-N pairs plotted using the signed separation ΔL=LN−LTM\Delta L = L_{\mathrm{N}} - L_{\mathrm{TM}}. Positive ΔL\Delta L places VTMV_{\mathrm{TM}} closer to the surface, negative ΔL\Delta L places VNV_{\mathrm{N}} closer to the surface, and ΔL=0\Delta L = 0 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 EassocE_{\mathrm{assoc}} 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 −0.138-0.138 eV for N-N pairs and −0.388-0.388 eV for Ti-Ti pairs. N-N association becomes slightly positive for some larger layer separations, with mean values of +0.029+0.029 and +0.059+0.059 eV at ∣ΔL∣=3|\Delta L| = 3 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 −0.607-0.607 and −0.661-0.661 eV, respectively. Mixed VTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}} pairs behave differently (Figure 5(c)), although the interaction remains strongly configuration dependent. Same-layer pairs have a mean EassocE_{\mathrm{assoc}} of +0.056+0.056 eV. For adjacent layers, the mean increases to +0.184+0.184 eV when VTiV_{\mathrm{Ti}} is closer to the surface (ΔL=+1\Delta L = +1), compared with +0.107+0.107 eV for the reverse orientation (ΔL=−1\Delta L = -1). The strongest calculated TiN mixed pair, with VTiV_{\mathrm{Ti}} in L0 and VNV_{\mathrm{N}} in L1, has Eassoc=+0.491E_{\mathrm{assoc}} = +0.491 eV. Reversing the ordering to VNV_{\mathrm{N}} in L0 and VTiV_{\mathrm{Ti}} in L1 gives only +0.003+0.003 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 −0.004-0.004, −0.004-0.004, and −0.006-0.006 Å 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 (VNV_{\mathrm{N}} is stable toward N-poor conditions), VTiV_{\mathrm{Ti}} 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 EassocE_{\mathrm{assoc}} of approximately −0.493 eV. N-N interactions exhibit a distinct surface-induced feature; at ∣ΔL∣=2\lvert\Delta L\rvert= 2, 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 VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} association [Figure 5(d)]. All sampled mixed surface configurations have positive EassocE_{\mathrm{assoc}}, 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 VCrV_{\mathrm{Cr}} lies closer to the surface (ΔL=+1\Delta L = +1) and +0.942 eV for the reverse ordering (ΔL=−1\Delta L = -1). Association generally decreases as the vacancies become more widely separated in the layer index, producing a broad maximum at ΔL=0,±1\Delta L = 0, \pm1 in Figure 5(d), but remains positive even for the largest sampled separations. The spread at a given ΔL\Delta L 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 μB\mu_{\mathrm{B}}, compared with 3.03 μB\mu_{\mathrm{B}} for mixed Cr-N pairs and 2.87 μB\mu_{\mathrm{B}} for Cr-Cr pairs with the pristine value being 2.83 μB\mu_{\mathrm{B}}. 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 ee for N-N pairs to −0.766 ee for mixed Cr-N pairs and −0.800 ee 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 VCrV_{\mathrm{Cr}} 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 Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} indicates that the compact aggregate is energetically stabilised, even after accounting for the energy gained when the constituent vacancies separately occupy their preferred depths.

Surface vacancy depth preference and representative higher-order vacancy association in TiN(001) and CrN(001)

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 2VTM+2VN2V_{\mathrm{TM}} + 2V_{\mathrm{N}} 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 EassocE_{\mathrm{assoc}} indicates that the compact cluster is stabilised relative to the preferred-depth separated-vacancy reference. The TiN motif is destabilised, with Eassoc/Nvac=−0.346E_{\mathrm{assoc}}/N_{\mathrm{vac}} = -0.346 eV/vac, whereas the CrN motif remains stabilised, with Eassoc/Nvac=+0.431E_{\mathrm{assoc}}/N_{\mathrm{vac}} = +0.431 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 3VN3V_{\mathrm{N}} and 4VN4V_{\mathrm{N}} clusters have association energies of −0.370-0.370 and −0.456-0.456 eV per vacancy, respectively, while the 3VTi3V_{\mathrm{Ti}} and 4VTi4V_{\mathrm{Ti}} values are −0.717-0.717 and −1.042-1.042 eV per vacancy. Compact mixed configurations are also above the separated-vacancy reference, with 2VTi+VN2V_{\mathrm{Ti}} + V_{\mathrm{N}}, VTi+2VNV_{\mathrm{Ti}} + 2V_{\mathrm{N}}, and 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} having Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} values of −0.428-0.428, −0.513-0.513, and −0.346-0.346 eV, respectively. The extension from vacancy pairs to the sampled three- and four-vacancy configurations does not strengthen the tendency to aggregate. Although select VTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}} 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 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} cluster, for which Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} changes from +0.217+0.217 eV in the bulk to −0.346-0.346 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 3VN3V_{\mathrm{N}} and 4VN4V_{\mathrm{N}} to 0.114 and 0.132 Å for 3VTi3V_{\mathrm{Ti}} and 4VTi4V_{\mathrm{Ti}}, 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 3VTi3V_{\mathrm{Ti}} and 4VTi4V_{\mathrm{Ti}}, 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 3VN3V_{\mathrm{N}} and 4VN4V_{\mathrm{N}} surface clusters have Eassoc/Nvac=−0.064E_{\mathrm{assoc}}/N_{\mathrm{vac}} = -0.064 and −0.139-0.139 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, 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} gives +0.317+0.317-+0.434+0.434 eV per vacancy and VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} gives +0.115+0.115-+0.199+0.199 eV per vacancy, while 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}} gives +0.431+0.431 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 2VCr+VN2V_{\mathrm{Cr}}+V_{\mathrm{N}} and VCr+2VNV_{\mathrm{Cr}}+2V_{\mathrm{N}} clusters have association energies of +0.736+0.736 and +0.921+0.921 eV per vacancy, respectively, compared with at most +0.434+0.434 and +0.199+0.199 eV per vacancy at the surface. For 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}, 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 3VN3V_{\mathrm{N}} and 4VN4V_{\mathrm{N}} clusters have urms5 A˚u_{\mathrm{rms}}^{5\,\text{\AA}} 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 μB\mu_{\mathrm{B}}, whereas the mixed clusters generally reduce this response. The 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} configurations give maximum local Cr moments of approximately 2.95-3.00 μB\mu_{\mathrm{B}} and the 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}} configurations give 3.20-3.27 μB\mu_{\mathrm{B}}. The VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} configurations show a broader 3.05-3.67 μB\mu_{\mathrm{B}} 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 3VN3V_{\mathrm{N}} 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 VNV_{\mathrm{N}} is favoured under N-poor/Ti-rich conditions and VTiV_{\mathrm{Ti}} is favoured under N-rich/Ti-poor conditions. In CrN, no similar crossover occurs, and VNV_{\mathrm{N}} 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 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} motif is stabilised relative to isolated vacancies. CrN retains a strong mixed VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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, VNV_{\mathrm{N}} is favoured in the outermost layer, whereas VTiV_{\mathrm{Ti}} 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, VNV_{\mathrm{N}} is strongly stabilised in the near-surface region while VCrV_{\mathrm{Cr}} 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 VCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}} 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 VNV_{\mathrm{N}} as the preferred isolated vacancy, while VCrV_{\mathrm{Cr}} and VNV_{\mathrm{N}} 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,

ΔμTM+ΔμN=ΔHf(TMN),(5)\Delta\mu_{\mathrm{TM}}+\Delta\mu_{\mathrm{N}}=\Delta H_f(\mathrm{TMN}), \tag*{(5)}

with ΔμTM≤0\Delta\mu_{\mathrm{TM}} \le0 and ΔμN≤0\Delta\mu_{\mathrm{N}} \le0. 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 Ti2_2N. For CrN, the sampled Crx_xNy_y competing phases were evaluated consistently at the PBE/GGA level to assess possible competing-phase constraints. The CrN defect calculations were performed using DFT+UU with Ueff=3U_{\mathrm{eff}} = 3 eV, and the corresponding Cr/CrN/N DFT+UU reference set was used to define the numerical N-rich and N-poor limits entering the defect formation energies. A complete DFT+UU competing-phase construction was not used because transfer of the same Cr-site UU to chemically and magnetically distinct Crx_xNy_y phases was not independently validated. Accordingly, GGA and GGA+UU 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 nn transition-metal vacancies, VTMV_{\mathrm{TM}}, and mm nitrogen vacancies, VNV_{\mathrm{N}},

Eassocbulk(n,m)=nEfbulk(VTM)+mEfbulk(VN)−Efbulk(nVTM+mVN).E_{\mathrm{assoc}}^{\mathrm{bulk}}(n,m) = nE_{\mathrm{f}}^{\mathrm{bulk}}(V_{\mathrm{TM}}) + mE_{\mathrm{f}}^{\mathrm{bulk}}(V_{\mathrm{N}}) - E_{\mathrm{f}}^{\mathrm{bulk}}(nV_{\mathrm{TM}} + mV_{\mathrm{N}}).

Using the defect formation-energy expression

Efbulk=Edefbulk−Ebulk−∑iniμi,E_{\mathrm{f}}^{\mathrm{bulk}} = E_{\mathrm{def}}^{\mathrm{bulk}} - E_{\mathrm{bulk}} - \sum_i n_i\mu_i,

the formation energies of the two isolated vacancy types are

Efbulk(VTM)=Edefbulk(VTM)−Ebulk+μTM,E_f^{\mathrm{bulk}}(V_{\mathrm{TM}}) = E_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{TM}}) - E_{\mathrm{bulk}} + \mu_{\mathrm{TM}},
Efbulk(VN)=Edefbulk(VN)−Ebulk+μN,E_f^{\mathrm{bulk}}(V_{\mathrm{N}}) = E_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{N}}) - E_{\mathrm{bulk}} + \mu_{\mathrm{N}},

because formation of a vacancy corresponds to removal of one atom from the pristine supercell. Similarly, for a configuration containing nn transition-metal vacancies and mm nitrogen vacancies,

Efbulk(nVTM+mVN)=Edefbulk(nVTM+mVN)−Ebulk+nμTM+mμNE_f^{\mathrm{bulk}}(nV_{\mathrm{TM}} + mV_{\mathrm{N}}) = E_{\mathrm{def}}^{\mathrm{bulk}}(nV_{\mathrm{TM}} + mV_{\mathrm{N}}) - E_{\mathrm{bulk}} + n\mu_{\mathrm{TM}} + m\mu_{\mathrm{N}}

Substitution into Eq. Eassocbulk(n,m)E_{\mathrm{assoc}}^{\mathrm{bulk}}(n,m) gives

Eassocbulk(n,m)=n[Edefbulk(VTM)−Ebulk+μTM]+m[Edefbulk(VN)−Ebulk+μN]−[Edefbulk(nVTM+mVN)−Ebulk+nμTM+mμN]\begin{aligned} E_{\mathrm{assoc}}^{\mathrm{bulk}}(n,m) ={}& n\left[E_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{TM}}) - E_{\mathrm{bulk}} + \mu_{\mathrm{TM}}\right] \\ &+ m\left[E_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{N}}) - E_{\mathrm{bulk}} + \mu_{\mathrm{N}}\right] \\ &-\left[E_{\mathrm{def}}^{\mathrm{bulk}}(nV_{\mathrm{TM}} + mV_{\mathrm{N}}) - E_{\mathrm{bulk}} + n\mu_{\mathrm{TM}} + m\mu_{\mathrm{N}}\right] \end{aligned}

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:

Eassocbulk(n,m)=nEdefbulk(VTM)+mEdefbulk(VN)−Edefbulk(nVTM+mVN)−(n+m−1)EbulkE_{\mathrm{assoc}}^{\mathrm{bulk}}(n,m) = nE_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{TM}}) + mE_{\mathrm{def}}^{\mathrm{bulk}}(V_{\mathrm{N}}) - E_{\mathrm{def}}^{\mathrm{bulk}}(nV_{\mathrm{TM}} + mV_{\mathrm{N}}) - (n + m - 1)E_{\mathrm{bulk}}

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 EassocE_{\mathrm{assoc}} 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.

MaterialPairShelldd (Å)EassocE_{\mathrm{assoc}} (eV)
TiNVNV_{\mathrm{N}}-VNV_{\mathrm{N}}1NN3.0033-0.1980
TiNVNV_{\mathrm{N}}-VNV_{\mathrm{N}}2NN4.2471-0.2052
TiNVNV_{\mathrm{N}}-VNV_{\mathrm{N}}3NN5.2016+0.1328
TiNVNV_{\mathrm{N}}-VNV_{\mathrm{N}}4NN6.0063-0.0217
MaterialPairShelldd (Å)EassocE_{\mathrm{assoc}} (eV)
5NN6.7152+0.0449
6NN7.3563+0.0370
TiNVTiV_{\mathrm{Ti}}-VNV_{\mathrm{N}}1NN2.1236+0.2512
2NN3.6782+0.0938
3NN4.7485+0.1701
4NN6.3707+0.0088
5NN7.0431+0.1466
6NN7.6566+0.1220
TiNVTiV_{\mathrm{Ti}}-VTiV_{\mathrm{Ti}}1NN3.0032-0.5102
2NN4.2472-0.0759
3NN5.2017-0.0095
4NN6.0064+0.0200
5NN6.7154+0.1353
6NN7.3563+0.0105
CrNVNV_{\mathrm{N}}-VNV_{\mathrm{N}}1NN2.8923-0.0370
2NN4.1541-0.0208
3NN5.1372-0.0458
4NN5.9429-0.0875
5NN6.6364-0.0805
6NN7.1448-0.0562
CrNVCrV_{\mathrm{Cr}}-VNV_{\mathrm{N}}1NN2.0743+1.4828
2NN3.4886+0.9724
3NN4.6059+1.0571
4NN6.2288+0.9889
5NN6.8418+0.9119
6NN7.4591+0.9060
CrNVCrV_{\mathrm{Cr}}-VCrV_{\mathrm{Cr}}1NN2.9711-0.3207
2NN4.1537-0.0243
3NN5.0998-0.1756
4NN5.9429-0.1933
5NN6.6415-0.0907
6NN7.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 EassocE_{\mathrm{assoc}} denotes energetic stabilization of the paired configuration relative to the corresponding isolated vacancies.

Schematic of the bulk mixed TM-N vacancy-pair neighbour shells

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.

MaterialCompositionNvacN_{\mathrm{vac}}MotifEassocE_{\mathrm{assoc}} (eV)Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} (eV)
CrN3VN3V_{\mathrm{N}}3bent-0.089-0.030
CrN3VN3V_{\mathrm{N}}3compact-0.082-0.027
CrN3VN3V_{\mathrm{N}}3linear+0.840+0.280
CrNVCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}}3compact+2.762+0.921
CrN2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}}3compact+2.208+0.736
CrN3VCr3V_{\mathrm{Cr}}3bent-0.331-0.110
CrN3VCr3V_{\mathrm{Cr}}3compact-1.003-0.334
CrN3VCr3V_{\mathrm{Cr}}3linear-1.198-0.399
MaterialCompositionNvacN_{\mathrm{vac}}MotifEassocE_{\mathrm{assoc}} (eV)Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} (eV)
4VN4V_{\mathrm{N}}4compact-0.152-0.038
4VN4V_{\mathrm{N}}4linear-0.152-0.038
4VN4V_{\mathrm{N}}4planar-0.133-0.033
2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}4compact+4.754+1.188
2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}4segregated zones-0.906-0.227
2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}4separated pairs+2.942+0.736
4VCr4V_{\mathrm{Cr}}4compact†--
4VCr4V_{\mathrm{Cr}}4linear-1.900-0.475
4VCr4V_{\mathrm{Cr}}4planar-2.200-0.550
TiN3VN3V_{\mathrm{N}}3bent-0.593-0.198
3VN3V_{\mathrm{N}}3compact-0.665-0.222
3VN3V_{\mathrm{N}}3linear-0.454-0.151
VTi+2VNV_{\mathrm{Ti}} + 2V_{\mathrm{N}}3compact+0.280+0.093
2VTi+VN2V_{\mathrm{Ti}} + V_{\mathrm{N}}3compact+0.248+0.083
3VTi3V_{\mathrm{Ti}}3bent-1.113-0.371
3VTi3V_{\mathrm{Ti}}3compact-1.373-0.458
3VTi3V_{\mathrm{Ti}}3linear-0.963-0.321
4VN4V_{\mathrm{N}}4compact-1.381-0.345
4VN4V_{\mathrm{N}}4linear-0.424-0.106
4VN4V_{\mathrm{N}}4planar-1.028-0.257
2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}}4compact+0.868+0.217
2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}}4segregated zones-0.178-0.045
2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}}4separated pairs+0.409+0.102
4VTi4V_{\mathrm{Ti}}4compact-2.626-0.656
4VTi4V_{\mathrm{Ti}}4linear-1.491-0.373
4VTi4V_{\mathrm{Ti}}4planar-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.

Additional representative bulk vacancy-cluster geometries

Figure S3. Additional representative bulk vacancy-cluster geometries considered in the association-energy analysis: (a) bent 3VN3V_{\mathrm{N}}, (b) segregated-zone 2VTM+2VN2V_{\mathrm{TM}}+2V_{\mathrm{N}}, (c) planar 3VN3V_{\mathrm{N}}, and (d) separated-pair 2VTM+2VN2V_{\mathrm{TM}}+2V_{\mathrm{N}} 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. L0L0 denotes the outermost surface layer, with increasing layer index implying progressively deeper layers and L5L5 representing the central/deepest sampled layer of the slab.

MaterialVacancyLayerEfN−poorE_f^{\mathrm{N-poor}} (eV)EfN−richE_f^{\mathrm{N-rich}} (eV)
TiNVNV_{\mathrm{N}}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
TiNVTiV_{\mathrm{Ti}}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
CrNVCrV_{\mathrm{Cr}}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
CrNVNV_{\mathrm{N}}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 VCrV_{\mathrm{Cr}} values are averages over the nearly degenerate Cr↑ and Cr↓ vacancy configurations. The L4 VNV_{\mathrm{N}} 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

MaterialPair family∣ΔL∣|\Delta L|NconfigN_{\mathrm{config}}Mean (eV)Min. (eV)Max. (eV)
TiNN-only06-0.216-0.653+0.065
TiNN-only15-0.219-0.268-0.186
TiNN-only24-0.170-0.287-0.018
TiNN-only33+0.029+0.018+0.050
TiNN-only42+0.059+0.020+0.098
TiNN-only51-0.030-0.030-0.030
TiNmixed TM-N06+0.056-0.028+0.180
TiNmixed TM-N110+0.145+0.003+0.491
TiNmixed TM-N28+0.021-0.037+0.075
TiNmixed TM-N36-0.116-0.259-0.010
TiNmixed TM-N44-0.001-0.024+0.032
TiNmixed TM-N52+0.017-0.004+0.038
TiNmetal-only06-0.607-0.803-0.413
TiNmetal-only15-0.661-0.757-0.572
TiNmetal-only24-0.236-0.335-0.164
TiNmetal-only33-0.005-0.070+0.072
TiNmetal-only42-0.118-0.208-0.029
TiNmetal-only51-0.015-0.015-0.015
CrNN-only05-0.177-0.277+0.044
CrNN-only14+0.037-0.034+0.109
CrNN-only23+0.355+0.266+0.455
CrNN-only31+0.055+0.055+0.055
CrNN-only41+0.011+0.011+0.011
CrNN-only51-0.042-0.042-0.042
CrNmixed TM-N012+1.174+0.627+1.664
CrNmixed TM-N120+1.017+0.122+1.616
CrNmixed TM-N216+0.666+0.194+0.894
CrNmixed TM-N312+0.626+0.051+0.888
CrNmixed TM-N48+0.449+0.086+0.705
CrNmixed TM-N54+0.552+0.412+0.689
CrNmetal-only022-0.454-0.656+0.037
CrNmetal-only117-0.706-0.867-0.300
CrNmetal-only211-0.490-0.598-0.258
CrNmetal-only38-0.388-0.481-0.286
CrNmetal-only45-0.326-0.397-0.222
MaterialPair family∣ΔL∣\lvert\Delta L\rvertNconfigN_{\mathrm{config}}Mean (eV)Min. (eV)Max. (eV)
54-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 ∣ΔL∣|\Delta L|, the number of sampled configurations together with the mean and range of EassocE_{\mathrm{assoc}}. 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 ∣ΔL∣|\Delta L|.

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 VNL0V_{\mathrm{N}}^{\mathrm{L0}} and VTiL1V_{\mathrm{Ti}}^{\mathrm{L1}} for TiN, and VNL1V_{\mathrm{N}}^{\mathrm{L1}} and VCrL2V_{\mathrm{Cr}}^{\mathrm{L2}} 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.

MaterialMotifNvacN_{\mathrm{vac}}LayersEassocE_{\mathrm{assoc}} (eV)Eassoc/NvacE_{\mathrm{assoc}}/N_{\mathrm{vac}} (eV)
TiNcompact 3VN3V_{\mathrm{N}}34+4+5-1.110-0.370
compact 3VTi3V_{\mathrm{Ti}}30+1+1-2.151-0.717
compact 2VTi+VN2V_{\mathrm{Ti}} + V_{\mathrm{N}}30+1+2-1.283-0.428
compact VTi+2VNV_{\mathrm{Ti}} + 2V_{\mathrm{N}}30+1+1-1.538-0.513
compact 4VN4V_{\mathrm{N}}44+4+4+5-1.825-0.456
compact 4VTi4V_{\mathrm{Ti}}40+1+1+1-4.167-1.042
compact 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}}40+1+2+2-1.382-0.346
CrNcompact 3VN3V_{\mathrm{N}}30+0+1-0.193-0.064
compact 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} (Cr↓_{\downarrow} anchor)33+3+3+0.950+0.317
compact 2VCr+VN2V_{\mathrm{Cr}} + V_{\mathrm{N}} (Cr↑_{\uparrow} anchor)32+2+2+1.302+0.434
compact VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} (Cr↓_{\downarrow} anchor)33+3+4+0.346+0.115
compact VCr+2VNV_{\mathrm{Cr}} + 2V_{\mathrm{N}} (Cr↑_{\uparrow} anchor)31+2+2+0.596+0.199
compact 4VN4V_{\mathrm{N}}40+0+1+2-0.558-0.139
compact 2VCr+2VN2V_{\mathrm{Cr}} + 2V_{\mathrm{N}}42+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. EassoclayerE_{\mathrm{assoc}}^{\mathrm{layer}} uses isolated vacancies occupying the same layers as the constituent vacancies in the cluster, whereas ΔEdepth\Delta E_{\mathrm{depth}} is the energetic cost of placing those isolated vacancies away from their individually preferred sampled depths. The preferred-depth association energy is therefore Eassocpref=Eassoclayer−ΔEdepthE_{\mathrm{assoc}}^{\mathrm{pref}} = E_{\mathrm{assoc}}^{\mathrm{layer}} - \Delta E_{\mathrm{depth}}.

MaterialConfigurationConstructionEassoclayer/NvacE_{\mathrm{assoc}}^{\mathrm{layer}}/N_{\mathrm{vac}} (eV)ΔEdepth/Nvac\Delta E_{\mathrm{depth}}/N_{\mathrm{vac}} (eV)Eassocpref/NvacE_{\mathrm{assoc}}^{\mathrm{pref}}/N_{\mathrm{vac}} (eV)
TiNVTi(L1)+2VN(L0)V_{\mathrm{Ti}}(L1) + 2V_{\mathrm{N}}(L0)preferred-depth−0.2580.000−0.258
TiN2VTi(L1)+2VN(L0)2V_{\mathrm{Ti}}(L1) + 2V_{\mathrm{N}}(L0)preferred-depth−0.3500.000−0.350
TiN2VTi(L0)+2VN(L1)2V_{\mathrm{Ti}}(L0) + 2V_{\mathrm{N}}(L1)pair-informed+0.057+0.576−0.519
CrN3VN(L1)3V_{\mathrm{N}}(L1)preferred-depth−0.1580.000−0.158
CrN2VCr(L1)+VN(L1)2V_{\mathrm{Cr}}(L1) + V_{\mathrm{N}}(L1)pair-informed, same-layer+0.501+0.025+0.476
CrNVCr(L1)+2VN(L1)V_{\mathrm{Cr}}(L1) + 2V_{\mathrm{N}}(L1)pair-informed, same-layer+0.360+0.012+0.348
CrN2VCr(L2)+2VN(L1)2V_{\mathrm{Cr}}(L2) + 2V_{\mathrm{N}}(L1)preferred-depth+0.1710.000+0.171
CrN2VCr(L1)+2VN(L1)2V_{\mathrm{Cr}}(L1) + 2V_{\mathrm{N}}(L1)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. EassoclayerE_{\mathrm{assoc}}^{\mathrm{layer}} is referenced to isolated vacancies in the same layers as the cluster, while EassocprefE_{\mathrm{assoc}}^{\mathrm{pref}} is referenced to isolated vacancies at their individually preferred sampled depths. All energies are reported per vacancy.

The preferred-depth CrN 4VN4V_{\mathrm{N}} (L1) configuration did not yield a satisfactorily converged electronic solution; no association energy is reported.

In TiN, the preferred-depth VTi+2VNV_{\mathrm{Ti}} + 2V_{\mathrm{N}} trimer remains unfavourable, while the preferred-depth 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} configuration gives Eassocpref/Nvac=−0.350E_{\mathrm{assoc}}^{\mathrm{pref}}/N_{\mathrm{vac}} = -0.350 eV, closely matching the −0.346 eV/vac obtained for the original compact motif. The pair-informed 2VTi+2VN2V_{\mathrm{Ti}} + 2V_{\mathrm{N}} 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 3VN3V_{\mathrm{N}} 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.

RegionMaterialVacancy familyNconfigN_{\mathrm{config}}⟨uRMS5 A˚⟩\langle u_{\mathrm{RMS}}^{5\ \text{Å}}\rangle (Å)Range (Å)max⁡u\max u (Å)⟨ΔdTM−N⟩\langle\Delta d_{\mathrm{TM-N}}\rangle (Å)
BulkCrNN-only140.0230.017–0.0300.082−0.002
BulkCrNmetal-only150.0710.046–0.1130.294−0.008
BulkCrNmixed TM-N110.0530.018–0.1070.245−0.003
BulkTiNN-only150.0510.037–0.0620.150−0.008
BulkTiNmetal-only150.0740.044–0.1110.373−0.009
BulkTiNmixed TM-N110.0600.030–0.0840.187−0.007
SurfaceCrNN-only290.0280.015–0.0560.167−0.001
SurfaceCrNmetal-only980.0710.038–0.1130.382−0.006
SurfaceCrNmixed TM-N780.0520.028–0.0740.224−0.004
SurfaceTiNN-only290.0460.021–0.0880.209−0.004
SurfaceTiNmetal-only290.0690.036–0.1320.360−0.005
SurfaceTiNmixed TM-N390.0550.030–0.0860.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. ⟨ΔdTM−N⟩\langle\Delta d_{\mathrm{TM-N}}\rangle 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.

RegionVacancy familyNconfigN_{\mathrm{config}}Mean max. spin (μB\mu_{\mathrm{B}})Min. (μB\mu_{\mathrm{B}})Max. (μB\mu_{\mathrm{B}})
BulkN-only143.4902.9433.733
Bulkmetal-only132.8422.8362.870
Bulkmixed TM-N113.0222.9183.363
SurfaceN-only293.5632.9384.005
Surfacemetal-only982.9072.8862.937
Surfacemixed TM-N783.0572.9393.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.

MaterialLayerr0r_0 (Å)⟨∣Δz∣⟩\langle|\Delta z|\rangle (Å)max ∣Δz∣|\Delta z| (Å)⟨∣Δr∣⟩\langle|\Delta r|\rangle (Å)max ∣Δr∣|\Delta r| (Å)
TiNL00.1750.0030.0110.0450.281
L10.0340.0030.0100.0610.248
L20.0530.0020.0080.0510.262
L30.0160.0030.0100.0670.221
L40.0200.0020.0080.0600.232
L50.0000.0010.0070.0520.161
L60.0200.0020.0060.0500.212
L70.0160.0010.0040.0270.066
L80.0530.0010.0030.0100.022
L90.0340.0010.0040.0090.023
L100.1740.0010.0040.0100.022
CrNL00.0370.0030.0150.1010.433
L10.0100.0030.0120.0940.277
L20.0050.0040.0120.0840.292
L30.0030.0030.0110.0850.267
L40.0020.0020.0100.0820.267
L50.0000.0020.0080.0530.268
L60.0010.0030.0090.0550.269
L70.0020.0030.0070.0250.067
L80.0050.0020.0050.0160.058
L90.0090.0010.0040.0160.042
L100.0370.0010.0050.0130.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. Δz\Delta z is the shift of the layer mean coordinate relative to the pristine slab and Δr\Delta r is the change in rumpling. Mean and maximum absolute changes are taken over the sampled defective surface configurations.

References

  1. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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

Paper details

vlnc:W_jj3mfsny
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents