Liver function usually returns to normal in about 7-15 days after stopping the drug, and it may take about 3-6 months to return to normal in some patients with more serious liver injury. If you take certain drugs for a long time, such as anti-inflammatory and analgesic drug aspirin, antibiotic drugs cephalosporin, amoxicillin, erythromycin, etc., there is a possibility of pharmacogenetic liver injury, resulting in abnormal liver function. For minor liver injury, as long as the drug is stopped in time, usually about 7-15 days after stopping the drug, liver function can return to normal. In case of serious liver injury, it may cause acute liver failure, and after active treatment, liver function can return to normal in about 3-6 months after stopping the drug. How long it takes for liver function to return to normal after stopping the drug is mainly related to the degree of liver damage. Once medication causes drug-induced liver injury, it is recommended to cooperate with the attending physician to adjust the medication as soon as possible, such as suspending the medication, reducing the dosage of the medication, or switching to a certain kind of medication that does not cause damage to the liver, etc., in order to avoid causing serious damage to liver function.