# Nitrogen compounds

The chemical element nitrogen is one of the most abundant elements in the universe and can form many compounds. It can take several oxidation states; but the most common oxidation states are -3 and +3. Nitrogen can form nitride and nitrate ions. It also forms a part of nitric acid and nitrate salts. Nitrogen compounds also have an important role in organic chemistry, as nitrogen is part of proteins, amino acids and adenosine triphosphate.

## Dinitrogen complexes

The first example of a dinitrogen complex to be discovered was [Ru(NH$_3$)$_5$(N$_2$)]$^{2+}$ (see figure at right), and soon many other such complexes were discovered. These complexes, in which a nitrogen molecule donates at least one lone pair of electrons to a central metal cation, illustrate how N$_2$ might bind to the metal(s) in nitrogenase and the catalyst for the Haber process: these processes involving dinitrogen activation are vitally important in biology and in the production of fertilisers.
Dinitrogen is able to coordinate to metals in five different ways. The more well-characterised ways are the end-on M←N≡N (η$^1$) and M←N≡N→M (μ, bis-η$^1$), in which the lone pairs on the nitrogen atoms are donated to the metal cation. The less well-characterised ways involve dinitrogen donating electron pairs from the triple bond, either as a bridging ligand to two metal cations (μ, bis-η$^2$) or to just one (η$^2$). The fifth and unique method involves triple-coordination as a bridging ligand, donating all three electron pairs from the triple bond (μ$_3$-N$_2$). A few complexes feature multiple N$_2$ ligands and some feature N$_2$ bonded in multiple ways. Since N$_2$ is isoelectronic with carbon monoxide (CO) and acetylene (C$_2$H$_2$), the bonding in dinitrogen complexes is closely allied to that in carbonyl compounds, although N$_2$ is a weaker σ-donor and π-acceptor than CO. Theoretical studies show that σ donation is a more important factor allowing the formation of the M–N bond than π back-donation, which mostly only weakens the N–N bond, and end-on (η$^1$) donation is more readily accomplished than side-on (η$^2$) donation.
Today, dinitrogen complexes are known for almost all the transition metals, accounting for several hundred compounds. They are normally prepared by three methods:
* Replacing labile ligands such as H$_2$O, H$^−$, or CO directly by nitrogen: these are often reversible reactions that proceed at mild conditions.
* Reducing metal complexes in the presence of a suitable coligand in excess under nitrogen gas. A common choice include replacing chloride ligands by dimethylphenylphosphine (PMe$_2$Ph) to make up for the smaller number of nitrogen ligands attached than the original chlorine ligands.
* Converting a ligand with N–N bonds, such as hydrazine or azide, directly into a dinitrogen ligand.
Occasionally the N≡N bond may be formed directly within a metal complex, for example by directly reacting coordinated ammonia (NH$_3$) with nitrous acid (HNO$_2$), but this is not generally applicable. Most dinitrogen complexes have colours within the range white-yellow-orange-red-brown; a few exceptions are known, such as the blue [{Ti(η$^5$-C$_5$H$_5$)$_2$}$_2$-(N$_2$)].

## Nitrides, azides, and nitrido complexes

Nitrogen bonds to almost all the elements in the periodic table except the first three noble gases, helium, neon, and argon, and some of the very short-lived elements after bismuth, creating an immense variety of binary compounds with varying properties and applications. Many binary compounds are known: with the exception of the nitrogen hydrides, oxides, and fluorides, these are typically called nitrides. Many stoichiometric phases are usually present for most elements (e.g. MnN, Mn$_6$N$_5$, Mn$_3$N$_2$, Mn$_2$N, Mn$_4$N, and Mn$_x$N for 9.2 < x < 25.3). They may be classified as "salt-like" (mostly ionic), covalent, "diamond-like", and metallic (or interstitial), although this classification has limitations generally stemming from the continuity of bonding types instead of the discrete and separate types that it implies. They are normally prepared by directly reacting a metal with nitrogen or ammonia (sometimes after heating), or by thermal decomposition of metal amides:
    3 Ca + N$_2$ → Ca$_3$N$_2$
    3 Mg + 2 NH$_3$ → Mg$_3$N$_2$ + 3 H$_2$ (at 900 °C)
    3 Zn(NH$_2$)$_2$ → Zn$_3$N$_2$ + 4 NH$_3$
