Constipation after any surgical procedure results from many causes including anesthesia, pain medication, and possibly anti-nausea medication. Magnesium citrate can effectively and rapidly treat constipation, however I generally prefer MiraLAX as a first choice since it works much more gently. Good luck.