Alkynes are prepared by elimination reactions of alkyl dihalides:

The reaction goes by an E2 mechanism and is similar to how alkenes are prepared. The difference here is that two halogen atoms are needed because the triple bond is formed by two consecutive elimination reactions:

The first elimination can be performed with regular bases such as hydroxides and alkoxides. However, a stronger base is needed to achieve an elimination of the vinyl halide. Most often, sodium amide (NaNH2), dissolved in liquid ammonia (NH3), is used:

The two halogens can be on the same (geminal dihalide) carbon or on neighboring (vicinal dihalide) carbons.
To distinguish these, you can go with geminal as being “jammed” on one carbon:

More scientifically, it comes from the Latin geminus – “twin.”
Depending on the structure of the dihaloalkane, the elimination reaction results in either an internal or terminal alkyne:

Preparation of terminal alkynes has an advantage because of the hydrogen on the triple-bonded carbon.
This hydrogen has a pKa of 25, allowing for deprotonation by the sodium amide, which is the driving force for shifting the equilibrium to the right:

In total, three equivalents of sodium amide are needed: two equivalents for the two E2 eliminations and one to deprotonate the terminal alkyne.
The alkynide ion is protonated back again once the reaction is complete to regenerate the terminal alkyne. This is the work-up of the reaction and is achieved with water since the acidity of water allows for performing this acid-base reaction:

Even when an internal alkyne is prepared, an excess of sodium amide is often used to make sure the reaction goes to completion. Therefore, the water work-up is used in any case to protonate the alkynide ion and also quench the possible excess of NaNH2.
Overall, the reaction is shown like this:

Below are some more topics focused on the reactions of alkynes, as well as practice problems and a multiple-choice quiz that you can work on to master the chapter on alkynes.
Organic Chemistry Final Practice Quiz
Alkyne Naming and Reactions Practice Quiz



