Introduction

The search for a substitute or displacement of silicon technology in the photovoltaic field could be considered a revolution [1], which is more or less what perovskite solar cells (PSCs) are currently doing. The latter is reinforced by the fact that there is no other photovoltaic single-junction technology that could be comparable to established ones except for PSCs, even more, the latter has an advantage by the latter due to the band-gap tunability of metal-halide materials [2]. Unfortunately, lead-based perovskites are considered a danger to human health, because if this material degrades within a PSC, the amount of lead that would be released to the environment would be greater than the harmful threshold for human beings [3]. However, to the best of our knowledge, there is no other lead-free metal halide material that could compete with lead-based perovskites [4], as Fig. 1 shows.

Figure  1
figure 1

Brief comparison of the power conversion efficiency (PCE) among some lead-free metal-halide absorbers with conventional technologies and the actual record of PSC devices (achieved with a perovskite material with lead content). References [2, 18, 19] have been used for this purpose. Reference [4] has been used as inspiration for this figure.

Furthermore, the PCE growth ratio of PCS has decreased in the last five years: since their appearance in the “Notable exception” table from the periodic report of Green and co-workers in 2013, the average annual growth ratio was 10.4% [5,6,7,8,9] until 2018, but from 2018 to 2022 this ratio was 3.1% [10,11,12,13,14]. This mentioned decrement is natural considering that each year the PCE record of a PSC is closer to the Shockley-Queisser (SQ) limit: At present, the PCE record (25.7%) of a PSC [4] represents 86% of its SQ limit (which is 31.2% [15], considering a band gap of 1.54 eV for HC(NH2)2PbI3). Therefore, within this context and taking into account that the first rung of the stability-improvement ladder of metal halide (MH) perovskites is the study of these materials at the nanoscale or atomic scale [1, 16, 17], the community has time to continue scrutinizing these materials using first-principles calculations, which in turn gives the possibility to further solidify even more the theoretical background, foster the discovery of new absorbers, and enhance those that already exists in this field.

First-principles calculations have been determinant on the understanding of the chemical and physical properties of MH perovskites (or simply MHP) with chemical formula ABX3: A = Cs+, CH3NH3+ (MA), or HC(NH2)2+ (FA); B = Sn2+ or Pb2+; and X = Cl, Br, or I. Among the great and vast studies that have been performed, special attention has been paid to the interaction between organic cations and the MH environment, where Van der Waals (vdW) interactions acquire a major role in these compounds, since they provide stability and can tune optoelectronic properties by bending the B–X bonds [20,21,22,23,24,25,26].

MH bonds have also been addressed, particularly by means of crystal orbital Hamiltonian Population (COHP) analysis, in such a way that the energy variation of the integrated COHP (ICOHP) could be tracked when alloys are studied [27]; in fact, a correlation between the ICOHP and bulk modulus (as expected) [28, 29]. However, MH bonds are well known for being more ionic in nature than covalent in nature [30], leaving the ionic part without being addressed. In either case, it is important to generate or have as many descriptors as possible to count with the necessary tools to seek the enhancement (or discovery) of materials for a particular applicability [1].

On the other hand, determining the band-gap energies has been a problem through the years on metal-halide perovskites. Experimentally, different band gaps have been determined in these materials, when they have played the role of absorber in solar cells [19]. Since the band gap of the absorber film determines the efficiency that the photovoltaic device could achieve, knowing this energy value is crucial.

In this work, a model to quantify the sum of the energy of the interaction of the \(A\)-site cation with the octahedral array and the binding of the chemical species constituting the cation is proposed. The use of charged periodic structures was avoided, and the energy attributed to the lead-halide bonds was first calculated to obtain the previously mentioned above.

Finally, to point out the utility of using meta-GGA functionals for the calculation of the band gap in metal-halide perovskites, a brief analysis of this matter was made through the TPSS, revTPSS, HCTH/407, and PBE functionals. On the basis of the presented results, in addition to the well-established functionals employed in the literature for the determination of the band gap of these materials, because of the level of theory they possessed, the TPSS one would be another option for this purpose.

