Opioid & Opiate Detox Guide

What opioid withdrawal feels like, how long it lasts, how detox is carried out, and how to stay safe through the process and after it.

Quick Answer

Opioid withdrawal usually begins 6 to 24 hours after the last dose of a short-acting opioid such as heroin or oxycodone, and 24 to 48 hours after a long-acting opioid such as methadone. Symptoms peak around days 1 to 3 and ease over 5 to 7 days, though sleep problems and cravings can last for weeks. Withdrawal is rarely life-threatening for healthy adults, but dehydration is a real risk, and overdose risk rises sharply afterward because tolerance falls. A physician who knows your history is the right person to help decide the safest setting.

What Are Opioids?

Opioids are drugs that bind to opioid receptors in the brain and body, reducing pain signals and producing relaxation and euphoria. The terms "opioid" and "opiate" are often used interchangeably. Strictly speaking, opiates are natural compounds from the poppy plant, while opioids include both natural and synthetic versions.

Common opioids include:

  • Heroin: an illegal opioid that is injected, smoked, or snorted
  • Fentanyl: a synthetic opioid about 50 times stronger than heroin and 100 times stronger than morphine, now common in the street drug supply
  • Oxycodone (OxyContin, Percocet): a widely prescribed painkiller
  • Hydrocodone (Vicodin, Norco): a widely prescribed painkiller, often combined with acetaminophen
  • Codeine: a milder opioid found in some prescription cough and pain medicines
  • Morphine: a natural opiate used mainly in hospitals for severe pain

Physical dependence can develop within a few weeks of regular use. The brain adapts to the drug and comes to rely on it to function normally. When the drug stops, the brain and body react, and that reaction is withdrawal. How severe it is depends on which opioid was used, how much, for how long, and the person's own biology. NIDA's opioid research overview explains how opioids affect the brain and body. For the fundamentals of detox across all substances, see the main detox guide.

Physical Dependence, Addiction, and Maintenance

These three terms describe different things, and mixing them up leads to stigma and to decisions made without full information.

  • Physical dependence is a normal biological adaptation. Anyone who takes opioids regularly, including patients on prescribed pain medication, can become physically dependent and go through withdrawal when they stop.
  • Addiction (opioid use disorder) is a separate condition involving compulsive use despite harm and lasting changes in the brain's reward and motivation systems. A person can be physically dependent without being addicted.
  • Maintenance is a long-term approach in which a person takes a daily opioid agonist medication. It is designed to prevent withdrawal and reduce cravings, and by design it keeps physical dependence in place. Detox, by contrast, aims to end physical dependence.

A path exists for every person. Which path fits is an individual medical decision, best made with a physician who knows your history and needs.

Opioid Withdrawal Symptoms

Opioid withdrawal is intensely uncomfortable but rarely life-threatening in otherwise healthy adults. Symptoms usually move through three phases. Not everyone has every symptom, and severity depends on the opioid, the length of use, and individual factors.

Early symptoms (6 to 24 hours)

  • Anxiety and restlessness
  • Muscle aches and joint pain
  • Watery eyes and runny nose
  • Heavy sweating
  • Frequent yawning
  • Insomnia, agitation, and irritability

Peak symptoms (days 1 to 3)

  • Nausea, vomiting, and diarrhea
  • Abdominal cramps
  • Dilated pupils
  • Rapid heartbeat and raised blood pressure
  • Goosebumps and chills
  • Intense cravings and trouble concentrating

Late symptoms (days 4 to 7 and beyond)

  • Fatigue and low energy
  • Ongoing sleep disruption
  • Low mood and mood swings
  • Reduced appetite
  • Difficulty feeling pleasure
  • Persistent cravings

Some people go through post-acute withdrawal syndrome (PAWS), in which anxiety, poor sleep, and cravings continue for weeks or months after the acute phase. The withdrawal symptoms guide covers symptoms across all substances and the warning signs that need emergency care.

How Long Does Opioid Withdrawal Last?

