How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Andy PhD DABT Your Own Question
Andy PhD DABT, Toxicologist
Category: Health
Satisfied Customers: 133
Experience:  Board certified with 20 years in research or consulting
Type Your Health Question Here...
Andy PhD DABT is online now
A new question is answered every 9 seconds

Hi,I dont know if this is the right category but I was

This answer was rated:


I don't know if this is the right category but I was wondering how would I go about analysing a sample of chocolate suspected of containing cocaine?

It has been suggested that I should dissolve/slurry the chocolate in water, add NaOH to pH=10 to make sure the alkaloids in cocaine are in base form. Add diethyl ether to the mixture to extract the alkaloid and then subject the organic layer to GC/MS to detect and quantify the cocaine.

Does anyone have any thoughts on this, or extra detail. I mean if I was given a sample of chocolate to analyse how would I first determine that there was cocaine in it? I was thinking XRD or raman etc, or can I go straight into GC/MS?

Also how would I go about determining the purity of the cocaine?


My name is XXXXX XXXXX I am the Moderator for this topic. I have emailed a Toxicologist who I believe will be able to assist you. Thank you for your continued patience as we wait for Andy_PhD_DABT to come online.

Camille - moderator


I am sorry, I don't have enough time to give you a definitive answer right now, but could tomorrow. The quick answer is that I do think that would extract the cocaine, but I have to check on it to be sure. GC/MS is the gold standard for detecting it in the extract, so I would use that. By Raman I assume you mean the detector on the gas chromatography, is that what you mean? If so I do thing that would work. There are Raman detectors that can "look" at the surface of the chocolate, but it would pick up all the other chemicals in the chocolate, so that would not work.

I'm sorry for the short response, but I have to go offline until tomorrow.

Take care,
Customer: replied 3 years ago.

(Thanks Camille!)


Hi Andy thank you for your reply, this is extremely helpful. If you do have time to write some more that would be much appreciated.


By Raman I meant analysing the sample as a whole to begin with to determine what is actually inside the chocolate rather than going ahead and extracting cocaine if it turned out not to be.

Thank you



Hi Beth,

Thank you for your patience. Sorry about the delay, but I only work at JustAnswer part time and I had a deadline a make for my other job.

So in theory you could use NaOH to get the cocaine into the free base form from a water slurry. One problem with that is that at high pH cocaine can hydrolyze to benzoylecogonine. That might not be a total loss since you could look for benzoylecogonine, which should not be in chocolate and just add that to what ever cocaine you find. However, a better way is to dissolve the chocolate in a dilute sulfuric acid solution, which would convert free base to the hydrochloride, which would be soluble in the water solution. Then you add ammonia which will change the dissolved cocaine hydrochloride into the free base, which is less soluble in water, making it precipitate out of solution. Since it precipitates out of solution hydrolysis at the higher pH should not occur that much. The precipitated free base is then dissolved in diethyl ether and to clean it up some more, hydrochloric acid is added to the diethyl ether solution to convert the cocaine back to the hydrochloric acid, which is not soluble in diethyl ether and will precipitate. The precipitate can then be run through the GC/MS. The GC/MS is the gold standard and it will be able to identify cocaine from the various other chemicals that may be in the chocolate extract.

Now you really can't tell how pure the cocaine was since it's been mixed with the chocolate and is now very un-pure with a chocolate contaminant. You could however look for "cutting" agents that were in the cocaine sample, but you would have to know what you are looking for. You could try comparing a sample of the same lot of chocolate with the one containing cocaine, but if the cocaine were cut with something like sugar that would be in the chocolate anyway, you would not be able to detect that. Now you can tell how much cocaine is in your chocolate, i.e. how pure the cocaine is as it sits in the chocolate. You start by knowing how much of a chocolate sample you started your extract with then analyze several sample of a known concentration of cocaine on the GC/MS and make a graph of the amount in each of the "known" samples with the output reading for the GC/MS, this is a calibration curve. Then when you run your unknown sample, you compare the GC/MS output with that on the calibration curve you just created and use that to determine the amount of cocaine in your sample, then divide that by the size of your sample. Now really to do it correctly you have to know how efficient your extraction process is, i.e. how much cocaine was lost during the extraction. To do that you would have to take regular chocolate then add a known amount of cocaine to it and do the extraction and run it on the GC/MS and see how much cocaine didn't make it to the end of the extraction (how much didn't precipitate at each step). If you do all that then you can tell very accurately how much cocaine was in the chocolate.

