Highly efficient methods for synthesis of levomethadone hydrochloride or dextromethadone hydrochloride are provided starting from D-alanine, or L-alanine, respectively, with retention of configuration. Methods for treating a subject are provided comprising administering a composition comprising an effective amount of levomethadone hydrochloride having not more than 10 ppm dextromethadone.