Methodology

Computational details and model

All first-principles calculations were based on DFT as implemented in DMol3 code [31]. To describe electron exchange and correlations, the functional proposed by Perdew, Burke, and Ernzerhof was employed [32], which is within the frame of the generalized gradient approximation (GGA). For the description of electrons, a basis set of doubled numerical orbitals with d-polarization functions, identified as DND within DMol3, was used [31, 33]. For geometrical optimization processes, all electrons from H, C, and N atoms were considered, and for semi-local pseudo potentials conserved by the norm of Cs, Pb, and I [34] were considered instead. Scalar relativistic (SR) corrections were taken into account for core electrons in all chemical species [33], and all numerical orbitals reached zero after 6.9 Å. All the systems were fully relaxed until all internal forces were below 7.0 \(\times \) 10−4 Ha/Å (\(\approx \) 1.9 \(\times \) 10−2 eV/Å); furthermore, to sample the first Brillouin zone in the reciprocal space, a 4 \(\times \) 4 \(\times \) 3 grid was used through the methodology of Monkhorst and Pack [35]. On the other hand, all numerical orbitals were equal to zero at 7.1 Å and a 6 \(\times \) 6 \(\times \) 4 k-mesh was employed for both energy and electronic properties calculations. To perform a comparison between meta-GGA and GGA functionals, in addition to the PBE functional, the TPSS [36], revTPSS [37], and HCTH/407 [38] ones were employed to calculated the band gap energies.

In order to correctly describe interactions within the crystal and due to both hydrogen and halogen bonds, corrections for dispersion interactions were considered by means of the Tkatchenko-Scheffler approach [39]. To complement the study, a crystal orbital Hamiltonian Population (COHP) [40] analysis was performed, in order to determine the integrated COHP (ICOHP) of the different interactions within the crystal solids to quantify the covalent contributions within the atomistic models studied [41, 42].

However, only tetragonal structures were taken into account throughout the calculations (Fig. 2). It is well known that MAPbI3 (herein simply MAPI) has a tetragonal phase at room temperature (180 K < T < 352 K) [43], nevertheless, both CsPbI3 and FAPbI3 (referred as CsPI and FAPI, respectively, from now on) do not crystalize in a tetragonal phase [44, 45]. The cubic phase of both CsPI and FAPI [44, 46] was employed to construct the tetragonal unit cell (UC), since the former could obtain this highly symmetric phase at 634 K [45] and the latter above room temperature (390 K) [47]. Nevertheless, both cubic phases could be obtained by a careful synthesis process with special treatments to help the crystal endure through time and retain its perovskite structure [46, 48].

Figure  2
figure 2

The tetragonal unit cell is used for the APbI3 perovskite; it is composed of four times the chemical formula.

Figure 2 illustrates the unit cell (UC) of the perovskite systems used in this study. Regarding the description of the lattice constants (a0, b0, and c0), the relative error (RE) was less than 2% for both MAPI and FAPI. In the case of CsPI, only the lattice constant a0 slightly deviated from the experimental value, with an RE of 5.1%. However, it had the smallest deviation from the experimental volume per unit cell (RE = 0.9%). In this regard, the equilibrium volume for the remaining compounds, MAPI and FAPI, yielded RE values of 4.4% and 1.2%, respectively.

Additionally, the averaged Pb–I bond lengths in CsPI, MAPI, and FAPI exhibited an RE of ≤ 2.5%. Therefore, the structural description of all perovskites is consistent with the methodology and the level of theory employed in this study [49]. Further structural details can be found in the supporting information document.

Approach to quantifying the energy of the interactions within the perovskites