The stages below describe short-acting opioids such as heroin, oxycodone, and hydrocodone. Long-acting opioids such as methadone have a later onset, often 24 to 48 hours after the last dose, and a longer course overall.

  • 6 to 24 hours: withdrawal begins with anxiety, restlessness, aches, sweating, runny nose, yawning, and trouble sleeping.
  • Days 1 to 3: symptoms peak. Nausea, vomiting, diarrhea, cramps, and cravings are at their strongest. This is the window when many unsupervised attempts end in a return to use.
  • Days 4 to 7: the worst physical symptoms ease. Fatigue, poor sleep, and irritability continue, and cravings can still be intense.
  • Week 2 and beyond: most physical symptoms have resolved. Cravings, anxiety, low mood, low motivation, and disrupted sleep can last weeks to months.

Fentanyl often follows a different pattern because it is stored in body fat and released slowly. See the fentanyl detox guide for details, the opioid detox timeline for a phase-by-phase view, and the detox timeline guide for every substance.

How Opioid Detox Is Carried Out

There is no single approach that fits everyone. The setting depends on the substance, the level of dependence, other health conditions, and personal circumstances, and it is a decision to make with a physician.

Inpatient medical detox

The person stays in a hospital or detox facility with medical staff available around the clock. Clinicians monitor vital signs, give IV fluids when needed, and use medications to ease specific symptoms. Stays commonly run 5 to 10 days. The detox cost guide covers what inpatient care typically involves financially.

Outpatient withdrawal management

The person lives at home and visits a clinic for evaluation, monitoring, and symptom medication. It suits some people with milder dependence, stable health, and support at home.

Medically supervised taper

A physician lowers the dose gradually over days or weeks. Tapering is mainly used for people dependent on prescribed opioids, since street drugs cannot be dosed reliably.

Anesthesia-assisted rapid detox

Withdrawal is brought on quickly with an opioid blocker while the patient is sedated or under anesthesia. CDC and ASAM guidelines advise against anesthesia-assisted ultrarapid detox because of serious adverse events, including deaths. The rapid detox guide explains how the procedure works and why the medical setting and stabilization afterward matter.

Unassisted withdrawal ("cold turkey")

Stopping abruptly without medical support. Opioid withdrawal is rarely fatal on its own, but this route is the most uncomfortable, dehydration can become dangerous, and returning to use at a previous dose after tolerance has dropped can be fatal. Read the home detox safety guide before considering it.

Medications used during and after withdrawal

  • Symptom medications: lofexidine and clonidine for sweating, anxiety, and racing heart, plus medications for nausea, diarrhea, muscle aches, and sleep. These ease withdrawal without adding opioid dependence.
  • Opioid agonist medications: methadone and buprenorphine (Suboxone) activate opioid receptors. They are used for maintenance and sometimes for tapering, and they keep physical dependence in place while they are taken.
  • Opioid antagonist medication: naltrexone (Vivitrol) blocks opioid effects and does not create dependence. A clinician must confirm an adequate opioid-free interval before naltrexone is started. SAMHSA advises at least 7 days after short-acting opioids and 10 to 14 days after long-acting opioids; the interval must be individualized.

SAMHSA's medications overview describes each one in more detail.

How Detox Differs by Opioid

Fentanyl

Fentanyl is fat soluble, so it builds up in body tissue and releases slowly. Withdrawal can come in waves rather than following a clean timeline, and starting buprenorphine too soon after fentanyl can set off precipitated withdrawal, a sudden and severe flare of symptoms. Street fentanyl is also often mixed with xylazine, a sedative that opioid medications do not address. The fentanyl detox guide covers all of this.

Heroin

Heroin is short acting. Withdrawal usually starts within 6 to 12 hours of last use, peaks around 36 to 72 hours, and improves within 5 to 7 days. Heroin use can also bring infections, vein damage, and exposure to contaminants, which a medical evaluation can address alongside withdrawal.

Prescription painkillers

Withdrawal from oxycodone, hydrocodone, or codeine follows a pattern similar to heroin, though extended-release forms can produce a later and longer withdrawal. A key challenge is the original pain condition. Anyone who started opioids for pain needs a plan for managing that pain afterward, which is a conversation to have with a physician before detox begins.

What Happens After Opioid Detox?

Detox ends physical dependence. It does not by itself address the psychological, behavioral, and social side of opioid use, and the weeks after detox are when the risk of returning to use is highest. Addiction develops over time, and recovery takes time for the body and brain to adapt, usually with support from a team of health professionals.

