Gabriel Synthesis: Alkyl Halide to Primary Amine

Reagents
Phthalimide anion then deprotection
Major outcome
Primary amine (RNH2)
Selectivity
SN2 works best with methyl or unhindered primary electrophiles

Common traps

  • Secondary halides react slowly and may eliminate; tertiary halides cannot undergo SN2
  • Not for aryl halides (no SN2 at sp2 carbon)
  • Only primary amines are formed (not secondary/tertiary)

The Gabriel synthesis converts alkyl halides (or sulfonates) into primary amines using potassium phthalimide as an ammonia surrogate. Potassium hydroxide (or another base) first deprotonates phthalimide to give the imide anion. Stage 1 is then an SN2 N‑alkylation: the imide anion attacks the electrophile with inversion at the reacting carbon, forming an N‑alkyl phthalimide. Stage 2 unmasks the amine via hydrazinolysis (NH₂NH₂ → phthalhydrazide) to furnish R–NH₂. Because the key step is SN2, the method excels with methyl/primary electrophiles—including benzylic and allylic partners—while secondary substrates are sluggish and tertiary/vinyl/aryl centers fail.



Quick Summary


  • Stage 1 – Deprotonation + SN2 N-alkylation: KOH (or similar base) generates the phthalimide anion, which then attacks R–X from the backside → N-alkyl phthalimide with inversion at the electrophilic carbon.
  • Stage 2 – Hydrazinolysis release: Hydrazinolysis (NH₂NH₂, EtOH, heat) drives ring opening to phthalhydrazide and liberates R–NH₂ as the primary amine.
  • Best substrates: Methyl, unhindered primary, benzylic, allylic; sulfonates (OTs/OMs/OTf) behave like excellent leaving groups. Secondary centers are low-yield and elimination-prone; tertiary, vinyl, and aryl centers do not react via SN2.
  • Why phthalimide? The imide anion is a strong nitrogen nucleophile but weak base, minimizing E2 and preventing over-alkylation—the N-alkyl phthalimide is no longer nucleophilic.
  • Stereochemistry: The SN2 stage gives Walden inversion; the release step does not alter the carbon configuration on R.

Mechanism (SN2 + Release Branches)


Stage 1 — SN2 N‑alkylation


KOH deprotonates phthalimide to generate the imide anion.
**Step 1 — Deprotonation.** KOH abstracts the N–H proton of phthalimide to furnish the imide anion used in the Gabriel SN2 step.
Backside attack of the imide nitrogen on the alkyl halide, displacing the halide with inversion.
**Step 2 — Backside attack with inversion.** The nitrogen lone pair attacks anti to the C–X bond; the leaving group departs as X⁻, generating the SN2 inversion.
N-alkyl phthalimide intermediate after SN2 alkylation.
**Step 3 — N-alkyl phthalimide formed.** The amine nitrogen is now embedded in the imide—no longer nucleophilic—preventing over‑alkylation.

Stage 2 — Hydrazinolysis (NH₂NH₂ → Phthalhydrazide)


Hydrazine nucleophilic attack on the imide carbonyl.
**Step A1 — Hydrazine addition.** Hydrazine attacks a carbonyl of the imide, starting ring opening.
Ring opening toward the phthalhydrazide framework.
**Step A2 — Collapse of the first tetrahedral intermediate.** The C–N bond to the imide breaks, the carbonyl reforms, and the phthalimide nitrogen is reprotonated.
Second hydrazine nitrogen attacking the remaining carbonyl.
**Step A3 — Second hydrazine attack.** The terminal hydrazine nitrogen attacks the remaining carbonyl, initiating the second acyl substitution.
Primary amine released with phthalhydrazide byproduct.
**Step A4 — Amine liberation.** Proton transfers and the second acyl transfer produce R–NH₂ and solid phthalhydrazide (easy filtration).
Final products: primary amine plus phthalhydrazide solid.
**Step A5 — Final products.** The propan-1-amine from the illustrated propyl intermediate is shown; phthalhydrazide is the accompanying byproduct, not drawn in this panel.

Worked Examples


Hydrazinolysis Route — Butan-1-amine

Reactant: 1-bromobutane Reagent: potassium phthalimide Product: butan-1-amine

1-bromobutane + K phthalimide (DMF, warm) → N-butyl phthalimide; hydrazinolysis (NH₂NH₂, reflux) → butan-1-amine + phthalhydrazide.

Hydrazinolysis Route — Benzylamine

Reactant: benzyl chloride Reagent: potassium phthalimide Product: benzylamine

Benzyl chloride alkylates K phthalimide rapidly (rt, DMF); hydrazinolysis (NH₂NH₂, EtOH, heat) → benzylamine with precipitation of phthalhydrazide.

Failure Case — Secondary Halide

Reactant: 2-bromobutane Reagent: potassium phthalimide Possible competing product: but-2-ene

2-Bromobutane reacts more slowly by SN2 than a primary halide; E2 can compete. But-2-ene is one possible elimination product, not a guaranteed exclusive outcome.


Scope & Limitations


  • Highly effective: Methyl, unhindered primary, benzylic, and allylic halides or sulfonates (OTs/OMs/OTf).
  • Borderline: Secondary halides (slow and elimination-prone); neopentyl halides are prohibitively hindered.
  • Not viable: Tertiary, vinyl, or aryl electrophiles—no SN2 pathway.
  • Leaving groups: I ≈ Br ≫ Cl ≫ F; convert chlorides via Finkelstein or activate as sulfonates.
  • Release: Hydrazinolysis provides an insoluble phthalhydrazide byproduct for easy filtration.
  • Functional group tolerance: Hydrazine is reducing and toxic—use appropriate containment and cleanup.

Practical Tips & Pitfalls


  • Use dry polar aprotic solvent (DMF/DMSO/MeCN) for the SN2 stage; water slows the reaction and promotes hydrolysis.
  • Prefer iodides/bromides (or sulfonates); convert stubborn chlorides before attempting the SN2 step.
  • Avoid steric hindrance: secondary substrates can undergo competing E2. Neopentyl halides are especially slow for SN2 and have no β-hydrogen for ordinary E2.
  • Plan for hydrazine handling: keep reactions in a hood, quench and dispose of waste under institutional guidelines.
  • Rinse glassware well after hydrazinolysis—phthalhydrazide can cake filters and lines.

Exam-Style Summary


Gabriel synthesis: potassium phthalimide performs SN2 on a primary/benzylic/allylic electrophile (with inversion), forming an N-alkyl phthalimide. Hydrazinolysis (NH₂NH₂) releases the primary amine without over-alkylation. Secondary substrates struggle; tertiary, vinyl, and aryl electrophiles are out of scope. E2 can compete at secondary centers with β-hydrogens; steric hindrance alone does not guarantee elimination.

Key reminders:

  • Highlight the SN2 inversion at the reacting carbon (no carbocation, no rearrangements).
  • Show that phthalimide prevents over-alkylation—the nitrogen is no longer nucleophilic after substitution.
  • Call out elimination risk (E2) on secondary substrates or poor leaving groups.

Interactive Toolbox


  • Mechanism Solver — check its available reaction templates; this link does not open a pre-solved Gabriel mechanism.
  • Reaction Solver — draw a substrate and select from the supported reagent options.
  • IUPAC Namer — Confirm names for N-alkyl phthalimide intermediates and the liberated primary amine.