In the work of Svane et al. [21] it was adopted the convention that the interaction of the A-site cation is composed by the sum of the mono-pole term and the hydrogen bond (referred herein as HB). Besides, by definition the HB is decomposed in three interactions: the electrostatic and covalent ones, and the interaction originated from dispersions. Thus, since all calculations regarding dispersion interactions, which were added to the total electronic energy of each system, the energy attributed to them is immersed in any energy computation performed in this work. Furthermore, the monopole term from the approach of Svane and co-workers plays the role of the electrostatic part mentioned above, and by means of the ICOHP analysis, it is possible to find the energy attributed to the covalent part of the HB.

On the other hand, we can define an energy \(E\left({E}_{i}^{A}+{E}_{b}^{A}\right)\), i.e., the energy attributed to the sum of the interaction energy of the \(A\)-site cation within the octahedra array, \({E}_{i}^{A}\), and in case it is a poli-atomic cation with an effective charge associated, \({E}_{b}^{A}\) is the binding energy of the \(A\)-site cation. Therefore, decomposing \(E\left({E}_{i}^{A}+{E}_{b}^{A}\right)\) in an ionic and a covalent part:

$$ E\left( {E_{i}^{A} + E_{b}^{A} } \right) = E_{i}^{A} + E_{b}^{A} = E_{i - ion}^{A} + E_{b - ion}^{A} + E_{i - cov}^{A} + E_{b - cov}^{A} $$
(1)

As it could be seen from Eq. (1), it has been considered that both terms, \({E}_{i}^{A}\) and \({E}_{b}^{A}\), have an ionic (\({E}_{i-ion}^{A}\) and \({E}_{b-ion}^{A}\)) and a covalent part (\({E}_{i-cov}^{A}\) and \({E}_{b-cov}^{A}\)). The latter is true since all chemical bondings could be structured just as the HB, but with major energy contributions proportional to the orbital interactions from the interacting chemical species and the inherent electrostatic forces (as a reminder, dispersion corrections were added to the total energy of all systems through all the calculations).

Thus, based on the work of Svane et al. [21], one can propose an equation that approximates the energy of the lead-iodide bonds of the \(A\) PbI3 perovskite. First, we need to consider a system with Cs+ cations placed in the center of the cubo-octahedral cages of the relaxed \(A\) PbI3 perovskite structures (Fig. 3). Now, if the energy of this system is calculated through a self-consistent process to relax only the orbitals, we can obtain the cohesive energy of the system, named \(E_{coh}^{{Cs \cdot PbI_{3} }}\). Nevertheless, it is pertinent to subtract the energy related to the interaction between the spherical cations and the cubo-octahedral environment. By means of an ICOHP analysis, the energy attributed to the interaction between the orbitals of Cs and I atoms can be obtained, i.e., the covalent part of the interaction between Cs and I atoms. If the latter energy is labeled as \(E_{i - cov}^{Cs \cdot }\), it is possible to define the binding energy of the MH bonds of the \(A\) PbI3 perovskite, or simply \(E_{b}^{MH}\), as:

$$ E_{b}^{MH} = E_{coh}^{{Cs \cdot PbI_{3} }} - E_{i - cov}^{{Cs \cdot PbI_{3} }} $$
(2)
Figure  3
figure 3

a View of the four cages that the UC of APbI3 (A = FA, for this particular case) has, one of these cages is highlighted with a red circle. b Vectors related with the positions of the lead atoms \(\left( {{\text{v}}_{{\text{i}}}^{{\text{k}}} } \right)\) that were used to calculate the vector associated to the center of the cage \(\left( {{\text{C}}^{{\text{k}}} } \right)\). c Visualization of the four cages of the UC of \({\text{A}}\) PbI3 with the Cs atoms placed at their centers \(\left( {{\text{C}}^{{\text{k}}} } \right)\).

To avoid any ambiguity, the binding energy of a poli-electronic system, \({E}_{b}^{sys}\), is calculated by means of:

