Some Important Organic Compounds Containing Nitrogen
Organic compounds containing nitrogen include nitro compounds, alkyl nitrites, cyanides, isocyanides, amines and amino acids. Their chemistry turns on which atom is bonded to carbon: nitrogen or oxygen in and , carbon or nitrogen in and . This page covers the structure, preparation and key reactions of these organic compounds containing nitrogen, including nitration, reduction of nitrobenzene and amino acids, as tested in JEE Main and NEET.
- Nitrite ion: (nitroalkane); (alkyl nitrite)
- Cyanide ion: (nitrile); (isocyanide)
- Nitronium ion:
- Nitrobenzene: acid gives , neutral (Zn/) gives , Zn/NaOH gives
- Zinin reduction: reduces only one of m-dinitrobenzene
- Nitrous acid: 1° nitroalkane gives nitrolic acid (red in NaOH), 2° gives pseudonitrole (blue), 3° no reaction
- Hydrolysis: ;
- Reduction: gives (1° amine); gives (2° amine)
- Amino acid zwitterion: ; peptide bond
- Strecker: + + gives , hydrolysed to
1. Nitrogen-Containing Functional Groups
Nitrogen can be joined to carbon in many ways. The table lists the groups met in this unit; compare the atom that is bonded to the carbon chain in each pair of isomeric groups.
| Group | Structure | Example | Name of example |
|---|---|---|---|
| Cyanide (nitrile) | ethanenitrile (acetonitrile) | ||
| Isocyanide (carbylamine) | methyl isocyanide | ||
| Nitro | nitromethane | ||
| Nitrite (ester) | ethyl nitrite | ||
| Nitroso | nitrosobenzene | ||
| Primary amine | methanamine | ||
| Secondary amine | N-methylmethanamine | ||
| Tertiary amine | N,N-dimethylmethanamine | ||
| Imine | ethanimine | ||
| Diazonium | benzenediazonium chloride | ||
| Azo | azobenzene | ||
| Amide | ethanamide |
Silver sends in nitrogen. With silver salts the metal holds on to O (in ) or C (in ) by a covalent bond, so the free nitrogen lone pair attacks: gives and gives . Ionic and react through the atom that carries more negative charge: O gives the nitrite and C gives the cyanide .
2. Nitro Compounds
2.1 Classification
Nitroalkanes are alkanes in which a hydrogen atom is replaced by . Like alcohols, they are classed by the carbon that carries the group: primary , secondary and tertiary . Aromatic nitro compounds (nitroarenes) such as nitrobenzene carry the group on a ring carbon.
Because is ambident, nitroalkanes and alkyl nitrites with the same formula are functional isomers: nitroethane and ethyl nitrite are both .
2.2 Structure of the Nitro Group
Nitrogen in the nitro group is hybridised. Its three orbitals bond to carbon and to the two oxygen atoms, so the group is planar. The unhybridised p orbital of nitrogen overlaps sideways with p orbitals of both oxygen atoms, giving a system spread over O-N-O. The group is therefore a resonance hybrid of two equivalent structures: both N-O bonds have the same length (about ) and each oxygen carries half a negative charge.
The nitro group strongly withdraws electrons (both and ). Nitrobenzene has a large dipole moment (about ), and in para-disubstituted benzenes the group dipoles add or cancel as vectors (Figure 2).
2.3 Preparation of Nitro Compounds
(i) From alkyl halides. Alkyl halides heated with silver nitrite in ethanol give nitroalkanes, with a little alkyl nitrite. The method works best for 1° halides; 2° and 3° halides give mostly alkenes by -elimination.
Sodium or potassium nitrite is ionic, so in ethanol it gives the alkyl nitrite as the main product. In polar aprotic solvents such as DMF or DMSO, however, even or gives a good yield (about 60%) of the nitroalkane.
(ii) Nitration of arenes. Benzene reacts with the nitrating mixture (conc. + conc. ) to give nitrobenzene. Ethylbenzene gives a mixture of o- and p-nitroethylbenzene, because the ethyl group directs ortho and para.
The electrophile is the nitronium ion. Sulphuric acid, the stronger acid, protonates nitric acid, which loses water:
Nitronium salts such as and , and acetyl nitrate , are other nitrating agents.
(iii) Vapour-phase nitration of alkanes. Alkanes react with nitric acid vapour at about 675 K. At this temperature C-C bonds also break, so a mixture forms and the yield of any one product is low. Propane gives 2-nitropropane, 1-nitropropane, nitroethane and nitromethane.
(iv) Oxidation of tert-alkylamines. 3° nitroalkanes are made by oxidising a primary amine whose nitrogen sits on a tertiary carbon, such as tert-butylamine:
2-Methyl-2-nitropropane is obtained in about 83% yield.
2.4 Physical Properties
- Nitroalkanes are colourless liquids with a pleasant smell; aromatic nitro compounds such as nitrobenzene are pale yellow with a characteristic odour (bitter almonds).
- They are highly polar, so strong dipole-dipole attractions give them much higher boiling points than isomeric alkyl nitrites (nitroethane 387 K, ethyl nitrite 290 K).
- They are only sparingly soluble in water.
- Most nitroalkanes distil without decomposition, whereas alkyl nitrites are unstable and may explode on heating.
- Nitrobenzene and o-nitrophenol are steam volatile and are purified by steam distillation.
2.5 Chemical Properties of Nitro Compounds
(i) Reduction of nitroalkanes. The product depends on the reagent:
Lithium aluminium hydride also reduces nitroalkanes to 1° amines.
(ii) Reduction of nitrobenzene. Aromatic nitro compounds give a family of products, and the medium decides which one forms (Figure 4).
In alkaline media two molecules are reduced together (bimolecular reduction):
Unlike nitroalkanes, nitrobenzene gives azobenzene, not aniline, with . Electrolytic reduction in weakly acidic solution gives aniline, while in strongly acidic solution the phenylhydroxylamine formed rearranges to p-aminophenol.
Acid: amine. Neutral: N-OH. Alkali: two rings. Sn/HCl or Fe/HCl stops at aniline, Zn/ stops at phenylhydroxylamine, and every alkaline reagent joins two rings through nitrogen. The more hydrogen added, the further along azoxy (6[H]) to azo (8[H]) to hydrazo (10[H]) the product lies.
(iii) Selective (Zinin) reduction. Mild reagents such as ammonium sulphide, or reduce only one of two nitro groups:
Here m-dinitrobenzene is reduced to m-nitroaniline; the second nitro group survives.
(iv) Action of nitrous acid. Only nitroalkanes with an -hydrogen react:
A nitrolic acid dissolves in NaOH to give a red solution; a pseudonitrole gives a blue colour; a 3° nitroalkane, with no -hydrogen, does not react.
(v) Hydrolysis with boiling acid. 1° nitroalkanes give a carboxylic acid and hydroxylamine; 2° nitroalkanes give a ketone and nitrous oxide; 3° nitroalkanes do not react.
(vi) Tautomerism and acidity. A nitroalkane with an -hydrogen is neutral to litmus but dissolves in strong alkali. It is a pseudoacid: the -hydrogen moves to oxygen to give the aci-nitro form (a nitronic acid), whose salt is stabilised by resonance.
3° nitroalkanes have no -hydrogen, so they show no tautomerism and do not dissolve in NaOH.
| Property | 1° | 2° | 3° |
|---|---|---|---|
| -hydrogens | 2 | 1 | 0 |
| With , then NaOH | nitrolic acid: red | pseudonitrole: blue | no reaction: colourless |
| Boiling HCl | + | ketone + | no reaction |
| Dissolves in NaOH | yes (nitronate) | yes (nitronate) | no |
| Condenses with aldehydes | yes | yes | no |
Red, blue, colourless = 1°, 2°, 3°. Every test on nitroalkanes (nitrous acid, alkali, acid hydrolysis, condensation) needs an -hydrogen. Count the H atoms on the carbon carrying and you can predict all of them.
Nitromethane has , close to phenol, because its conjugate base spreads the negative charge onto two oxygen atoms. If a nitronate salt is added to cold strong acid it gives a carbonyl compound and (the Nef reaction); the hydrolysis of 2° nitroalkanes to ketones runs through the same intermediate. The same stabilised carbanion adds to aldehydes in the Henry (nitroaldol) reaction below.
(vii) Condensation with aldehydes (Henry or nitroaldol reaction). In alkali, a 1° or 2° nitroalkane loses its -hydrogen and the carbanion adds to the carbonyl carbon of an aldehyde. The -nitro alcohol formed loses water to give a nitroalkene.
(viii) Ring substitution in nitrobenzene. withdraws electrons from the ring, so nitrobenzene is deactivated and substitution goes to the meta position under harsher conditions:
Nitrobenzene does not undergo Friedel-Crafts alkylation or acylation at all, which is why it can be used as a solvent for these reactions.
2.6 Distinguishing Nitroalkanes from Alkyl Nitrites
| Test | Nitroethane | Ethyl nitrite |
|---|---|---|
| Atom bonded to carbon | N (C-N bond) | O (C-O bond) |
| Boiling point | 387 K (polar, higher) | 290 K (lower) |
| Reduction with Sn/HCl | ethylamine | ethanol + |
| Aqueous NaOH | dissolves as a salt, not hydrolysed | hydrolysed to + |
| On heating | distils unchanged | unstable, may explode |
3. Cyanides and Isocyanides
3.1 Structure and Bonding
Alkyl cyanides and alkyl isocyanides are both derived from hydrogen cyanide and have the same molecular formula. In alkali cyanides the ion is free, so it bonds through carbon, where the charge is concentrated. Silver cyanide is covalent (), so only the nitrogen lone pair is free to attack, and isocyanides are the main product (Figure 1). In an isocyanide nitrogen has used its lone pair and carries a formal positive charge, while carbon carries the lone pair: .
3.2 Preparation of Alkyl Cyanides
(i) Dehydration of amides with , or at 773 K; amides of high molar mass lose water on heating alone:
(ii) From alkyl halides with alcoholic KCN or NaCN. This is satisfactory for 1° and 2° halides; 3° halides give alkenes by elimination.
(iii) Grignard reagent and cyanogen chloride, the best route to 3° alkyl cyanides:
(iv) From diazonium salts (Sandmeyer reaction), for aryl cyanides; see Diazonium Salt:
3.3 Properties and Reactions of Alkyl Cyanides
- Lower members are liquids and dissolve in water, because water hydrogen-bonds to the nitrogen lone pair; solubility falls as molar mass rises.
- They cannot form hydrogen bonds with each other, so they are much more volatile than the corresponding carboxylic acids.
(i) Hydrolysis. Acid hydrolysis gives the amide and then the acid; alkaline hydrolysis gives the salt and ammonia. Alkaline stops at the amide.
(ii) Reduction. Stephen reduction gives an aldehyde; sodium and ethanol (Mendius reduction) or give a 1° amine with the same number of carbon atoms.
(iii) With Grignard reagents, followed by hydrolysis, nitriles give ketones:
(iv) With alcohols. A nitrile heated with an alcohol and conc. or HCl gives an ester:
3.4 Preparation of Alkyl Isocyanides
(i) From alkyl iodides and silver cyanide in aqueous ethanol:
(ii) Carbylamine reaction. A primary amine, aliphatic or aromatic, heated with chloroform and alcoholic KOH gives the foul-smelling isocyanide. The reactive intermediate is dichlorocarbene , formed by -elimination. The full mechanism, and the use of this reaction as a test, are covered in Analysis of Amines.
3.5 Properties and Reactions of Alkyl Isocyanides
- Isocyanides are poisonous liquids with a very unpleasant smell, and they boil lower than the isomeric cyanides.
- They are sparingly soluble in water: the nitrogen has no lone pair free for hydrogen bonding.
(i) Hydrolysis occurs only with acid; alkalis do not attack isocyanides.
(ii) Reduction gives a 2° amine carrying an N-methyl group:
(iii) Isomerisation. On prolonged heating isocyanides rearrange to the more stable cyanides:
(iv) Addition to carbon. The carbon of an isocyanide adds halogens, sulphur and oxygen:
The terminal carbon of an isocyanide has a lone pair and only two bonds in the form, so it behaves partly like a carbene. That is why it adds , S and O to the same carbon (an -addition) and why isocyanides are strong ligands for metals. Nitriles are more stable, so isocyanides isomerise to nitriles on heating, never the reverse.
4. Amino Acids and Proteins
4.1 Structure and the Zwitterion
Amino acids are carboxylic acids that also carry an amino group. In -amino acids, the ones obtained from proteins, is on the carbon next to : . About 20 amino acids occur in proteins; about 10 of them are essential, because the body cannot make them and they must come from food.
- Glycine (R = H) is the simplest and the only one that is not optically active.
- Alanine and all other -amino acids have a chiral -carbon; natural amino acids have the L-configuration.
- Amino acids contain an acidic and a basic group, so the proton moves from to to give an internal salt, the zwitterion (dipolar ion) .
- Being ionic, they are crystalline solids with high melting points, soluble in water but insoluble in organic solvents. They are amphoteric: they react with both acids and bases.
At the isoelectric point (about pH 6.0 for glycine) the zwitterion has no net charge and does not move in an electric field.
4.2 Peptides and Proteins
The of one amino acid condenses with the of another, losing water, to form an amide link called the peptide bond. Two amino acids give a dipeptide, three a tripeptide, and many a polypeptide. A polypeptide with more than about a hundred residues and a molecular mass above 10,000 u is called a protein; egg albumin, for example, has a molecular mass of about 45,000 u.
4.3 Preparation of Amino Acids
(i) Amination of -halo acids with excess ammonia:
(ii) Gabriel phthalimide synthesis. Potassium phthalimide displaces chloride from an -halo ester; acid hydrolysis then frees the amino acid:
(iii) Knoop synthesis. An -keto acid such as pyruvic acid forms an imine with ammonia, which is reduced:
(iv) Strecker synthesis. An aldehyde, hydrogen cyanide and ammonia (or ) give an -aminonitrile, which is hydrolysed:
4.4 Reactions of Amino Acids
Amino acids show the reactions of both groups:
| Reagent | Product from | Group that reacts |
|---|---|---|
| , dry HCl | ester hydrochloride ; free ester with base | |
| HCl | hydrochloride | |
| NaOH | sodium salt | |
| , heat | amine + (decarboxylation) | |
| N-methyl amino acid | ||
| N-acetyl amino acid | ||
| acid chloride hydrochloride | ||
| amino alcohol | ||
| hydroxy acid + |
4.5 Action of Heat
What happens on heating depends on how far apart the two groups are:
- -Amino acids: two molecules lose two molecules of water to form a cyclic diamide, a 2,5-diketopiperazine (glycine gives glycine anhydride).
- -Amino acids: lose ammonia to give an -unsaturated acid.
- - and -amino acids: lose water within one molecule to give a cyclic amide (a lactam); 4-aminobutanoic acid gives pyrrolidin-2-one.
5. Solved Examples
A nucleophile that can attack through two different atoms is called ambident. Examples: the cyanide ion , which bonds through C (nitriles) or N (isocyanides), and the nitrite ion , which bonds through N (nitroalkanes) or O (alkyl nitrites). See Figure 1.
Dipole moments of groups on a benzene ring add as vectors (Figure 2).
- In p-chloronitrobenzene both Cl and pull electrons out of the ring. Their dipoles point in opposite directions and partly cancel: about .
- In p-nitrotoluene, pushes electrons into the ring while pulls them out. Both dipoles point the same way and add: about .
(A) is N-phenylhydroxylamine, . Yes, it reduces Tollens' reagent to a silver mirror and is itself oxidised to nitrosobenzene. This is the Mulliken-Barker test for the nitro group.
Benzene is more reactive towards electrophilic substitution than bromobenzene, so in benzene the solvent itself would be alkylated. The strongly deactivating group stops nitrobenzene from undergoing Friedel-Crafts reactions at all, so it dissolves the reactants without taking part.
could be nitroethane or ethyl nitrite . A compound that is hydrolysed to an alcohol, and reduced to an alcohol plus , has a C-O bond, not a C-N bond. The alcohol of molar mass 46 is ethanol. So (A) is ethyl nitrite.
Nitrate twice (the first directs meta), then reduce one nitro group selectively (Zinin reduction):
Step 1 runs at 323-333 K; step 2 needs fuming nitric acid with conc. at 363 K and gives m-dinitrobenzene; step 3 gives m-nitroaniline.
In the nitrogen keeps its lone pair, so water molecules form hydrogen bonds to it and the lower cyanides dissolve. In nitrogen has used its lone pair in bonding, so no such hydrogen bond forms and isocyanides are only sparingly soluble.
(A) and
(B) and
(C) and
(D) and
Answer: (D). Azide ion replaces chloride to give the acyl azide X. On heating it loses nitrogen and the R group migrates from carbon to nitrogen, giving the isocyanate Y. This is the Curtius rearrangement, which is used to make amines (see Preparation of Amines).
In glycine the group is on an carbon, so it is basic enough to take the proton released by , giving . In anthranilic acid the nitrogen lone pair is delocalised into the ring, and the electron-withdrawing group lowers its electron density further. This aryl nitrogen is too weakly basic to accept the proton, so no zwitterion forms.
(A)
(B)
(C)
(D)
Answer: (D). In alkali nitromethane forms its nitronate ion, and the acidic -hydrogens are replaced by chlorine one by one to give (A), (B) and finally chloropicrin (C). Nothing in this mixture can reduce the nitro group, so methylamine cannot form.
(A) Sn + HCl
(B) Zn +
(C) + NaOH
(D) Zn + NaOH
Answer: (D). Zinc and alkali give the fully reduced dimer, hydrazobenzene (Figure 4). Sn/HCl gives aniline, Zn/ gives phenylhydroxylamine and sodium arsenite gives azoxybenzene.
(A)
(B)
(C)
(D)
Answer: (A). With an amide, acts as a dehydrating agent and removes from to give the nitrile.
(A)
(B)
(C)
(D)
Answer: (C). The carbene-like carbon of an isocyanide takes up an oxygen atom. Nitriles do not react this way.
(A)
(B)
(C)
(D)
Answer: (D). This is the Knoop synthesis. Pyruvic acid forms an imine with ammonia at the keto group, and hydrogenation of the C=N bond gives alanine.
(A) has 1 degree of unsaturation (a C=O), contains N and two O atoms, forms a salt with HCl and yet gives a neutral solution, so it holds both and : an amino acid. Losing gives the saturated amine (B), and (B) gives ethanol with nitrous acid, so (B) is ethylamine. (A) is therefore alanine, which is chiral.
Synthesis of (A):
The colour shows how many -hydrogens each isomer has.
- X, red (nitrolic acid), is a 1° nitroalkane: 1-nitrobutane (2-methyl-1-nitropropane also fits).
- Y, blue (pseudonitrole), is 2°: 2-nitrobutane .
- Z, no reaction, is 3°: 2-methyl-2-nitropropane .
(a) KCN gives propanenitrile . The Grignard reagent adds to C≡N, and hydrolysis gives the ketone butan-2-one .
(b) AgCN gives ethyl isocyanide . Acid hydrolysis gives ethylamine and formic acid .
- Predict the product: + with alcoholic KOH.Answer: -nitrostyrene (Henry reaction, then loss of water)
- Benzene is treated with /Fe to give A, and A with / to give B. Identify A and B.Answer: A = bromobenzene; B = 1-bromo-4-nitrobenzene (major) with some 1-bromo-2-nitrobenzene
- reacts with to give A, which is reduced (, ) to B. Identify A and B.Answer: A = ethyl nitrite (ionic attacks through O); B = ethanol, with and water
- Name three important nitro compounds used as explosives.Answer: TNT (2,4,6-trinitrotoluene), picric acid (2,4,6-trinitrophenol) and TNB (1,3,5-trinitrobenzene); nitroglycerine is a nitrate ester, not a nitro compound
- How are nitriles and isonitriles related to each other?Answer: they are isomers: R is bonded to C in and to N in ; isonitriles rearrange to nitriles on heating
- In the scheme RBr (W) to RCN (Y) to RCHO, and RBr (X) to RNC (Z) to , name reagents W, X, Y and Z.Answer: W = alcoholic KCN; Y = /HCl then (Stephen reduction); X = AgCN; Z = /Pt or Na/
- Write a reaction that forms methyl isocyanate (MIC). What is formed when it is hydrolysed?Answer: + gives + 2HCl (or + HgO); hydrolysis gives +
- 2-Nitropropane is treated with NaOH and to give A, and A with to give B. Identify A and B. Could replace ?Answer: A = 2-bromo-2-nitropropane ; B = 2-methyl-2-nitropropane ; no, a Grignard reagent attacks the nitro group, while dimethylzinc only replaces Br
- Hydroxylamine and acetone oxime both have an O-H group. Which is more acidic, and why?Answer: acetone oxime: its anion is stabilised by resonance (charge also on carbon), while the anion of hydroxylamine is not
- Which common -amino acid is optically inactive?Answer: glycine, , whose -carbon carries two H atoms
Common Mistakes to Avoid
- Swapping the silver and potassium salts: gives isocyanides and gives cyanides; gives nitroalkanes and gives alkyl nitrites.
- Expecting a 3° nitroalkane to react with nitrous acid, dissolve in NaOH or condense with aldehydes. All of these need an -hydrogen.
- Writing aniline as the product of every reduction of nitrobenzene. Only acid or catalytic reduction gives aniline; neutral and alkaline media give other products.
- Giving the same reduction product for a nitroalkane and its isomeric nitrite. The nitroalkane gives an amine; the nitrite gives an alcohol and ammonia.
- Proposing a Friedel-Crafts reaction on nitrobenzene. Its ring is too deactivated, which is why it serves as a solvent.
- Mixing up the reduction products: gives the 1° amine , while gives the 2° amine .
- Hydrolysing an isocyanide with alkali. Isocyanides are hydrolysed only by acid.
- Calling glycine optically active, or drawing solid amino acids as neutral . Glycine is achiral, and amino acids exist as zwitterions.
- Calling nitroglycerine a nitro compound. It contains groups, so it is a nitrate ester.
Frequently Asked Questions
What is an ambident nucleophile?
An ambident nucleophile is an ion that can bond through two different atoms. The cyanide ion bonds through carbon to give nitriles or through nitrogen to give isocyanides, and the nitrite ion bonds through nitrogen to give nitroalkanes or through oxygen to give alkyl nitrites. The metal salt used decides which product dominates.
How can you distinguish a nitroalkane from an alkyl nitrite?
Reduce both with tin and hydrochloric acid: a nitroalkane gives a primary amine, while an alkyl nitrite gives an alcohol and ammonia. Aqueous NaOH hydrolyses an alkyl nitrite to an alcohol and sodium nitrite but only dissolves a nitroalkane as its salt. Nitroalkanes also boil at much higher temperatures.
Why are primary and secondary nitroalkanes acidic?
The nitro group pulls electron density from the alpha carbon, and removing an alpha hydrogen gives a nitronate ion whose negative charge spreads onto both oxygen atoms by resonance. Nitromethane has a pKa near 10. Tertiary nitroalkanes have no alpha hydrogen, so they are not acidic and do not dissolve in alkali.
How do you distinguish primary, secondary and tertiary nitroalkanes?
Treat them with nitrous acid and then sodium hydroxide. A primary nitroalkane forms a nitrolic acid that gives a red solution, a secondary one forms a pseudonitrole with a blue colour, and a tertiary one does not react, because it has no alpha hydrogen. Remember the order red, blue, colourless.
Why does silver cyanide give isocyanides but potassium cyanide gives cyanides?
Potassium cyanide is ionic, so the free cyanide ion attacks the alkyl halide through carbon and gives a nitrile. In silver cyanide the carbon is held by a covalent bond to silver, leaving only the nitrogen lone pair free to attack, so an isocyanide forms. Silver nitrite behaves the same way and gives nitroalkanes.
What is a zwitterion in amino acids?
A zwitterion is a dipolar ion that carries a positive and a negative charge in the same molecule. In an amino acid the carboxyl group gives its proton to the amino group, giving H3N+ and COO- groups. This ionic form explains the high melting points, water solubility and amphoteric behaviour of amino acids.
Which questions on nitrogen compounds are common in NEET?
NEET mostly asks about amino acids and peptides: the zwitterion, the peptide bond, essential amino acids and the biuret test. It also asks for the product of reducing nitrobenzene with Sn and HCl, and for the carbylamine reaction of primary amines with chloroform and alcoholic KOH, which gives a foul-smelling isocyanide.
What does JEE Main ask about nitro compounds, cyanides and isocyanides?
JEE Main likes reagent-based product questions: AgCN versus KCN and AgNO2 versus KNO2, the reduction products of nitrobenzene in acidic, neutral and alkaline media, Stephen and Mendius reductions of nitriles, and the different hydrolysis and reduction products of cyanides and isocyanides. Nitration mechanism questions also appear.
Ready to master Amines?
Take a full mock test, practice concept-by-concept, and get an AI-powered rank prediction — all on Fundamenthol.