Will be mentioned at relevant places

Updated 22 Mar 2026

Cyanides are organic compounds containing the cyano functional group (CN-\text{C}\equiv\text{N}), where a carbon atom is triply bonded to a nitrogen atom. They can be inorganic salts like potassium cyanide (KCN\text{KCN}) or organic nitriles (e.g., acetonitrile, CH3CN\text{CH}_3\text{CN}). Isocyanides, also known as carbylamines, are structural isomers of cyanides, characterized by the isocyano functi…

Quick Summary

Cyanides, or nitriles, contain the CN-\text{C}\equiv\text{N} functional group, where carbon is triply bonded to nitrogen. They are structural isomers of isocyanides, or carbylamines, which contain the NC-\text{N}\equiv\text{C} group, with nitrogen directly bonded to the organic group.

The cyanide ion (CN\text{CN}^-) is an ambidentate nucleophile, meaning it can attack through either carbon or nitrogen. This leads to a key distinction: alkyl halides react with ionic KCN\text{KCN} to form nitriles (RCN\text{R}-\text{C}\equiv\text{N}), but with covalent AgCN\text{AgCN} to form isocyanides (RNC\text{R}-\text{N}\equiv\text{C}).

Nitriles can be prepared from alkyl halides, aldehydes/ketones (cyanohydrins), or amides (dehydration). Their reactions include hydrolysis to carboxylic acids, reduction to primary amines, and reaction with Grignard reagents to form ketones.

Isocyanides are famously prepared via the Carbylamine reaction, a test for primary amines, and also from alkyl halides with AgCN\text{AgCN}. Isocyanides hydrolyze to primary amines and formic acid, and reduce to secondary amines.

Both classes are important synthetic intermediates, though their high toxicity necessitates careful handling.

Full explanation

Cyanides and isocyanides represent a fascinating pair of functional groups in organic chemistry, exemplifying structural isomerism and ambidentate nucleophilicity. Understanding their structures, methods of preparation, and characteristic reactions is fundamental for NEET aspirants.

Conceptual Foundation

Cyanides (Nitriles): The cyanide functional group is CN-\text{C}\equiv\text{N}. In organic chemistry, compounds containing this group are often called nitriles. The carbon atom in the cyano group is spsp-hybridized, forming a sigma bond with the adjacent carbon (or hydrogen) and a sigma bond with the nitrogen, along with two pi bonds with the nitrogen.

The nitrogen atom is also spsp-hybridized. This linear arrangement (CN-\text{C}\equiv\text{N}) makes the bond very strong and stable. The carbon atom of the cyano group is electrophilic due to the electron-withdrawing effect of the nitrogen, making it susceptible to nucleophilic attack.

The nitrogen atom, with its lone pair, can also act as a nucleophile, but typically the carbon is the more reactive site for nucleophilic addition.

Isocyanides (Carbylamines): The isocyanide functional group is NC-\text{N}\equiv\text{C}. These are structural isomers of cyanides. The bonding in isocyanides is more complex and can be represented as a resonance hybrid involving structures like RNominus=Coplus\text{R}-\overset{ominus}{\text{N}}=\overset{oplus}{\text{C}} and RNC\text{R}-\text{N}\equiv\text{C}.

The carbon atom in the isocyano group is spsp-hybridized and carries a lone pair of electrons, making it a strong nucleophile and a good ligand in coordination chemistry. The nitrogen atom is also spsp-hybridized.

The carbon atom in the isocyano group is highly reactive due to its electron deficiency and the presence of a lone pair, making it prone to addition reactions.

Key Principles and Laws

    1
  1. Ambidentate Nature of Cyanide Ion ($\text{CN}^-$):The cyanide ion is a classic example of an ambidentate nucleophile. It possesses two potential nucleophilic sites: the carbon atom (due to its lone pair and higher polarizability) and the nitrogen atom (due to its lone pair). This dual reactivity is crucial in determining the products of reactions with alkyl halides.

* With ionic cyanides like KCN\text{KCN} (which dissociates to K+\text{K}^+ and CN\text{CN}^-), the carbon atom, being a 'softer' nucleophile, preferentially attacks the electrophilic carbon of an alkyl halide, leading to the formation of nitriles (RCN\text{R}-\text{C}\equiv\text{N}).

This is typically an SN2\text{S}_{\text{N}}2 reaction. * With covalent cyanides like AgCN\text{AgCN} (where the AgC\text{Ag}-\text{C} bond has significant covalent character, reducing the availability of the carbon lone pair), the nitrogen atom, being a 'harder' nucleophile, preferentially attacks the electrophilic carbon, leading to the formation of isocyanides (RNC\text{R}-\text{N}\equiv\text{C}).

