It depends on the root cause. Stomach ache caused by gas can be calmed by avoiding certain foods or taking over-the-counter medication. Stomach ache caused by menstrual cramps can be calmed by NSAIDs or by applying heat.