$$ E_{coh}^{sys} = E^{sys} - \mathop \sum \limits_{i}^{{}} n_{i} E_{atom}^{i} $$
(3)

where \({E}^{sys}\), \({E}_{atom}^{i}\), and \({n}_{i}\) are the total (electronic) energy of the system, the total (electronic) energy of the atom \(i\), and the number of atoms \(i\) within the UC of the system at issue, respectively. Now, by means of Eqs. (2) and (3), we can calculate the energy \(E\left({E}_{i}^{A}+{E}_{b}^{A}\right)\). \(E\left({E}_{i}^{A}+{E}_{b}^{A}\right)\) is defined in Eqs. (4a) and (4b) as follows:

$$ E\left( {E_{i}^{A} + E_{b}^{A} } \right) = \frac{1}{4}\left( {E_{coh}^{{APbI_{3} }} - E_{b}^{MH} } \right) $$
(4a)
$$ E\left( {E_{i}^{A} + E_{b}^{A} } \right) = \frac{1}{4}\left[ {E_{coh}^{{APbI_{3} }} - \left( {E_{b}^{{Cs \cdot PbI_{3} }} - E_{i - cov}^{{Cs \cdot PbI_{3} }} } \right)} \right] $$
(4b)

In both equations Eqs. (4a) and (4b), the proportionality constant \(\frac{1}{4}\) was included since the chemical formula is present four times within all UCs, i.e., the energy values are given in energy units per formula unit (i.e., eV/f.u.). In addition, for the CsPI perovskite only, \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\) would be describing the interaction of the non-centered Cs+ cations within the lead-halide environment, i.e., considering \(A = Cs\), Eq. (3) would be describing only \(E\left( {E_{i}^{Cs} } \right)\), since \(E_{b}^{Cs} = 0\) in the CsPI perovskite.

Results and analysis

Energy of the interactions within the perovskites

Table 1 contains the energies related to the MH bonds of the perovskites CsPI, MAPI, and FAPI, in conjunction with their respective cohesive energies. Table 2 shows the energies related to the \(A\)-site cations, and in Fig. 4 some of the energies are plotted and a special attention was paid to the HBs within the organic-inorganic systems.

Table 1 Cohesive energy (\(E_{coh}^{{APbI_{3} }}\)) and binding energies of the MH bonds (\(E_{b}^{MH}\)) of all three perovskites CsPI, MAPI, and FAPI
Table 2 \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\) energies obtained for CsPI, MAPI, and FAPI, with their corresponding covalent contributions due to both the interaction with the metal-halide array (\(E_{i - cov}^{A}\)) and binding of the molecule’s constituents (\(E_{b - cov}^{A}\))
Figure  4
figure 4

a Comparison between the calculated energies shown in Tables 1 and 2 and calculated using Eqs. (2), (3), (4). b From top to bottom: i) electronic charge density comparison between MAPI and FAPI reflecting the concentration of charge between the organic cations and halogens; ii) bond angles and bond lengths of the X-H⋯I HBs in both MAPI and FAPI, average values are shown with filled symbols; iii) number of X-H⋯I HBs per UC in both MAPI and FAPI; all bond lengths that fulfilled the X-H⋯I < 3.2 Å criteria [54], were considered as HB bond.

By analyzing the data in Table 1, it could be seen that the cohesive energies reflected the covalent bonds present in the molecules within the organic-inorganic compounds, due to the lower energy values obtained for these systems in comparison to the all-inorganic one. Further, the lowest energy value was obtained in FAPI, due to the stronger covalent bonds in the FA+ cations, because of the N–C–N bond, in comparison to the MA+ ones, which only possess a C–N bond. All the above-mentioned are in good agreement with previous theoretical calculations. For example, Santos et al. [50] obtained a cohesive energy of 157.92 eV for MAPI, only 1.73 eV (or 36 meV/atom) above the result presented in Table 1. Furthermore, in that same work, a cohesive energy of 55.54 eV was computed for CsPI, 3.09 eV (155 meV/atom) above the result presented in Table 1 for the all-inorganic perovskite. In addition, that same work supports a stronger cohesive energy in perovskites with FA content than in those with MA cations within the perovskite structure.

