where E tot [GB] is the total energy of a GB supercell, N is the total number of units of bulk, E tot [Bulk] is the total energy of a unit of bulk and A is the cross-sectional area of the slab where the factor of two accounts for the two equivalent interfaces in the model.