If you are taking a muscle relaxant called flexeril prescribed by your doctor to treat pain, you may wonder how long the effects will last. This varies according to each individual and is affected by factors such as your age, health and dosage. However, flexeril will generally remain in your system for 12 to 24 hours.