Treatment for abdominal pain Treatment usually depends on the root cause of the pain. It can range from consuming antibiotics prescribed for ulcers, GERD and inflammation. In some cases, if the abdominal pain is caused due to hernia and appendicitis, surgery can be performed.