An n-type semiconductor is created by doping a pure semiconductor crystal with donor impurity atoms. These donor atoms contribute extra electrons, which become mobile charge carriers. However, the crystal as a whole remains electrically neutral because the positive charges associated with the fixed donor ions are balanced by the total charge of the electrons and the atoms of the base semiconductor.