where E slab is the energy of the surface slab, E bulk is the bulk energy per Mg atom/MgO fragment, N is the amount of Mg atoms/MgO fragments in the slab, and A is the surface slab area. The area A has to be multiplied by two because of the symmetric slab configuration.