The lone pair on nitrogen is more exposed and available for attack.

    1
  1. Resonance and Hybridization:The spsp-hybridization of carbon and nitrogen in both functional groups dictates their linear geometry. The presence of pi bonds contributes to their stability and reactivity. In isocyanides, the resonance structures highlight the electron distribution and the nucleophilic nature of the carbon atom.

Preparation of Cyanides (Nitriles)

    1
  1. From Alkyl Halides:The most common method involves the SN2\text{S}_{\text{N}}2 reaction of an alkyl halide with an alcoholic solution of potassium cyanide (KCN\text{KCN}). Primary alkyl halides give good yields.

RX+KCNAlcoholRCN+KX\text{R}-\text{X} + \text{KCN} \xrightarrow{\text{Alcohol}} \text{R}-\text{C}\equiv\text{N} + \text{KX}

    1
  1. From Aldehydes and Ketones (Cyanohydrin Formation):Aldehydes and ketones react with hydrogen cyanide (HCN\text{HCN}) in the presence of a base (like NaCN\text{NaCN}) to form cyanohydrins. This is a nucleophilic addition reaction.

RCHO+HCNBaseRCH(OH)CN\text{RCHO} + \text{HCN} \xrightarrow{\text{Base}} \text{RCH(OH)CN}

    1
  1. From Amides (Dehydration):Primary amides can be dehydrated using reagents like phosphorus pentoxide (P2O5\text{P}_2\text{O}_5), thionyl chloride (SOCl2\text{SOCl}_2), or acetic anhydride to yield nitriles.

RCONH2P2O5,DeltaRCN+H2O\text{RCONH}_2 \xrightarrow{\text{P}_2\text{O}_5, Delta} \text{R}-\text{C}\equiv\text{N} + \text{H}_2\text{O}

    1
  1. From Diazonium Salts (Sandmeyer Reaction):Aryl diazonium salts react with cuprous cyanide (CuCN\text{CuCN}) to form aryl cyanides.

ArN2+ClCuCNArCN+N2+CuCl\text{ArN}_2^+\text{Cl}^- \xrightarrow{\text{CuCN}} \text{Ar}-\text{C}\equiv\text{N} + \text{N}_2 + \text{CuCl}

Reactions of Cyanides (Nitriles)

    1
  1. Hydrolysis:Nitriles undergo hydrolysis in the presence of acid or base to form carboxylic acids. Partial hydrolysis can yield amides.

* Complete Hydrolysis:

RCN+2H2OH+/OH,DeltaRCOOH+NH3\text{R}-\text{C}\equiv\text{N} + 2\text{H}_2\text{O} \xrightarrow{\text{H}^+/\text{OH}^-, Delta} \text{RCOOH} + \text{NH}_3
* Partial Hydrolysis:
RCN+H2OH+/OH,mildRCONH2\text{R}-\text{C}\equiv\text{N} + \text{H}_2\text{O} \xrightarrow{\text{H}^+/\text{OH}^-, \text{mild}} \text{RCONH}_2

    1
  1. Reduction:Nitriles can be reduced to primary amines using various reducing agents.

* Catalytic Hydrogenation:

RCN+2H2Ni/Pt/PdRCH2NH2\text{R}-\text{C}\equiv\text{N} + 2\text{H}_2 \xrightarrow{\text{Ni/Pt/Pd}} \text{RCH}_2\text{NH}_2
* **Lithium Aluminium Hydride (LiAlH4\text{LiAlH}_4):** $$\text{R}-\text{C}\equiv\text{N} \xrightarrow{\text{1.

LiAlH}_4\, \text{2. H}_2\text{O}} \text{RCH}_2\text{NH}_2

