What to Take for Opioid Withdrawal: Meds and Remedies

Several medications can ease opioid withdrawal, ranging from FDA-approved prescriptions that treat the underlying dependence to over-the-counter products that target specific symptoms like diarrhea and muscle pain. What works best depends on whether you’re managing symptoms at home, tapering under medical supervision, or starting longer-term treatment for opioid use disorder. Here’s what’s available and how each option fits into the picture.

Prescription Medications That Treat Withdrawal Directly

Three FDA-approved medications address opioid dependence itself, not just individual symptoms. Methadone and buprenorphine are both opioid-based medications that activate the same brain receptors as other opioids but in a controlled, steadier way that prevents the crash of withdrawal. Methadone has been used for this purpose for over 50 years and is dispensed through specialized treatment programs, which typically require daily clinic visits (though take-home doses are available after a period of stability). Buprenorphine can be prescribed in a regular doctor’s office and picked up at a pharmacy, making it more accessible for most people.

Naltrexone works differently. It blocks opioid receptors entirely, so it’s only appropriate after withdrawal is complete. It prevents relapse rather than easing the withdrawal process itself.

A fourth prescription option, lofexidine, is FDA-approved specifically for acute withdrawal symptoms rather than long-term treatment. It works by calming the body’s stress response, which is what drives many of the worst withdrawal symptoms: racing heart, sweating, anxiety, and restlessness. Lofexidine doesn’t treat the addiction itself but can make the withdrawal period significantly more tolerable.

Why Timing Matters With Buprenorphine

If you’re starting buprenorphine, the single most important thing to understand is that taking it too early can make withdrawal dramatically worse. This is called precipitated withdrawal, and it happens because buprenorphine has a strong grip on opioid receptors. If those receptors still have another opioid attached, buprenorphine rips it off and replaces it, which throws you into sudden, intense withdrawal within minutes to hours.

Most emergency department protocols require you to already be in moderate withdrawal before the first dose, typically scoring at least 8 on a clinical scale that measures symptoms like restlessness, bone aches, and anxiety. Patients who received buprenorphine before reaching that threshold, especially those who had used opioids less than 12 hours before, were the ones most likely to experience precipitated withdrawal. For short-acting opioids like heroin, this generally means waiting at least 12 to 24 hours after your last dose. For longer-acting opioids like methadone, the wait can be 48 to 72 hours or more.

Clonidine for Sweating, Anxiety, and Restlessness

Clonidine is a blood pressure medication that doctors frequently prescribe off-label for opioid withdrawal. It targets the same overactive stress system that lofexidine does, calming the surge of adrenaline-like activity responsible for sweating, elevated heart rate, agitation, and high blood pressure. Hospital protocols typically use it in small doses throughout the day, adjusted based on how severe your symptoms are.

Because clonidine lowers blood pressure, your provider will monitor readings before each dose. If your blood pressure drops too low, the dose gets held. This is also why clonidine isn’t ideal for unsupervised home use without guidance. Dizziness, drowsiness, and fainting are possible, especially if you stand up quickly.

Over-the-Counter Options for Specific Symptoms

Withdrawal produces a cluster of uncomfortable but manageable symptoms that respond to common drugstore products. Matching the right OTC medication to the right symptom makes a real difference in comfort during the worst days.

  • Muscle aches and pain: Standard anti-inflammatory pain relievers like ibuprofen or naproxen help with the bone and joint pain that most people describe as one of withdrawal’s most miserable features. Acetaminophen is another option, especially if you have stomach sensitivity.
  • Diarrhea: Loperamide (the active ingredient in Imodium) is effective for the intense diarrhea that typically hits during peak withdrawal. Stick strictly to the label: the maximum OTC dose is 8 mg per day. The FDA has issued serious warnings about taking higher amounts, which can cause dangerous heart rhythm problems, cardiac arrest, and death. Some people in withdrawal take far more than directed hoping for opioid-like effects. This is genuinely life-threatening.
  • Nausea: Bismuth subsalicylate (Pepto-Bismol) or similar stomach-settling products can take the edge off nausea and cramping.
  • Sleep problems: Antihistamine-based sleep aids like diphenhydramine (Benadryl) or doxylamine may help with the insomnia that persists through withdrawal, though they won’t fully overcome the restlessness.

Magnesium and Other Supplements

There’s reasonable evidence that magnesium supplementation can reduce the intensity of opioid withdrawal symptoms. Magnesium helps regulate the nervous system in several ways relevant to withdrawal: it dampens the excitatory brain signaling that spikes when opioids are removed and supports the production of calming brain chemicals. Research in people with opioid dependence found that taking magnesium daily reduced the severity of clinical withdrawal symptoms, and some benefit persisted even after supplementation stopped.

The forms used in studies included magnesium aspartate at around 730 mg per day over 12 weeks. Magnesium glycinate and magnesium citrate are generally well absorbed and easy on the stomach. Magnesium oxide, the cheapest and most common form, is poorly absorbed and more likely to worsen diarrhea, which is the last thing you need during withdrawal.

Vitamin C, B vitamins, and electrolyte drinks are commonly recommended as well, mostly to replenish what’s lost through sweating, diarrhea, and poor appetite. They won’t reduce withdrawal intensity on their own, but dehydration and nutrient depletion make everything feel worse.

What the Withdrawal Timeline Looks Like

How quickly symptoms start and how long they last depends on which opioid you were using. Short-acting opioids like heroin or immediate-release prescription painkillers typically trigger withdrawal within 6 to 12 hours of the last dose, with symptoms peaking around days 2 to 3 and largely resolving within 5 days. Longer-acting opioids like methadone come on slower, sometimes not starting for 24 to 48 hours, but the withdrawal stretches out over a longer period.

Fentanyl complicates this picture. Although it’s technically short-acting, illicit fentanyl can build up in body fat with repeated use, leading to unpredictable onset and a withdrawal timeline that doesn’t follow the usual short-acting pattern. This is one reason precipitated withdrawal with buprenorphine has become more common in recent years.

Regardless of the opioid, the physical symptoms (sweating, diarrhea, muscle pain, racing heart) are the first to arrive and the first to leave. Sleep problems, low energy, anxiety, and cravings often linger for weeks to months. This is why medications like buprenorphine and methadone, which can be continued long-term, tend to produce better outcomes than simply pushing through the acute withdrawal period alone.

Putting Together a Symptom Management Plan

The most effective approach combines a prescription medication that addresses the core withdrawal with OTC and supportive products for remaining symptoms. For many people, buprenorphine or methadone eliminates or greatly reduces the need for anything else. If you’re managing without those medications, layering clonidine (prescribed), an anti-inflammatory for pain, loperamide at safe doses for diarrhea, magnesium, and aggressive hydration covers the major symptom categories.

Keep in mind that withdrawal, while deeply unpleasant, is not typically life-threatening for otherwise healthy adults. The bigger risk is returning to use after a period of abstinence, when tolerance has dropped and the same dose that was once routine can cause an overdose. Medication-assisted treatment with buprenorphine or methadone reduces that risk substantially, which is why guidelines increasingly recommend them as first-line treatment rather than white-knuckling through withdrawal alone.