As to your last question, hand held raman devices would be able to measure the cocaine in the chocolate just by shooting the laser at a solid piece of chocolate. However, the problem is that it also will read all the other organic chemicals in the chocolate. Since there are many different chemicals in chocolate, several with somewhat similar structures to cocaine, I think there would be way too much noise in the raman spectrum to be able to pick out cocaine from the other chemicals. Raman hand held devices are great for identifying relatively pure chemicals. In hazmat, we use them to identify an unknown chemical in a spill, which is usually at an industrial site or shipping container where pure chemicals are kept or shipped separably, so are usually pretty pure. In that case a raman works great, but when you have lots of other chemicals in the mix, you really need to do an extraction and some type of chromotography to further separate out the chemicals. The raman can handle some simple mixtures of maybe a few different chemicals, but the more chemicals you have and the more closely those chemicals resemble the one you are looking for the less likely you are able to separate out the cocaine from what ever else is present. The same would go for X-ray diffraction, you need to have pure chemicals for them to be useful. You might be able to use x-ray diffraction on crystals of pure cocaine, such as crack cocaine, but it would not work on a piece of chocolate with a small amount of cocaine in it.

I hope this helps, if you need me to clarify anything, please ask.

Take care,
Andy PhD DABT, Toxicologist
Category: Health
Satisfied Customers: 133
Experience: Board certified with 20 years in research or consulting
Andy PhD DABT and 3 other Health Specialists are ready to help you
Customer: replied 3 years ago.

Fantastic, thank you so much Andy, this has been incredibly helpful!

Attachments are only available to registered users.

Register Here

Your Welcome Beth, glad I could help.

Take care,

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

  • I can go as far as to say it could have resulted in saving my sons life and our entire family now knows what bipolar is and how to assist and understand my most wonderful son, brother and friend to all who loves him dearly. Thank you very much Corrie Moll Pretoria, South Africa
< Previous | Next >
  • I can go as far as to say it could have resulted in saving my sons life and our entire family now knows what bipolar is and how to assist and understand my most wonderful son, brother and friend to all who loves him dearly. Thank you very much Corrie Moll Pretoria, South Africa
  • I thank-you so much! It really helped to have this information and confirmation. We will watch her carefully and get her in for the examination and US right away if things do not improve. God bless you as well! Claudia Albuquerque, NM
  • Outstanding response time less than 6 minutes. Answered the question professionally and with a great deal of compassion. Kevin Beaverton, OR
  • Suggested diagnosis was what I hoped and will take this info to my doctor's appointment next week.
    I feel better already! Thank you.
    Elanor Tracy, CA
  • Thank you to the Physician who answered my question today. The answer was far more informative than what I got from the Physicians I saw in person for my problem. Julie Lockesburg, AR
  • You have been more help than you know. I seriously don't know what my sisters situation would be today if you had not gone above and beyond just answering my questions. John and Stefanie Tucson, AZ
  • I have been dealing with an extremely serious health crisis for over three years, and one your physicians asked me more questions, gave me more answers and encouragement than a dozen different doctors who have been treating me!! Janet V Phoenix, AZ

Meet The Experts:

  • Family Physician

    Family Physician

    Doctor (MD)

    Satisfied Customers:

    Emergency Medicine and Family Practice for over 26 years
< Last | Next >
  • Family Physician's Avatar

    Family Physician

    Doctor (MD)

    Satisfied Customers:

    Emergency Medicine and Family Practice for over 26 years
  • Nurse Milli, RN's Avatar

    Nurse Milli, RN

    Nurse (RN)

    Satisfied Customers:

    20 years experience in many areas of Nursing. Both Hospital and Private Practice experience.
  • Dr. Ketch's Avatar

    Dr. Ketch


    Satisfied Customers:

    Medical Degree, Former Assistant Professor at School of Medicine at Yale University
  • Dr. Arun Phophalia's Avatar

    Dr. Arun Phophalia

    Doctor (MD)

    Satisfied Customers:

    MBBS, MS (General Surgery), Fellowship in Sports Medicine
  • A. Schuyler, NP's Avatar

    A. Schuyler, NP

    Nurse Practitioner

    Satisfied Customers:

    Board Certified NP, MS, RN. Private practice & hospitalist
  • Dr. Mark's Avatar

    Dr. Mark

    Doctor (MD)

    Satisfied Customers:

    U.S. Physician/Surgeon in Neurosurgery
  • Dr. Gupta's Avatar

    Dr. Gupta

    Doctor (MD)

    Satisfied Customers:

    Vastly experienced MD Physician with 19 years of experience.