Alkyl Halide Reactions: Gabriel Synthesis (Potassium Phthalimide → Primary Amine)

Gabriel Synthesis | OrgoSolver Reaction Library

Alkyl Halides: Gabriel Synthesis to Primary Amines (Potassium Phthalimide)


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 sequence delivers the free primary amine alongside precipitated phthalhydrazide.

Worked Examples


Hydrazinolysis Route — Propylamine

Reactant: 1-bromobutane Reagent: potassium phthalimide Product: propylamine

1-bromobutane + K phthalimide (DMF, warm) → N-butyl phthalimide; hydrazinolysis (NH₂NH₂, reflux) → propylamine + 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 Product: alkenes from E2

2-bromobutane favors elimination with the imide base—Gabriel synthesis is unreliable on secondary, especially hindered, substrates.


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 or neopentyl substrates suffer E2—choose alternative amination strategies if necessary.
  • 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. Expect E2 competition when the electrophile is hindered or secondary.

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 — View the SN2 alkylation and the multi-step hydrazinolysis release.
  • Reaction Solver — Check substrate viability (primary vs secondary vs tertiary) and see E2 warnings.
  • IUPAC Namer — Confirm names for N-alkyl phthalimide intermediates and the liberated primary amine.