An N-type semiconductor is created by doping a neutral semiconductor crystal with donor atoms. Although it has free electrons as majority carriers, the overall atom is electrically neutral because the number of protons in the nuclei still balances the total number of electrons.