Many variants on these processes are possible. The most ionic of these nitrides are those of the alkali metals and alkaline earth metals, Li$_3$N (Na, K, Rb, and Cs do not form stable nitrides for steric reasons) and M$_3$N$_2$ (M = Be, Mg, Ca, Sr, Ba). These can formally be thought of as salts of the N$^{3−}$ anion, although charge separation is not actually complete even for these highly electropositive elements. However, the alkali metal azides NaN$_3$ and KN$_3$, featuring the linear N$^−$ $_3$ anion, are well-known, as are Sr(N$_3$)$_2$ and Ba(N$_3$)$_2$. Azides of the B-subgroup metals (those in groups 11 through 16) are much less ionic, have more complicated structures, and detonate readily when shocked.
Many covalent binary nitrides are known. Examples include cyanogen ((CN)$_2$), triphosphorus pentanitride (P$_3$N$_5$), disulfur dinitride (S$_2$N$_2$), and tetrasulfur tetranitride (S$_4$N$_4$). The essentially covalent silicon nitride (Si$_3$N$_4$) and germanium nitride (Ge$_3$N$_4$) are also known: silicon nitride in particular would make a promising ceramic if not for the difficulty of working with and sintering it. In particular, the group 13 nitrides, most of which are promising semiconductors, are isoelectronic with graphite, diamond, and silicon carbide and have similar structures: their bonding changes from covalent to partially ionic to metallic as the group is descended. In particular, since the B–N unit is isoelectronic to C–C, and carbon is essentially intermediate in size between boron and nitrogen, much of organic chemistry finds an echo in boron–nitrogen chemistry, such as in borazine ("inorganic benzene"). Nevertheless, the analogy is not exact due to the ease of nucleophilic attack at boron due to its deficiency in electrons, which is not possible in a wholly carbon-containing ring.
The largest category of nitrides are the interstitial nitrides of formulae MN, M$_2$N, and M$_4$N (although variable composition is perfectly possible), where the small nitrogen atoms are positioned in the gaps in a metallic cubic or hexagonal close-packed lattice. They are opaque, very hard, and chemically inert, melting only at very high temperatures (generally over 2500 °C). They have a metallic lustre and conduct electricity as do metals. They hydrolyse only very slowly to give ammonia or nitrogen.
The nitride anion (N$^{3−}$) is the strongest π donor known amongst ligands (the second-strongest is O$^{2−}$). Nitrido complexes are generally made by thermal decomposition of azides or by deprotonating ammonia, and they usually involve a terminal {≡N}$^{3−}$ group. The linear azide anion (N$^−$ $_3$), being isoelectronic with nitrous oxide, carbon dioxide, and cyanate, forms many coordination complexes. Further catenation is rare, although N$^{4−}$ $_4$ (isoelectronic with carbonate and nitrate) is known.

## Hydrides