The energy discrepancies addressed above could be related to the three main things: i) distinct approaches to describe the valence electrons (PAW method vs. pseudopotentials), ii) distinct corrections for dispersion interactions (TS vs. D3), and iii) distinct atomistic models to describe the perovskite compounds (supercubic structures were used by Santos and co-workers, constituted by eight formula units, which means additional interactions between the chemical constituents within the UC).

On the other hand, previous studies have pointed out that in organic-inorganic perovskites the major contribution to the cohesive energy of the material comes from the organic part, rather than the inorganic one [50]. As we can see from the \(E_{b}^{MH}\) values of both MAPI and FAPI, the binding energy associated to the metal-halide bonds only represents around 35% of the total energy related to the bonds of the crystal, in agreement with the literature. However, in CsPI, the difference between \(E_{coh}^{{APbI_{3} }}\) and \(E_{b}^{MH}\) is only 2.61 eV, which is related to the energy of the interaction between the off-centered Cs+ cations and the metal-halide environment. Furthermore, in the all-inorganic perovskite where the stronger lead-iodide bonds are found, which could be supported by the fact that this perovskite possessed the most distorted octahedral array among the three perovskites studied (see supporting information), in agreement with the literature [51]. In fact, our optimized structures met the expected increasingly octahedral distortion as the volume of the \(A\)-site cation decreases [23].

Thus, in CsPI the stabilization of the orbitals from I and Pb could be ruled by Jahn–Teller effects, producing an increased interaction between the I-p and Pb-s orbitals. The binding energy of the metal halide array involves bonding Pb-p–I-p and antibonding Pb-s–I-p interactions in the bottom and top of the valence band, respectively [52] (see also Supporting Information document). In addition, the bond lengths are shorter in CsPI with respect to MAPI and FAPI, in fact, it was obtained an ascendant tendency on the average Pb-I bond length as the volume of the cation in the \(A\)-site increases (as expected). Thus, since there is also an increasingly tendency on the \(E_{b - cov}^{MH}\) values from CsPI to FAPI. Therefore, the covalent character in the metal halide arrays is regulated by the bonding Pb-p–I-p and antibonding Pb-s–I-p interactions’ proportion, where short Pb-I bond lengths (~ 3.16 Å) favors the covalency but this is hindered by larger Pb-I bond lengths (~ 3.24 Å).

Finally, it could be seen that the energy values of \(E_{b - cov}^{MH}\) obtained for all systems, contribute around 28% to the binding energy of the metal-halide arrays, i.e., the binding nature of these chemical species is mostly ionic, in agreement with the literature since it has been widely recognized that the interaction between the metal and halogen atoms is mostly ionic [30].

Table 2 are presented the energy results for \(\left( {E_{i}^{A} + E_{b}^{A} } \right)\), i.e., the energy attributed to the sum of the binding energy of the \(A\)-site cation and the interaction with its lead-iodide environment. First, as mentioned above, the energy obtained by the all-inorganic perovskite in this respect is associated exclusively with the interaction of the spherical monovalent cation with its environment. The result obtained here is of the same order as the energies previously quantified by Ornelas-Cruz et al. [53] of the interaction between Cs and halogen atoms (0.06–0.18 eV), within all-inorganic tin-based mixed-halide perovskites. In that same work, the presence of charge between Cs and halide atoms pointed out a covalent interaction between them; in the present case, it is confirmed through Table 2 that 86% of such an interaction is indeed covalent.

