Preparation of Nitriles
This page looks at various ways of making nitriles – from halogenoalkanes (haloalkanes or alkyl halides), from amides, and from aldehydes and ketones. It pulls together information from pages dealing with each of these kinds of compounds
Making Nitriles From Halogenoalkanes
The halogenoalkane is heated under reflux with a solution of sodium or potassium cyanide in ethanol. The halogen is replaced by a -CN group and a nitrile is produced. Heating under reflux means heating with a condenser placed vertically in the flask to prevent loss of volatile substances from the mixture.
The solvent is important. If water is present you tend to get substitution by -OH instead of -CN.
Note: A solution of potassium cyanide in water is quite alkaline, and contains significant amounts of hydroxide ions. These react with the halogenoalkane. This reaction is discussed on the page about the reactions between halogenoalkanes and hydroxide ions.
For example, using 1-bromopropane as a typical halogenoalkane:
You could write the full equation rather than the ionic one, but it slightly obscures what's going on:
The bromine (or other halogen) in the halogenoalkane is simply replaced by a -CN group – hence a substitution reaction. In this example, butanenitrile is formed.
Note: If you want the mechanisms for these reactions (which differ depending on exactly what sort of halogenoalkane you are talking about), you can find them by following this link.
Making a nitrile by this method is a useful way of increasing the length of a carbon chain. Having made the nitrile, the -CN group can easily be modified to make other things – as you will find if you explore the nitriles menu (link at the bottom of the page).
Making Nitriles From Amides
Nitriles can be made by dehydrating amides.
Amides are dehydrated by heating a solid mixture of the amide and phosphorus(V) oxide, P4O10.
Water is removed from the amide group to leave a nitrile group, -CN. The liquid nitrile is collected by simple distillation.
For example, you will get ethanenitrile by dehydrating ethanamide.
Note: This is a just a flow scheme rather than a proper equation. I haven't been able to find a single example of the use of the full equation for this reaction. In fact the phosphorus(V) oxide reacts with the water to produce mixtures of phosphorus-containing acids.
Making Nitriles From Aldehydes and Ketones
Aldehydes and ketones undergo an addition reaction with hydrogen cyanide. The hydrogen cyanide adds across the carbon-oxygen double bond in the aldehyde or ketone to produce a hydroxynitrile. Hydroxynitriles used to be known as cyanohydrins.
For example, with ethanal (an aldehyde) you get 2-hydroxypropanenitrile:
With propanone (a ketone) you get 2-hydroxy-2-methylpropanenitrile:
In every example of this kind, the -OH group will be on the number 2 carbon atom – the one next to the -CN group.
The reaction isn't normally done using hydrogen cyanide itself, because this is an extremely poisonous gas. Instead, the aldehyde or ketone is mixed with a solution of sodium or potassium cyanide in water to which a little sulfuric acid has been added. The pH of the solution is adjusted to about 4 – 5, because this gives the fastest reaction. The reaction happens at room temperature.
The solution will contain hydrogen cyanide (from the reaction between the sodium or potassium cyanide and the sulfuric acid), but still contains some free cyanide ions. This is important for the mechanism.
Note: If you want the mechanism for this reaction, you will find it explained if you follow this link.
These are useful reactions because they not only increase the number of carbon atoms in a chain, but also introduce another reactive group as well as the -CN group. The -OH group behaves just like the -OH group in any alcohol with a similar structure.
For example, starting from a hydroxynitrile made from an aldehyde, you can quite easily produce relatively complicated molecules like 2-amino acids – the amino acids which are used to construct proteins.
Note: The first step is the replacement of -OH in an alcohol by chlorine.
The second step is the reaction between a halogenoalkane and ammonia.
The final step is hydrolysis of a nitrile.