Industrially, ammonia (NH$_3$) is the most important compound of nitrogen and is prepared in larger amounts than any other compound, because it contributes significantly to the nutritional needs of terrestrial organisms by serving as a precursor to food and fertilisers. It is a colourless alkaline gas with a characteristic pungent smell. The presence of hydrogen bonding has very significant effects on ammonia, conferring on it its high melting (−78 °C) and boiling (−33 °C) points. As a liquid, it is a very good solvent with a high heat of vaporisation (enabling it to be used in vacuum flasks), that also has a low viscosity and electrical conductivity and high dielectric constant, and is less dense than water. However, the hydrogen bonding in NH$_3$ is weaker than that in H$_2$O due to the lower electronegativity of nitrogen compared to oxygen and the presence of only one lone pair in NH$_3$ rather than two in H$_2$O. It is a weak base in aqueous solution (pK$_b$ 4.74); its conjugate acid is ammonium, NH$^+$ $_4$. It can also act as an extremely weak acid, losing a proton to produce the amide anion, NH$^−$ $_2$. It thus undergoes self-dissociation, similar to water, to produce ammonium and amide. Ammonia burns in air or oxygen, though not readily, to produce nitrogen gas; it burns in fluorine with a greenish-yellow flame to give nitrogen trifluoride. Reactions with the other nonmetals are very complex and tend to lead to a mixture of products. Ammonia reacts on heating with metals to give nitrides.
Many other binary nitrogen hydrides are known, but the most important are hydrazine (N$_2$H$_4$) and hydrogen azide (HN$_3$). Although it is not a nitrogen hydride, hydroxylamine (NH$_2$OH) is similar in properties and structure to ammonia and hydrazine as well. Hydrazine is a fuming, colourless liquid that smells similarly to ammonia. Its physical properties are very similar to those of water (melting point 2.0 °C, boiling point 113.5 °C, density 1.00 g/cm$^3$). Despite it being an endothermic compound, it is kinetically stable. It burns quickly and completely in air very exothermically to give nitrogen and water vapour. It is a very useful and versatile reducing agent and is a weaker base than ammonia. It is also commonly used as a rocket fuel.
Hydrazine is generally made by reaction of ammonia with alkaline sodium hypochlorite in the presence of gelatin or glue:
    NH$_3$ + OCl$^−$ → NH$_2$Cl + OH$^−$
    NH$_2$Cl + NH$_3$ → N $_2$H$^+$ $_5$ + Cl$^−$ (slow)
    N $_2$H$^+$ $_5$ + OH$^−$ → N$_2$H$_4$ + H$_2$O (fast)
(The attacks by hydroxide and ammonia may be reversed, thus passing through the intermediate NHCl$^−$ instead.) The reason for adding gelatin is that it removes metal ions such as Cu$^{2+}$ that catalyses the destruction of hydrazine by reaction with monochloramine (NH$_2$Cl) to produce ammonium chloride and nitrogen.
Hydrogen azide (HN$_3$) was first produced in 1890 by the oxidation of aqueous hydrazine by nitrous acid. It is very explosive and even dilute solutions can be dangerous. It has a disagreeable and irritating smell and is a potentially lethal (but not cumulative) poison. It may be considered the conjugate acid of the azide anion, and is similarly analogous to the hydrohalic acids.

## Halides and oxohalides

All four simple nitrogen trihalides are known. A few mixed halides and hydrohalides are known, but are mostly unstable; examples include NClF$_2$, NCl$_2$F, NBrF$_2$, NF$_2$H, NFH$_2$, NCl$_2$H, and NClH$_2$.
Five nitrogen fluorides are known. Nitrogen trifluoride (NF$_3$, first prepared in 1928) is a colourless and odourless gas that is thermodynamically stable, and most readily produced by the electrolysis of molten ammonium fluoride dissolved in anhydrous hydrogen fluoride. Like carbon tetrafluoride, it is not at all reactive and is stable in water or dilute aqueous acids or alkalis. Only when heated does it act as a fluorinating agent, and it reacts with copper, arsenic, antimony, and bismuth on contact at high temperatures to give tetrafluorohydrazine (N$_2$F$_4$). The cations NF$^+$ $_4$ and N $_2$F$^+$ $_3$ are also known (the latter from reacting tetrafluorohydrazine with strong fluoride-acceptors such as arsenic pentafluoride), as is ONF$_3$, which has aroused interest due to the short N–O distance implying partial double bonding and the highly polar and long N–F bond. Tetrafluorohydrazine, unlike hydrazine itself, can dissociate at room temperature and above to give the radical NF$_2$•. Fluorine azide (FN$_3$) is very explosive and thermally unstable. Dinitrogen difluoride (N$_2$F$_2$) exists as thermally interconvertible cis and trans isomers, and was first found as a product of the thermal decomposition of FN$_3$.
Nitrogen trichloride (NCl$_3$) is a dense, volatile, and explosive liquid whose physical properties are similar to those of carbon tetrachloride, although one difference is that NCl$_3$ is easily hydrolysed by water while CCl$_4$ is not. It was first synthesised in 1811 by Pierre Louis Dulong, who lost three fingers and an eye to its explosive tendencies. As a dilute gas it is less dangerous and is thus used industrially to bleach and sterilise flour. Nitrogen tribromide (NBr$_3$), first prepared in 1975, is a deep red, temperature-sensitive, volatile solid that is explosive even at −100 °C. Nitrogen triiodide (NI$_3$) is still more unstable and was only prepared in 1990. Its adduct with ammonia, which was known earlier, is very shock-sensitive: it can be set off by the touch of a feather, shifting air currents, or even alpha particles. For this reason, small amounts of nitrogen triiodide are sometimes synthesised as a demonstration to high school chemistry students or as an act of "chemical magic". Chlorine azide (ClN$_3$) and bromine azide (BrN$_3$) are extremely sensitive and explosive.
Two series of nitrogen oxohalides are known: the nitrosyl halides (XNO) and the nitryl halides (XNO$_2$). The first are very reactive gases that can be made by directly halogenating nitrous oxide. Nitrosyl fluoride (NOF) is colourless and a vigorous fluorinating agent. Nitrosyl fluoride can continue reacts with fluorine to form nitrogen oxide trifluoride, which is also a strong fluorinating agent. Nitrosyl chloride (NOCl) behaves in much the same way and has often been used as an ionising solvent. Nitrosyl bromide (NOBr) is red. The reactions of the nitryl halides are mostly similar: nitryl fluoride (FNO$_2$) and nitryl chloride (ClNO$_2$) are likewise reactive gases and vigorous halogenating agents.

