# Reaction of Alkyl Halides with Ammonia

This page looks at the reaction between halogenoalkanes (haloalkanes or alkyl halides) and ammonia. The halogenoalkane is heated with a concentrated solution of ammonia in ethanol. The reaction is carried out in a sealed tube. You couldn't heat this mixture under reflux, because the ammonia would simply escape up the condenser as a gas. We'll talk about the reaction using 1-bromoethane as a typical primary halogenoalkane. There is no difference in the details of the reaction if you chose a secondary or tertiary halogenoalkane instead. The equations would just look more complicated than they already are! You get a series of amines formed together with their salts. The reactions happen sequentially.

### Making a Primary Amine

The reaction happens in two stages. In the first stage, a salt is formed - in this case, ethylammonium bromide. This is just like ammonium bromide, except that one of the hydrogens in the ammonium ion is replaced by an ethyl group.

$CH_3CH_2Br + NH_3 \rightarrow CH_3CH_2NH_3^+ + Br^-$

There is then the possibility of a reversible reaction between this salt and excess ammonia in the mixture.

$CH_3CH_2NH_3^+ + NH_3 \rightleftharpoons CH_3CH_2NH_2 + NH_4^+Br^-$

The ammonia removes a hydrogen ion from the ethylammonium ion to leave a primary amine - ethylamine. The more ammonia there is in the mixture, the more the forward reaction is favored.

### Making a Secondary Amine

The reaction doesn't stop at a primary amine. The ethylamine also reacts with bromoethane - in the same two stages as before. In the first stage, you get a salt formed - this time, diethylammonium bromide. Think of this as ammonium bromide with two hydrogens replaced by ethyl groups.

There is again the possibility of a reversible reaction between this salt and excess ammonia in the mixture.

The ammonia removes a hydrogen ion from the diethylammonium ion to leave a secondary amine - diethylamine. A secondary amine is one which has two alkyl groups attached to the nitrogen.

### Making a Tertiary Amine

And still it doesn't stop! The diethylamine also reacts with bromoethane - in the same two stages as before. In the first stage, you get triethylammonium bromide.

There is again the possibility of a reversible reaction between this salt and excess ammonia in the mixture.

The ammonia removes a hydrogen ion from the triethylammonium ion to leave a tertiary amine - triethylamine. A tertiary amine is one which has three alkyl groups attached to the nitrogen.

## Making a Quaternary Ammonium salt

The final stage! The triethylamine reacts with bromoethane to give tetraethylammonium bromide - a quaternary ammonium salt (one in which all four hydrogens have been replaced by alkyl groups).

This time there isn't any hydrogen left on the nitrogen to be removed. The reaction stops here.

What do you actually get if you react bromoethane with ammonia?

Whatever you do, you get a mixture of all of the products (including both amines and their salts) shown on this page.

To get mainly the quaternary ammonium salt, you can use a large excess of bromoethane. If you look at the reactions going on, each one needs additional bromoethane. If you provide enough, then the chances are that the reaction will go to completion, given enough time.

On the other hand, if you use a very large excess of ammonia, the chances are always greatest that a bromoethane molecule will hit an ammonia molecule rather than one of the amines being formed. That will help to prevent the formation of secondary (etc) amines.