The density of surface coating can contribute to different antibacterial activities of gold nanoparticles.