## Oxides

Nitrogen forms nine molecular oxides, some of which were the first gases to be identified: N$_2$O (nitrous oxide), NO (nitric oxide), N$_2$O$_3$ (dinitrogen trioxide), NO$_2$ (nitrogen dioxide), N$_2$O$_4$ (dinitrogen tetroxide), N$_2$O$_5$ (dinitrogen pentoxide), N$_4$O (nitrosyl azide), and N(NO$_2$)$_3$ (trinitramide). All are thermally unstable towards decomposition to their elements. One other possible oxide that has not yet been synthesised is oxatetrazole (N$_4$O), an aromatic ring.
Nitrous oxide (N$_2$O), better known as laughing gas, is made by thermal decomposition of molten ammonium nitrate at 250 °C. This is a redox reaction and thus nitric oxide and nitrogen are also produced as byproducts. It is mostly used as a propellant and aerating agent for sprayed canned whipped cream, and was formerly commonly used as an anaesthetic. Despite appearances, it cannot be considered to be the anhydride of hyponitrous acid (H$_2$N$_2$O$_2$) because that acid is not produced by the dissolution of nitrous oxide in water. It is rather unreactive (not reacting with the halogens, the alkali metals, or ozone at room temperature, although reactivity increases upon heating) and has the unsymmetrical structure N–N–O (N≡N$^+$O$^−$↔$^−$N=N$^+$=O): above 600 °C it dissociates by breaking the weaker N–O bond. Nitric oxide (NO) is the simplest stable molecule with an odd number of electrons. In mammals, including humans, it is an important cellular signaling molecule involved in many physiological and pathological processes. It is formed by catalytic oxidation of ammonia. It is a colourless paramagnetic gas that, being thermodynamically unstable, decomposes to nitrogen and oxygen gas at 1100–1200 °C. Its bonding is similar to that in nitrogen, but one extra electron is added to a π* antibonding orbital and thus the bond order has been reduced to approximately 2.5; hence dimerisation to O=N–N=O is unfavourable except below the boiling point (where the cis isomer is more stable) because it does not actually increase the total bond order and because the unpaired electron is delocalised across the NO molecule, granting it stability. There is also evidence for the asymmetric red dimer O=N–O=N when nitric oxide is condensed with polar molecules. It reacts with oxygen to give brown nitrogen dioxide and with halogens to give nitrosyl halides. It also reacts with transition metal compounds to give nitrosyl complexes, most of which are deeply coloured.
Blue dinitrogen trioxide (N$_2$O$_3$) is only available as a solid because it rapidly dissociates above its melting point to give nitric oxide, nitrogen dioxide (NO$_2$), and dinitrogen tetroxide (N$_2$O$_4$). The latter two compounds are somewhat difficult to study individually because of the equilibrium between them, although sometimes dinitrogen tetroxide can react by heterolytic fission to nitrosonium and nitrate in a medium with high dielectric constant. Nitrogen dioxide is an acrid, corrosive brown gas. Both compounds may be easily prepared by decomposing a dry metal nitrate. Both react with water to form nitric acid. Dinitrogen tetroxide is very useful for the preparation of anhydrous metal nitrates and nitrato complexes, and it became the storable oxidiser of choice for many rockets in both the United States and USSR by the late 1950s. This is because it is a hypergolic propellant in combination with a hydrazine-based rocket fuel and can be easily stored since it is liquid at room temperature.
The thermally unstable and very reactive dinitrogen pentoxide (N$_2$O$_5$) is the anhydride of nitric acid, and can be made from it by dehydration with phosphorus pentoxide. It is of interest for the preparation of explosives. It is a deliquescent, colourless crystalline solid that is sensitive to light. In the solid state it is ionic with structure [NO$_2$]$^+$[NO$_3$]$^−$; as a gas and in solution it is molecular O$_2$N–O–NO$_2$. Hydration to nitric acid comes readily, as does analogous reaction with hydrogen peroxide giving peroxonitric acid (HOONO$_2$). It is a violent oxidising agent. Gaseous dinitrogen pentoxide decomposes as follows:
    N$_2$O$_5$ ⇌ NO$_2$ + NO$_3$ → NO$_2$ + O$_2$ + NO
    N$_2$O$_5$ + NO ⇌ 3 NO$_2$

