Vilsmeier–Haack Reaction: Formylating Electron-Rich Arenes
The Vilsmeier–Haack reaction adds a formyl group (CHO) to an electron-rich aromatic ring. The electrophile is made from two cheap reagents, dimethylformamide (DMF) and phosphorus oxychloride (POCl₃), which combine to give a chloroiminium ion known as the Vilsmeier reagent. The ring attacks it in an electrophilic aromatic substitution, and water added at the end turns the resulting iminium ion into an aldehyde.
CN(C)c1ccccc1>>CN(C)c1ccc(C=O)cc1Anton Vilsmeier and Albrecht Haack described the reaction in 1927. The product here, 4-(dimethylamino)benzaldehyde, is Ehrlich's reagent, used in tests for indoles and urobilinogen.
Why Not Use Friedel–Crafts Acylation?
A Friedel–Crafts acylation with an acyl chloride and AlCl₃ adds a ketone group to a ring. To add an aldehyde, you would need formyl chloride (HCOCl), which is too unstable to use. The Vilsmeier reagent solves this: it is an iminium ion that carries the same CH carbon, and after the ring has attacked, simple hydrolysis turns the C=N⁺ into C=O. The reagent is also much milder than an acylium ion. Benzene and toluene do not react, so the reaction is limited to rings that are activated by nitrogen or oxygen: anilines, phenol ethers, pyrroles, furans, thiophenes and indoles.
Making the Vilsmeier Reagent
Making the Vilsmeier reagent: step 1
[Chemical structure]
The oxygen of DMF attacks phosphorus and pushes out a chloride ion. The nitrogen lone pair moves in to form a C=N bond, so the positive charge ends up on nitrogen, and the C=O π electrons move onto oxygen.
Making the Vilsmeier reagent: step 2
[Chemical structure]
Chloride adds to the iminium carbon, and the C=N π electrons return to nitrogen.
Making the Vilsmeier reagent: step 3
[Chemical structure]
The nitrogen lone pair pushes out the dichlorophosphate group, a good leaving group. The result is the chloroiminium ion, the Vilsmeier reagent.
Putting it all together: Making the Vilsmeier reagent
[Chemical structure]
Phosphorus forms strong bonds to oxygen, so POCl₃ readily swaps a chloride for the oxygen of DMF. Overall, the C=O oxygen of DMF is replaced by chlorine, and the strong electron donation from nitrogen keeps the product as a stable salt, which can even be isolated.
Attack on the Ring and Hydrolysis
The arene attacks the Vilsmeier reagent
[Chemical structure]
The ring carbon para to the NMe₂ group attacks the iminium carbon. The amino group's lone pair pushes electrons into the ring, so the positive charge of the intermediate sits on its nitrogen. This is the slow step, and it only happens with electron-rich rings.
The intermediate then loses the proton from the ring carbon that was attacked, restoring the aromatic ring. Chloride leaves from the new benzylic carbon, giving an aryl iminium ion. This is stable until water is added during work-up. Water adds to the iminium carbon, and dimethylamine is lost, just as in the hydrolysis of an imine.
C[N+](C)=C1C=CC(C(Cl)N(C)C)C=C1>>CN(C)c1ccc(C=[N+](C)C)cc1CN(C)c1ccc(C=[N+](C)C)cc1.O>>CN(C)c1ccc(C=O)cc1.C[NH2+]CWhere Does the CHO Go?
Typical sites of Vilsmeier–Haack formylation
Substrate | Position formylated | Why |
N,N-dimethylaniline | para to NMe₂ | NMe₂ directs ortho/para; para is less hindered |
pyrrole | C2 | the cation from C2 attack has three resonance forms |
indole | C3 | attack at C3 keeps the benzene ring intact |
anisole | para (slow) | OMe activates less than NMe₂ |
Replacing DMF with other amides gives ketones instead of aldehydes, though less efficiently. The reaction is widely used to make heterocyclic aldehydes, which are building blocks for dyes and drugs.
Related Lessons
- Friedel–Crafts Acylation: the acylium-ion route to aryl ketones.
- Directing Effects in EAS: why NMe₂ sends the electrophile para.
- Imine and Enamine Formation: the reverse of the final hydrolysis.
- Reimer–Tiemann Reaction: another way to put CHO on an activated ring.
Tips for remembering
- DMF + POCl₃ → Me₂N⁺=CHCl, the Vilsmeier reagent.
- A weak electrophile: only electron-rich rings (anilines, pyrroles, indoles) react.
- Water work-up turns the iminium into the aldehyde.
