Nitrogen ions are charged atoms of nitrogen that have lost or gained electrons, resulting in an imbalance between protons and electrons. The charge on a nitrogen ion depends on the number of electrons lost or gained. Nitrogen ions with a positive charge (cations) have lost electrons, while those with a negative charge (anions) have gained electrons. The formation of nitrogen ions is influenced by factors such as atomic structure, electronegativity, ionization energy, and the ionization process.