## Oxoacids, oxoanions, and oxoacid salts

Many nitrogen oxoacids are known, though most of them are unstable as pure compounds and are known only as aqueous solution or as salts. Hyponitrous acid (H$_2$N$_2$O$_2$) is a weak diprotic acid with the structure HON=NOH (pK$_{a1}$ 6.9, pK$_{a2}$ 11.6). Acidic solutions are quite stable but above pH 4 base-catalysed decomposition occurs via [HONNO]$^−$ to nitrous oxide and the hydroxide anion. Hyponitrites (involving the N $_2$O$^{2−}$ $_2$ anion) are stable to reducing agents and more commonly act as reducing agents themselves. They are an intermediate step in the oxidation of ammonia to nitrite, which occurs in the nitrogen cycle. Hyponitrite can act as a bridging or chelating bidentate ligand.
Nitrous acid (HNO$_2$) is not known as a pure compound, but is a common component in gaseous equilibria and is an important aqueous reagent: its aqueous solutions may be made from acidifying cool aqueous nitrite (NO$^−$ $_2$, bent) solutions, although already at room temperature disproportionation to nitrate and nitric oxide is significant. It is a weak acid with pK$_a$ 3.35 at 18 °C. They may be titrimetrically analysed by their oxidation to nitrate by permanganate. They are readily reduced to nitrous oxide and nitric oxide by sulfur dioxide, to hyponitrous acid with tin(II), and to ammonia with hydrogen sulfide. Salts of hydrazinium N $_2$H$^+$ $_5$ react with nitrous acid to produce azides which further react to give nitrous oxide and nitrogen. Sodium nitrite is mildly toxic in concentrations above 100 mg/kg, but small amounts are often used to cure meat and as a preservative to avoid bacterial spoilage. It is also used to synthesise hydroxylamine and to diazotise primary aromatic amines as follows:
    ArNH$_2$ + HNO$_2$ → [ArNN]Cl + 2 H$_2$O
