Since you gave me a thumbs up for the inadvertent Fentanyl cross-contamination, I'll reciprocate with a procedure to separate MDMA from Fentanyl and its analogs by exploiting their different pKA in AB extractions:
Not recommended; please see my notes.
- Dissolve: 1g sample of contaminated MDMA·HCl in 20mL warm distilled water.
- Filter (e.g.coffee filter) → clear solution.
- Basify: Slowly dilute with 1M solution of NaOH dropwise to pH 9.2-9.5 (use precise pH meter). Don't overshoot!
NOTE: The Na from the NaOH will combine with the Cl from the HCl, and it will form NaCl, aka: table salt. The remaining two hydrogens and oxygen combine to form H₂O. So salt water is a side product here, but this frees up the MDMA base (thus making it "freebase", you see), and it will do this to all other compounds in the solution that also have an amine group (NH₃). These will then move into the non-polar solvent layer (Xylene or whatever).
- Extract: Add 50mL Xylene, shake 10min, wait for layers to separate (fentanyls go into the top organic layer - discard it).
NOTE: You will be discarding MDMA freebase oil in the top/Xyelene layer. Do not do this.
- Repeat: Repeat the former extraction 5x, maintain pH 9.2-9.5, discard all organic layers, keep the aqueous layers (do not reuse the same glassware).
Do not do this. This would discard all the active ingredients while keeping salt water behind.
- Acidify: Dilute with HCl to pH 6 → MDMA·HCl crashes out.
Nothing would crash out. If there were any MDMA left it would bond to the acid and become water soluble instantly, and it would be dissolved in the water. Instead, you've discarded it, and the only thing that will be left behind is some salty-ass water.
- Evap/Filter: Recrystallize from hot IPA/acetone (slowly cool → white crystals).
This part is closer to being correct, but again, you will have tossed out your product.
- Note: Toluene or Naphtha can be used in lieu of the Xylene.
I invite the more experienced chemists here to refine this procedure.
Naphtha isn't a great substitute for Xylene. It has to at least be heated first before using it.
There's no kitchen chemistry procedure for removing fentanyl from MDMA if that were to have happened. If you're using fent test strips be aware that they give false positives occasionally. Test things several times if you're really concerned.
Regardless, the right way to do this procedure is when you raise the pH over 7 (neutral), the water will become basic instead of acidic or neutral. At that point, you will be keeping the non-polar layer. You extract from the aqueous layer two more times, each time keeping the NP layer. Then you combine them and discard the water layer. Next you want to wash the NP solution, so you add a bit of water (maybe like ¼ of the solution volume), shake it, let separate and discard the water layer. Do it once more with some salt water (helps "scrub" the NP layer clean, so to speak), and again discard the water layer.
Next you need to dry the NP solution by running it through some dry MgSO₄ (bake epsom salts in the oven for 30 min at 300° or whatever until it's dusty dry and presto! magnesium sulfate). Then you gas it with anhydrous HCl gas (
there are procedures for this on the
erowid's archive of
Rhodium.ws). Crystals in tow, proceed to recrystallizing them slowly from a two-solvent matrix of first boiling IPA to the point of saturation, and then secondly ice-cold anhydrous acetone. Do this extra slowly and you will be blessed with aesthetically pleasing crystals of very clean MDMA, assuming no other amine-bearing compounds are present.
Otherwise you'd need to get into chromatography columns and/or vacuum distillations…