In both organic-inorganic perovskites, \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\) energies are found to be two orders of magnitude higher than that of CsPI. In both MAPI and FAPI the majority of the energy associated with \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\), 84 and 97%, respectively, were attributed to covalent interactions: between the molecule’s constituents and between the molecule and its surrounding environment. Moreover, it has been confirmed that the species constituting FA molecules are more tightly bound than those in MA molecules. Interestingly, 50–61% of the total cohesive energy of the UC in the organic-inorganic perovskites is attributed to the energy of covalent bonds formed within the molecules, and only 3–4% belongs to the covalent interaction between the organic molecules and the cubo-octahedral periodic arrangement. Additionally, it is worthy to mention that by means of the ICOHP analysis and for the FAPI compound as well, it is reported in the literature an energy value of 1.26 eV/f.u., for the FA–I interaction, 0.1 eV/f.u. below the reported value in Table 2, which reinforces the reliability of the methodology here employed [27].

The main feature of the present methodology, in addition to avoiding the use of charged periodic systems on the computation of these energy values, is that having as reference both \(E_{b}^{MH}\) and \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\) it is possible to qualitatively address the energy contributions within the perovskite compounds. The ICOHP analysis has its roots in tight-binding theory [40], thus it is theoretically supported by quantum mechanics. Therefore, it is crucial to be coherent with the chemically expected description of a material when its study involves systems that has no physical meaning, such as those used for the calculation of \(E_{coh}^{{Cs \cdot PbI_{3} }}\) and \(E_{i - cov}^{{Cs \cdot PbI_{3} }}\). Fortunately, in all three systems both terms, \(E_{b}^{MH}\) and \(E\left( {E_{i}^{A} + E_{b}^{A} } \right)\), not only had lower energies than those obtained through ICOHP method, but also helped in pointing out where the ionic and the covalent interactions are crucial within the components of these complex materials (see Fig. 4a to visualize this energy comparison).

One of the routes to improve the stability of the metal-halide perovskite materials is through chemical doping or chemical substitution. Complex perovskites are beyond the scope of this work; nevertheless, this qualitatively energetic approach can provide insights into the nature of chemical bonds. When a gradual chemical substitution of a specific chemical species is performed, it would be possible to track the modulation of the chemical bond character. However, conclusions about stability cannot be drawn solely from this study. Mechanical and vibrational first-principles analyses, as well as calculations of formation energies, are well-established theoretical methods for gaining insights into a material's stability [55,56,57]. Therefore, the present method serves as an additional tool for the comprehensive characterization of the absorber material of a PSC.

To complement the results presented in Table 2, special attention was paid to the HB in Fig. 4b. By counting only, the number of reactive HBs (i.e., N–H \(\cdots\) I) in both molecules, MA and FA, MAPI possess a smaller number of HBs per UC than FAPI (3 vs 4 per formula unit), but due to the size and symmetry of FA molecule it is important to consider also C–H \(\cdots\) I interactions. Figure 4b shows the electronic charge density of both MAPI and FAPI in order to better visualize the HBs present in both structures. As observed, there is a higher concentration of charge in the N–H \(\cdots\) I HBs from MAPI compared to those from FAPI. Moreover, driven by the definition of the HB [58], there are two other properties that could give better insights on the HB strength: the X–H \(\cdots\) I bond angle and bond length. Shorter NH \(\cdots\) I means stronger HB and this strengthness is reinforced as N–H \(\cdots\) I approaches 180°. Thus, despite having more HBs in FAPI, the strongest ones are formed within MAPI, in good agreement with the energy value reported in Table 2.

Electronic properties

