Skip to content

Opiate detox and supervised withdrawal

Medical help to get through withdrawal. It is a starting point, and what you do next matters more.

Find treatment near you

Updated October 2026. Sources are linked on this page.

Illustration of a nurse and a patient talking across a desk in a bright clinic room

The short answer

What it is
Short-term medical care that eases opioid withdrawal while the drugs leave your body.
How long
Usually a few days to a couple of weeks, depending on which opioids you used.
What it costs
Often covered by Medicaid and insurance. Prices differ by setting, so ask before you are admitted.

What medically supervised withdrawal means

Detox is the everyday word. Clinicians call it medically supervised withdrawal or withdrawal management. It means stopping opioids with medical staff treating your symptoms and watching your health.

It can happen in a detox unit, in a hospital if symptoms are severe, in the first days of a residential program, or as an outpatient with regular check-ins and someone reliable at home.

Opioid withdrawal is rarely life-threatening for a healthy adult. It is still miserable, and vomiting and diarrhea can leave you badly dehydrated. Going through it with help is safer and far more bearable than doing it alone. Our page on quitting cold turkey explains the risks of stopping without support.

If you are pregnant, do not stop opioids suddenly. Withdrawal can be risky in pregnancy, so talk to a clinician first. See pregnancy and treatment.

What happens during detox

It starts with an assessment. Staff ask what you have been taking, how much and when you last used. They check your pulse, blood pressure and general health, and may run blood or urine tests.

Then they treat the symptoms. Depending on the program, that may include:

  • buprenorphine or methadone, which relieve withdrawal directly
  • clonidine or lofexidine, which ease sweating, cramps, anxiety and restlessness
  • medicines for nausea, vomiting and diarrhea
  • help with sleep
  • fluids and food as you can manage them

Good programs also check for depression and other mental health conditions, since treating them lowers the chance of returning to use.

Before you leave, staff should sit down with you and set up what comes next. If nobody raises it, ask.

How long detox takes

Most stays last from a few days to a couple of weeks. The length depends on which opioids you used, for how long, and how your body responds.

Withdrawal from short-acting opioids such as heroin tends to start within about 12 hours of the last dose. With long-acting opioids such as methadone it can take 30 hours or so to begin, and it lasts longer. The withdrawal timeline walks through each stage.

The acute sickness passes first. Low mood, poor sleep and cravings can linger for weeks or months afterwards, which is one more reason to have support lined up.

Why detox has to lead into treatment

Finishing detox feels like the finish line. It is closer to the starting line.

SAMHSA’s expert guidance does not recommend short-term supervised withdrawal as a stand-alone approach, because rates of return to opioid use are high. Detox clears the drug. It does not treat the cravings or the changes in the brain that drive them.

The bigger danger is overdose. After withdrawal, your tolerance is much lower than it was. An amount you used to take without trouble can now stop your breathing. MedlinePlus, from the National Library of Medicine, states that most opioid overdose deaths occur in people who have just detoxed.

So the days and weeks after detox are a high-risk time. The people around you should know that, and you should have naloxone within reach.

Call 911 if someone is not breathing or cannot be woken. For a crisis or thoughts of suicide, call or text 988. The SAMHSA National Helpline, 1-800-662-4357, offers free referrals 24 hours a day.

What to line up before you leave detox

You have real choices here, and you can make them before detox begins.

  • Stay on medication. If you are given buprenorphine or methadone for withdrawal, you can often keep taking it as ongoing treatment instead of tapering off. Ask about this on day one. Our medication treatment guide explains the options.
  • Start the naltrexone shot. Once you have been opioid-free long enough, a monthly naltrexone injection can be given before discharge.
  • Book the next level of care. That may be outpatient care or a residential program, with a set date and a named contact.
  • Take naloxone home. Ask the program for it, or buy the nasal spray at a pharmacy.

Some people skip stand-alone detox altogether. They start buprenorphine or methadone as outpatients, and the medicine does the work of getting them through withdrawal. To compare programs near you, find treatment in your state.

What detox costs

With Medicaid

Coverage for detox differs by state and setting. Ask your plan what it pays for.

See your options: With Medicaid

With private insurance

Marketplace plans must cover substance use treatment. Ask if you need approval before admission.

See your options: With private insurance

With no insurance

Your state substance use agency can point you to state-funded detox. Ask about sliding-scale fees.

See your options: With no insurance

Find detox in your state

Real, licensed facilities from public records. No paid placements.

Questions people ask us

How long does opiate detox take?

Most supervised detox stays last from a few days to a couple of weeks. Short-acting opioids such as heroin clear faster than long-acting ones such as methadone. The worst symptoms pass first, but sleep, mood and cravings can take much longer to settle. See the withdrawal timeline.

Is detox the same as rehab?

No. Detox is short medical care to get you through withdrawal. Rehab is the treatment that follows: counseling, medication and support over weeks or months, either while living at a program or as an outpatient. Detox with nothing after it carries a high risk of relapse and overdose.

Can I detox from opiates at home?

Some people go through withdrawal at home under a clinician's care, with prescribed medicines and someone to support them. Doing it with no medical help is hard, and many people return to use within days. Talk to a prescriber first, and get urgent help for severe vomiting, dehydration, chest pain or thoughts of suicide.

Why is overdose risk higher after detox?

Withdrawal lowers your tolerance. If you then use the amount you were used to, your body can no longer handle it and your breathing can stop. Starting a medication before you leave, keeping naloxone nearby and never using alone all lower that risk.