What follows detox varies by person and may include residential or outpatient programs, individual therapy, peer support groups such as NA or SMART Recovery, treatment for co-occurring conditions, and ongoing medical care. Some people take naltrexone after detox; others are prescribed agonist maintenance. Which combination fits is an individual decision to make with a physician. For information on care options by state, see OpioidTreatmentFinder.com, and for drug-specific education, Opiates.org.

Overdose Risk After Detox

Tolerance drops quickly once opioid use stops. After even a few days without opioids, a dose the body once handled can be fatal. The period right after detox or after leaving a treatment facility is one of the most dangerous times for overdose, and the CDC notes that detox without ongoing treatment increases the risk of returning to use, overdose, and overdose death.

Keep naloxone (Narcan) on hand. It reverses opioid overdose and is sold without a prescription at most pharmacies, and many community organizations give it out free. Signs of overdose include slow or stopped breathing, blue or gray lips, pinpoint pupils, and being unable to wake. Give naloxone, call 911, and stay with the person.

Opioid Detox FAQ

How long does opioid withdrawal last?

Withdrawal from short-acting opioids such as heroin usually begins 6 to 24 hours after the last dose; for long-acting opioids such as methadone it begins after 24 to 48 hours. Acute symptoms peak around days 1 to 3 and generally improve over 5 to 7 days. Cravings, low energy, and sleep problems can continue for weeks or months as post-acute withdrawal.

What are opioid withdrawal symptoms?

Early symptoms include anxiety, muscle aches, sweating, runny nose, yawning, and insomnia. Peak symptoms include nausea, vomiting, diarrhea, abdominal cramps, dilated pupils, rapid heartbeat, goosebumps, and intense cravings. Later symptoms include fatigue, poor sleep, low mood, and lingering cravings. Severity depends on the opioid, the dose, and how long it was used.

Is opioid withdrawal dangerous?

Opioid withdrawal is rarely life-threatening for otherwise healthy adults, but it carries real risks. Vomiting and diarrhea can cause dangerous dehydration and electrolyte loss, especially for people with heart conditions or other health problems. The biggest danger comes afterward: lower tolerance means a return to a previous dose can cause a fatal overdose.

Can you die from opioid withdrawal?

Deaths directly from opioid withdrawal are uncommon but possible, usually from severe dehydration and electrolyte imbalance in people who are already medically vulnerable. The far greater danger is overdose after withdrawal, when tolerance has dropped. Keeping naloxone on hand and having medical support reduce both risks.

What medications are used during opioid detox?

Clinicians use symptom medications such as lofexidine and clonidine for sweating, anxiety, and racing heart, plus medications for nausea, diarrhea, pain, and sleep. Methadone and buprenorphine are opioid agonists used for maintenance or tapering and keep physical dependence in place while taken. Naltrexone blocks opioid effects, does not create dependence, and can only be started once the body is clear of opioids.

What is the difference between detox and maintenance?

Detox aims to end physical dependence by letting the body clear opioids while withdrawal is managed. Maintenance means taking a daily opioid agonist medication, such as methadone or buprenorphine, long term to prevent withdrawal and reduce cravings, which keeps physical dependence in place by design. Which approach fits is an individual medical decision.

What is the difference between opioid detox and rehab?

Detox clears opioids from the body and manages acute withdrawal, typically over 5 to 10 days. Rehab is the longer-term care that may follow, including therapy, counseling, support groups, and medical follow-up. Detox addresses physical dependence, while rehab addresses the behavioral and psychological side of opioid use.

Resources

Need Help?

These free, confidential resources are available anytime. No commitment required.

SAMHSA National Helpline

1-800-662-4357

Free, confidential, 24/7 treatment referral and information. Available in English and Spanish.

Crisis Text Line

Text HOME to 741741

Free, 24/7 crisis support by text message from trained counselors.

988 Suicide & Crisis Lifeline

988

Call or text. For anyone in emotional distress, including substance-related crises.

About the Reviewer

Clare Waismann, M-RAS, SUDCC II, is a Registered Addiction Specialist and Substance Use Disorder Certified Counselor II. She founded the Waismann Method®, an opioid dependence treatment program that operated from 1998 to 2025, where care was delivered by a team of physicians, anesthesiologists, nurses, and mental health clinicians. Her reviews focus on accuracy, clarity, and stigma-free language within her scope as an addiction specialist. Clare is not a physician, and her reviews are not medical advice, diagnosis, or treatment.