Organic Chemistry · Aldehydes and Ketones: Nucleophilic Addition Reactions

Nucleophilic Addition of Phosphorus Ylides: The Wittig Reaction

7 min read
Constants: molar masses from standard atomic weights; styrene 104.15 g/mol and benzyltriphenylphosphonium chloride 388.9 g/mol cross-checked (2026-08).
Want it in plain words first? Jump to Eli explains — the same idea, no jargon.
On this page 9 sections
  1. In 30 seconds
  2. Why this matters
  3. The college version
  4. Eli explains
  5. Worked example
  6. Key takeaway
  7. Check yourself
  8. Study tools
  9. Sources & references

In 30 seconds

The Wittig reaction (Georg Wittig, 1954 Nobel Prize) converts an aldehyde or ketone into an alkene using a phosphorus — a neutral, resonance-stabilized compound written Ph₃P=CR₂. The ylide carbon, bearing a lone pair and a formal negative charge in one resonance form, acts as a nucleophile toward the carbonyl carbon. The carbonyl carbon and the ylide carbon become the two carbons of the new double bond; (Ph₃P=O) is the byproduct:

R2C=O + Ph3P=CR'2 ⟶ R2C=CR'2 + Ph3P=O

The reaction is prized because the double bond appears exactly where the carbonyl was: no migration, no elimination mixtures, no rearrangements. It works on aldehydes and ketones but not on esters, amides, or carboxylic acids.

The ylide is prepared in two steps: an SN2 reaction of triphenylphosphine with an alkyl halide gives a , Ph₃P⁺–CHR₂ X⁻, and a strong base (butyllithium or sodium hydride) removes a proton from the carbon attached to phosphorus to give the ylide.

Why this matters

Before the Wittig reaction, specific alkenes were hard to make: eliminations gave isomer mixtures, and other olefinations had narrow scope. The Wittig reaction made alkene synthesis predictable and became a workhorse of total synthesis — the industrial route to vitamin A uses Wittig chemistry, and the reaction appears in countless natural-product syntheses.

It is also where most students meet retrosynthetic thinking: any alkene can be disconnected into a carbonyl and an ylide — seeing C=C as a future C=O + ylide pair, exactly what exam problems test. The reaction also showcases a recurring principle: it is driven by formation of the very strong P=O bond.

The college version

Core Concepts

Ylide structure: two faces of one reagent

The ylide is drawn with a P=C double bond, but it is better understood through resonance:

Ph3P+-C-R2   ⟷  Ph3P=CR2

The first (ylidic) form emphasizes that the carbon is carbanion-like and nucleophilic; the second (ylene) form shows the formal double bond (phosphorus is hypervalent — fine for a third-row element). The ylide carbon is the nucleophile, even though it sits next to a positively charged phosphorus. Substituents matter: alkyl or H give "unstabilized" ylides; electron-withdrawing groups (ester, nitrile, ketone) give "stabilized" ylides — less reactive but more selective.

Preparing the ylide

  1. Phosphonium salt formation: triphenylphosphine (Ph₃P) displaces halide from an alkyl halide in an SN2 reaction: Ph₃P + R–X → Ph₃P⁺–R X⁻. Primary and methyl halides work best.
  2. Deprotonation: strong base removes the acidic α-proton (on the carbon attached to phosphorus), giving the ylide.

Mechanism: addition, ring closure, and elimination

The accepted mechanism has three stages, described here in words (arrows omitted):

  1. Nucleophilic addition. The ylide carbon attacks the carbonyl carbon; the C=O π electrons move onto oxygen, giving a zwitterionic with positive charge on phosphorus and negative charge on oxygen (Ph₃P⁺–C–C–O⁻).
  2. Ring closure. The oxygen attacks the phosphorus, closing a four-membered ring (P–O–C–C).
  3. Cycloreversion. The ring fragments in an essentially concerted step: the C–C and P–O bonds become a new C=C, and the P–C and C–O bonds break, releasing triphenylphosphine oxide.

The driving force is the P=O double bond formed in step 3 — one of the strongest bonds in organic chemistry — making the reaction effectively irreversible.

Scope and stereochemistry

  • Substrates: aldehydes react faster than ketones; esters, amides, and nitriles do not react — their carbonyls are too deactivated toward the ylide.
  • Stereochemistry: unstabilized ylides give predominantly Z alkenes under salt-free conditions; stabilized ylides give predominantly E alkenes. The (low temperature, lithium salts) makes unstabilized-ylide reactions E-selective.
  • Position of the double bond: the new C=C occupies exactly the position of the old C=O. The carbonyl carbon becomes one alkene carbon; the ylide carbon becomes the other.

How It Works / Step-by-Step Process

  1. Make the phosphonium salt: Ph₃P + R–CH₂–X → Ph₃P⁺–CH₂R X⁻ (SN2).
  2. Form the ylide: strong base removes the α-proton next to P⁺, giving Ph3P=CHR.
  3. Add to the carbonyl: the ylide carbon attacks the carbonyl carbon; the betaine forms.
  4. Close the ring: O- attacks P⁺ to give the oxaphosphetane.
  5. Fragment: the ring breaks down to the alkene plus Ph₃P=O, which precipitates or is removed by chromatography.

Common Confusions

Do not confuseWithDifference
Ylide carbon as nucleophilePhosphorus as the reactive siteThe carbanionic carbon attacks the carbonyl; P⁺ only stabilizes it and later carries the oxygen away
Wittig reactionHorner–Wadsworth–Emmons (HWE) reactionHWE uses phosphonate esters, not ylides, and is generally E-selective even for unstabilized cases
"Ylide + ester gives alkene"Ylide + aldehyde/ketone gives alkeneEsters, amides, and nitriles are unreactive toward ylides
Double-bond position can scramblePosition is fixedThe C=C replaces the C=O exactly; no migration or rearrangement occurs
Unstabilized ylides give E alkenesUnstabilized give Z (stabilized give E)EWG substituents on the ylide carbon flip the selectivity; a favorite exam trap
Eli, the EliExplains learning guide