As we can see from Fig. 5, the experimentally determined band gap of the metal-halide perovskites follows a descendant trend as the cation’s volume in the \(A\)-site becomes greater: CsPI > MAPI > FAPI. Unfortunately, no similar trend was found for any of the functionals tested in this work, in fact the opposite trend in all cases. Nevertheless, it would be worth noting that the obtained band gap is of the direct type for all 4 functionals, consistent with the literature [59]. Similar results have been found in the literature [50], due to the sensibility of the band gap to the octahedral tilt and octahedral distortions [23]. The latter issue arises because the valence and conduction bands predominantly consist of electronic states from both Pb and I, and as we can see from the energetic values of Table 2, there is a different interaction between the Pb-s and Pb-p orbitals and the I-p ones in each perovskite system. From the computational calculations here performed, a stronger covalent interaction in the Pb-I bonds has produced a smaller bandgap, contrary to the trend found in conventional semiconductors (e.g. C, Si, Ge). Nevertheless, this might be related to the hybridization of I-p orbitals with those from the \(A\)-site cation, since there is an interaction between them, as Table 2 showed.

Figure  5
figure 5

Top: Comparison of the bandgap energies obtained with the different functionals employed in this work; all numeric values are given in the Supporting Information. Bottom: The density of states of the three different perovskite compounds studied in this work was obtained through the functionals TPSS, revTPSS, HCTH/407, and PBE.

On the other hand, the greatest relative error found among the calculated bandgaps was on the HCTH/407 for the FAPI compound, in fact, from the results presented in Fig. 5, this GGA functional did not have a good precision in describing the bandgap of organic-inorganic perovskites. However, it was the best among all functionals for the all-inorganic perovskite, the bandgap determined with HCTH/407 was 0.15 eV below the experimental value. This result, is in good agreement with the literature, since the HCTH/407 functional has proven its feasibility in all-inorganic perovskites [29]. Additionally, the best results found for organic-inorganic perovskites were given by the TPSS functional: 0.03 and 0.15 eV above the experimental values of MAPI and FAPI, respectively. In this respect, previous first-principles studies have pointed out that both TPSS and revTPSS functionals were among the best existing within DFT, due to the precision of the description of the electronic density [60]. Thus, we do not discard the possibility that further improvements on the calculation of the band gap could be achieved with TPSS, e.g., by means of a greater basis set (considering empty p orbitals for H atoms) or all-electron calculations.

The approaches to address exchange and correlation interactions between both meta-GGA and hybrid functionals are different, while the former is a functional on the term kinetic energy density to further improve the descriptions of the variations on the electronic density, the latter describe part of the exchange interactions through the exact functional given by the Hartree–Fock method [61]. Thus, different band gap energies are expected. As a consequence, hybrid functionals tend to widen the band gap due to the exchange description being done mainly on the Pb orbitals. For instance, Wang et al. [62] have reported for CsPI band gaps calculated by means of HSE06 and PBE0 equal to 2.19 and 2.83 eV while Santos et al. [50] have reported through the HSE06 functional band gaps of 2.20 and 2.08 eV for CsPI and MAPI, respectively. For comparison, the band gaps obtained here for CsPI and MAPI employing the TPSS functional are 1.35 and 1.58 eV, respectively.

On the other hand, based on the DOS graphs presented in Fig. 5, it is evident that the characterization of the electronic states in both the valence and conduction bands (VB and CB, respectively) varied slightly between different functionals. Nevertheless, the electronic states described by means of the PBE functional are very similar to those described by the revTPSS and TPSS ones, in both the VB and CB. For both MAPI and CsPI, it could be said that PBE provided a description of the electronic density of states at the level of meta-GGA functionals [63]. However, there is a peak in FAPI at approximately 2.5 eV that was shifted to higher energies through the TPSS functional. Thus, describing the electronic states resulting from the hybridization of N-p, I-p, and Pb-p orbitals can be challenging, even at the meta-GGA level, owing to the localization of N-p orbitals. Moreover, HCTH/407 described the distribution of the states through the energies of the bottom half of the VB, because of the states belonging to N-p orbitals from FAPI; besides, for the remaining perovskites (MAPI and CsPI), HCTH/407 displaced the localization of the states composing the VB.