Nitrite is also a common ligand that can coordinate in five ways. The most common are nitro (bonded from the nitrogen) and nitrito (bonded from an oxygen). Nitro-nitrito isomerism is common, where the nitrito form is usually less stable.
Nitric acid (HNO$_3$) is by far the most important and the most stable of the nitrogen oxoacids. It is one of the three most used acids (the other two being sulfuric acid and hydrochloric acid) and was first discovered by the alchemists in the 13th century. It is made by catalytic oxidation of ammonia to nitric oxide, which is oxidised to nitrogen dioxide, and then dissolved in water to give concentrated nitric acid. In the United States of America, over seven million tonnes of nitric acid are produced every year, most of which is used for nitrate production for fertilisers and explosives, among other uses. Anhydrous nitric acid may be made by distilling concentrated nitric acid with phosphorus pentoxide at low pressure in glass apparatus in the dark. It can only be made in the solid state, because upon melting it spontaneously decomposes to nitrogen dioxide, and liquid nitric acid undergoes self-ionisation to a larger extent than any other covalent liquid as follows:
    2 HNO$_3$ ⇌ H $_2$NO$^+$ $_3$ + NO$^−$ $_3$ ⇌ H$_2$O + [NO$_2$]$^+$ + [NO$_3$]$^−$
Two hydrates, HNO$_3$·H$_2$O and HNO$_3$·3H$_2$O, are known that can be crystallised. It is a strong acid and concentrated solutions are strong oxidising agents, though gold, platinum, rhodium, and iridium are immune to attack. A 3:1 mixture of concentrated hydrochloric acid and nitric acid, called aqua regia, is still stronger and successfully dissolves gold and platinum, because free chlorine and nitrosyl chloride are formed and chloride anions can form strong complexes. In concentrated sulfuric acid, nitric acid is protonated to form nitronium, which can act as an electrophile for aromatic nitration:
    HNO$_3$ + 2 H$_2$SO$_4$ ⇌ NO$^+$ $_2$ + H$_3$O$^+$ + 2 HSO$^−$ $_4$
The thermal stabilities of nitrates (involving the trigonal planar NO$^−$ $_3$ anion) depends on the basicity of the metal, and so do the products of decomposition (thermolysis), which can vary between the nitrite (for example, sodium), the oxide (potassium and lead), or even the metal itself (silver) depending on their relative stabilities. Nitrate is also a common ligand with many modes of coordination.
Finally, although orthonitric acid (H$_3$NO$_4$), which would be analogous to orthophosphoric acid, does not exist, the tetrahedral orthonitrate anion NO$^{3−}$ $_4$ is known in its sodium and potassium salts:
    ${\ce {NaNO3+Na2O->[{\ce {Ag~crucible}}][{\ce {300^{\circ }C~for~7days}}]Na3NO4}}$
These white crystalline salts are very sensitive to water vapour and carbon dioxide in the air:
    Na$_3$NO$_4$ + H$_2$O + CO$_2$ → NaNO$_3$ + NaOH + NaHCO$_3$
Despite its limited chemistry, the orthonitrate anion is interesting from a structural point of view due to its regular tetrahedral shape and the short N–O bond lengths, implying significant polar character to the bonding.

## Organic nitrogen compounds

Nitrogen is one of the most important elements in organic chemistry. Many organic functional groups involve a carbon–nitrogen bond, such as amides (RCONR$_2$), amines (R$_3$N), imines (RC(=NR)R), imides ((RCO)$_2$NR), azides (RN$_3$), azo compounds (RN$_2$R), cyanates and isocyanates (ROCN or RCNO), nitrates (RONO$_2$), nitriles and isonitriles (RCN or RNC), nitrites (RONO), nitro compounds (RNO$_2$), nitroso compounds (RNO), oximes (RCR=NOH), and pyridine derivatives. C–N bonds are strongly polarised towards nitrogen. In these compounds, nitrogen is usually trivalent (though it can be tetravalent in quaternary ammonium salts, R$_4$N$^+$), with a lone pair that can confer basicity on the compound by being coordinated to a proton. This may be offset by other factors: for example, amides are not basic because the lone pair is delocalised into a double bond (though they may act as acids at very low pH, being protonated at the oxygen), and pyrrole is not acidic because the lone pair is delocalised as part of an aromatic ring. The amount of nitrogen in a chemical substance can be determined by the Kjeldahl method. In particular, nitrogen is an essential component of nucleic acids, amino acids and thus proteins, and the energy-carrying molecule adenosine triphosphate and is thus vital to all life on Earth.