Eli explains

The same idea, in plain words

Explain it like I’m 10

Imagine two dancers: a carbonyl molecule holds a bright balloon (the oxygen), and an ylide is a partner with a strong magnet. When they meet, the magnet grabs the balloon, the dancers twirl and link arms (forming the double bond), and the balloon pops off and sticks to the ylide's helper, who walks away with it. What's left is a new couple holding both arms — your alkene — and the helper never returns: popping that balloon released so much energy.

Worked example

Example 1: Benzaldehyde to styrene

Predict the product of benzaldehyde (SMILES O=Cc1ccccc1) with methylenetriphenylphosphorane (Ph₃P=CH₂).

The ylide contributes a CH₂ group; the carbonyl carbon becomes the other alkene carbon. Benzaldehyde's CHO carbon plus the ylide's CH₂ give the terminal alkene styrene:

PhCHO + Ph3P=CH2 ⟶ PhCH=CH2 + Ph3P=O

The double bond sits exactly where the carbonyl was, and the product is a single isomer (terminal alkenes have no E/Z issue) — the classic laboratory route to styrene.

Example 2: Cyclohexanone to methylenecyclohexane

Cyclohexanone (SMILES O=C1CCCCC1) reacts with the same ylide to give methylenecyclohexane (SMILES C=C1CCCCC1):

cyclohexanone + Ph3P=CH2 ⟶ methylenecyclohexane + Ph3P=O

The exocyclic methylene forms at the ring carbon that was the carbonyl carbon. The product's IR spectrum shows a C=C stretch near 1650 cm⁻¹ and no carbonyl stretch near 1715 cm⁻¹ — a clean fingerprint of successful olefination.

Example 3: Yield calculation with dimensional analysis

Benzyltriphenylphosphonium chloride, Ph3P+–CH2Ph Cl- (molar mass 388.9 g/mol), is converted to the ylide and reacted with benzaldehyde, giving styrene (molar mass 104.15 g/mol) in 85% yield. What mass of styrene is obtained from 3.89 g of the phosphonium salt?

Moles of phosphonium salt:

n = mM = 3.89 g388.9 g mol-1 = 1.00 × 10-2 mol

The 1:1 stoichiometry (salt → ylide → alkene) gives the same theoretical moles of styrene. Theoretical mass:

mtheoretical = n × M = (1.00 × 10-2 mol)(104.15 g mol-1) = 1.04 g

Apply the 85% yield:

mactual = 0.85 × 1.04 g = 0.885 g

Unit check: mol × g mol⁻¹ = g in both conversions. The sub-100% yield reflects losses during ylide formation, workup, and chromatography.

Key takeaways

  • Net reaction: aldehyde or ketone + Ph₃P=CR₂ → alkene + Ph₃P=O.
  • The ylide carbon is the nucleophile; its carbanion-like character comes from resonance with P⁺.
  • Ylide preparation: SN2 (Ph₃P + R–X), then deprotonation with strong base.
  • Mechanism: betaine → oxaphosphetane → cycloreversion; Ph₃P=O formation drives the reaction.
  • Only aldehydes and ketones react — not esters, amides, or nitriles; aldehydes react faster than ketones.
  • The C=C forms exactly where the C=O was; no rearrangement or migration.
  • Unstabilized ylides → Z; stabilized ylides → E; Schlosser modification gives E from unstabilized ylides.

Check yourself

5 review questions from the chapter. Try each one, then open the answer.

  1. What two reagents react in a Wittig reaction, and what are the two products?

    Show answer

    An aldehyde or ketone and a phosphorus ylide (Ph₃P=CR₂); the products are an alkene and triphenylphosphine oxide.

  2. Which atom of the ylide acts as the nucleophile, and why?

    Show answer

    The ylide carbon — its carbanion-like character (resonance form Ph3P+–C-) makes it nucleophilic despite sitting next to P⁺.

  3. Why does the reaction work for aldehydes and ketones but not esters?

    Show answer

    Ester, amide, and nitrile carbonyls are much less electrophilic because of resonance donation from the adjacent heteroatom; they cannot be attacked effectively by the ylide carbon.

  4. What intermediate ring closes and then fragments during the mechanism?

    Show answer

    The oxaphosphetane — a four-membered P–O–C–C ring formed from the betaine, which fragments to alkene + Ph₃P=O.

  5. Which ylide type gives Z alkenes, and which gives E?

    Show answer

    Unstabilized ylides give Z alkenes predominantly; stabilized ylides (electron-withdrawing group on the ylide carbon) give E alkenes.

Keep learning

Ready to build on this? Continue to the next lesson.

Study tools & related lessonsKey vocabulary · Related

Key vocabulary

ylide
Neutral molecule with adjacent opposite formal charges, Ph3P+–C-R2
phosphonium salt
Ph3P+–R X-, from SN2 of Ph₃P with an alkyl halide
betaine
Zwitterionic intermediate Ph₃P⁺–C–C–O⁻
oxaphosphetane
Four-membered P–O–C–C ring intermediate
triphenylphosphine oxide
Ph₃P=O, the byproduct
stabilized ylide
Ylide with an electron-withdrawing group on the ylide carbon
Schlosser modification
Low-temperature variant using lithium salts

Sources & references

  1. openstax.org — Organic Chemistry

This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.

Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.