NaCN
sodium cyanide
Puts a CN on the carbon by SN2, which adds one carbon to the chain.
Acts on: A methyl, 1°, or 2° alkyl halide or tosylate
- Starts from
- Methyl, 1° or 2° R–X or R–OTsA methyl, 1°, or 2° alkyl halide or tosylate
- Reagents and conditions
- NaCN, DMSO
- Products
- Nitrile (one C longer)A nitrile (one carbon longer)
- Mechanism
- SN2One step: the nucleophile attacks the carbon from the back as the leaving group leaves.
- Stereochemistry
- InversionAt the carbon that gets attacked. Reassign R or S from the new priorities.
- Rearrangements
- NoSN2 has no carbocation.

Representative reactions: choose one
Mechanism, on an example reaction
SN2: cyanide and bromomethane
Conditions: NaCN in DMSO, a polar aprotic solvent. The new C–C bond adds one carbon to the chain. Na⁺ is not drawn.
Mechanism, step by step
Step 1 of 3 · Reactive site
Find the nucleophile and the electrophile
Cyanide attacks through carbon, which carries the negative charge and a lone pair. The C–Br carbon is δ+, and bromide is a good leaving group.
Press Next to see the electrons move.
Hover or tap any atom for a short note.
- Stereochemistry
- InversionThe three hydrogens flip like an umbrella. On a stereocenter the arrangement inverts; reassign R or S from the new priorities.
Mechanism, on an example reaction
SN2 at a stereocenter: cyanide and (R)-2-bromobutane
Conditions: NaCN in DMSO. Polar aprotic solvent; Na⁺ is not drawn. A 2° carbon reacts more slowly than a methyl or 1° carbon, and strongly basic nucleophiles would also give E2; these four are weak bases.
Mechanism, step by step
Step 1 of 3 · Reactive site
Find the nucleophile and the electrophile
Cyanide attacks through carbon, which carries the negative charge and a lone pair. The C–Br carbon is δ+, and bromide is a good leaving group. This carbon is a stereocenter: (R).
Press Next to see the electrons move.
Hover or tap any atom for a short note.
- Stereochemistry
- InversionAt the stereocenter: (R)-2-bromobutane gives the (S) product. The nucleophile takes bromine's place as the top priority, but on the opposite side, so the label changes from R to S.
Exam notes
- Exam noteCN⁻ is a weak base (HCN has a pKa of about 9), so it substitutes even on 2° carbons.On a 3° halide, SN2 is blocked.