When. The atomic number of gold (Au) is 79. Therefore, its ground-state electron configuration should have a total number of 79 electrons.
Au is one of those elements that does not follow the predicted order of the electron configuration (the other elements are Cu,Ag,Pd,Cr, and Mo). This happens simply because completing the d orbital brings lower energy (lower risk of electron repulsion) compared to filling up the s orbital first.