CALL US NOW Text Us

MDMA / Ecstasy Charges Lawyers in Bay Area

A single pill in your pocket at a concert. A handful of capsules in a bag at a friend’s apartment. That’s how most MDMA cases start, and the criminal consequences can follow you far longer than you’d expect.

Most people charged with MDMA or ecstasy offenses in the Bay Area are not drug dealers. They’re working professionals, students, and everyday people who got caught in the wrong place at the wrong time. But California law treats these substances seriously, and even a simple possession charge can affect your career, your immigration status, and your future.

The good news is that California also provides meaningful defense opportunities and diversion pathways for MDMA cases, particularly after Proposition 47 reclassified simple possession as a misdemeanor. Understanding the difference between a possession charge and a possession-for-sale charge, and knowing how to challenge the prosecution’s evidence, can be the difference between a dismissal and a felony conviction.

Our team at The Nieves Law Firm Criminal Defense Attorneys has defended MDMA and ecstasy cases across Alameda County and throughout the Bay Area. We know how these drug crime cases are investigated, how prosecutors build them, and where the weaknesses typically live. If you’re facing charges, the information below will help you understand what you’re up against and what options are available.

Offense MDMA / Ecstasy Possession, Sale, or Manufacturing
Primary Statutes Health & Safety Code, §§ 11377, 11378, 11379, 11379.6
Classification Misdemeanor (simple possession) to Felony (sale, manufacturing)
Penalties Up to 1 year county jail (possession) to 3–7 years state prison (manufacturing)
Strike Offense No
Diversion Eligible Yes, for simple possession (PC § 1000, Prop 36)

How California Classifies MDMA

MDMA (3,4-methylenedioxymethamphetamine) is classified as a non-narcotic Schedule I hallucinogenic substance under California law.1 This classification is important because it determines which set of statutes apply to your case.

Because MDMA is a non-narcotic controlled substance, it falls under Health and Safety Code sections 11377 through 11379 rather than sections 11350 through 11352, which cover narcotics like heroin and cocaine.2 The practical difference matters for penalties, diversion eligibility, and how prosecutors charge the case.

California law recognizes several distinct MDMA offenses, each carrying different consequences depending on what prosecutors believe you were doing with the substance.

What Prosecutors Must Prove

Every MDMA charge requires the prosecution to establish specific elements beyond a reasonable doubt. The elements vary depending on the offense charged, and each one represents a potential point of attack for the defense.

Simple Possession (HS § 11377)

Under CALCRIM No. 2304, the prosecution must prove all four of the following3:

You possessed a controlled substance. The MDMA must have been in your actual or constructive possession. Merely being near the substance is not enough. If MDMA was found on a table at a party with twenty people present, the prosecution must connect it to you specifically.

You knew the substance was present. This means more than being in the same room. The prosecution needs evidence that you were aware the MDMA was there, whether in your pocket, your bag, or somewhere you had access to.

You knew the substance was a controlled substance. You don’t need to know the exact chemical name, but you must have known the substance had the character of an illegal drug. If someone handed you a pill and told you it was a vitamin, that knowledge element becomes difficult for the prosecution to establish.

The substance was in a usable amount. Trace residue or an amount too small to actually use does not satisfy this element. The MDMA must have been enough to actually be consumed as a controlled substance.

Possession for Sale (HS § 11378)

This felony charge adds one critical element to the four above. Under CALCRIM No. 2302, the prosecution must also prove4:

You intended to sell the substance. This is where most possession-for-sale cases are won or lost. Prosecutors typically rely on circumstantial evidence to prove intent: quantity, packaging in individual baggies, the presence of scales or pay/owe sheets, large amounts of cash, and the absence of personal-use paraphernalia. An expert witness, usually a narcotics detective, will often testify about what these indicators supposedly mean.

Sale or Transportation for Sale (HS § 11379)

Under CALCRIM No. 2300, the prosecution must prove5:

You sold, furnished, administered, gave away, transported for sale, or imported MDMA into California. The key phrase here is “for sale.” Following changes in California law, transportation of a controlled substance under this section requires proof that you were transporting it for the purpose of selling it, not merely carrying it for personal use.6

