Williamson Ether Synthesis (RO- + R-X to R-O-R)

Reagents
1) base to form RO- (often NaH) 2) primary R-X or R-OTs
Major outcome
Ether formation via SN2
Selectivity
Requires an unhindered electrophile

Common traps

  • 3 degree electrophiles fail SN2 (E2 dominates)
  • 2 degree electrophiles compete with E2
  • Protic solvents weaken nucleophile and reduce SN2 rate

Choose the electrophile

ElectrophileOutcomeNotes
1 degree R-X / R-OTsSN2 ether formationbest case
2 degree R-XSN2 vs E2depends on base/solvent/heat
3 degree R-XE2no SN2

Sodium hydride (NaH) strips alcohols of their acidic proton, releasing H₂ and creating a highly nucleophilic alkoxide. Once formed, that alkoxide performs a backside SN2 attack on a compatible alkyl halide (R′–X) to build an ether. If the molecule already houses both the alcohol and a pendant halide, the same sequence becomes intramolecular and closes a ring. Secondary electrophiles can give competing SN2 and E2; tertiary electrophiles cannot undergo ordinary SN2 and favor E2 when a β-H is available.

Comparisons: use PBr₃ or SOCl₂ when you need to convert the alcohol itself into a halide before substitution, or Appel conditions for mild halide installation.

Quick Summary

  • Reagents: alcohol (R–OH), strong base (NaH preferred), alkyl halide electrophile (R′–Cl/Br/I or sulfonate ester), dry THF is a typical solvent for the NaH sequence, often with cooled addition followed by room temperature. Allow H₂ evolution to subside before adding the halide. NaH mixtures with DMF or DMSO have known thermal-decomposition hazards; these solvents are not interchangeable defaults.
  • Scope: methyl and primary halides react fastest; allylic/benzylic primaries are excellent. Secondary halides give mixtures or elimination; tertiary halides with β-H favor E2.
  • Sequence: (1) NaH deprotonation → alkoxide + H₂; (2) add R′–X for SN2; (3) suitably positioned pendant halides can cyclise.
  • Intramolecular trigger: HO–(CH₂)ₙ–X gives a ring containing n carbons plus one oxygen. Five- and six-membered cyclic ethers are especially favorable; larger rings need more careful design.
  • Competing E2: secondary halides can give substitution/elimination mixtures; tertiary halides with β-H favor elimination (see Worked Example 3).
  • Variants: phenoxides undergo Williamson ether formation with simple halides to give aryl ethers; sulfonate esters replace halides when a non-halide leaving group is needed.

Mechanism — Step 1: NaH Deprotonation

NaH removes the proton from an alcohol, releasing H2 and forming an alkoxide.
Hydride abstracts the alcohol proton, H₂ bubbles off, and the oxygen becomes an alkoxide (negative charge, no hydrogens).
  • Irreversibility: gaseous H₂ leaves the mixture, driving the equilibrium toward alkoxide formation.
  • Practical note: gas evolution accompanies deprotonation, but leftover NaH or cessation of bubbles alone does not prove conversion. NaH is heterogeneous and can be passivated.

Mechanism — Step 2: SN2 on R′–X

Alkoxide attack on an alkyl halide and departure of the leaving group.
The alkoxide lone pair performs a backside attack on R′–X, displacing the halide in a single concerted step and forging the ether bond.
  • Stereochemistry: inversion at the electrophilic carbon (classic SN2).
  • Leaving groups: iodides > bromides > chlorides; tosylates/mesylates work equivalently.
  • Solvent: polar aprotics keep the alkoxide solvated yet reactive.

Intramolecular Williamson (Ring Closure)

Alkoxide attacking a tethered alkyl halide to cyclise into an ether.
When the substrate already houses R′–X, the alkoxide attacks intramolecularly, expelling X and closing a ring (five- and six-membered rings are especially favorable).
  • Outcome: haloalkoxides form cyclic ethers. A lactone is a cyclic ester and requires a carboxylate/acyl route, not the simple alcohol-derived Williamson shown here. Crown-ether synthesis uses specially designed polyether tethers.
  • Design tip: tether length dictates ring size; ensure minimal strain for efficient cyclisation.

