# 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.

Example 1

using 1-bromopropane as a typical halogenoalkane:

$CH_3CH_2CH_2Br + CN^- \longrightarrow CH_3CH_2CH_2CN + Br^-$

You could write the full equation rather than the ionic one, but it slightly obscures what's going on:

$CH_3CH_2CH_2Br + KCN \longrightarrow CH_3CH_2CH_2CN + KBr$

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.

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 a 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.

Example

Once will get ethanenitrile by dehydrating ethanamide.

### 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.

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 is not 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.

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.

### Contributors

Jim Clark (Chemguide.co.uk)