Manufacturing MDMA (HS § 11379.6)

Under CALCRIM No. 2330, the prosecution must prove7:

You manufactured, compounded, converted, produced, derived, processed, or prepared MDMA, and you knew the substance’s nature as a controlled substance. Manufacturing charges are the most serious MDMA offense and carry the heaviest penalties. These cases typically involve evidence of chemical precursors, lab equipment, or production facilities.

Penalties for MDMA Offenses in California

The penalties for MDMA charges vary dramatically depending on the specific offense, and the line between a misdemeanor and a multi-year felony often comes down to how the prosecution characterizes the evidence.

Simple Possession (HS § 11377)

Since the passage of Proposition 47 in 2014, simple possession of MDMA is classified as a misdemeanor for most defendants.8 The maximum penalty is up to one year in county jail and a fine of up to $1,000. However, defendants with prior convictions for serious or violent felonies (strike priors) or those required to register as sex offenders may still face felony charges, carrying 16 months, two, or three years.

Possession for Sale (HS § 11378)

Possession for sale is a straight felony carrying 16 months, two, or three years in county jail under California’s realignment framework, plus fines up to $10,000.9

Sale or Transportation for Sale (HS § 11379)

Sale or transportation for sale carries two, three, or four years in state prison and fines up to $10,000.10 If the transportation crossed two or more county lines, the penalty increases significantly to three, six, or nine years.

Manufacturing (HS § 11379.6)

Manufacturing MDMA is punishable by three, five, or seven years in state prison and fines up to $50,000.11

Sentence Enhancements

Several enhancements can add years to an MDMA sentence:

Enhancement Additional Penalty
Large quantity (HS § 11370.4) 3–25 additional years depending on weight/value
Sale to a minor (HS § 11380) 3, 6, or 9 years
Armed with firearm during drug offense (HS § 11370.1) 3–5 additional years
Sale near school or park (HS § 11353.6) Additional penalties
Gang enhancement (PC § 186.22(b)(1)) 2–15 additional years

It is worth noting that Senate Bill 180 (2018) eliminated the three-year prior drug conviction enhancement under Health and Safety Code section 11370.2 for most drug offenses, which previously added consecutive time for each prior.

The Possession vs. Possession-for-Sale Distinction

One of the most consequential aspects of any MDMA case is whether the prosecution charges simple possession or possession for sale. The difference between these two charges can mean the difference between a misdemeanor with diversion eligibility and a felony with years in custody.

Prosecutors don’t need direct evidence that you actually sold MDMA. Instead, they rely on circumstantial indicators and expert testimony to argue that the drugs were intended for distribution. The factors they typically point to include:

Quantity. Larger amounts suggest sales rather than personal use. But “larger” is relative, and what constitutes a personal supply depends heavily on context. Someone attending a multi-day music festival might reasonably carry several doses for personal consumption over the weekend.

Packaging. Individual baggies or pre-measured doses are a red flag for prosecutors. However, MDMA commonly comes in pre-packaged pill form regardless of whether the possessor intends to sell it.

Paraphernalia indicators. Scales, pay/owe sheets, and multiple cell phones suggest distribution. Conversely, the presence of personal-use paraphernalia (a single pipe, personal water bottles) supports a personal-use argument.

Cash. Large amounts of cash, particularly in small denominations, are cited as evidence of sales. But many people carry cash for legitimate reasons, especially at events where vendors may not accept cards.

Expert testimony. A narcotics officer will typically testify as an “expert” that the totality of circumstances is consistent with sales activity. These opinions are challengeable. The officer’s conclusions are only as strong as the underlying facts, and a skilled cross-examination can expose assumptions, biases, or gaps in the analysis.

In our experience, the possession-versus-sales distinction is where aggressive defense advocacy makes the biggest difference. Reducing a felony HS 11378 charge to a misdemeanor HS 11377 charge fundamentally changes the trajectory of the case and opens the door to diversion and eventual dismissal.

Defense Strategies for MDMA Charges

Challenging the Search (Fourth Amendment Violations)

MDMA cases live and die on physical evidence, and that evidence almost always comes from a search. If the search was unconstitutional, the evidence gets suppressed and the case typically falls apart.

