I can't say confidently that an atom is mostly vacuum, but I am somewhat sure that atom is mostly vacuum because electrons and nucleons cover much less space and everything other than these elementary particles in an atom is vacuum.

Why is everything around us rigid even if the atom is mostly vacuum?