DIBALH(DiisobutylaluminiumHydride):Canreducenitrilestoaldehydesatlowtemperatures.* **DIBAL-H (Diisobutylaluminium Hydride):** Can reduce nitriles to aldehydes at low temperatures.
\text{R}-\text{C}\equiv\text{N} \xrightarrow{\text{1.

DIBAL-H, -78}^\circ\text{C}, \text{2.

    1
  1. Reaction with Grignard Reagents:Nitriles react with Grignard reagents to form ketones after hydrolysis of the intermediate imine salt.

RCN+RMgX1. Ether, 2. H2O/H+RCOR\text{R}-\text{C}\equiv\text{N} + \text{R}'\text{MgX} \xrightarrow{\text{1. Ether, 2. H}_2\text{O/H}^+} \text{RCOR}'

Preparation of Isocyanides (Carbylamines)

    1
  1. From Alkyl Halides (with $\text{AgCN}$):As discussed under ambidentate nucleophiles, alkyl halides react with silver cyanide (AgCN\text{AgCN}) to preferentially form isocyanides.

RX+AgCNAlcoholRNC+AgX\text{R}-\text{X} + \text{AgCN} \xrightarrow{\text{Alcohol}} \text{R}-\text{N}\equiv\text{C} + \text{AgX}

    1
  1. Carbylamine Reaction (Isocyanide Test):This is a characteristic test for primary amines. A primary amine is heated with chloroform (CHCl3\text{CHCl}_3) and an alcoholic solution of potassium hydroxide (KOH\text{KOH}). The formation of an offensive-smelling isocyanide confirms the presence of a primary amine.

RNH2+CHCl3+3KOHDeltaRNC+3KCl+3H2O\text{RNH}_2 + \text{CHCl}_3 + 3\text{KOH} \xrightarrow{Delta} \text{R}-\text{N}\equiv\text{C} + 3\text{KCl} + 3\text{H}_2\text{O}
* Secondary and tertiary amines do not give this reaction.

Reactions of Isocyanides (Carbylamines)

    1
  1. Hydrolysis:Isocyanides undergo hydrolysis in the presence of acid to yield a primary amine and formic acid.

RNC+2H2OH+RNH2+HCOOH\text{R}-\text{N}\equiv\text{C} + 2\text{H}_2\text{O} \xrightarrow{\text{H}^+} \text{RNH}_2 + \text{HCOOH}

    1
  1. Reduction:Isocyanides can be reduced to secondary amines (specifically, N-methyl primary amines) using hydrogen in the presence of a catalyst or LiAlH4\text{LiAlH}_4.

RNC+2H2Ni/Pt/PdRNHCH3\text{R}-\text{N}\equiv\text{C} + 2\text{H}_2 \xrightarrow{\text{Ni/Pt/Pd}} \text{RNHCH}_3

    1
  1. Addition Reactions:The highly reactive carbon of the isocyano group can undergo various addition reactions, for example, with halogens or sulfur.

Real-World Applications

  • Organic Synthesis:Both cyanides and isocyanides are invaluable synthetic intermediates. Nitriles can be converted to carboxylic acids, aldehydes, ketones, and amines, making them versatile building blocks. Isocyanides are used in multi-component reactions (e.g., Ugi reaction) to synthesize complex molecules.
  • Metallurgy:Sodium cyanide (NaCN\text{NaCN}) is used in the extraction of gold and silver from their ores (cyanidation process).
  • Pest Control:Hydrogen cyanide (HCN\text{HCN}) is a highly toxic gas used as a fumigant for pest control.
  • Polymers:Acrylonitrile (CH2=CHCN\text{CH}_2=\text{CH}-\text{C}\equiv\text{N}) is a monomer used to produce important polymers like polyacrylonitrile (PAN) fibers.

Common Misconceptions

    1
  1. Confusing $\text{KCN}$ and $\text{AgCN}$ Reactivity:A very common mistake is to assume that both KCN\text{KCN} and AgCN\text{AgCN} will yield nitriles with alkyl halides. Remember, KCN\text{KCN} (ionic) gives nitriles, while AgCN\text{AgCN} (covalent) gives isocyanides due to the ambidentate nature of the cyanide ion and the nature of the metal-carbon bond.
  2. 2
  3. Isocyanide Odor:Students often forget the characteristic foul/offensive smell of isocyanides, which is a key diagnostic feature in the Carbylamine reaction.
  4. 3
  5. Hydrolysis Products:Be careful with the hydrolysis products. Nitriles give carboxylic acids (or amides), while isocyanides give primary amines and formic acid.
  6. 4
  7. Reduction Products:Nitriles reduce to primary amines (RCH2NH2\text{RCH}_2\text{NH}_2), while isocyanides reduce to secondary amines (RNHCH3\text{RNHCH}_3).

NEET-Specific Angle

For NEET, the focus will be on:

  • Name Reactions:Carbylamine reaction (isocyanide test) is extremely important. Sandmeyer reaction for aryl nitriles is also relevant.
  • Distinguishing Reactions:The Carbylamine test is a key method to distinguish primary amines from secondary and tertiary amines. The different products formed with KCN\text{KCN} vs AgCN\text{AgCN} are also crucial.
  • Reaction Mechanisms:Understanding the SN2\text{S}_{\text{N}}2 mechanism for nitrile formation and the nucleophilic addition in cyanohydrin formation is important.
  • Product Identification:Given reactants and reagents, predicting the correct product for hydrolysis, reduction, and Grignard reactions of both cyanides and isocyanides is a frequently tested skill.
  • Isomerism:Recognizing cyanides and isocyanides as structural (linkage) isomers.
  • Functional Group Transformations:How to convert a nitrile into an amine, carboxylic acid, aldehyde, or ketone, and vice-versa.

Key Concepts

Ambidentate Nature of Cyanide Ion

The cyanide ion (CN\text{CN}^-) is a fascinating species because it has two potential sites for nucleophilic…

Carbylamine Reaction (Isocyanide Test)

The Carbylamine reaction is a highly specific and important test in organic chemistry for the identification…

Hydrolysis of Nitriles and Isocyanides

The hydrolysis reactions of nitriles and isocyanides are distinct and lead to different products, reflecting…

Often confused with

Side-by-side differences the NEET paper likes to test.

Will be mentioned at relevant places vs Isocyanides
AspectWill be mentioned at relevant placesIsocyanides
Functional Group$-\text{C}\equiv\text{N}$ (Cyano group)$-\text{N}\equiv\text{C}$ (Isocyano group)
NomenclatureNitriles (e.g., Ethanenitrile)Isocyanides or Carbylamines (e.g., Ethane isocyanide)
Bonding to R-groupCarbon of the cyano group is bonded to the R-group.Nitrogen of the isocyano group is bonded to the R-group.
Preparation from R-XReact with $\text{KCN}$ (ionic) to form nitriles.React with $\text{AgCN}$ (covalent) to form isocyanides.
Hydrolysis ProductsYield carboxylic acids ($\text{RCOOH}$) and ammonia.Yield primary amines ($\text{RNH}_2$) and formic acid ($\text{HCOOH}$).
Reduction ProductsYield primary amines ($\text{RCH}_2\text{NH}_2$).Yield secondary amines ($\text{RNHCH}_3$).
OdorGenerally pleasant or almond-like (e.g., benzonitrile).Extremely foul and offensive smell.
Carbylamine TestDo not give this test.Are the products of this test, used to identify primary amines.

Cyanides and isocyanides are structural isomers with distinct chemical properties. Cyanides feature a carbon-nitrogen triple bond where the carbon is linked to the organic group, while isocyanides have the nitrogen linked to the organic group.

This structural difference leads to varied reactivity, particularly in their formation from alkyl halides (KCN vs. AgCN), their hydrolysis products (carboxylic acids vs. primary amines and formic acid), and their reduction products (primary amines vs.

secondary amines). Isocyanides are famously characterized by their foul odor and are the products of the Carbylamine reaction, a key test for primary amines, which cyanides do not undergo.

Why it is tested: For NEET, understanding the differences between cyanides and isocyanides is crucial for predicting reaction products, identifying reagents, and applying distinguishing tests. Questions frequently test the ambidentate nature of the cyanide ion, the Carbylamine reaction, and the hydrolysis/reduction products of both functional groups. Mastery of these distinctions is essential for scoring well in organic chemistry sections.

Questions students ask

5 answered on this topic.

What is the primary difference in structure and bonding between cyanides and isocyanides?

The primary difference lies in the connectivity of the carbon-nitrogen triple bond to the rest of the molecule. In cyanides (nitriles), the carbon atom of the CN-\text{C}\equiv\text{N} group is directly attached to the alkyl or aryl group (RCN\text{R}-\text{C}\equiv\text{N}).

This carbon is spsp-hybridized. In isocyanides (carbylamines), the nitrogen atom of the NC-\text{N}\equiv\text{C} group is directly attached to the alkyl or aryl group (RNC\text{R}-\text{N}\equiv\text{C}).

The bonding in isocyanides is often depicted with a dative bond from nitrogen to carbon, giving the carbon a lone pair and a formal negative charge, making it highly nucleophilic.

Why does $\text{KCN}$ react with alkyl halides to form nitriles, while $\text{AgCN}$ forms isocyanides?

This difference arises from the ambidentate nature of the cyanide ion (CN\text{CN}^-) and the nature of the metal-cyanide bond. KCN\text{KCN} is predominantly ionic, releasing a free CN\text{CN}^- ion.

The carbon atom in CN\text{CN}^- is a 'softer' nucleophile and preferentially attacks the electrophilic carbon of the alkyl halide via an SN2\text{S}_{\text{N}}2 mechanism, forming RCN\text{R}-\text{C}\equiv\text{N}.

AgCN\text{AgCN}, however, has significant covalent character. The carbon atom's lone pair is less available, making the nitrogen atom's lone pair the more accessible nucleophilic site. Nitrogen, being a 'harder' nucleophile, attacks the alkyl halide, leading to the formation of RNC\text{R}-\text{N}\equiv\text{C}.

What is the Carbylamine reaction, and what is its significance?

The Carbylamine reaction, also known as the isocyanide test, is a characteristic reaction used to detect primary amines. When a primary amine is heated with chloroform (CHCl3\text{CHCl}_3) and an alcoholic solution of potassium hydroxide (KOH\text{KOH}), it produces an isocyanide (carbylamine) which has a highly offensive and characteristic smell.

Secondary and tertiary amines do not undergo this reaction. Its significance lies in its ability to distinguish primary amines from other types of amines, making it a crucial qualitative test in organic chemistry.

How do the hydrolysis products of cyanides and isocyanides differ?

The hydrolysis products are distinctly different. Cyanides (nitriles) undergo hydrolysis in the presence of acid or base to yield carboxylic acids (RCOOH\text{RCOOH}). Partial hydrolysis can lead to the formation of amides (RCONH2\text{RCONH}_2).

For example, RCNH2O/H+RCOOH\text{R}-\text{C}\equiv\text{N} \xrightarrow{\text{H}_2\text{O/H}^+} \text{RCOOH}. Isocyanides, on the other hand, hydrolyze in the presence of acid to produce a primary amine (RNH2\text{RNH}_2) and formic acid (HCOOH\text{HCOOH}).

For example, RNCH2O/H+RNH2+HCOOH\text{R}-\text{N}\equiv\text{C} \xrightarrow{\text{H}_2\text{O/H}^+} \text{RNH}_2 + \text{HCOOH}.

What are the main applications of cyanides in industry and organic synthesis?

Cyanides have diverse applications. In organic synthesis, nitriles are versatile intermediates that can be converted into carboxylic acids, aldehydes, ketones, and primary amines, making them crucial for building complex molecules.

Industrially, sodium cyanide (NaCN\text{NaCN}) is vital for the extraction of gold and silver from their ores through the cyanidation process. Hydrogen cyanide (HCN\text{HCN}) is used as a fumigant and in the production of acrylonitrile, a monomer for important polymers like polyacrylonitrile (PAN) fibers.

They also find use in electroplating and in the production of various pharmaceuticals and agrochemicals.

Revise in 30 seconds

  • Cyanides (Nitriles):CN-\text{C}\equiv\text{N} group. Carbon attached to R-group.
  • Isocyanides (Carbylamines):NC-\text{N}\equiv\text{C} group. Nitrogen attached to R-group.
  • Ambidentate $\text{CN}^-$:Attacks via C (with KCN\text{KCN}) \rightarrow Nitriles (RCN\text{R}-\text{C}\equiv\text{N}). Attacks via N (with AgCN\text{AgCN}) \rightarrow Isocyanides (RNC\text{R}-\text{N}\equiv\text{C}).
  • Nitrile Hydrolysis:RCNH+/OHRCOOH\text{R}-\text{C}\equiv\text{N} \xrightarrow{\text{H}^+/\text{OH}^-} \text{RCOOH} (Carboxylic acid).
  • Nitrile Reduction:RCNLiAlH4/H2NiRCH2NH2\text{R}-\text{C}\equiv\text{N} \xrightarrow{\text{LiAlH}_4/\text{H}_2\,\text{Ni}} \text{RCH}_2\text{NH}_2 (Primary amine).
  • Isocyanide Hydrolysis:RNCH+RNH2+HCOOH\text{R}-\text{N}\equiv\text{C} \xrightarrow{\text{H}^+} \text{RNH}_2 + \text{HCOOH} (Primary amine + Formic acid).
  • Isocyanide Reduction:RNCH2NiRNHCH3\text{R}-\text{N}\equiv\text{C} \xrightarrow{\text{H}_2\,\text{Ni}} \text{RNHCH}_3 (Secondary amine).
  • Carbylamine Reaction:Primary amine + CHCl3\text{CHCl}_3 + alc. KOHDeltaRNC\text{KOH} \xrightarrow{Delta} \text{RNC} (foul smell). Test for primary amines.

To remember the KCN\text{KCN} vs AgCN\text{AgCN} products:

King Cyanide makes Nitriles (KCN \rightarrow Nitriles) Agent Gold makes Isocyanides (AgCN \rightarrow Isocyanides)

And for the Carbylamine test: Chloroform, Hydroxide, Amine, Really Bad Yucky Liquid (Carbylamine reaction for primary amines, producing foul-smelling isocyanides).