Common search challenges include questioning the legality of the initial traffic stop, challenging warrantless searches of your person or vehicle, examining whether your consent to search was truly voluntary, and scrutinizing whether officers exceeded the scope of a search warrant. Cell phone searches are particularly vulnerable after Riley v. California, which requires a warrant for phone searches incident to arrest.12

Lack of Knowledge

The prosecution must prove you knew the MDMA was present and knew it was a controlled substance. If someone else placed pills in your bag without your knowledge, or if you genuinely believed the substance was something legal, the knowledge element fails. This defense is especially strong when MDMA is found in shared spaces, borrowed vehicles, or at large social gatherings.

Constructive Possession Challenges

When MDMA is not found directly on your person, the prosecution must prove constructive possession. They need to show you knew about the substance and had control over it or the right to control it. When multiple people share access to the location where drugs are found, reasonable doubt about who actually possessed them can be compelling. A shared apartment, a car with multiple passengers, or a crowded event venue all create constructive possession challenges.

Entrapment

If law enforcement induced you to commit a drug offense you would not otherwise have committed, entrapment is a complete defense.13 This arises most often in undercover buy operations, confidential informant cases, and online sting operations. The question is whether the government’s conduct would have caused a normally law-abiding person to commit the crime.

Substance Identification Challenges

Not everything sold as “ecstasy” actually contains MDMA. Many pills contain other substances entirely. Field tests are unreliable and generally inadmissible as proof of substance identity. The defense can demand full crime lab analysis, challenge the chain of custody, and cross-examine the forensic chemist on testing methodology. If the substance is not confirmed as MDMA through proper laboratory testing, the case cannot proceed.

Insufficient Evidence of Transportation “For Sale”

Under Health and Safety Code section 11379, the prosecution must prove that any transportation was for the purpose of sale.14 Simply carrying MDMA while traveling, such as driving to a music festival with a personal supply, does not satisfy this element if the transportation was for personal use rather than distribution.

Diversion Programs and Alternative Sentencing

For defendants charged with simple possession, California offers pathways that can result in a complete dismissal rather than a conviction.

Penal Code § 1000 (Deferred Entry of Judgment)

This pre-plea diversion program allows qualifying defendants to complete a drug education or treatment program. Upon successful completion, the charges are dismissed.15 Eligibility generally requires that the charge is for simple possession, the defendant has no prior drug diversion, and the offense did not involve violence.

Proposition 36 (PC § 1210.1)

Proposition 36 provides drug treatment instead of incarceration for qualifying nonviolent drug possession offenses.16 This program focuses on rehabilitation rather than punishment and can result in dismissal upon completion.

Alameda County Drug Court

Alameda County operates a collaborative drug court program that may be available for qualifying MDMA defendants, particularly those with substance abuse issues. Drug court provides intensive supervision and treatment as an alternative to traditional prosecution.

Advocating for diversion is one of the most important things a defense attorney can do in a simple possession case. The goal is not just avoiding jail but avoiding a conviction entirely, which protects your employment, professional licensing, and immigration status.

Collateral Consequences of an MDMA Conviction

Immigration Consequences

Drug convictions carry some of the most severe immigration consequences in the law. Any controlled substance conviction, including a misdemeanor MDMA possession, can trigger deportation, render you inadmissible to the United States, or result in denial of naturalization.17 This is true even for lawful permanent residents who have lived in the country for decades.

The intersection of drug charges and immigration law is an area where our firm’s motion to vacate practice becomes particularly relevant. If you have a prior drug conviction affecting your immigration status, a motion to vacate under Penal Code section 1473.7 may provide relief.

Employment and Professional Licensing

A drug conviction, even a misdemeanor, can affect professional licenses in healthcare, education, law, finance, and other regulated industries. Many employers conduct background checks, and a drug conviction can disqualify you from positions of trust or responsibility.

Firearms Restrictions

A felony MDMA conviction (possession for sale, sale, or manufacturing) results in a lifetime prohibition on firearm ownership under both California and federal law.18

Federal Consequences

