Reagent Friday – Diazomethane (CH2N2)

by James

in Carboxylic acids, Esters, Organic Chemistry 2, Organic Reagents

In a blatant plug for the Reagent Guide and the Reagents App for iPhone, each Friday  I profile a different reagent that is commonly encountered in Org 1/ Org 2. 

One of the things about learning organic chemistry from a textbook is that about 98% of you will never really have to consider the practical aspects of working with many of the reagents that you learn about.  That’s OK. While it’s good to get your hands dirty in the lab as an undergraduate,  most of you can probably live without working with today’s reagent. Because today’s reagent, diazomethane (CH2N2) is the kind of reagent that you should only handle if you really, really really have to. Nothing gets a chemists’ adrenaline going like a reagent that is 1) acutely toxic 2) volatile 3) extremely carcinogenic, and 4) highly explosive. So many ways to die! But I’m getting ahead of myself here. Let’s talk about the textbook stuff!

Diazomethane is actually a really simple molecule. It’s merely a methylene carbon (CH2) attached to dinitrogen (N2). Now as you might well be aware, every nitrogen atoms’ goal in life is to regain the freedom it had as a molecule of dinitrogen (N2),  in the earth’s atmosphere – and in diazomethane, this can be attained merely through breaking of a single carbon-nitrogen bond. This makes diazomethane a rather frisky little molecule and highly reacitve in a number of reactions.

So what’s it used for? Three things.

First of all, carboxylic acids treated with diazomethane will make methyl esters. This is a really simple reaction. See that no heat or acid is required? It just works!

Diazomethane will also add to acid chlorides. When the diazo species is then heated, or treated with a metal like silver, a remarkable transformation occurs: nitrogen is lost, and a rearrangement occurs. After addition of water, the net result is that a carboxylic acid has been extended by one carbon. This is called the Wolff rearrangement.

Finally, if you take an alkene and treat it with diazomethane, cyclopropanation reactions can occur. Here’s the scheme:

 

How it works: here’s how the reaction of carboxylic acids proceeds with diazomethane. First, protonation of diazomethane by the carboxylic acid gives CH3-N2. This is now a superb alkylating agent, since N2 is one of the best leaving groups there is. Attack on the carbon by the carboxylate ion (that’s deprotonated carboxylic acid) gives the methyl ester.

The Wolff rearrangement is awesome but this post is going to be long enough as it is. You can see the mechanism here. 

Cyclopropanation is worth talking about. See, when diazomethane is heated or treated with light, something very interesting happens: nitrogen takes the pair of electrons in the N–C bond and escapes to freedom as N2, while the carbon is left with an empty orbital in addition to its pair of electrons. This species – a neutral, divalent carbon with a lone pair and an empty orbital – is called a carbene. Carbenes are fascinating and there isn’t enough space here to give them justice. This carbene in particular (“methylene carbene”) is one of the most reactive chemical species known. Here, it adds to the alkene to form the cyclopropane, although in practice methylene carbene can do all kinds of other funky jazz. The actual use of diazomethane for cyclopropanation reactions is usually a little more complicated, reagent-wise, than is depicted here.

 

Real life tips: Oh man, there are so many. Here’s one: don’t ever, ever work with diazomethane unless you have been trained by someone who has worked with it themselves. Although generally never used neat (it boils at –23 deg C) and typically handled as a dilute solution in ether, diazomethane has a nasty tendency to explode when in the presence of high-surface-area materials (such as ground-glass joints, or, God forbid,  metal syringes).  If dispensing with a pipet, it’s crucial to flame-polish the edges for safety. Furthermore, diazomethane is acutely toxic: people have died from inhaling it. And if it doesn’t kill you in the short term, there’s always the long term. See, diazomethane, being an alkylating agent, has a tendency to react with (i.e. alkylate) your DNA, leading to base-pair mismatches, mutations, and – eventually – cancer.

So why use it at all? Because it’s the best. I confess that the formation of methyl esters from the reaction of carboxylic acids with diazomethane is one of my favorite reactions. You make a solution of your carboxylic acid in ether,  dispense the bright yellow diazomethane solution by pipet – slowly – until the yellow color persists, wait about 5 minutes to be sure that all the N2 has bubbled off, kill the excess diazomethane with a few drops of acetic acid, and concentrate. Easiest reaction ever.

For some riveting, mouth-agape horror stories of diazomethane in the lab, check out this thread from In the Pipeline : Diazomethane: How Not To Do It.

P.S. You can read about the chemistry of CH2N2 and more than 80 other reagents in undergraduate organic chemistry in the “Organic Chemistry Reagent Guide”, available here as a downloadable PDF. The Reagents App is also available for iPhone, click on the icon below!

 

Related Posts:

{ 7 comments… read them below or add one }

mevans November 5, 2011 at 7:42 pm

Ah yes, diazomethane. I had a friend in grad school, now graduated, who had to work with it once. He was legendary for his operational prowess in the lab—and diazomethane scared the pants off of him!

Notably, diazomethane is also probably the smallest ylide. I like to think of ylides as both nucleophilic and electrophilic at C—that’s why cyclopropanation works, because alkenes are both nucleophilic and electrophilic too (albeit on different atoms). Diazomethane, Simmons-Smith, Corey-Chaykovsky, and even rhodium carbenoids all operate on this principle.

Reply

james November 7, 2011 at 9:34 pm

I never thought of it as an ylide! but it makes perfect sense.

I was more scared by the making of it than actually using it, but it was definitely a two-hands-on-the-flask kind of reagent when you transfer it from the fridge to the hood.

Reply

marcus November 7, 2011 at 10:49 pm

I’ve been thinking about this for the past couple of days and did some reading up on diazomethane, but still haven’t been able to figure out why it has a tendency to explode when in the presence of high-surface-area materials or sharp edges. Does it have to do with the increased friction associated w/ high-surface areas and sharp edges?

Reply

james November 8, 2011 at 4:03 am

I’m not 100% certain on this, but here’s my best guess. The surface of glass can be mildly acidic due to Si-OH groups. On a surface with enough hydrogen bond donors present you might be able to protonate/stabilize the CH2 and/or displace N2, and the exotherm in doing so may catalyze further reaction.

Reply

vasant May 2, 2013 at 11:46 am

does diazomethane react with alcohols, e.g n propanol ?

Reply

james May 2, 2013 at 1:45 pm

No, the first step is protonation, and alcohols are not acidic enough to perform this step.

Reply

Joaquin September 17, 2013 at 10:22 pm

Thank you very much for this invaluable support. Many android users we would also love to have thiss type of support on our cell phones, do you plan to relase the app also for android?. Thanks again!

Reply

Leave a Comment