While the discrepancies in the description of electronic states among different functionals are more evident in the DOS plots, the band gap (\(E_{g}\)) is ultimately determined by the difference between the energy at the valence band maximum (\(E_{VBM}\)) and that at the conduction band minimum (\(E_{CBM}\)), expressed as \(E_{g} = E_{CBM} - E_{VBM}\). To give an idea of these energy values, the relative band gaps (\(\Delta E_{g}\)) in comparison to those obtained through the PBE functional (\(E_{g}^{PBE}\)) were calculated by means of: \(\Delta E_{g} = E_{g}^{i} - E_{g}^{PBE}\). Consequently, for TPSS, revTPSS, and HCTH/407, we obtained the following \(\Delta E_{g}\) values: − 0.03 to − 0.04 eV, − 0.01 to − 0.03 eV, and − 0.20 to − 0.21 eV, respectively.

Therefore, undoubtedly more testes should be done to determine which functional stands out among the others, however, some remarks can be extracted from this brief analysis: i) TPSS would be a good option for the description of the electronic properties of organic-inorganic metal-halide perovskites, ii) revTPSS and PBE functionals might deliver similar electronic descriptions on these types of compounds, and iii) HCTH/407 could give a good bandgap approximation in all-inorganic perovskites.

Finally, in Fig. 6, it is possible to observe that the \(A\)-site cation did not contribute to the top of the VB as expected [59]. Nevertheless, there are states from the \(A\)-site species in the energy region where the antibonding Pb-s and I-p interactions occur, thus, the presence of these states confirmed that lead-iodide orbitals are further hybridized with those from the \(A\)-site cations. In fact, the X–H \(\cdots\) I interactions generated bonding contributions in the VB in both MAPI and FAPI, while in CsPI the Cs-I interactions brought about bonding and antibonding ones in the same energy region (see Supporting Information). Thus, the HBs can counteract the weakening of the lead-iodine bonds originating from the antibonding interactions between the orbitals of their constituents. Lastly, because of the sharp peaks of the N-p orbitals, we might have these states well concentrated in FA molecules within the perovskite.

Figure  6
figure 6

Density of states (DOS) of the orbitals from the chemical species constituting the \({\text{A}}\)-site cations in all three perovskites studied and obtained by means of the PBE functional. DOS from the Pb-s, Pb-p and I-p orbitals are given in orange, turquoise, and light gray, respectively.

Conclusions

We have performed a Density Functional Theory study on three well known perovskites, namely CsPbI3, CH3NH3PbI3, and HC(NH2)2PbI3. A qualitative analysis of the chemical bonding of their constituents was carried out by means of both the cohesive energy and COHP analysis to elucidate the covalent proportion of the interactions involved within the perovskite systems. We confirmed that most of the chemical bonding between the lead and halide species was attributed to ionic interactions. Furthermore, it was found that formamidinium molecules are more tightly bound than methylammonium ones, and the observed trend in the strength of the interaction between the cations and the cubo-octahedral cages was as follows. CH3NH3+  > HC(NH2)2+  > Cs+.

Based on bandgap calculations and density of states (DOS) analysis, it is concluded that the meta-GGA TPSS functional would be a good option for the band-gap description of organic-inorganic perovskites, while the GGA HCTH/407 functional would be a good choice for the band gap calculation in all-inorganic ones. Moreover, PBE and revTPSS functionals could deliver similar results in both DOS and band gaps, based on the systems here studied. The results obtained with respect to structural properties, cohesive energies, ICOHP energy values and bandgap energies, have been compared with previous theoretical and experimental results for two main reasons: the reproducibility of first-principles calculations and to deliver the correct description of the material. Therefore, due to the proximity found with previous results, the present work might be helpful for future studies.

In this respect, special attention should be paid to the energetical values of the cohesive energies, since, from a computational materials science perspective, it is an extensive property. In addition, the energy values calculated through the ICOHP analysis depend on the basis set employed. Despite having been cautious on meeting the chemically expected results, the methodology proposed here should be further tasted, especially in much more complex compounds such as those used in current PSC.