Methadone, sold under the brand name Dolophine among others, is an opioid used for opioid maintenance therapy in opioid dependence and for chronic pain management. Detoxification using methadone can be accomplished in less than a month, or it may be done gradually over as long as six months. While a single dose has a rapid effect, maximum effect can take up to five days of use. The pain-relieving effects last about six hours after a single dose. After long-term use, in people with normal liver function, effects last 8 to 36 hours. Methadone is usually taken by mouth and rarely by injection into a muscle or vein.