What Is a Ylide in Chemistry? Definition and Uses

A ylide is a neutral molecule that carries both a positive and a negative charge on two directly bonded atoms. That internal separation of charge makes ylides unusually reactive, and they serve as key tools in organic chemistry for building carbon-carbon double bonds, three-membered rings, and other structures that are otherwise difficult to construct.

How a Ylide Is Structured

In a ylide, a negatively charged carbon sits directly next to a positively charged atom, typically phosphorus, sulfur, or nitrogen. The molecule as a whole is electrically neutral because those two opposite charges cancel out. This arrangement is sometimes called zwitterionic, meaning it has separated positive and negative regions within the same molecule. The negative carbon is electron-rich and acts as a nucleophile, meaning it readily attacks electron-poor centers in other molecules. The positive atom next door stabilizes that extra electron density, keeping the molecule intact rather than letting the charges fly apart.

You can think of a ylide as having two ways to draw its structure on paper. One representation shows a full positive charge on the heteroatom and a full negative charge on carbon, connected by a single bond. The other shows a double bond between the two atoms with no formal charges. Reality sits somewhere between these two extremes, and chemists use whichever drawing best describes the behavior of a particular ylide.

Phosphorus Ylides and the Wittig Reaction

The most widely known ylides are phosphorus ylides, sometimes called Wittig reagents after Georg Wittig, who shared the 1979 Nobel Prize in Chemistry for developing their signature reaction. A classic example is methylenetriphenylphosphorane, where three phenyl groups and a carbon bearing a negative charge are all attached to a positively charged phosphorus atom.

In the Wittig reaction, a phosphorus ylide reacts with an aldehyde or ketone to produce an alkene (a carbon-carbon double bond). The negatively charged carbon of the ylide attacks the carbonyl carbon, and the two molecules join through a four-membered ring intermediate containing both phosphorus and oxygen. That ring then breaks apart, releasing the desired alkene along with a phosphorus-oxygen byproduct called phosphine oxide. Phosphorus has a strong affinity for oxygen, so the formation of that stable byproduct is what drives the entire reaction forward.

One of the most useful features of the Wittig reaction is that chemists can control the geometry of the resulting double bond by choosing the right type of ylide. This matters because two carbon groups on the same side of a double bond (the Z or cis arrangement) behave very differently from two groups on opposite sides (the E or trans arrangement).

Stabilized vs. Non-Stabilized Ylides

How reactive a phosphorus ylide is depends on what’s attached to the negatively charged carbon. When electron-withdrawing groups sit on that carbon, they spread out the negative charge and calm the molecule down. These are called stabilized ylides. They’re less reactive, require more vigorous conditions, and tend to produce trans (E) alkenes. The transition state leading to the four-membered ring intermediate is more product-like and planar, which favors the arrangement where bulky groups end up on opposite sides of the double bond.

Non-stabilized ylides carry simple alkyl groups on the charged carbon, leaving the negative charge concentrated and the molecule highly reactive. These ylides react readily with aldehydes and ketones and preferentially give cis (Z) alkenes. The early, less planar transition state minimizes certain steric clashes between the ylide’s substituents and the phosphorus atom’s bulky groups, which channels the reaction toward the cis product. Semi-stabilized ylides, bearing aryl groups, fall between these two extremes and typically give mixtures of both geometric isomers.

Sulfur Ylides and Three-Membered Rings

Sulfur ylides work differently from their phosphorus cousins. Instead of forming double bonds, they build small rings. In the Corey-Chaykovsky reaction, first reported in 1960, a sulfur ylide reacts with an aldehyde or ketone to produce an epoxide (a three-membered ring containing oxygen), or with a conjugated enone to produce a cyclopropane (a three-membered ring of all carbon).

The mechanism starts the same way: the negatively charged carbon of the sulfur ylide attacks the electrophilic carbon of the carbonyl. This creates an intermediate with both a negative oxygen and a positively charged sulfur in the same molecule. The oxygen then displaces the sulfur in an internal reaction, snapping shut to form the three-membered epoxide ring while the sulfur-containing fragment departs as a neutral leaving group. For cyclopropane formation from enones, an analogous ring closure occurs at the carbon-carbon double bond instead.

Two common sulfur ylides show up in this chemistry, and they behave differently from each other. Sulfonium ylides are more reactive and will react with less-activated carbonyl compounds. Sulfonium ylides reacting with conjugated enones can produce either epoxides or cyclopropanes depending on the substituents. Sulfoxonium ylides (where an extra oxygen is bound to sulfur) are more selective: they ignore deactivated ketones entirely and add specifically to the double bond of conjugated enones, giving cyclopropanes.

Nitrogen Ylides and Rearrangements

Nitrogen ylides form when a quaternary ammonium salt (a nitrogen atom bonded to four carbon groups, carrying a positive charge) loses a proton to a strong base. The resulting species has a negatively charged carbon bonded directly to the positively charged nitrogen. These ylides are generally short-lived and tend to rearrange rather than react with external partners.

The most characteristic reaction of nitrogen ylides is the Stevens rearrangement. In this process, one of the groups attached to nitrogen migrates from the nitrogen to the nearby negatively charged carbon. The result converts a quaternary ammonium salt into a tertiary amine with a new carbon-carbon bond. Both 1,2-shifts (where the group hops to the adjacent carbon) and 2,3-sigmatropic shifts (a concerted process involving an allyl group) fall under this umbrella. The 2,3 version is particularly useful because it can create new carbon stereocenters with high selectivity, and recent methods have achieved this without requiring metal catalysts.

How Ylides Are Made

The most common route to a ylide is a two-step process. First, a nucleophilic atom like phosphorus, sulfur, or nitrogen reacts with an alkyl halide to form a positively charged “onium” salt: a phosphonium, sulfonium, or ammonium salt. Second, a strong base removes a proton from the carbon next to the positively charged atom, generating the ylide. The base needs to be strong enough to pull off that specific proton without interfering with the rest of the molecule. Sodium hexamethyldisilazide is a frequently used option because it is strong yet relatively gentle toward other functional groups.

In some cases, another ylide can serve as the base itself. During the preparation of certain phosphorus ylides, the ylide being formed in solution is basic enough to deprotonate the starting phosphonium salt, effectively bootstrapping the reaction. This kind of self-catalytic behavior can simplify the preparation but also means chemists need to account for the extra equivalent consumed.

Why Ylides Matter in Practice

Ylides give chemists precise control over molecular architecture in ways that few other reagents can match. The Wittig reaction remains one of the most reliable methods for placing a double bond at an exact position in a complex molecule, which is critical in building pharmaceuticals, fragrances, and natural product analogs. The Corey-Chaykovsky reaction provides direct access to strained three-membered rings that appear in many biologically active compounds. And nitrogen ylide rearrangements offer efficient routes to molecules with crowded carbon centers that would be difficult to assemble by other means.

What unites all ylide chemistry is that same core feature: a carbanion tethered to a positively charged neighbor. That combination stores energy in a compact, controllable package, and releasing it through reaction with a carbonyl or double bond partner is what makes ylides some of the most versatile reactive intermediates in organic synthesis.