Make use of Heat If you have stomach pain due to cramping muscles, use a heated heat pad to relieve it. Make a Stomach-Relaxing Drink When your stomach hurts, you're supposed to drink Sprite. Remember to drink plenty of plain water. When you get sick with a virus, staying hydrated is critical to recovering quickly. Fiber supplements may also help diarrhea patients feel full after eating and reduce constipation-related pain. Take A Painkiller If your stomach hurts really bad, taking an over-the-counter painkiller such as Tylenol or Advil may be your only choice for relief. But if you do choose to take painkillers, be sure to only take them when necessary because they can cause other problems if used incorrectly or too often. See A Doctor If your stomach pain doesn't go away within a week, see your doctor. You might have gastritis, which causes painful urination and vomiting due to inflammation of the stomach lining. Your doctor may be able to diagnose it based on how you look and feel, plus some simple tests. He or she will then determine what treatment plan is best for you.