Any molecule that accepts a proton is a base, whereas any molecule that releases a proton is an acid.
As a member of group , nitrogen has five valence electrons in . The three hydrogen atoms are each adding one electron to complete their octet, or eight electrons or four pairs.
One of the pairs is a lone pair since the nitrogen is only forming three bonds.
In general, we know that a nitrogen atom with three bonds and one pair of unpaired electrons functions as a proton acceptor (base).
Also ammonia does not have any hydroxide ions, when it is dissolved in water, it collects hydrogen ions from the water and produces both hydroxide and ammonium ions
.
Ammonia is a weak base since it does not completely ionize to hydroxide and ammonium ions. When it ionizes, some of the ammonia molecules are still bonded together.