MDMA remains a Schedule I substance under federal law. If your case involves federal jurisdiction, such as importation, distribution across state lines, or offenses on federal property, federal penalties are significantly more severe than California state penalties. Federal mandatory minimums can apply, and there is no federal equivalent to Proposition 47’s misdemeanor reclassification.

Where Your Bay Area MDMA Case Will Be Heard

Most MDMA cases in Alameda County are heard at the Rene C. Davidson Courthouse in Oakland, located at 1225 Fallon Street. Cases originating in southern Alameda County may be assigned to the Fremont Hall of Justice, while those from central Alameda County go through the Hayward Hall of Justice. Our Oakland headquarters is located near the Davidson Courthouse, and our team regularly appears in all Alameda County courtrooms handling drug cases.

Related Offenses

MDMA charges are frequently filed alongside other offenses depending on the circumstances of the arrest:

Related Offense Statute Typical Context
Possession of drug paraphernalia HS § 11364 Scales, baggies, or other items found with MDMA
Under the influence HS § 11550 Defendant showing signs of MDMA use at time of arrest
DUI of drugs VC § 23152(f) Driving while under the influence of MDMA
Maintaining a drug house HS § 11366 Operating a location for drug use or sales
Possession of other controlled substances HS §§ 11350, 11377 Multiple drugs found together

Why The Nieves Law Firm Defends MDMA Cases Differently

MDMA cases are not one-size-fits-all, and they shouldn’t be defended that way. A first-time possession charge at a music festival requires a completely different approach than an alleged distribution operation. Our team evaluates every MDMA case by examining the search that produced the evidence, the strength of the prosecution’s knowledge and intent proof, and the diversion or reduction opportunities specific to your situation.

We understand that most people facing these charges are not criminals. They’re professionals, students, and community members dealing with a situation that feels overwhelming. Our job is to fight aggressively for the best possible outcome while treating you with the dignity you deserve.

If you’re facing MDMA or ecstasy charges anywhere in the Bay Area, don’t let uncertainty about the process keep you from taking action. Schedule a consultation today and let our team evaluate the specific facts of your case. The earlier we get involved, the more options we have to protect your record, your career, and your future.

References

  1. 1. Health & Safety Code, § 11054, subd. (d)(13).
  2. 2. Health & Safety Code, § 11377 [“Except as authorized by law and as otherwise provided in subdivision (b) or Section 11375, or in Article 7 (commencing with Section 4211) of Chapter 9 of Division 2 of the Business and Professions Code, every person who possesses any controlled substance which is (1) classified in Schedule III, IV, or V, and which is not a narcotic drug… (2) specified in subdivision (d) of Section 11054… is guilty of a crime.”].
  3. 3. See CALCRIM No. 2304 [Simple Possession of Controlled Substance].
  4. 4. See CALCRIM No. 2302 [Possession for Sale of Controlled Substance].
  5. 5. See CALCRIM No. 2300 [Sale, Transportation for Sale, etc., of Controlled Substance].
  6. 6. Health & Safety Code, § 11379.
  7. 7. Health & Safety Code, § 11379.6.
  8. 8. See Penal Code, § 1170.18 [Proposition 47 resentencing and reclassification provisions].
  9. 9. Health & Safety Code, § 11378.
  10. 10. Health & Safety Code, § 11379.
  11. 11. Health & Safety Code, § 11379.6.
  12. 12. Riley v. California (2014) 573 U.S. 373.
  13. 13. See CALCRIM No. 3408 [Entrapment].
  14. 14. Health & Safety Code, § 11379.
  15. 15. Penal Code, § 1000.
  16. 16. Penal Code, § 1210.1.
  17. 17. See 8 U.S.C. § 1227(a)(2)(B)(i) [deportability for controlled substance convictions].
  18. 18. Penal Code, § 29800.
SMS Agree(Required)

Top-Rated Bay Area Criminal Lawyer

Don't Just Take Our Word For It.
We've helped hundreds of clients through the worst moments of their lives. Here's what they have to say.

The Nieves Law Firm

Your Future Is
Worth Fighting For
If you or someone you care about is facing criminal charges in the Bay Area, the next decision matters. Call us for a confidential consultation.
  • 100% Confidential
  • Se Habla Español
  • Payment Plans Available