Competing E2 with Secondary/Tertiary R′–X

Secondary halides can undergo both SN2 and E2; heat and steric crowding favor elimination. Tertiary halides cannot undergo ordinary SN2. In E2, the alkoxide removes a β-H as the C=C bond forms and X⁻ leaves, regenerating the alcohol. Example 3 shows one elimination product, not an exclusive outcome.


Worked Examples

Blue marks the new O–CH₃ bond in the two methyl-ether products.

1. n-Propanol + Methyl Bromide → Methyl n-propyl ether

Propanol reactant NaH / RX reagent button Ether product

Propoxide + methyl bromide gives 1-methoxypropane. Methyl has no stereocenter, so backside attack causes no observable R/S inversion.

2. Phenoxide + Methyl Bromide → Anisole

Phenol reactant NaH / RX reagent button Anisole product

Phenoxide reacts with methyl bromide to give anisole—classic Williamson extension to aryl ethers.

3. Methoxide + sec-Butyl bromide (E2 competes)

Methanol reactant NaH / RX reagent button + sec-Butyl bromide electrophile Elimination product (2-butene)

Methoxide can remove a β-H from 2-bromobutane, giving butenes and regenerating methanol. E-but-2-ene is one elimination product; SN2 ether formation can also compete. Heating generally favors elimination.


Mechanistic Checklist

  1. Generate alkoxide completely (monitor for H₂ bubbles, add halide only after evolution stops).
  2. Choose a viable electrophile (methyl/primary/allylic/benzylic). Secondary → competing SN2/E2; tertiary with β-H → E2.
  3. Match solvent to base: dry THF is typical with NaH. Do not treat NaH/DMF or NaH/DMSO as routine interchangeable choices.
  4. Check tether length and concentration: favorable ring closures can compete effectively with intermolecular reactions.
  5. Exclude water and incompatible proton donors. The matching parent alcohol can be the solvent in some alkoxide methods; an alcohol solvent is not compatible with the NaH deprotonation sequence as an inert medium.
  6. Consider leaving group swaps (tosylate/mesylate) if a halide isn’t available.
  7. Identify the R′ fragment in the product ether.

Preparing the alkoxide with sodium metal

Sodium metal provides another route to an alkoxide before the Williamson substitution. With ethanol the balanced preparation is 2 CH3CH2OH + 2 Na → 2 CH3CH2O− Na+ + H2. Only the O–H bond is removed from the organic structure; the C–O bond remains.

The resulting ethoxide can then attack a suitable methyl or primary alkyl halide by SN2. These are two separate steps: sodium does not install the second alkyl group. Water consumes the metal and protonates alkoxide, so aqueous NaOH is not an interchangeable way to prepare a dry, concentrated alkoxide from an ordinary alcohol.

ethanol gives sodium ethoxide; Na metal; dry conditions.
Net organic transformation; reagents and product accounting are described above.

Exam-Style Summary

  • Predictive prompt: “NaH, then 1-bromopropane with methanol.” → methoxide SN2 to give methyl propyl ether (backside attack; that CH₂ carbon is not stereogenic).
  • Intramolecular prompt: “HO–(CH₂)₅–Br + NaH.” → deprotonate and cyclise to tetrahydropyran (THP, six-membered ring: five C + one O).
  • Failure prompt: “Alcohol + NaH, then tert-butyl bromide.” → E2 elimination only.
  • Mechanism request: always draw Step 1 (deprotonation) before Step 2 (SN2 or E2) to highlight sequencing.

Interactive Toolbox

  • Mechanism Solver – Check the available mechanism templates.
  • Reaction Solver – Draw an alcohol and select from the supported reagent options.
  • IUPAC Namer – Double-check ether product names once you assign the R and R′ chains.

Ready to practice? Launch the Mechanism Solver or Reaction Solver to explore the available reaction options.