Quick summary
In California, possession of ecstasy (MDMA) for personal use under Health and Safety Code 11377 is usually a misdemeanor that can often be dismissed through drug diversion. Possessing ecstasy for sale, selling it or transporting it for sale are felonies.
- Penalties: Simple possession carries up to 1 year in jail. Possession for sale carries 16 months, 2 or 3 years; sales carry 2, 3 or 4 years, or 3, 6 or 9 years across noncontiguous counties.
- Diversion: Many possession and under-the-influence cases can be dismissed through Penal Code 1000 diversion, PC 1210.1 or drug court.
- Defenses: An illegal search, entrapment, unknowing possession, no impairment, or no intent to sell.
California penalties for the main ecstasy crimes, as of November 2026:1
| California ecstasy crime | Maximum jail term (generally) |
|---|---|
| Simple possession – 11377 HS | 1 year (many cases can be dismissed through diversion) |
| Possession for sale – 11378 HS | 16 months, 2 years or 3 years |
| Selling or transporting for sale (“trafficking”) – 11379 HS | 2, 3 or 4 years 3, 6 or 9 years if you transported ecstasy for sale from one county to a noncontiguous county |
| Being under the influence – 11550 HS | 1 year (many cases can be dismissed through diversion) |
| Driving under the influence – 23152(f) VC | 6 months for a first offense (though judges often grant probation instead) |
In this article, our California criminal defense attorneys summarize the state’s ecstasy laws, including possible penalties and legal defenses:
- 1. Possessing ecstasy (11377 HS)
- 2. Possessing ecstasy for sale (11378 HS)
- 3. Transporting or selling ecstasy (11379 HS)
- 4. Being under the influence of ecstasy (11550 HS)
- 5. DUI of ecstasy (23152(f) VC)
- 6. How to fight criminal charges
- Additional resources
1. Possessing ecstasy (11377 HS)
In California, Health and Safety Code 11377 makes it a crime to possess ecstasy and certain other drugs for personal use. This is called “simple possession.” To convict you, the prosecutor must prove that:
- you knowingly carried the ecstasy on your person (“actual possession”); or
- you knowingly controlled the ecstasy, such as by storing it in your car (“constructive possession”); or
- you and at least one other person shared control of it (“joint possession”).
California’s drug schedules do not list MDMA by name. Prosecutors usually treat it as a “controlled substance analog” of a listed drug, which is punished the same as the drug it resembles.2
Penalties for simple possession
In most cases, ecstasy possession is a misdemeanor carrying up to 1 year in county jail and a fine of up to $1,000.3 You can often avoid jail and get the charge dismissed by completing a drug diversion program, such as:
- Penal Code 1000 PC diversion,
- Proposition 36 (2000) drug treatment under PC 1210.1, or
- California drug court.4
Simple ecstasy possession is a felony if you have a prior conviction for a “super strike” (such as murder) or for an offense that requires sex offender registration. The punishment is then 16 months, 2 years or 3 years in county jail and a fine of up to $10,000.5
2. Possessing ecstasy for sale (11378 HS)
In California, Health and Safety Code 11378 makes it a crime to possess certain drugs, including ecstasy, with the intent to sell them.6 To show you planned to sell the ecstasy rather than use it yourself, prosecutors often point to evidence such as:
- large amounts of drugs in separate “ready to sell” baggies or containers;
- a gun, which the prosecution may claim you carried for protection during drug deals;
- large amounts of cash, which the prosecution may call proceeds of drug sales; and/or
- police finding you in a place known for drug sales.
Possession of ecstasy for sale is a felony punishable by 16 months, 2 years or 3 years in county jail and a fine of up to $10,000.7
3. Transporting or selling ecstasy (11379 HS)
In California, Health and Safety Code 11379 makes it a crime to transport for sale, sell or distribute certain drugs, including ecstasy (commonly called “trafficking”). To convict you, the prosecutor must show that you:
- transported ecstasy for sale,
- sold ecstasy,
- furnished ecstasy,
- administered ecstasy,
- imported ecstasy into California,
- gave away ecstasy, or
- offered to do any of the above.
“Transport” here means transporting for sale. Carrying ecstasy only for your own use is not a violation of HS 11379.8
Penalties for selling or transporting ecstasy
Selling or transporting ecstasy is punishable by 2, 3 or 4 years in county jail. If you transported ecstasy for sale from one county to a noncontiguous county (one that does not border it), the term rises to 3, 6 or 9 years.9
A judge is more likely to impose a longer term if you knew, or reasonably should have known, that the person who received the ecstasy:
- was pregnant,
- had a prior violent felony conviction, or
- was in treatment for a mental disorder or for substance abuse.10
If you are not a U.S. citizen, a drug trafficking conviction can also lead to deportation.11
See our related article on manufacturing a controlled substance (HS 11379.6).
4. Being under the influence of ecstasy (11550 HS)
In California, Health and Safety Code 11550 makes it a crime to use or be under the influence of certain drugs, even if you have no drugs on you when you are arrested.12 The prosecution only has to show you were under the influence “in any detectable manner.” Unlike a DUI charge, it does not have to prove your ability to drive was impaired.13
Being under the influence is a misdemeanor carrying up to 1 year in county jail, and the judge may order up to 5 years of probation. You can often avoid jail and a conviction through Penal Code 1000 diversion.14
5. DUI of ecstasy (23152(f) VC)
In California, Vehicle Code 23152(f) makes it a crime to drive under the influence of any drug, including ecstasy.15 To convict you of driving under the influence of drugs (DUID), the prosecution must prove the ecstasy:
“so far affected the nervous system, the brain, or muscles as to impair to an appreciable degree the ability to operate a vehicle in a manner like that of an ordinarily prudent and cautious person in full possession of his faculties.”
In plain terms, you must have been too impaired to drive safely.16
DUID is usually a misdemeanor punished like an alcohol DUI. For a first offense, the judge can order 96 hours to 6 months in jail (judges often grant probation instead), a fine of $390 to $1,000, a driver’s license suspension and DUI school.17
3,4-methylenedioxymethamphetamine (MDMA) is commonly known as ecstasy, Molly, X, E and XTC.
6. How to fight criminal charges
Here at Shouse Law Group, we have represented thousands of people charged with ecstasy crimes. In our experience, the following defenses work well with prosecutors, judges and juries in California:
1) Police found the ecstasy during an illegal search
If police violated your Fourth Amendment rights, for example by searching without a search warrant when one was required, the judge may suppress the ecstasy as evidence. This can force prosecutors to drop the case for lack of proof.
2) Law enforcement entrapped you
California law excuses a crime if an undercover officer or agent pressured you in a way that would lead a normally law-abiding person to commit it, such as through badgering, flattery or repeated requests. If we prove entrapment, you should be found not guilty.18
3) You did not know the ecstasy was there
Someone may have planted the ecstasy on you, or a friend may have left it in your car. Unless prosecutors can prove beyond a reasonable doubt that you knew the ecstasy was there, you committed no crime.
4) You were not impaired by drugs
If you are charged with DUID or being under the influence, your “high” behavior may have come from a medical or psychiatric episode unrelated to drugs. Police sometimes mistake seizures or low blood sugar for drug intoxication.
5) Someone falsely accused you
People sometimes make false accusations out of anger or revenge. In these cases, we try to show the accuser had a motive to lie.
6) You did not plan to sell the ecstasy
We may be able to get a possession-for-sale charge reduced to simple possession by showing there is not enough evidence you planned to sell. For example, if you had a gun, we can show it was lawfully owned and had nothing to do with drugs.
Evidence we commonly rely on includes surveillance footage, eyewitnesses and medical records. We can also call expert witnesses to show that police mishandled the drugs and “tainted” the evidence.
Additional resources
For help or more information beyond California ecstasy law, see:
- Narcotics Anonymous (NA) – A 12-step program to overcome drug addiction.
- SAMHSA National Helpline – A free, 24/7 treatment referral service.
- Ecstasy: What to Know – WebMD article on the drug’s effects and treatment.
- Ecstasy or MDMA – Drug Enforcement Administration fact sheet.
- MDMA – Alcohol and Drug Foundation overview of ecstasy.
Legal references:
- See notes 3, 7, 9, 14 and 17 below.
- California Health and Safety Code 11401(a), (b) HS (controlled substance analogs).
- California Health and Safety Code 11377(a) HS; Penal Code 672 PC (fines up to $1,000 for a misdemeanor and $10,000 for a felony where the statute sets none).
- California Penal Code 1000 PC; Penal Code 1210.1 PC.
- Health and Safety Code 11377(a) HS (see note 3 above); Penal Code 672 PC (see note 3 above).
- California Health and Safety Code 11378 HS.
- Health and Safety Code 11378 HS (see note 6 above); Penal Code 1170(h)(1) PC; Penal Code 672 PC (see note 3 above).
- California Health and Safety Code 11379(a), (c) HS.
- Health and Safety Code 11379(a), (b) HS (see note 8 above).
- California Penal Code 1170.82 PC.
- 8 U.S.C. 1227(a)(2)(B)(i).
- California Health and Safety Code 11550(a) HS.
- People v. Enriquez (1996) 42 Cal.App.4th 661, 665: “‘being under the influence’ within the meaning of Health and Safety Code section 11550 merely requires that the person be under the influence in any detectable manner.”
- Health and Safety Code 11550(a) HS (see note 12 above); Penal Code 1000 PC (see note 4 above).
- California Vehicle Code 23152(f) VC.
- People v. Enriquez, 42 Cal.App.4th at 665 (see note 13 above).
- California Vehicle Code 23536(a) VC.
- CALCRIM No. 3408 (2026).